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="Freestanding"
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=""
2363 llvm_cv_no_link_all_option=""
2364 llvm_cv_os_type="Unknown"
2365 llvm_cv_platform_type="Unknown" ;;
2368 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2369 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2371 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2372 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2373 if test "${llvm_cv_target_os_type+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 llvm_cv_target_os_type="AIX" ;;
2380 llvm_cv_target_os_type="IRIX" ;;
2382 llvm_cv_target_os_type="Cygwin" ;;
2384 llvm_cv_target_os_type="Darwin" ;;
2386 llvm_cv_target_os_type="FreeBSD" ;;
2388 llvm_cv_target_os_type="OpenBSD" ;;
2390 llvm_cv_target_os_type="NetBSD" ;;
2392 llvm_cv_target_os_type="DragonFly" ;;
2394 llvm_cv_target_os_type="HP-UX" ;;
2396 llvm_cv_target_os_type="Interix" ;;
2398 llvm_cv_target_os_type="Linux" ;;
2400 llvm_cv_target_os_type="SunOS" ;;
2402 llvm_cv_target_os_type="Win32" ;;
2404 llvm_cv_target_os_type="MingW" ;;
2406 llvm_cv_target_os_type="Freestanding" ;;
2408 llvm_cv_target_os_type="Unknown" ;;
2411 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2412 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2414 if test "$llvm_cv_os_type" = "Unknown" ; then
2415 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2416 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2417 { (exit 1); exit 1; }; }
2422 HOST_OS=$llvm_cv_os_type
2424 TARGET_OS=$llvm_cv_target_os_type
2427 LINKALL=$llvm_cv_link_all_option
2429 NOLINKALL=$llvm_cv_no_link_all_option
2432 case $llvm_cv_platform_type in
2435 cat >>confdefs.h <<\_ACEOF
2436 #define LLVM_ON_UNIX 1
2446 cat >>confdefs.h <<\_ACEOF
2447 #define LLVM_ON_WIN32 1
2457 { echo "$as_me:$LINENO: checking target architecture" >&5
2458 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2459 if test "${llvm_cv_target_arch+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 i?86-*) llvm_cv_target_arch="x86" ;;
2464 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2465 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2466 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2467 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2468 arm*-*) llvm_cv_target_arch="ARM" ;;
2469 mips-*) llvm_cv_target_arch="Mips" ;;
2470 pic16-*) llvm_cv_target_arch="PIC16" ;;
2471 xcore-*) llvm_cv_target_arch="XCore" ;;
2472 msp430-*) llvm_cv_target_arch="MSP430" ;;
2473 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2474 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2475 *) llvm_cv_target_arch="Unknown" ;;
2478 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2479 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2481 if test "$llvm_cv_target_arch" = "Unknown" ; then
2482 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2483 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2486 # Determine the LLVM native architecture for the target
2487 case "$llvm_cv_target_arch" in
2488 x86) LLVM_NATIVE_ARCH="X86" ;;
2489 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2490 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2493 ARCH=$llvm_cv_target_arch
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501 if test -n "$ac_tool_prefix"; then
2502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2503 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_CC+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 if test -n "$CC"; then
2531 { echo "$as_me:$LINENO: result: $CC" >&5
2532 echo "${ECHO_T}$CC" >&6; }
2534 { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2540 if test -z "$ac_cv_prog_CC"; then
2542 # Extract the first word of "gcc", so it can be a program name with args.
2543 set dummy gcc; ac_word=$2
2544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 if test -n "$ac_ct_CC"; then
2550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_ac_ct_CC="gcc"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2570 if test -n "$ac_ct_CC"; then
2571 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2572 echo "${ECHO_T}$ac_ct_CC" >&6; }
2574 { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2578 if test "x$ac_ct_CC" = x; then
2581 case $cross_compiling:$ac_tool_warned in
2583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2584 whose name does not start with the host triplet. If you think this
2585 configuration is useful to you, please write to autoconf@gnu.org." >&5
2586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2587 whose name does not start with the host triplet. If you think this
2588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2589 ac_tool_warned=yes ;;
2597 if test -z "$CC"; then
2598 if test -n "$ac_tool_prefix"; then
2599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2600 set dummy ${ac_tool_prefix}cc; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2616 ac_cv_prog_CC="${ac_tool_prefix}cc"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 if test -n "$CC"; then
2628 { echo "$as_me:$LINENO: result: $CC" >&5
2629 echo "${ECHO_T}$CC" >&6; }
2631 { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2638 if test -z "$CC"; then
2639 # Extract the first word of "cc", so it can be a program name with args.
2640 set dummy cc; ac_word=$2
2641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2658 ac_prog_rejected=yes
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 if test $ac_prog_rejected = yes; then
2670 # We found a bogon in the path, so make sure we never use it.
2671 set dummy $ac_cv_prog_CC
2673 if test $# != 0; then
2674 # We chose a different compiler from the bogus one.
2675 # However, it has the same basename, so the bogon will be chosen
2676 # first if we set CC to just the basename; use the full file name.
2678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2684 if test -n "$CC"; then
2685 { echo "$as_me:$LINENO: result: $CC" >&5
2686 echo "${ECHO_T}$CC" >&6; }
2688 { echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6; }
2694 if test -z "$CC"; then
2695 if test -n "$ac_tool_prefix"; then
2696 for ac_prog in cl.exe
2698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_CC+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 if test -n "$CC"; then
2706 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 if test -n "$CC"; then
2727 { echo "$as_me:$LINENO: result: $CC" >&5
2728 echo "${ECHO_T}$CC" >&6; }
2730 { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2735 test -n "$CC" && break
2738 if test -z "$CC"; then
2740 for ac_prog in cl.exe
2742 # Extract the first word of "$ac_prog", so it can be a program name with args.
2743 set dummy $ac_prog; ac_word=$2
2744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2746 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 if test -n "$ac_ct_CC"; then
2750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_ac_ct_CC="$ac_prog"
2760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2770 if test -n "$ac_ct_CC"; then
2771 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2772 echo "${ECHO_T}$ac_ct_CC" >&6; }
2774 { echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6; }
2779 test -n "$ac_ct_CC" && break
2782 if test "x$ac_ct_CC" = x; then
2785 case $cross_compiling:$ac_tool_warned in
2787 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2788 whose name does not start with the host triplet. If you think this
2789 configuration is useful to you, please write to autoconf@gnu.org." >&5
2790 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2793 ac_tool_warned=yes ;;
2802 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2803 See \`config.log' for more details." >&5
2804 echo "$as_me: error: no acceptable C compiler found in \$PATH
2805 See \`config.log' for more details." >&2;}
2806 { (exit 1); exit 1; }; }
2808 # Provide some information about the compiler.
2809 echo "$as_me:$LINENO: checking for C compiler version" >&5
2810 ac_compiler=`set X $ac_compile; echo $2`
2811 { (ac_try="$ac_compiler --version >&5"
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compiler --version >&5") 2>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }
2821 { (ac_try="$ac_compiler -v >&5"
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_compiler -v >&5") 2>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }
2831 { (ac_try="$ac_compiler -V >&5"
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_compiler -V >&5") 2>&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
2842 cat >conftest.$ac_ext <<_ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2857 ac_clean_files_save=$ac_clean_files
2858 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2859 # Try to create an executable without -o first, disregard a.out.
2860 # It will help us diagnose broken compilers, and finding out an intuition
2862 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2863 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2864 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2866 # List of possible output files, starting from the most likely.
2867 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2868 # only as a last resort. b.out is created by i960 compilers.
2869 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2871 # The IRIX 6 linker writes into existing files which may not be
2872 # executable, retaining their permissions. Remove them first so a
2873 # subsequent execution test works.
2875 for ac_file in $ac_files
2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2879 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2884 if { (ac_try="$ac_link_default"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_link_default") 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; then
2894 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2895 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2896 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2897 # so that the user can short-circuit this test for compilers unknown to
2899 for ac_file in $ac_files
2901 test -f "$ac_file" || continue
2903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2906 # We found the default executable, but exeext='' is most
2910 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2912 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2914 # We set ac_cv_exeext here because the later test for it is not
2915 # safe: cross compilers may not add the suffix if given an `-o'
2916 # argument, so we may need to know it at that point already.
2917 # Even if this section looks crufty: it has the advantage of
2924 test "$ac_cv_exeext" = no && ac_cv_exeext=
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2930 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: C compiler cannot create executables
2933 See \`config.log' for more details." >&2;}
2934 { (exit 77); exit 77; }; }
2937 ac_exeext=$ac_cv_exeext
2938 { echo "$as_me:$LINENO: result: $ac_file" >&5
2939 echo "${ECHO_T}$ac_file" >&6; }
2941 # Check that the compiler produces executables we can run. If not, either
2942 # the compiler is broken, or we cross compile.
2943 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2944 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2945 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2946 # If not cross compiling, check that we can run a simple program.
2947 if test "$cross_compiling" != yes; then
2948 if { ac_try='./$ac_file'
2949 { (case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_try") 2>&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2960 if test "$cross_compiling" = maybe; then
2963 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2964 If you meant to cross compile, use \`--host'.
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: cannot run C compiled programs.
2967 If you meant to cross compile, use \`--host'.
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
2973 { echo "$as_me:$LINENO: result: yes" >&5
2974 echo "${ECHO_T}yes" >&6; }
2976 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2977 ac_clean_files=$ac_clean_files_save
2978 # Check that the compiler produces executables we can run. If not, either
2979 # the compiler is broken, or we cross compile.
2980 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2981 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2982 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2983 echo "${ECHO_T}$cross_compiling" >&6; }
2985 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2986 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2987 if { (ac_try="$ac_link"
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_link") 2>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; then
2997 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2998 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2999 # work properly (i.e., refer to `conftest.exe'), while it won't with
3001 for ac_file in conftest.exe conftest conftest.*; do
3002 test -f "$ac_file" || continue
3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3011 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3014 See \`config.log' for more details." >&2;}
3015 { (exit 1); exit 1; }; }
3018 rm -f conftest$ac_cv_exeext
3019 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3020 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3022 rm -f conftest.$ac_ext
3023 EXEEXT=$ac_cv_exeext
3025 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3026 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3027 if test "${ac_cv_objext+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 cat >conftest.$ac_ext <<_ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3045 rm -f conftest.o conftest.obj
3046 if { (ac_try="$ac_compile"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; then
3056 for ac_file in conftest.o conftest.obj conftest.*; do
3057 test -f "$ac_file" || continue;
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3060 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3069 See \`config.log' for more details." >&5
3070 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3071 See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3075 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3077 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3078 echo "${ECHO_T}$ac_cv_objext" >&6; }
3079 OBJEXT=$ac_cv_objext
3081 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3082 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3083 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3104 rm -f conftest.$ac_objext
3105 if { (ac_try="$ac_compile"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compile") 2>conftest.er1
3113 grep -v '^ *+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; } &&
3128 { ac_try='test -s conftest.$ac_objext'
3129 { (case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_try") 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3150 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3151 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3152 GCC=`test $ac_compiler_gnu = yes && echo yes`
3153 ac_test_CFLAGS=${CFLAGS+set}
3154 ac_save_CFLAGS=$CFLAGS
3155 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3156 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3157 if test "${ac_cv_prog_cc_g+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 ac_save_c_werror_flag=$ac_c_werror_flag
3161 ac_c_werror_flag=yes
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3179 rm -f conftest.$ac_objext
3180 if { (ac_try="$ac_compile"
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3188 grep -v '^ *+' conftest.er1 >conftest.err
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3243 grep -v '^ *+' conftest.er1 >conftest.err
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } &&
3248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; } &&
3258 { ac_try='test -s conftest.$ac_objext'
3259 { (case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264 (eval "$ac_try") 2>&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3275 cat >conftest.$ac_ext <<_ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3290 rm -f conftest.$ac_objext
3291 if { (ac_try="$ac_compile"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } &&
3304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3305 { (case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_try") 2>&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3326 echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3343 if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345 elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3352 if test "$GCC" = yes; then
3358 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3359 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3360 if test "${ac_cv_prog_cc_c89+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 ac_cv_prog_cc_c89=no
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3373 #include <sys/types.h>
3374 #include <sys/stat.h>
3375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3376 struct buf { int x; };
3377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378 static char *e (p, i)
3384 static char *f (char * (*g) (char **, int), char **p, ...)
3389 s = g (p, va_arg (v,int));
3394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3395 function prototypes and stuff, but not '\xHH' hex character constants.
3396 These don't provoke an error unfortunately, instead are silently treated
3397 as 'x'. The following induces an error, until -std is added to get
3398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3399 array size at least. It's necessary to write '\x00'==0 to get something
3400 that's true only with -std. */
3401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404 inside strings and character constants. */
3406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3408 int test (int i, double x);
3409 struct s1 {int (*f) (int a);};
3410 struct s2 {int (*f) (double a);};
3411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3425 CC="$ac_save_CC $ac_arg"
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3441 { (case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_try") 2>&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; } &&
3450 { ac_try='test -s conftest.$ac_objext'
3451 { (case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_try") 2>&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 ac_cv_prog_cc_c89=$ac_arg
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3468 rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
3471 rm -f conftest.$ac_ext
3476 case "x$ac_cv_prog_cc_c89" in
3478 { echo "$as_me:$LINENO: result: none needed" >&5
3479 echo "${ECHO_T}none needed" >&6; } ;;
3481 { echo "$as_me:$LINENO: result: unsupported" >&5
3482 echo "${ECHO_T}unsupported" >&6; } ;;
3484 CC="$CC $ac_cv_prog_cc_c89"
3485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3486 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3502 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3503 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3504 # On Suns, sometimes $CPP names a directory.
3505 if test -n "$CPP" && test -d "$CPP"; then
3508 if test -z "$CPP"; then
3509 if test "${ac_cv_prog_CPP+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 # Double quotes because CPP needs to be expanded
3513 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3516 for ac_c_preproc_warn_flag in '' yes
3518 # Use a header file that comes with gcc, so configuring glibc
3519 # with a fresh cross-compiler works.
3520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3521 # <limits.h> exists even on freestanding compilers.
3522 # On the NeXT, cc -E runs the code through the compiler's parser,
3523 # not just through cpp. "Syntax error" is here to catch this case.
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3531 # include <limits.h>
3533 # include <assert.h>
3537 if { (ac_try="$ac_cpp conftest.$ac_ext"
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } >/dev/null; then
3550 if test -s conftest.err; then
3551 ac_cpp_err=$ac_c_preproc_warn_flag
3552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3559 if test -z "$ac_cpp_err"; then
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 # Broken: fails on valid input.
3569 rm -f conftest.err conftest.$ac_ext
3571 # OK, works on sane cases. Now check whether nonexistent headers
3572 # can be detected and how.
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3579 #include <ac_nonexistent.h>
3581 if { (ac_try="$ac_cpp conftest.$ac_ext"
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3589 grep -v '^ *+' conftest.er1 >conftest.err
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } >/dev/null; then
3594 if test -s conftest.err; then
3595 ac_cpp_err=$ac_c_preproc_warn_flag
3596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3603 if test -z "$ac_cpp_err"; then
3604 # Broken: success on invalid input.
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 # Passes both tests.
3615 rm -f conftest.err conftest.$ac_ext
3618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3619 rm -f conftest.err conftest.$ac_ext
3620 if $ac_preproc_ok; then
3632 { echo "$as_me:$LINENO: result: $CPP" >&5
3633 echo "${ECHO_T}$CPP" >&6; }
3635 for ac_c_preproc_warn_flag in '' yes
3637 # Use a header file that comes with gcc, so configuring glibc
3638 # with a fresh cross-compiler works.
3639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3640 # <limits.h> exists even on freestanding compilers.
3641 # On the NeXT, cc -E runs the code through the compiler's parser,
3642 # not just through cpp. "Syntax error" is here to catch this case.
3643 cat >conftest.$ac_ext <<_ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3650 # include <limits.h>
3652 # include <assert.h>
3656 if { (ac_try="$ac_cpp conftest.$ac_ext"
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3664 grep -v '^ *+' conftest.er1 >conftest.err
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } >/dev/null; then
3669 if test -s conftest.err; then
3670 ac_cpp_err=$ac_c_preproc_warn_flag
3671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3678 if test -z "$ac_cpp_err"; then
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 # Broken: fails on valid input.
3688 rm -f conftest.err conftest.$ac_ext
3690 # OK, works on sane cases. Now check whether nonexistent headers
3691 # can be detected and how.
3692 cat >conftest.$ac_ext <<_ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 #include <ac_nonexistent.h>
3700 if { (ac_try="$ac_cpp conftest.$ac_ext"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3708 grep -v '^ *+' conftest.er1 >conftest.err
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } >/dev/null; then
3713 if test -s conftest.err; then
3714 ac_cpp_err=$ac_c_preproc_warn_flag
3715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3722 if test -z "$ac_cpp_err"; then
3723 # Broken: success on invalid input.
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3729 # Passes both tests.
3734 rm -f conftest.err conftest.$ac_ext
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.err conftest.$ac_ext
3739 if $ac_preproc_ok; then
3742 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3743 See \`config.log' for more details." >&5
3744 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3745 See \`config.log' for more details." >&2;}
3746 { (exit 1); exit 1; }; }
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3757 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3758 if test "${ac_cv_path_GREP+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 # Extract the first word of "grep ggrep" to use in msg output
3762 if test -z "$GREP"; then
3763 set dummy grep ggrep; ac_prog_name=$2
3764 if test "${ac_cv_path_GREP+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 ac_path_GREP_found=false
3768 # Loop through the user's path and test for each of PROGNAME-LIST
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3773 test -z "$as_dir" && as_dir=.
3774 for ac_prog in grep ggrep; do
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3777 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3778 # Check for GNU ac_path_GREP and select it if it is found.
3779 # Check for GNU $ac_path_GREP
3780 case `"$ac_path_GREP" --version 2>&1` in
3782 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3785 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3788 cat "conftest.in" "conftest.in" >"conftest.tmp"
3789 mv "conftest.tmp" "conftest.in"
3790 cp "conftest.in" "conftest.nl"
3791 echo 'GREP' >> "conftest.nl"
3792 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3794 ac_count=`expr $ac_count + 1`
3795 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3796 # Best one so far, save it but keep looking for a better one
3797 ac_cv_path_GREP="$ac_path_GREP"
3798 ac_path_GREP_max=$ac_count
3800 # 10*(2^10) chars as input seems more than enough
3801 test $ac_count -gt 10 && break
3803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3807 $ac_path_GREP_found && break 3
3817 GREP="$ac_cv_path_GREP"
3818 if test -z "$GREP"; then
3819 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3820 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3821 { (exit 1); exit 1; }; }
3825 ac_cv_path_GREP=$GREP
3830 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3831 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3832 GREP="$ac_cv_path_GREP"
3835 { echo "$as_me:$LINENO: checking for egrep" >&5
3836 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3837 if test "${ac_cv_path_EGREP+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3841 then ac_cv_path_EGREP="$GREP -E"
3843 # Extract the first word of "egrep" to use in msg output
3844 if test -z "$EGREP"; then
3845 set dummy egrep; ac_prog_name=$2
3846 if test "${ac_cv_path_EGREP+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 ac_path_EGREP_found=false
3850 # Loop through the user's path and test for each of PROGNAME-LIST
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3855 test -z "$as_dir" && as_dir=.
3856 for ac_prog in egrep; do
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3859 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3860 # Check for GNU ac_path_EGREP and select it if it is found.
3861 # Check for GNU $ac_path_EGREP
3862 case `"$ac_path_EGREP" --version 2>&1` in
3864 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3867 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3870 cat "conftest.in" "conftest.in" >"conftest.tmp"
3871 mv "conftest.tmp" "conftest.in"
3872 cp "conftest.in" "conftest.nl"
3873 echo 'EGREP' >> "conftest.nl"
3874 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3876 ac_count=`expr $ac_count + 1`
3877 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3878 # Best one so far, save it but keep looking for a better one
3879 ac_cv_path_EGREP="$ac_path_EGREP"
3880 ac_path_EGREP_max=$ac_count
3882 # 10*(2^10) chars as input seems more than enough
3883 test $ac_count -gt 10 && break
3885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3889 $ac_path_EGREP_found && break 3
3899 EGREP="$ac_cv_path_EGREP"
3900 if test -z "$EGREP"; then
3901 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3902 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3903 { (exit 1); exit 1; }; }
3907 ac_cv_path_EGREP=$EGREP
3913 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3914 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3915 EGREP="$ac_cv_path_EGREP"
3918 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3919 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3920 if test "${ac_cv_header_stdc+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3942 rm -f conftest.$ac_objext
3943 if { (ac_try="$ac_compile"
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_compile") 2>conftest.er1
3951 grep -v '^ *+' conftest.er1 >conftest.err
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3957 { (case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_try") 2>&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_try") 2>&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 ac_cv_header_stdc=yes
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 ac_cv_header_stdc=no
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 if test $ac_cv_header_stdc = yes; then
3987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998 $EGREP "memchr" >/dev/null 2>&1; then
4001 ac_cv_header_stdc=no
4007 if test $ac_cv_header_stdc = yes; then
4008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019 $EGREP "free" >/dev/null 2>&1; then
4022 ac_cv_header_stdc=no
4028 if test $ac_cv_header_stdc = yes; then
4029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4030 if test "$cross_compiling" = yes; then
4033 cat >conftest.$ac_ext <<_ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4041 #if ((' ' & 0x0FF) == 0x020)
4042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4045 # define ISLOWER(c) \
4046 (('a' <= (c) && (c) <= 'i') \
4047 || ('j' <= (c) && (c) <= 'r') \
4048 || ('s' <= (c) && (c) <= 'z'))
4049 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4052 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4057 for (i = 0; i < 256; i++)
4058 if (XOR (islower (i), ISLOWER (i))
4059 || toupper (i) != TOUPPER (i))
4064 rm -f conftest$ac_exeext
4065 if { (ac_try="$ac_link"
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_link") 2>&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4075 { (case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4086 echo "$as_me: program exited with status $ac_status" >&5
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4091 ac_cv_header_stdc=no
4093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4099 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4100 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4101 if test $ac_cv_header_stdc = yes; then
4103 cat >>confdefs.h <<\_ACEOF
4104 #define STDC_HEADERS 1
4109 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4119 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4120 inttypes.h stdint.h unistd.h
4122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 $ac_includes_default
4136 #include <$ac_header>
4138 rm -f conftest.$ac_objext
4139 if { (ac_try="$ac_compile"
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_compile") 2>conftest.er1
4147 grep -v '^ *+' conftest.er1 >conftest.err
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 eval "$as_ac_Header=yes"
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 eval "$as_ac_Header=no"
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 ac_res=`eval echo '${'$as_ac_Header'}'`
4183 { echo "$as_me:$LINENO: result: $ac_res" >&5
4184 echo "${ECHO_T}$ac_res" >&6; }
4185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4186 cat >>confdefs.h <<_ACEOF
4187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4195 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4196 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4197 if test "${ac_cv_c_bigendian+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 # See if sys/param.h defines the BYTE_ORDER macro.
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 #include <sys/types.h>
4208 #include <sys/param.h>
4213 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4230 grep -v '^ *+' conftest.er1 >conftest.err
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 # It does; now see whether it defined to BIG_ENDIAN or not.
4256 cat >conftest.$ac_ext <<_ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 #include <sys/types.h>
4263 #include <sys/param.h>
4268 #if BYTE_ORDER != BIG_ENDIAN
4276 rm -f conftest.$ac_objext
4277 if { (ac_try="$ac_compile"
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_compile") 2>conftest.er1
4285 grep -v '^ *+' conftest.er1 >conftest.err
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4291 { (case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_try") 2>&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_try") 2>&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 ac_cv_c_bigendian=yes
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 ac_cv_c_bigendian=no
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4323 # It does not; compile a test program.
4324 if test "$cross_compiling" = yes; then
4325 # try to guess the endianness by grepping values into an object file
4326 ac_cv_c_bigendian=unknown
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4334 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4335 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4336 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4337 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4338 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4342 _ascii (); _ebcdic ();
4347 rm -f conftest.$ac_objext
4348 if { (ac_try="$ac_compile"
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_compile") 2>conftest.er1
4356 grep -v '^ *+' conftest.er1 >conftest.err
4358 cat conftest.err >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4362 { (case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_try") 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_try") 2>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4382 ac_cv_c_bigendian=yes
4384 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4385 if test "$ac_cv_c_bigendian" = unknown; then
4386 ac_cv_c_bigendian=no
4388 # finding both strings is unlikely to happen, but who knows?
4389 ac_cv_c_bigendian=unknown
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 cat >conftest.$ac_ext <<_ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 $ac_includes_default
4412 /* Are we little or big endian? From Harbison&Steele. */
4416 char c[sizeof (long int)];
4419 return u.c[sizeof (long int) - 1] == 1;
4425 rm -f conftest$ac_exeext
4426 if { (ac_try="$ac_link"
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432 (eval "$ac_link") 2>&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4436 { (case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_try") 2>&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; }; then
4445 ac_cv_c_bigendian=no
4447 echo "$as_me: program exited with status $ac_status" >&5
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4452 ac_cv_c_bigendian=yes
4454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4463 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4464 case $ac_cv_c_bigendian in
4472 { { echo "$as_me:$LINENO: error: unknown endianness
4473 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4474 echo "$as_me: error: unknown endianness
4475 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4476 { (exit 1); exit 1; }; } ;;
4480 if test "$cross_compiling" = yes; then
4481 LLVM_CROSS_COMPILING=1
4484 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4485 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4486 if test "${ac_cv_build_exeext+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4490 ac_cv_build_exeext=.exe
4492 ac_build_prefix=${build_alias}-
4494 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4495 set dummy ${ac_build_prefix}gcc; ac_word=$2
4496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 if test -n "$BUILD_CC"; then
4502 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 BUILD_CC=$ac_cv_prog_BUILD_CC
4522 if test -n "$BUILD_CC"; then
4523 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524 echo "${ECHO_T}$BUILD_CC" >&6; }
4526 { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4531 if test -z "$BUILD_CC"; then
4532 # Extract the first word of "gcc", so it can be a program name with args.
4533 set dummy gcc; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 if test -n "$BUILD_CC"; then
4540 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4549 ac_cv_prog_BUILD_CC="gcc"
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 BUILD_CC=$ac_cv_prog_BUILD_CC
4560 if test -n "$BUILD_CC"; then
4561 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4562 echo "${ECHO_T}$BUILD_CC" >&6; }
4564 { echo "$as_me:$LINENO: result: no" >&5
4565 echo "${ECHO_T}no" >&6; }
4569 if test -z "$BUILD_CC"; then
4570 # Extract the first word of "cc", so it can be a program name with args.
4571 set dummy cc; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 if test -n "$BUILD_CC"; then
4578 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4589 ac_prog_rejected=yes
4592 ac_cv_prog_BUILD_CC="cc"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 if test $ac_prog_rejected = yes; then
4601 # We found a bogon in the path, so make sure we never use it.
4602 set dummy $ac_cv_prog_BUILD_CC
4604 if test $# != 0; then
4605 # We chose a different compiler from the bogus one.
4606 # However, it has the same basename, so the bogon will be chosen
4607 # first if we set BUILD_CC to just the basename; use the full file name.
4609 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4614 BUILD_CC=$ac_cv_prog_BUILD_CC
4615 if test -n "$BUILD_CC"; then
4616 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4617 echo "${ECHO_T}$BUILD_CC" >&6; }
4619 { echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6; }
4626 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4627 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4628 { (exit 1); exit 1; }; }
4629 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4631 echo 'int main () { return 0; }' > conftest.$ac_ext
4633 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4634 (eval $ac_build_link) 2>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; then
4638 for file in conftest.*; do
4640 *.c | *.o | *.obj | *.dSYM) ;;
4641 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4645 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4646 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4647 { (exit 1); exit 1; }; }
4650 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4655 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4656 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4657 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4658 ac_build_exeext=$BUILD_EXEEXT
4660 ac_build_prefix=${build_alias}-
4661 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4662 set dummy ${ac_build_prefix}g++; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test -n "$BUILD_CXX"; then
4669 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4689 if test -n "$BUILD_CXX"; then
4690 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4691 echo "${ECHO_T}$BUILD_CXX" >&6; }
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4698 if test -z "$BUILD_CXX"; then
4699 # Extract the first word of "g++", so it can be a program name with args.
4700 set dummy g++; ac_word=$2
4701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 if test -n "$BUILD_CXX"; then
4707 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_BUILD_CXX="g++"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4727 if test -n "$BUILD_CXX"; then
4728 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4729 echo "${ECHO_T}$BUILD_CXX" >&6; }
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4736 if test -z "$BUILD_CXX"; then
4737 # Extract the first word of "c++", so it can be a program name with args.
4738 set dummy c++; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 if test -n "$BUILD_CXX"; then
4745 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4756 ac_prog_rejected=yes
4759 ac_cv_prog_BUILD_CXX="c++"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 if test $ac_prog_rejected = yes; then
4768 # We found a bogon in the path, so make sure we never use it.
4769 set dummy $ac_cv_prog_BUILD_CXX
4771 if test $# != 0; then
4772 # We chose a different compiler from the bogus one.
4773 # However, it has the same basename, so the bogon will be chosen
4774 # first if we set BUILD_CXX to just the basename; use the full file name.
4776 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4781 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4782 if test -n "$BUILD_CXX"; then
4783 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4784 echo "${ECHO_T}$BUILD_CXX" >&6; }
4786 { echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6; }
4794 LLVM_CROSS_COMPILING=0
4798 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4809 # Check whether --enable-optimized was given.
4810 if test "${enable_optimized+set}" = set; then
4811 enableval=$enable_optimized;
4816 if test ${enableval} = "no" ; then
4820 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4824 # Check whether --enable-profiling was given.
4825 if test "${enable_profiling+set}" = set; then
4826 enableval=$enable_profiling;
4831 if test ${enableval} = "no" ; then
4835 ENABLE_PROFILING=ENABLE_PROFILING=1
4839 # Check whether --enable-assertions was given.
4840 if test "${enable_assertions+set}" = set; then
4841 enableval=$enable_assertions;
4846 if test ${enableval} = "yes" ; then
4850 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4854 # Check whether --enable-expensive-checks was given.
4855 if test "${enable_expensive_checks+set}" = set; then
4856 enableval=$enable_expensive_checks;
4861 if test ${enableval} = "yes" ; then
4862 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4864 EXPENSIVE_CHECKS=yes
4867 ENABLE_EXPENSIVE_CHECKS=
4873 # Check whether --enable-debug-runtime was given.
4874 if test "${enable_debug_runtime+set}" = set; then
4875 enableval=$enable_debug_runtime;
4880 if test ${enableval} = "no" ; then
4884 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4888 # Check whether --enable-debug-symbols was given.
4889 if test "${enable_debug_symbols+set}" = set; then
4890 enableval=$enable_debug_symbols;
4895 if test ${enableval} = "no" ; then
4899 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4903 # Check whether --enable-jit was given.
4904 if test "${enable_jit+set}" = set; then
4905 enableval=$enable_jit;
4910 if test ${enableval} = "no"
4915 case "$llvm_cv_target_arch" in
4916 x86) TARGET_HAS_JIT=1
4918 Sparc) TARGET_HAS_JIT=0
4920 PowerPC) TARGET_HAS_JIT=1
4922 x86_64) TARGET_HAS_JIT=1
4924 Alpha) TARGET_HAS_JIT=1
4926 ARM) TARGET_HAS_JIT=1
4928 Mips) TARGET_HAS_JIT=0
4930 PIC16) TARGET_HAS_JIT=0
4932 XCore) TARGET_HAS_JIT=0
4934 MSP430) TARGET_HAS_JIT=0
4936 SystemZ) TARGET_HAS_JIT=0
4938 Blackfin) TARGET_HAS_JIT=0
4945 # Check whether --enable-doxygen was given.
4946 if test "${enable_doxygen+set}" = set; then
4947 enableval=$enable_doxygen;
4952 case "$enableval" in
4953 yes) ENABLE_DOXYGEN=1
4955 no) ENABLE_DOXYGEN=0
4957 default) ENABLE_DOXYGEN=0
4959 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4960 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4961 { (exit 1); exit 1; }; } ;;
4964 # Check whether --enable-threads was given.
4965 if test "${enable_threads+set}" = set; then
4966 enableval=$enable_threads;
4971 case "$enableval" in
4972 yes) ENABLE_THREADS=1
4974 no) ENABLE_THREADS=0
4976 default) ENABLE_THREADS=1
4978 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4979 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4983 cat >>confdefs.h <<_ACEOF
4984 #define ENABLE_THREADS $ENABLE_THREADS
4988 # Check whether --enable-pic was given.
4989 if test "${enable_pic+set}" = set; then
4990 enableval=$enable_pic;
4995 case "$enableval" in
5000 default) ENABLE_PIC=1
5002 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5003 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5007 cat >>confdefs.h <<_ACEOF
5008 #define ENABLE_PIC $ENABLE_PIC
5013 # Check whether --enable-targets was given.
5014 if test "${enable_targets+set}" = set; then
5015 enableval=$enable_targets;
5020 if test "$enableval" = host-only ; then
5023 case "$enableval" in
5024 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5025 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5027 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5028 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5029 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5030 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5031 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5032 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5033 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5034 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5035 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5036 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5037 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5038 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5039 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5040 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5041 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5042 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5043 host) case "$llvm_cv_target_arch" in
5044 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5045 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5046 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5047 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5048 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5049 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5050 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5051 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5052 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5053 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5054 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5055 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5056 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5057 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5058 echo "$as_me: error: Can not set target to build" >&2;}
5059 { (exit 1); exit 1; }; } ;;
5061 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5062 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5063 { (exit 1); exit 1; }; } ;;
5068 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5071 # Determine whether we are building LLVM support for the native architecture.
5072 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5073 for a_target in $TARGETS_TO_BUILD; do
5074 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5075 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5077 cat >>confdefs.h <<_ACEOF
5078 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5084 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5085 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5086 LLVM_ENUM_TARGETS=""
5087 LLVM_ENUM_ASM_PRINTERS=""
5088 LLVM_ENUM_ASM_PARSERS=""
5089 for target_to_build in $TARGETS_TO_BUILD; do
5090 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5091 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5092 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5094 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5095 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5102 # Check whether --enable-cbe-printf-a was given.
5103 if test "${enable_cbe_printf_a+set}" = set; then
5104 enableval=$enable_cbe_printf_a;
5109 case "$enableval" in
5110 yes) ENABLE_CBE_PRINTF_A=1
5112 no) ENABLE_CBE_PRINTF_A=0
5114 default) ENABLE_CBE_PRINTF_A=1
5116 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5117 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5118 { (exit 1); exit 1; }; } ;;
5121 cat >>confdefs.h <<_ACEOF
5122 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5127 # Check whether --with-llvmgccdir was given.
5128 if test "${with_llvmgccdir+set}" = set; then
5129 withval=$with_llvmgccdir;
5135 default) WITH_LLVMGCCDIR=default ;;
5136 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5137 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5138 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5143 # Check whether --with-llvmgcc was given.
5144 if test "${with_llvmgcc+set}" = set; then
5145 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5151 # Check whether --with-llvmgxx was given.
5152 if test "${with_llvmgxx+set}" = set; then
5153 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5158 if test -n "$LLVMGCC"; then
5159 LLVMGCCCOMMAND="$LLVMGCC"
5162 if test -n "$LLVMGXX"; then
5163 LLVMGXXCOMMAND="$LLVMGXX"
5166 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5167 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5168 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5169 { (exit 1); exit 1; }; };
5172 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5173 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5174 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5175 { (exit 1); exit 1; }; };
5179 # Check whether --with-extra-options was given.
5180 if test "${with_extra_options+set}" = set; then
5181 withval=$with_extra_options;
5187 default) EXTRA_OPTIONS= ;;
5188 *) EXTRA_OPTIONS=$withval ;;
5190 EXTRA_OPTIONS=$EXTRA_OPTIONS
5193 # Check whether --enable-bindings was given.
5194 if test "${enable_bindings+set}" = set; then
5195 enableval=$enable_bindings;
5200 BINDINGS_TO_BUILD=""
5201 case "$enableval" in
5202 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5203 all ) BINDINGS_TO_BUILD="ocaml" ;;
5204 none | no) BINDINGS_TO_BUILD="" ;;
5205 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5206 case "$a_binding" in
5207 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5208 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5209 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5210 { (exit 1); exit 1; }; } ;;
5217 # Check whether --with-ocaml-libdir was given.
5218 if test "${with_ocaml_libdir+set}" = set; then
5219 withval=$with_ocaml_libdir;
5225 auto) with_ocaml_libdir="$withval" ;;
5226 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5227 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5228 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5229 { (exit 1); exit 1; }; } ;;
5233 # Check whether --with-binutils-include was given.
5234 if test "${with_binutils_include+set}" = set; then
5235 withval=$with_binutils_include;
5241 default) WITH_BINUTILS_INCDIR=default ;;
5242 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5243 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5244 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5247 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5248 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5250 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5251 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5252 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5253 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5254 { (exit 1); exit 1; }; };
5258 # Check whether --enable-libffi was given.
5259 if test "${enable_libffi+set}" = set; then
5260 enableval=$enable_libffi;
5265 case "$enableval" in
5266 yes) llvm_cv_enable_libffi="yes" ;;
5267 no) llvm_cv_enable_libffi="no" ;;
5268 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5269 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5270 { (exit 1); exit 1; }; } ;;
5273 if test "$llvm_cv_os_type" = "Win32" ; then
5279 # Check whether --enable-llvmc-dynamic was given.
5280 if test "${enable_llvmc_dynamic+set}" = set; then
5281 enableval=$enable_llvmc_dynamic;
5283 enableval=$llvmc_dynamic
5286 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5287 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5290 ENABLE_LLVMC_DYNAMIC=
5294 # Check whether --enable-llvmc-dynamic-plugins was given.
5295 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5296 enableval=$enable_llvmc_dynamic_plugins;
5301 if test ${enableval} = "yes" ; then
5302 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5305 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5311 ac_cpp='$CPP $CPPFLAGS'
5312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5316 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5317 # On Suns, sometimes $CPP names a directory.
5318 if test -n "$CPP" && test -d "$CPP"; then
5321 if test -z "$CPP"; then
5322 if test "${ac_cv_prog_CPP+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 # Double quotes because CPP needs to be expanded
5326 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5329 for ac_c_preproc_warn_flag in '' yes
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
5337 cat >conftest.$ac_ext <<_ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5344 # include <limits.h>
5346 # include <assert.h>
5350 if { (ac_try="$ac_cpp conftest.$ac_ext"
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5358 grep -v '^ *+' conftest.er1 >conftest.err
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } >/dev/null; then
5363 if test -s conftest.err; then
5364 ac_cpp_err=$ac_c_preproc_warn_flag
5365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5372 if test -z "$ac_cpp_err"; then
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 # Broken: fails on valid input.
5382 rm -f conftest.err conftest.$ac_ext
5384 # OK, works on sane cases. Now check whether nonexistent headers
5385 # can be detected and how.
5386 cat >conftest.$ac_ext <<_ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <ac_nonexistent.h>
5394 if { (ac_try="$ac_cpp conftest.$ac_ext"
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5402 grep -v '^ *+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } >/dev/null; then
5407 if test -s conftest.err; then
5408 ac_cpp_err=$ac_c_preproc_warn_flag
5409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5416 if test -z "$ac_cpp_err"; then
5417 # Broken: success on invalid input.
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 # Passes both tests.
5428 rm -f conftest.err conftest.$ac_ext
5431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5432 rm -f conftest.err conftest.$ac_ext
5433 if $ac_preproc_ok; then
5445 { echo "$as_me:$LINENO: result: $CPP" >&5
5446 echo "${ECHO_T}$CPP" >&6; }
5448 for ac_c_preproc_warn_flag in '' yes
5450 # Use a header file that comes with gcc, so configuring glibc
5451 # with a fresh cross-compiler works.
5452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453 # <limits.h> exists even on freestanding compilers.
5454 # On the NeXT, cc -E runs the code through the compiler's parser,
5455 # not just through cpp. "Syntax error" is here to catch this case.
5456 cat >conftest.$ac_ext <<_ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5463 # include <limits.h>
5465 # include <assert.h>
5469 if { (ac_try="$ac_cpp conftest.$ac_ext"
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5477 grep -v '^ *+' conftest.er1 >conftest.err
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } >/dev/null; then
5482 if test -s conftest.err; then
5483 ac_cpp_err=$ac_c_preproc_warn_flag
5484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5491 if test -z "$ac_cpp_err"; then
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 # Broken: fails on valid input.
5501 rm -f conftest.err conftest.$ac_ext
5503 # OK, works on sane cases. Now check whether nonexistent headers
5504 # can be detected and how.
5505 cat >conftest.$ac_ext <<_ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 #include <ac_nonexistent.h>
5513 if { (ac_try="$ac_cpp conftest.$ac_ext"
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5521 grep -v '^ *+' conftest.er1 >conftest.err
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } >/dev/null; then
5526 if test -s conftest.err; then
5527 ac_cpp_err=$ac_c_preproc_warn_flag
5528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5535 if test -z "$ac_cpp_err"; then
5536 # Broken: success on invalid input.
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5542 # Passes both tests.
5547 rm -f conftest.err conftest.$ac_ext
5550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5551 rm -f conftest.err conftest.$ac_ext
5552 if $ac_preproc_ok; then
5555 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5556 See \`config.log' for more details." >&5
5557 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5558 See \`config.log' for more details." >&2;}
5559 { (exit 1); exit 1; }; }
5563 ac_cpp='$CPP $CPPFLAGS'
5564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5569 ac_cpp='$CPP $CPPFLAGS'
5570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5573 if test -n "$ac_tool_prefix"; then
5576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5580 if test "${ac_cv_prog_CC+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 if test -n "$CC"; then
5584 ac_cv_prog_CC="$CC" # Let the user override the test.
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 if test -n "$CC"; then
5605 { echo "$as_me:$LINENO: result: $CC" >&5
5606 echo "${ECHO_T}$CC" >&6; }
5608 { echo "$as_me:$LINENO: result: no" >&5
5609 echo "${ECHO_T}no" >&6; }
5613 test -n "$CC" && break
5616 if test -z "$CC"; then
5620 # Extract the first word of "$ac_prog", so it can be a program name with args.
5621 set dummy $ac_prog; ac_word=$2
5622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 if test -n "$ac_ct_CC"; then
5628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 ac_cv_prog_ac_ct_CC="$ac_prog"
5638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5648 if test -n "$ac_ct_CC"; then
5649 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5650 echo "${ECHO_T}$ac_ct_CC" >&6; }
5652 { echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6; }
5657 test -n "$ac_ct_CC" && break
5660 if test "x$ac_ct_CC" = x; then
5663 case $cross_compiling:$ac_tool_warned in
5665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5666 whose name does not start with the host triplet. If you think this
5667 configuration is useful to you, please write to autoconf@gnu.org." >&5
5668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5669 whose name does not start with the host triplet. If you think this
5670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5671 ac_tool_warned=yes ;;
5678 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5679 See \`config.log' for more details." >&5
5680 echo "$as_me: error: no acceptable C compiler found in \$PATH
5681 See \`config.log' for more details." >&2;}
5682 { (exit 1); exit 1; }; }
5684 # Provide some information about the compiler.
5685 echo "$as_me:$LINENO: checking for C compiler version" >&5
5686 ac_compiler=`set X $ac_compile; echo $2`
5687 { (ac_try="$ac_compiler --version >&5"
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compiler --version >&5") 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }
5697 { (ac_try="$ac_compiler -v >&5"
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_compiler -v >&5") 2>&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }
5707 { (ac_try="$ac_compiler -V >&5"
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_compiler -V >&5") 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }
5718 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5719 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5720 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 cat >conftest.$ac_ext <<_ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5741 rm -f conftest.$ac_objext
5742 if { (ac_try="$ac_compile"
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_compile") 2>conftest.er1
5750 grep -v '^ *+' conftest.er1 >conftest.err
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5756 { (case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_try") 2>&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (case "(($ac_try" in
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_try") 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5787 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5788 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5789 GCC=`test $ac_compiler_gnu = yes && echo yes`
5790 ac_test_CFLAGS=${CFLAGS+set}
5791 ac_save_CFLAGS=$CFLAGS
5792 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5793 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5794 if test "${ac_cv_prog_cc_g+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 ac_save_c_werror_flag=$ac_c_werror_flag
5798 ac_c_werror_flag=yes
5801 cat >conftest.$ac_ext <<_ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5825 grep -v '^ *+' conftest.er1 >conftest.err
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_try") 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5856 cat >conftest.$ac_ext <<_ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5880 grep -v '^ *+' conftest.er1 >conftest.err
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886 { (case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_try") 2>&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 ac_c_werror_flag=$ac_save_c_werror_flag
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5927 rm -f conftest.$ac_objext
5928 if { (ac_try="$ac_compile"
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_compile") 2>conftest.er1
5936 grep -v '^ *+' conftest.er1 >conftest.err
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5942 { (case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_try") 2>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; } &&
5951 { ac_try='test -s conftest.$ac_objext'
5952 { (case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_try") 2>&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 ac_c_werror_flag=$ac_save_c_werror_flag
5978 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5979 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5980 if test "$ac_test_CFLAGS" = set; then
5981 CFLAGS=$ac_save_CFLAGS
5982 elif test $ac_cv_prog_cc_g = yes; then
5983 if test "$GCC" = yes; then
5989 if test "$GCC" = yes; then
5995 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5996 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5997 if test "${ac_cv_prog_cc_c89+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 ac_cv_prog_cc_c89=no
6002 cat >conftest.$ac_ext <<_ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6010 #include <sys/types.h>
6011 #include <sys/stat.h>
6012 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6013 struct buf { int x; };
6014 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6015 static char *e (p, i)
6021 static char *f (char * (*g) (char **, int), char **p, ...)
6026 s = g (p, va_arg (v,int));
6031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6032 function prototypes and stuff, but not '\xHH' hex character constants.
6033 These don't provoke an error unfortunately, instead are silently treated
6034 as 'x'. The following induces an error, until -std is added to get
6035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6036 array size at least. It's necessary to write '\x00'==0 to get something
6037 that's true only with -std. */
6038 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6041 inside strings and character constants. */
6043 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6045 int test (int i, double x);
6046 struct s1 {int (*f) (int a);};
6047 struct s2 {int (*f) (double a);};
6048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6054 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6059 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6062 CC="$ac_save_CC $ac_arg"
6063 rm -f conftest.$ac_objext
6064 if { (ac_try="$ac_compile"
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compile") 2>conftest.er1
6072 grep -v '^ *+' conftest.er1 >conftest.err
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6078 { (case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_try") 2>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest.$ac_objext'
6088 { (case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_try") 2>&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_prog_cc_c89=$ac_arg
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6105 rm -f core conftest.err conftest.$ac_objext
6106 test "x$ac_cv_prog_cc_c89" != "xno" && break
6108 rm -f conftest.$ac_ext
6113 case "x$ac_cv_prog_cc_c89" in
6115 { echo "$as_me:$LINENO: result: none needed" >&5
6116 echo "${ECHO_T}none needed" >&6; } ;;
6118 { echo "$as_me:$LINENO: result: unsupported" >&5
6119 echo "${ECHO_T}unsupported" >&6; } ;;
6121 CC="$CC $ac_cv_prog_cc_c89"
6122 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6123 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6128 ac_cpp='$CPP $CPPFLAGS'
6129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6134 ac_cpp='$CXXCPP $CPPFLAGS'
6135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6138 if test -z "$CXX"; then
6139 if test -n "$CCC"; then
6142 if test -n "$ac_tool_prefix"; then
6145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_prog_CXX+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 if test -n "$CXX"; then
6153 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 if test -n "$CXX"; then
6174 { echo "$as_me:$LINENO: result: $CXX" >&5
6175 echo "${ECHO_T}$CXX" >&6; }
6177 { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6182 test -n "$CXX" && break
6185 if test -z "$CXX"; then
6189 # Extract the first word of "$ac_prog", so it can be a program name with args.
6190 set dummy $ac_prog; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 if test -n "$ac_ct_CXX"; then
6197 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_prog_ac_ct_CXX="$ac_prog"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6217 if test -n "$ac_ct_CXX"; then
6218 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6219 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6221 { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6226 test -n "$ac_ct_CXX" && break
6229 if test "x$ac_ct_CXX" = x; then
6232 case $cross_compiling:$ac_tool_warned in
6234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6235 whose name does not start with the host triplet. If you think this
6236 configuration is useful to you, please write to autoconf@gnu.org." >&5
6237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6238 whose name does not start with the host triplet. If you think this
6239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6240 ac_tool_warned=yes ;;
6248 # Provide some information about the compiler.
6249 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6250 ac_compiler=`set X $ac_compile; echo $2`
6251 { (ac_try="$ac_compiler --version >&5"
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compiler --version >&5") 2>&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }
6261 { (ac_try="$ac_compiler -v >&5"
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_compiler -v >&5") 2>&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }
6271 { (ac_try="$ac_compiler -V >&5"
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_compiler -V >&5") 2>&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }
6282 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6283 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6284 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6314 grep -v '^ *+' conftest.er1 >conftest.err
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6320 { (case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_try") 2>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6351 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6352 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6353 GXX=`test $ac_compiler_gnu = yes && echo yes`
6354 ac_test_CXXFLAGS=${CXXFLAGS+set}
6355 ac_save_CXXFLAGS=$CXXFLAGS
6356 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6357 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6358 if test "${ac_cv_prog_cxx_g+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6362 ac_cxx_werror_flag=yes
6365 cat >conftest.$ac_ext <<_ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6380 rm -f conftest.$ac_objext
6381 if { (ac_try="$ac_compile"
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6389 grep -v '^ *+' conftest.er1 >conftest.err
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_try") 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_cv_prog_cxx_g=yes
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6420 cat >conftest.$ac_ext <<_ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6435 rm -f conftest.$ac_objext
6436 if { (ac_try="$ac_compile"
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compile") 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6450 { (case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_try") 2>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_try") 2>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6474 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6476 cat >conftest.$ac_ext <<_ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6491 rm -f conftest.$ac_objext
6492 if { (ac_try="$ac_compile"
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_compile") 2>conftest.er1
6500 grep -v '^ *+' conftest.er1 >conftest.err
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6506 { (case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_try") 2>&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; } &&
6515 { ac_try='test -s conftest.$ac_objext'
6516 { (case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_try") 2>&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 ac_cv_prog_cxx_g=yes
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6542 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6543 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6544 if test "$ac_test_CXXFLAGS" = set; then
6545 CXXFLAGS=$ac_save_CXXFLAGS
6546 elif test $ac_cv_prog_cxx_g = yes; then
6547 if test "$GXX" = yes; then
6553 if test "$GXX" = yes; then
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6566 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6567 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6568 if test "${lt_cv_path_NM+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 if test -n "$NM"; then
6572 # Let the user override the test.
6575 lt_nm_to_check="${ac_tool_prefix}nm"
6576 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6577 lt_nm_to_check="$lt_nm_to_check nm"
6579 for lt_tmp_nm in $lt_nm_to_check; do
6580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6581 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6583 test -z "$ac_dir" && ac_dir=.
6584 tmp_nm="$ac_dir/$lt_tmp_nm"
6585 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6586 # Check to see if the nm accepts a BSD-compat flag.
6587 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6588 # nm: unknown option "B" ignored
6589 # Tru64's nm complains that /dev/null is an invalid object file
6590 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6591 */dev/null* | *'Invalid file or object type'*)
6592 lt_cv_path_NM="$tmp_nm -B"
6596 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6598 lt_cv_path_NM="$tmp_nm -p"
6602 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6603 continue # so that we can try to find one that supports BSD flags
6612 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6615 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6616 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6621 { echo "$as_me:$LINENO: checking for GNU make" >&5
6622 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6623 if test "${llvm_cv_gnu_make_command+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 llvm_cv_gnu_make_command=''
6627 for a in "$MAKE" make gmake gnumake ; do
6628 if test -z "$a" ; then continue ; fi ;
6629 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6631 llvm_cv_gnu_make_command=$a ;
6636 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6637 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6638 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6642 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6643 echo "${ECHO_T}\"Not found\"" >&6; };
6647 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6648 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6650 if test "$LN_S" = "ln -s"; then
6651 { echo "$as_me:$LINENO: result: yes" >&5
6652 echo "${ECHO_T}yes" >&6; }
6654 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6655 echo "${ECHO_T}no, using $LN_S" >&6; }
6658 # Extract the first word of "cmp", so it can be a program name with args.
6659 set dummy cmp; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_path_CMP+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6690 if test -n "$CMP"; then
6691 { echo "$as_me:$LINENO: result: $CMP" >&5
6692 echo "${ECHO_T}$CMP" >&6; }
6694 { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6699 # Extract the first word of "cp", so it can be a program name with args.
6700 set dummy cp; ac_word=$2
6701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6703 if test "${ac_cv_path_CP+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6731 if test -n "$CP"; then
6732 { echo "$as_me:$LINENO: result: $CP" >&5
6733 echo "${ECHO_T}$CP" >&6; }
6735 { echo "$as_me:$LINENO: result: no" >&5
6736 echo "${ECHO_T}no" >&6; }
6740 # Extract the first word of "date", so it can be a program name with args.
6741 set dummy date; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_DATE+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6771 DATE=$ac_cv_path_DATE
6772 if test -n "$DATE"; then
6773 { echo "$as_me:$LINENO: result: $DATE" >&5
6774 echo "${ECHO_T}$DATE" >&6; }
6776 { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6781 # Extract the first word of "find", so it can be a program name with args.
6782 set dummy find; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_FIND+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6812 FIND=$ac_cv_path_FIND
6813 if test -n "$FIND"; then
6814 { echo "$as_me:$LINENO: result: $FIND" >&5
6815 echo "${ECHO_T}$FIND" >&6; }
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6822 # Extract the first word of "grep", so it can be a program name with args.
6823 set dummy grep; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_path_GREP+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6853 GREP=$ac_cv_path_GREP
6854 if test -n "$GREP"; then
6855 { echo "$as_me:$LINENO: result: $GREP" >&5
6856 echo "${ECHO_T}$GREP" >&6; }
6858 { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6863 # Extract the first word of "mkdir", so it can be a program name with args.
6864 set dummy mkdir; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_MKDIR+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6894 MKDIR=$ac_cv_path_MKDIR
6895 if test -n "$MKDIR"; then
6896 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6897 echo "${ECHO_T}$MKDIR" >&6; }
6899 { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6904 # Extract the first word of "mv", so it can be a program name with args.
6905 set dummy mv; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_MV+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6936 if test -n "$MV"; then
6937 { echo "$as_me:$LINENO: result: $MV" >&5
6938 echo "${ECHO_T}$MV" >&6; }
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6945 if test -n "$ac_tool_prefix"; then
6946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6947 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_prog_RANLIB+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 if test -n "$RANLIB"; then
6954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 RANLIB=$ac_cv_prog_RANLIB
6974 if test -n "$RANLIB"; then
6975 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6976 echo "${ECHO_T}$RANLIB" >&6; }
6978 { echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6; }
6984 if test -z "$ac_cv_prog_RANLIB"; then
6985 ac_ct_RANLIB=$RANLIB
6986 # Extract the first word of "ranlib", so it can be a program name with args.
6987 set dummy ranlib; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 if test -n "$ac_ct_RANLIB"; then
6994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_prog_ac_ct_RANLIB="ranlib"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7014 if test -n "$ac_ct_RANLIB"; then
7015 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7016 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7018 { echo "$as_me:$LINENO: result: no" >&5
7019 echo "${ECHO_T}no" >&6; }
7022 if test "x$ac_ct_RANLIB" = x; then
7025 case $cross_compiling:$ac_tool_warned in
7027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7028 whose name does not start with the host triplet. If you think this
7029 configuration is useful to you, please write to autoconf@gnu.org." >&5
7030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7031 whose name does not start with the host triplet. If you think this
7032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7033 ac_tool_warned=yes ;;
7035 RANLIB=$ac_ct_RANLIB
7038 RANLIB="$ac_cv_prog_RANLIB"
7041 # Extract the first word of "rm", so it can be a program name with args.
7042 set dummy rm; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_path_RM+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7073 if test -n "$RM"; then
7074 { echo "$as_me:$LINENO: result: $RM" >&5
7075 echo "${ECHO_T}$RM" >&6; }
7077 { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7082 # Extract the first word of "sed", so it can be a program name with args.
7083 set dummy sed; ac_word=$2
7084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086 if test "${ac_cv_path_SED+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7114 if test -n "$SED"; then
7115 { echo "$as_me:$LINENO: result: $SED" >&5
7116 echo "${ECHO_T}$SED" >&6; }
7118 { echo "$as_me:$LINENO: result: no" >&5
7119 echo "${ECHO_T}no" >&6; }
7123 # Extract the first word of "tar", so it can be a program name with args.
7124 set dummy tar; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_TAR+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7155 if test -n "$TAR"; then
7156 { echo "$as_me:$LINENO: result: $TAR" >&5
7157 echo "${ECHO_T}$TAR" >&6; }
7159 { echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6; }
7164 # Extract the first word of "pwd", so it can be a program name with args.
7165 set dummy pwd; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_path_BINPWD+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7195 BINPWD=$ac_cv_path_BINPWD
7196 if test -n "$BINPWD"; then
7197 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7198 echo "${ECHO_T}$BINPWD" >&6; }
7200 { echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6; }
7206 # Extract the first word of "Graphviz", so it can be a program name with args.
7207 set dummy Graphviz; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7237 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7238 if test -n "$GRAPHVIZ"; then
7239 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7240 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7242 { echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6; }
7247 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7249 cat >>confdefs.h <<\_ACEOF
7250 #define HAVE_GRAPHVIZ 1
7253 if test "$llvm_cv_os_type" = "MingW" ; then
7254 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7257 cat >>confdefs.h <<_ACEOF
7258 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7262 # Extract the first word of "dot", so it can be a program name with args.
7263 set dummy dot; ac_word=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_path_DOT+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7294 if test -n "$DOT"; then
7295 { echo "$as_me:$LINENO: result: $DOT" >&5
7296 echo "${ECHO_T}$DOT" >&6; }
7298 { echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6; }
7303 if test "$DOT" != "echo dot" ; then
7305 cat >>confdefs.h <<\_ACEOF
7309 if test "$llvm_cv_os_type" = "MingW" ; then
7310 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7313 cat >>confdefs.h <<_ACEOF
7314 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7318 # Extract the first word of "fdp", so it can be a program name with args.
7319 set dummy fdp; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_FDP+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7350 if test -n "$FDP"; then
7351 { echo "$as_me:$LINENO: result: $FDP" >&5
7352 echo "${ECHO_T}$FDP" >&6; }
7354 { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7359 if test "$FDP" != "echo fdp" ; then
7361 cat >>confdefs.h <<\_ACEOF
7365 if test "$llvm_cv_os_type" = "MingW" ; then
7366 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7369 cat >>confdefs.h <<_ACEOF
7370 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7374 # Extract the first word of "neato", so it can be a program name with args.
7375 set dummy neato; ac_word=$2
7376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7378 if test "${ac_cv_path_NEATO+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7405 NEATO=$ac_cv_path_NEATO
7406 if test -n "$NEATO"; then
7407 { echo "$as_me:$LINENO: result: $NEATO" >&5
7408 echo "${ECHO_T}$NEATO" >&6; }
7410 { echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6; }
7415 if test "$NEATO" != "echo neato" ; then
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_NEATO 1
7421 if test "$llvm_cv_os_type" = "MingW" ; then
7422 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7425 cat >>confdefs.h <<_ACEOF
7426 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7430 # Extract the first word of "twopi", so it can be a program name with args.
7431 set dummy twopi; ac_word=$2
7432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434 if test "${ac_cv_path_TWOPI+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7461 TWOPI=$ac_cv_path_TWOPI
7462 if test -n "$TWOPI"; then
7463 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7464 echo "${ECHO_T}$TWOPI" >&6; }
7466 { echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6; }
7471 if test "$TWOPI" != "echo twopi" ; then
7473 cat >>confdefs.h <<\_ACEOF
7474 #define HAVE_TWOPI 1
7477 if test "$llvm_cv_os_type" = "MingW" ; then
7478 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7481 cat >>confdefs.h <<_ACEOF
7482 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7486 # Extract the first word of "circo", so it can be a program name with args.
7487 set dummy circo; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_path_CIRCO+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7517 CIRCO=$ac_cv_path_CIRCO
7518 if test -n "$CIRCO"; then
7519 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7520 echo "${ECHO_T}$CIRCO" >&6; }
7522 { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7527 if test "$CIRCO" != "echo circo" ; then
7529 cat >>confdefs.h <<\_ACEOF
7530 #define HAVE_CIRCO 1
7533 if test "$llvm_cv_os_type" = "MingW" ; then
7534 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7537 cat >>confdefs.h <<_ACEOF
7538 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7542 for ac_prog in gv gsview32
7544 # Extract the first word of "$ac_prog", so it can be a program name with args.
7545 set dummy $ac_prog; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_GV+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 if test -n "$GV"; then
7576 { echo "$as_me:$LINENO: result: $GV" >&5
7577 echo "${ECHO_T}$GV" >&6; }
7579 { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7584 test -n "$GV" && break
7586 test -n "$GV" || GV="echo gv"
7588 if test "$GV" != "echo gv" ; then
7590 cat >>confdefs.h <<\_ACEOF
7594 if test "$llvm_cv_os_type" = "MingW" ; then
7595 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7598 cat >>confdefs.h <<_ACEOF
7599 #define LLVM_PATH_GV "$GV${EXEEXT}"
7603 # Extract the first word of "dotty", so it can be a program name with args.
7604 set dummy dotty; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_path_DOTTY+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7634 DOTTY=$ac_cv_path_DOTTY
7635 if test -n "$DOTTY"; then
7636 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7637 echo "${ECHO_T}$DOTTY" >&6; }
7639 { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7644 if test "$DOTTY" != "echo dotty" ; then
7646 cat >>confdefs.h <<\_ACEOF
7647 #define HAVE_DOTTY 1
7650 if test "$llvm_cv_os_type" = "MingW" ; then
7651 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7654 cat >>confdefs.h <<_ACEOF
7655 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7661 # Extract the first word of "perl", so it can be a program name with args.
7662 set dummy perl; ac_word=$2
7663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665 if test "${ac_cv_path_PERL+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7680 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7692 PERL=$ac_cv_path_PERL
7693 if test -n "$PERL"; then
7694 { echo "$as_me:$LINENO: result: $PERL" >&5
7695 echo "${ECHO_T}$PERL" >&6; }
7697 { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7702 if test "$PERL" != "none"; then
7703 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7704 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7705 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7706 { echo "$as_me:$LINENO: result: yes" >&5
7707 echo "${ECHO_T}yes" >&6; }
7710 { echo "$as_me:$LINENO: result: not found" >&5
7711 echo "${ECHO_T}not found" >&6; }
7716 if test x"$PERL" = xnone; then
7719 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7720 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7721 { (exit 1); exit 1; }; }
7727 # Find a good install program. We prefer a C program (faster),
7728 # so one script is as good as another. But avoid the broken or
7729 # incompatible versions:
7730 # SysV /etc/install, /usr/sbin/install
7731 # SunOS /usr/etc/install
7732 # IRIX /sbin/install
7734 # AmigaOS /C/install, which installs bootblocks on floppy discs
7735 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7736 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7737 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7738 # OS/2's system install, which has a completely different semantic
7739 # ./install, which can be erroneously created by make from ./install.sh.
7740 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7741 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7742 if test -z "$INSTALL"; then
7743 if test "${ac_cv_path_install+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 test -z "$as_dir" && as_dir=.
7751 # Account for people who put trailing slashes in PATH elements.
7753 ./ | .// | /cC/* | \
7754 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7755 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7758 # OSF1 and SCO ODT 3.0 have their own names for install.
7759 # Don't use installbsd from OSF since it installs stuff as root
7761 for ac_prog in ginstall scoinst install; do
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7764 if test $ac_prog = install &&
7765 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7766 # AIX install. It has an incompatible calling convention.
7768 elif test $ac_prog = install &&
7769 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7770 # program-specific install script used by HP pwplus--don't use.
7773 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7786 if test "${ac_cv_path_install+set}" = set; then
7787 INSTALL=$ac_cv_path_install
7789 # As a last resort, use the slow shell script. Don't cache a
7790 # value for INSTALL within a source directory, because that will
7791 # break other packages using the cache if that directory is
7792 # removed, or if the value is a relative name.
7793 INSTALL=$ac_install_sh
7796 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7797 echo "${ECHO_T}$INSTALL" >&6; }
7799 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7800 # It thinks the first close brace ends the variable substitution.
7801 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7803 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7805 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7808 # Extract the first word of "bzip2", so it can be a program name with args.
7809 set dummy bzip2; ac_word=$2
7810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7812 if test "${ac_cv_path_BZIP2+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 BZIP2=$ac_cv_path_BZIP2
7839 if test -n "$BZIP2"; then
7840 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7841 echo "${ECHO_T}$BZIP2" >&6; }
7843 { echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6; }
7848 # Extract the first word of "doxygen", so it can be a program name with args.
7849 set dummy doxygen; ac_word=$2
7850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7852 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7867 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 DOXYGEN=$ac_cv_path_DOXYGEN
7879 if test -n "$DOXYGEN"; then
7880 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7881 echo "${ECHO_T}$DOXYGEN" >&6; }
7883 { echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6; }
7888 # Extract the first word of "groff", so it can be a program name with args.
7889 set dummy groff; ac_word=$2
7890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892 if test "${ac_cv_path_GROFF+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7907 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 GROFF=$ac_cv_path_GROFF
7919 if test -n "$GROFF"; then
7920 { echo "$as_me:$LINENO: result: $GROFF" >&5
7921 echo "${ECHO_T}$GROFF" >&6; }
7923 { echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6; }
7928 # Extract the first word of "gzip", so it can be a program name with args.
7929 set dummy gzip; ac_word=$2
7930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932 if test "${ac_cv_path_GZIP+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 GZIP=$ac_cv_path_GZIP
7959 if test -n "$GZIP"; then
7960 { echo "$as_me:$LINENO: result: $GZIP" >&5
7961 echo "${ECHO_T}$GZIP" >&6; }
7963 { echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6; }
7968 # Extract the first word of "pod2html", so it can be a program name with args.
7969 set dummy pod2html; ac_word=$2
7970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972 if test "${ac_cv_path_POD2HTML+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 POD2HTML=$ac_cv_path_POD2HTML
7999 if test -n "$POD2HTML"; then
8000 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8001 echo "${ECHO_T}$POD2HTML" >&6; }
8003 { echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6; }
8008 # Extract the first word of "pod2man", so it can be a program name with args.
8009 set dummy pod2man; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_path_POD2MAN+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 POD2MAN=$ac_cv_path_POD2MAN
8039 if test -n "$POD2MAN"; then
8040 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8041 echo "${ECHO_T}$POD2MAN" >&6; }
8043 { echo "$as_me:$LINENO: result: no" >&5
8044 echo "${ECHO_T}no" >&6; }
8048 # Extract the first word of "runtest", so it can be a program name with args.
8049 set dummy runtest; ac_word=$2
8050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052 if test "${ac_cv_path_RUNTEST+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 RUNTEST=$ac_cv_path_RUNTEST
8079 if test -n "$RUNTEST"; then
8080 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8081 echo "${ECHO_T}$RUNTEST" >&6; }
8083 { echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6; }
8090 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8091 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8093 # Check whether --with-tclinclude was given.
8094 if test "${with_tclinclude+set}" = set; then
8095 withval=$with_tclinclude; with_tclinclude=${withval}
8100 if test "${ac_cv_path_tclsh+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 if test x"${with_tclinclude}" != x ; then
8105 if test -f ${with_tclinclude}/tclsh ; then
8106 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8107 elif test -f ${with_tclinclude}/src/tclsh ; then
8108 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8110 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8111 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8112 { (exit 1); exit 1; }; }
8116 if test x"${ac_cv_path_tclsh}" = x ; then
8117 { echo "$as_me:$LINENO: result: none" >&5
8118 echo "${ECHO_T}none" >&6; }
8119 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
8121 # Extract the first word of "$ac_prog", so it can be a program name with args.
8122 set dummy $ac_prog; ac_word=$2
8123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8125 if test "${ac_cv_path_TCLSH+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8140 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 TCLSH=$ac_cv_path_TCLSH
8152 if test -n "$TCLSH"; then
8153 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8154 echo "${ECHO_T}$TCLSH" >&6; }
8156 { echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6; }
8161 test -n "$TCLSH" && break
8164 if test x"${TCLSH}" = x ; then
8165 ac_cv_path_tclsh='';
8167 ac_cv_path_tclsh="${TCLSH}";
8170 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8171 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8172 TCLSH="${ac_cv_path_tclsh}"
8178 # Extract the first word of "zip", so it can be a program name with args.
8179 set dummy zip; ac_word=$2
8180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8182 if test "${ac_cv_path_ZIP+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8197 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 if test -n "$ZIP"; then
8210 { echo "$as_me:$LINENO: result: $ZIP" >&5
8211 echo "${ECHO_T}$ZIP" >&6; }
8213 { echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6; }
8218 for ac_prog in ocamlc
8220 # Extract the first word of "$ac_prog", so it can be a program name with args.
8221 set dummy $ac_prog; ac_word=$2
8222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8224 if test "${ac_cv_path_OCAMLC+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8239 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 OCAMLC=$ac_cv_path_OCAMLC
8251 if test -n "$OCAMLC"; then
8252 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8253 echo "${ECHO_T}$OCAMLC" >&6; }
8255 { echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6; }
8260 test -n "$OCAMLC" && break
8263 for ac_prog in ocamlopt
8265 # Extract the first word of "$ac_prog", so it can be a program name with args.
8266 set dummy $ac_prog; ac_word=$2
8267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8269 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 OCAMLOPT=$ac_cv_path_OCAMLOPT
8296 if test -n "$OCAMLOPT"; then
8297 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8298 echo "${ECHO_T}$OCAMLOPT" >&6; }
8300 { echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6; }
8305 test -n "$OCAMLOPT" && break
8308 for ac_prog in ocamldep
8310 # Extract the first word of "$ac_prog", so it can be a program name with args.
8311 set dummy $ac_prog; ac_word=$2
8312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8314 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 OCAMLDEP=$ac_cv_path_OCAMLDEP
8341 if test -n "$OCAMLDEP"; then
8342 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8343 echo "${ECHO_T}$OCAMLDEP" >&6; }
8345 { echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6; }
8350 test -n "$OCAMLDEP" && break
8353 for ac_prog in ocamldoc
8355 # Extract the first word of "$ac_prog", so it can be a program name with args.
8356 set dummy $ac_prog; ac_word=$2
8357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8359 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 OCAMLDOC=$ac_cv_path_OCAMLDOC
8386 if test -n "$OCAMLDOC"; then
8387 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8388 echo "${ECHO_T}$OCAMLDOC" >&6; }
8390 { echo "$as_me:$LINENO: result: no" >&5
8391 echo "${ECHO_T}no" >&6; }
8395 test -n "$OCAMLDOC" && break
8398 for ac_prog in gas as
8400 # Extract the first word of "$ac_prog", so it can be a program name with args.
8401 set dummy $ac_prog; ac_word=$2
8402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8404 if test "${ac_cv_path_GAS+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 if test -n "$GAS"; then
8432 { echo "$as_me:$LINENO: result: $GAS" >&5
8433 echo "${ECHO_T}$GAS" >&6; }
8435 { echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6; }
8440 test -n "$GAS" && break
8444 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8445 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8446 if test "${llvm_cv_link_use_r+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 ac_cpp='$CPP $CPPFLAGS'
8451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8456 CFLAGS="$CFLAGS -Wl,-R."
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8467 int main() { return 0; }
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8481 grep -v '^ *+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487 { (case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_try") 2>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 llvm_cv_link_use_r=yes
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 llvm_cv_link_use_r=no
8514 rm -f core conftest.err conftest.$ac_objext \
8515 conftest$ac_exeext conftest.$ac_ext
8518 ac_cpp='$CPP $CPPFLAGS'
8519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8525 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8526 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8527 if test "$llvm_cv_link_use_r" = yes ; then
8529 cat >>confdefs.h <<\_ACEOF
8530 #define HAVE_LINK_R 1
8536 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8537 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8538 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 ac_cpp='$CPP $CPPFLAGS'
8543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8548 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8559 int main() { return 0; }
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (ac_try="$ac_link"
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_link") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } &&
8578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579 { (case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_try") 2>&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest$ac_exeext'
8589 { (case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_try") 2>&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 llvm_cv_link_use_export_dynamic=yes
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8603 llvm_cv_link_use_export_dynamic=no
8606 rm -f core conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8610 ac_cpp='$CPP $CPPFLAGS'
8611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8617 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8618 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8619 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8621 cat >>confdefs.h <<\_ACEOF
8622 #define HAVE_LINK_EXPORT_DYNAMIC 1
8630 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8631 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8632 if test "${ac_cv_c_const+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 cat >conftest.$ac_ext <<_ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8645 /* FIXME: Include the comments suggested by Paul. */
8647 /* Ultrix mips cc rejects this. */
8648 typedef int charset[2];
8650 /* SunOS 4.1.1 cc rejects this. */
8651 char const *const *ccp;
8653 /* NEC SVR4.0.2 mips cc rejects this. */
8654 struct point {int x, y;};
8655 static struct point const zero = {0,0};
8656 /* AIX XL C 1.02.0.0 rejects this.
8657 It does not let you subtract one const X* pointer from another in
8658 an arm of an if-expression whose if-part is not a constant
8660 const char *g = "string";
8661 ccp = &g + (g ? g-g : 0);
8662 /* HPUX 7.0 cc rejects these. */
8665 ccp = (char const *const *) p;
8666 { /* SCO 3.2v4 cc rejects this. */
8668 char const *s = 0 ? (char *) 0 : (char const *) 0;
8673 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8675 const int *foo = &x[0];
8678 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8679 typedef const int *iptr;
8683 { /* AIX XL C 1.02.0.0 rejects this saying
8684 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8685 struct s { int j; const int *ap[3]; };
8686 struct s *b; b->j = 5;
8688 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8692 return !x[0] && !zero.x;
8699 rm -f conftest.$ac_objext
8700 if { (ac_try="$ac_compile"
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_compile") 2>conftest.er1
8708 grep -v '^ *+' conftest.er1 >conftest.err
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8714 { (case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_try") 2>&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest.$ac_objext'
8724 { (case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_try") 2>&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8744 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8745 if test $ac_cv_c_const = no; then
8747 cat >>confdefs.h <<\_ACEOF
8759 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8760 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8761 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8762 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 cat >conftest.$ac_ext <<_ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 #include <sys/types.h>
8784 rm -f conftest.$ac_objext
8785 if { (ac_try="$ac_compile"
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_compile") 2>conftest.er1
8793 grep -v '^ *+' conftest.er1 >conftest.err
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8799 { (case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_try") 2>&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest.$ac_objext'
8809 { (case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_try") 2>&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 eval "$as_ac_Header=yes"
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 eval "$as_ac_Header=no"
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 ac_res=`eval echo '${'$as_ac_Header'}'`
8829 { echo "$as_me:$LINENO: result: $ac_res" >&5
8830 echo "${ECHO_T}$ac_res" >&6; }
8831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8832 cat >>confdefs.h <<_ACEOF
8833 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8836 ac_header_dirent=$ac_hdr; break
8840 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8841 if test $ac_header_dirent = dirent.h; then
8842 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8843 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8844 if test "${ac_cv_search_opendir+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 ac_func_search_save_LIBS=$LIBS
8848 cat >conftest.$ac_ext <<_ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8855 /* Override any GCC internal prototype to avoid an error.
8856 Use char because int might match the return type of a GCC
8857 builtin and then its argument prototype would still apply. */
8870 for ac_lib in '' dir; do
8871 if test -z "$ac_lib"; then
8872 ac_res="none required"
8875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (ac_try="$ac_link"
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_link") 2>conftest.er1
8886 grep -v '^ *+' conftest.er1 >conftest.err
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8892 { (case "(($ac_try" in
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_try") 2>&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; } &&
8901 { ac_try='test -s conftest$ac_exeext'
8902 { (case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_try") 2>&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_search_opendir=$ac_res
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8919 rm -f core conftest.err conftest.$ac_objext \
8921 if test "${ac_cv_search_opendir+set}" = set; then
8925 if test "${ac_cv_search_opendir+set}" = set; then
8928 ac_cv_search_opendir=no
8931 LIBS=$ac_func_search_save_LIBS
8933 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8934 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8935 ac_res=$ac_cv_search_opendir
8936 if test "$ac_res" != no; then
8937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8942 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8943 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8944 if test "${ac_cv_search_opendir+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 ac_func_search_save_LIBS=$LIBS
8948 cat >conftest.$ac_ext <<_ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8955 /* Override any GCC internal prototype to avoid an error.
8956 Use char because int might match the return type of a GCC
8957 builtin and then its argument prototype would still apply. */
8970 for ac_lib in '' x; do
8971 if test -z "$ac_lib"; then
8972 ac_res="none required"
8975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (ac_try="$ac_link"
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_link") 2>conftest.er1
8986 grep -v '^ *+' conftest.er1 >conftest.err
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8992 { (case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_try") 2>&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest$ac_exeext'
9002 { (case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_try") 2>&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 ac_cv_search_opendir=$ac_res
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9019 rm -f core conftest.err conftest.$ac_objext \
9021 if test "${ac_cv_search_opendir+set}" = set; then
9025 if test "${ac_cv_search_opendir+set}" = set; then
9028 ac_cv_search_opendir=no
9031 LIBS=$ac_func_search_save_LIBS
9033 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9034 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9035 ac_res=$ac_cv_search_opendir
9036 if test "$ac_res" != no; then
9037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9044 for ac_header in dlfcn.h
9046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 ac_res=`eval echo '${'$as_ac_Header'}'`
9054 { echo "$as_me:$LINENO: result: $ac_res" >&5
9055 echo "${ECHO_T}$ac_res" >&6; }
9057 # Is the header compilable?
9058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9060 cat >conftest.$ac_ext <<_ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9066 $ac_includes_default
9067 #include <$ac_header>
9069 rm -f conftest.$ac_objext
9070 if { (ac_try="$ac_compile"
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_compile") 2>conftest.er1
9078 grep -v '^ *+' conftest.er1 >conftest.err
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084 { (case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_try") 2>&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try='test -s conftest.$ac_objext'
9094 { (case "(($ac_try" in
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099 (eval "$ac_try") 2>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
9103 ac_header_compiler=yes
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9108 ac_header_compiler=no
9111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9113 echo "${ECHO_T}$ac_header_compiler" >&6; }
9115 # Is the header present?
9116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9118 cat >conftest.$ac_ext <<_ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 #include <$ac_header>
9126 if { (ac_try="$ac_cpp conftest.$ac_ext"
9128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129 *) ac_try_echo=$ac_try;;
9131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9134 grep -v '^ *+' conftest.er1 >conftest.err
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } >/dev/null; then
9139 if test -s conftest.err; then
9140 ac_cpp_err=$ac_c_preproc_warn_flag
9141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9148 if test -z "$ac_cpp_err"; then
9149 ac_header_preproc=yes
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9154 ac_header_preproc=no
9157 rm -f conftest.err conftest.$ac_ext
9158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9159 echo "${ECHO_T}$ac_header_preproc" >&6; }
9161 # So? What about this header?
9162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9168 ac_header_preproc=yes
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9184 ## ----------------------------------- ##
9185 ## Report this to llvmbugs@cs.uiuc.edu ##
9186 ## ----------------------------------- ##
9188 ) | sed "s/^/$as_me: WARNING: /" >&2
9191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 eval "$as_ac_Header=\$ac_header_preproc"
9198 ac_res=`eval echo '${'$as_ac_Header'}'`
9199 { echo "$as_me:$LINENO: result: $ac_res" >&5
9200 echo "${ECHO_T}$ac_res" >&6; }
9203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9204 cat >>confdefs.h <<_ACEOF
9205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9212 # Check whether --enable-ltdl-install was given.
9213 if test "${enable_ltdl_install+set}" = set; then
9214 enableval=$enable_ltdl_install;
9220 if test x"${enable_ltdl_install-no}" != xno; then
9222 INSTALL_LTDL_FALSE='#'
9224 INSTALL_LTDL_TRUE='#'
9230 if test x"${enable_ltdl_convenience-no}" != xno; then
9231 CONVENIENCE_LTDL_TRUE=
9232 CONVENIENCE_LTDL_FALSE='#'
9234 CONVENIENCE_LTDL_TRUE='#'
9235 CONVENIENCE_LTDL_FALSE=
9239 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9240 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9242 libname_spec='lib$name'
9250 shlibpath_overrides_runpath=unknown
9252 dynamic_linker="$host_os ld.so"
9253 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9254 if test "$GCC" = yes; then
9255 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9256 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9257 # if the path contains ";" then we assume it to be the separator
9258 # otherwise default to the standard path separator (i.e. ":") - it is
9259 # assumed that no part of a normal pathname contains ";" but that should
9260 # okay in the real world where ";" in dirpaths is itself problematic.
9261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9266 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9268 need_lib_prefix=unknown
9269 hardcode_into_libs=no
9271 # when you set need_version to no, make sure it does not cause -set_version
9272 # flags to be left without arguments
9273 need_version=unknown
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9279 shlibpath_var=LIBPATH
9281 # AIX 3 has no versioning support, so we append a major version to the name.
9282 soname_spec='${libname}${release}${shared_ext}$major'
9289 hardcode_into_libs=yes
9290 if test "$host_cpu" = ia64; then
9291 # AIX 5 supports IA64
9292 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9293 shlibpath_var=LD_LIBRARY_PATH
9295 # With GCC up to 2.95.x, collect2 would create an import file
9296 # for dependence libraries. The import file would start with
9297 # the line `#! .'. This would cause the generated library to
9298 # depend on `.', always an invalid library. This was fixed in
9299 # development snapshots of GCC prior to 3.0.
9301 aix4 | aix4.[01] | aix4.[01].*)
9302 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9304 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9311 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9312 # soname into executable. Probably we can add versioning support to
9313 # collect2, so additional links can be useful in future.
9314 if test "$aix_use_runtimelinking" = yes; then
9315 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9316 # instead of lib<name>.a to let people know that these are not
9317 # typical AIX shared libraries.
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 # We preserve .a as extension for shared libraries through AIX4.2
9321 # and later when we are not doing run time linking.
9322 library_names_spec='${libname}${release}.a $libname.a'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9325 shlibpath_var=LIBPATH
9330 library_names_spec='$libname.ixlibrary $libname.a'
9331 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9332 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'
9336 library_names_spec='${libname}${shared_ext}'
9337 dynamic_linker="$host_os ld.so"
9338 shlibpath_var=LIBRARY_PATH
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9350 # the default ld.so.conf also contains /usr/contrib/lib and
9351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9352 # libtool to hard-code these into programs
9355 cygwin* | mingw* | pw32*)
9356 version_type=windows
9361 case $GCC,$host_os in
9362 yes,cygwin* | yes,mingw* | yes,pw32*)
9363 library_names_spec='$libname.dll.a'
9364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9365 postinstall_cmds='base_file=`basename \${file}`~
9366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9367 dldir=$destdir/`dirname \$dlpath`~
9368 test -d \$dldir || mkdir -p \$dldir~
9369 $install_prog $dir/$dlname \$dldir/$dlname~
9370 chmod a+x \$dldir/$dlname'
9371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9372 dlpath=$dir/\$dldll~
9374 shlibpath_overrides_runpath=yes
9378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9379 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9380 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9383 # MinGW DLLs use traditional 'lib' prefix
9384 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9385 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9386 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9387 # It is most probably a Windows format PATH printed by
9388 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9389 # path with ; separators, and with drive letters. We can handle the
9390 # drive letters (cygwin fileutils understands them), so leave them,
9391 # especially as we might pass files found there to a mingw objdump,
9392 # which wouldn't understand a cygwinified path. Ahh.
9393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9399 # pw32 DLLs use 'pw' prefix rather than 'lib'
9400 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9406 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9409 dynamic_linker='Win32 ld.exe'
9410 # FIXME: first we should search . and the directory the executable is in
9414 darwin* | rhapsody*)
9415 dynamic_linker="$host_os dyld"
9419 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9420 soname_spec='${libname}${release}${major}$shared_ext'
9421 shlibpath_overrides_runpath=yes
9422 shlibpath_var=DYLD_LIBRARY_PATH
9423 shrext_cmds='.dylib'
9424 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9425 if test "$GCC" = yes; then
9426 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"`
9428 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9430 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9438 soname_spec='${libname}${release}${shared_ext}$major'
9439 shlibpath_var=LD_LIBRARY_PATH
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 shlibpath_overrides_runpath=no
9454 hardcode_into_libs=yes
9455 dynamic_linker='GNU ld.so'
9458 freebsd* | dragonfly*)
9459 # DragonFly does not have aout. When/if they implement a new
9460 # versioning mechanism, adjust this.
9461 if test -x /usr/bin/objformat; then
9462 objformat=`/usr/bin/objformat`
9465 freebsd[123]*) objformat=aout ;;
9469 version_type=freebsd-$objformat
9470 case $version_type in
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9481 shlibpath_var=LD_LIBRARY_PATH
9484 shlibpath_overrides_runpath=yes
9486 freebsd3.[01]* | freebsdelf3.[01]*)
9487 shlibpath_overrides_runpath=yes
9488 hardcode_into_libs=yes
9490 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9491 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9492 shlibpath_overrides_runpath=no
9493 hardcode_into_libs=yes
9495 freebsd*) # from 4.6 on
9496 shlibpath_overrides_runpath=yes
9497 hardcode_into_libs=yes
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 shlibpath_var=LD_LIBRARY_PATH
9509 hardcode_into_libs=yes
9512 hpux9* | hpux10* | hpux11*)
9513 # Give a soname corresponding to the major version so that dld.sl refuses to
9514 # link against other versions.
9521 hardcode_into_libs=yes
9522 dynamic_linker="$host_os dld.so"
9523 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 if test "X$HPUX_IA64_MODE" = X32; then
9528 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9530 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9536 hardcode_into_libs=yes
9537 dynamic_linker="$host_os dld.sl"
9538 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9547 dynamic_linker="$host_os dld.sl"
9548 shlibpath_var=SHLIB_PATH
9549 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 soname_spec='${libname}${release}${shared_ext}$major'
9554 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9555 postinstall_cmds='chmod 555 $lib'
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9563 soname_spec='${libname}${release}${shared_ext}$major'
9564 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=no
9567 hardcode_into_libs=yes
9570 irix5* | irix6* | nonstopux*)
9572 nonstopux*) version_type=nonstopux ;;
9574 if test "$lt_cv_prog_gnu_ld" = yes; then
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9585 irix5* | nonstopux*)
9589 case $LD in # libtool.m4 will add one of these switches to LD
9590 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9591 libsuff= shlibsuff= libmagic=32-bit;;
9592 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9593 libsuff=32 shlibsuff=N32 libmagic=N32;;
9594 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9595 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9596 *) libsuff= shlibsuff= libmagic=never-match;;
9600 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9601 shlibpath_overrides_runpath=no
9602 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9603 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9604 hardcode_into_libs=yes
9607 # No shared lib support for Linux oldld, aout, or coff.
9608 linux*oldld* | linux*aout* | linux*coff*)
9612 # This must be Linux ELF.
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618 soname_spec='${libname}${release}${shared_ext}$major'
9619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 shlibpath_overrides_runpath=no
9622 # This implies no fast_install, which is unacceptable.
9623 # Some rework will be needed to allow for fast_install
9624 # before this can be enabled.
9625 hardcode_into_libs=yes
9627 # Append ld.so.conf contents to the search path
9628 if test -f /etc/ld.so.conf; then
9629 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' ' '`
9630 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9633 # We used to test for /lib/ld.so.1 and disable shared libraries on
9634 # powerpc, because MkLinux only supported shared libraries with the
9635 # GNU dynamic linker. Since this was broken with cross compilers,
9636 # most powerpc-linux boxes support dynamic linking these days and
9637 # people can always --disable-shared, the test was removed, and we
9638 # assume the GNU/Linux dynamic linker is in use.
9639 dynamic_linker='GNU/Linux ld.so'
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9647 soname_spec='${libname}${release}${shared_ext}$major'
9648 shlibpath_var=LD_LIBRARY_PATH
9649 shlibpath_overrides_runpath=no
9650 hardcode_into_libs=yes
9651 dynamic_linker='GNU ld.so'
9658 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9661 dynamic_linker='NetBSD (a.out) ld.so'
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 dynamic_linker='NetBSD ld.elf_so'
9667 shlibpath_var=LD_LIBRARY_PATH
9668 shlibpath_overrides_runpath=yes
9669 hardcode_into_libs=yes
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675 shlibpath_var=LD_LIBRARY_PATH
9676 shlibpath_overrides_runpath=yes
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes
9691 sys_lib_dlsearch_path_spec="/usr/lib"
9693 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9695 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9696 *) need_version=no ;;
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9700 shlibpath_var=LD_LIBRARY_PATH
9701 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9703 openbsd2.[89] | openbsd2.[89].*)
9704 shlibpath_overrides_runpath=no
9707 shlibpath_overrides_runpath=yes
9711 shlibpath_overrides_runpath=yes
9716 libname_spec='$name'
9719 library_names_spec='$libname${shared_ext} $libname.a'
9720 dynamic_linker='OS/2 ld.exe'
9721 shlibpath_var=LIBPATH
9724 osf3* | osf4* | osf5*)
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9732 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 shlibpath_overrides_runpath=yes
9743 hardcode_into_libs=yes
9744 # ldd complains unless libraries are executable
9745 postinstall_cmds='chmod +x $lib'
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 shlibpath_overrides_runpath=yes
9754 if test "$with_gnu_ld" = yes; then
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 case $host_vendor in
9767 shlibpath_overrides_runpath=no
9769 export_dynamic_flag_spec='${wl}-Blargedynsym'
9770 runpath_var=LD_RUN_PATH
9778 shlibpath_overrides_runpath=no
9779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9785 if test -d /usr/nec ;then
9787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9788 soname_spec='$libname${shared_ext}.$major'
9789 shlibpath_var=LD_LIBRARY_PATH
9793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9794 version_type=freebsd-elf
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 shlibpath_var=LD_LIBRARY_PATH
9800 hardcode_into_libs=yes
9801 if test "$with_gnu_ld" = yes; then
9802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9803 shlibpath_overrides_runpath=no
9805 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9806 shlibpath_overrides_runpath=yes
9809 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9813 sys_lib_dlsearch_path_spec='/usr/lib'
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 soname_spec='${libname}${release}${shared_ext}$major'
9820 shlibpath_var=LD_LIBRARY_PATH
9827 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9828 echo "${ECHO_T}$dynamic_linker" >&6; }
9829 test "$dynamic_linker" = no && can_build_shared=no
9831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9832 if test "$GCC" = yes; then
9833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9837 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9838 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9839 if test "${libltdl_cv_shlibext+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 eval libltdl_cv_shlibext=$shrext_cmds
9847 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9848 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9849 if test -n "$libltdl_cv_shlibext"; then
9851 cat >>confdefs.h <<_ACEOF
9852 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9858 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9859 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9860 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 libltdl_cv_shlibpath_var="$shlibpath_var"
9865 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9866 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9867 if test -n "$libltdl_cv_shlibpath_var"; then
9869 cat >>confdefs.h <<_ACEOF
9870 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9876 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9877 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9878 if test "${libltdl_cv_sys_search_path+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9883 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9884 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9885 if test -n "$libltdl_cv_sys_search_path"; then
9887 for dir in $libltdl_cv_sys_search_path; do
9888 if test -z "$sys_search_path"; then
9889 sys_search_path="$dir"
9891 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9895 cat >>confdefs.h <<_ACEOF
9896 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9901 { echo "$as_me:$LINENO: checking for objdir" >&5
9902 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9903 if test "${libltdl_cv_objdir+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 libltdl_cv_objdir="$objdir"
9907 if test -n "$objdir"; then
9910 rm -f .libs 2>/dev/null
9911 mkdir .libs 2>/dev/null
9912 if test -d .libs; then
9913 libltdl_cv_objdir=.libs
9915 # MS-DOS does not allow filenames that begin with a dot.
9916 libltdl_cv_objdir=_libs
9918 rmdir .libs 2>/dev/null
9922 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9923 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9925 cat >>confdefs.h <<_ACEOF
9926 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9934 # Check for command to grab the raw symbol name followed by C symbol from nm.
9935 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9936 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9937 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 # These are sane defaults that work on at least a few old systems.
9942 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9944 # Character class describing NM global symbol codes.
9945 symcode='[BCDEGRST]'
9947 # Regexp to match symbols that can be accessed directly from C.
9948 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9950 # Transform an extracted symbol line into a proper C declaration
9951 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9953 # Transform an extracted symbol line into symbol name and symbol address
9954 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'"
9956 # Define system-specific variables.
9961 cygwin* | mingw* | pw32*)
9962 symcode='[ABCDGISTW]'
9964 hpux*) # Its linker distinguishes data from code symbols
9965 if test "$host_cpu" = ia64; then
9966 symcode='[ABCDEGRST]'
9968 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9969 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'"
9972 if test "$host_cpu" = ia64; then
9973 symcode='[ABCDGIRSTW]'
9974 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9975 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 symcode='[BCDEGRST]'
9982 symcode='[BCDEGQRST]'
9993 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10001 # Handle CRLF in mingw tool chain
10005 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10009 # If we're using GNU nm, then use its standard symbol codes.
10010 case `$NM -V 2>&1` in
10011 *GNU* | *'with BFD'*)
10012 symcode='[ABCDGIRSTW]' ;;
10015 # Try without a prefix undercore, then with it.
10016 for ac_symprfx in "" "_"; do
10018 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10019 symxfrm="\\1 $ac_symprfx\\2 \\2"
10021 # Write the raw and C identifiers.
10022 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10024 # Check to see that the pipe works correctly.
10028 cat > conftest.$ac_ext <<EOF
10033 void nm_test_func(){}
10037 int main(){nm_test_var='a';nm_test_func();return(0);}
10040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; then
10045 # Now try to grab the symbols.
10047 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10048 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && test -s "$nlist"; then
10052 # Try sorting and uniquifying the output.
10053 if sort "$nlist" | uniq > "$nlist"T; then
10054 mv -f "$nlist"T "$nlist"
10059 # Make sure that we snagged all the symbols we need.
10060 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10061 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10062 cat <<EOF > conftest.$ac_ext
10068 # Now generate the symbol file.
10069 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10071 cat <<EOF >> conftest.$ac_ext
10072 #if defined (__STDC__) && __STDC__
10073 # define lt_ptr_t void *
10075 # define lt_ptr_t char *
10079 /* The mapping between symbol names and symbols. */
10084 lt_preloaded_symbols[] =
10087 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10088 cat <<\EOF >> conftest.$ac_ext
10096 # Now try linking the two files.
10097 mv conftest.$ac_objext conftstm.$ac_objext
10098 lt_save_LIBS="$LIBS"
10099 lt_save_CFLAGS="$CFLAGS"
10100 LIBS="conftstm.$ac_objext"
10101 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10109 LIBS="$lt_save_LIBS"
10110 CFLAGS="$lt_save_CFLAGS"
10112 echo "cannot find nm_test_func in $nlist" >&5
10115 echo "cannot find nm_test_var in $nlist" >&5
10118 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10121 echo "$progname: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10124 rm -f conftest* conftst*
10126 # Do not use the global_symbol_pipe unless it works.
10127 if test "$pipe_works" = yes; then
10130 lt_cv_sys_global_symbol_pipe=
10136 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10137 lt_cv_sys_global_symbol_to_cdecl=
10139 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10140 { echo "$as_me:$LINENO: result: failed" >&5
10141 echo "${ECHO_T}failed" >&6; }
10143 { echo "$as_me:$LINENO: result: ok" >&5
10144 echo "${ECHO_T}ok" >&6; }
10148 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10149 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10150 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10154 libltdl_cv_preloaded_symbols=yes
10156 libltdl_cv_preloaded_symbols=no
10160 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10161 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10162 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10164 cat >>confdefs.h <<\_ACEOF
10165 #define HAVE_PRELOADED_SYMBOLS 1
10173 ac_cpp='$CPP $CPPFLAGS'
10174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10179 { echo "$as_me:$LINENO: checking for shl_load" >&5
10180 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10181 if test "${ac_cv_func_shl_load+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 cat >conftest.$ac_ext <<_ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10192 #define shl_load innocuous_shl_load
10194 /* System header to define __stub macros and hopefully few prototypes,
10195 which can conflict with char shl_load (); below.
10196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197 <limits.h> exists even on freestanding compilers. */
10200 # include <limits.h>
10202 # include <assert.h>
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10214 /* The GNU C library defines this for functions which it implements
10215 to always fail with ENOSYS. Some functions are actually named
10216 something starting with __ and the normal name is an alias. */
10217 #if defined __stub_shl_load || defined __stub___shl_load
10224 return shl_load ();
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_link") 2>conftest.er1
10238 grep -v '^ *+' conftest.er1 >conftest.err
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244 { (case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_try") 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 ac_cv_func_shl_load=yes
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10268 ac_cv_func_shl_load=no
10271 rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10274 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10275 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10276 if test $ac_cv_func_shl_load = yes; then
10278 cat >>confdefs.h <<\_ACEOF
10279 #define HAVE_SHL_LOAD 1
10283 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10284 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10285 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 ac_check_lib_save_LIBS=$LIBS
10290 cat >conftest.$ac_ext <<_ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10307 return shl_load ();
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>conftest.er1
10321 grep -v '^ *+' conftest.er1 >conftest.err
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10327 { (case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_try") 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; } &&
10336 { ac_try='test -s conftest$ac_exeext'
10337 { (case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_try") 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 ac_cv_lib_dld_shl_load=yes
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 ac_cv_lib_dld_shl_load=no
10354 rm -f core conftest.err conftest.$ac_objext \
10355 conftest$ac_exeext conftest.$ac_ext
10356 LIBS=$ac_check_lib_save_LIBS
10358 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10359 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10360 if test $ac_cv_lib_dld_shl_load = yes; then
10362 cat >>confdefs.h <<\_ACEOF
10363 #define HAVE_SHL_LOAD 1
10366 LIBADD_DL="$LIBADD_DL -ldld"
10368 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10369 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10370 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 ac_check_lib_save_LIBS=$LIBS
10375 cat >conftest.$ac_ext <<_ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10382 /* Override any GCC internal prototype to avoid an error.
10383 Use char because int might match the return type of a GCC
10384 builtin and then its argument prototype would still apply. */
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (ac_try="$ac_link"
10399 case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_link") 2>conftest.er1
10406 grep -v '^ *+' conftest.er1 >conftest.err
10408 cat conftest.err >&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } &&
10411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10412 { (case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_try") 2>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; } &&
10421 { ac_try='test -s conftest$ac_exeext'
10422 { (case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_try") 2>&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 ac_cv_lib_dl_dlopen=yes
10433 echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10436 ac_cv_lib_dl_dlopen=no
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441 LIBS=$ac_check_lib_save_LIBS
10443 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10444 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10445 if test $ac_cv_lib_dl_dlopen = yes; then
10447 cat >>confdefs.h <<\_ACEOF
10448 #define HAVE_LIBDL 1
10451 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10453 cat >conftest.$ac_ext <<_ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10460 # include <dlfcn.h>
10471 rm -f conftest.$ac_objext conftest$ac_exeext
10472 if { (ac_try="$ac_link"
10473 case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_link") 2>conftest.er1
10480 grep -v '^ *+' conftest.er1 >conftest.err
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } &&
10485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10486 { (case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_try") 2>&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; } &&
10495 { ac_try='test -s conftest$ac_exeext'
10496 { (case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_try") 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10506 cat >>confdefs.h <<\_ACEOF
10507 #define HAVE_LIBDL 1
10509 libltdl_cv_func_dlopen="yes"
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10515 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10516 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10519 ac_check_lib_save_LIBS=$LIBS
10520 LIBS="-lsvld $LIBS"
10521 cat >conftest.$ac_ext <<_ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10528 /* Override any GCC internal prototype to avoid an error.
10529 Use char because int might match the return type of a GCC
10530 builtin and then its argument prototype would still apply. */
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (ac_try="$ac_link"
10545 case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_link") 2>conftest.er1
10552 grep -v '^ *+' conftest.er1 >conftest.err
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; } &&
10567 { ac_try='test -s conftest$ac_exeext'
10568 { (case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_try") 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 ac_cv_lib_svld_dlopen=yes
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10582 ac_cv_lib_svld_dlopen=no
10585 rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 LIBS=$ac_check_lib_save_LIBS
10589 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10590 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10591 if test $ac_cv_lib_svld_dlopen = yes; then
10593 cat >>confdefs.h <<\_ACEOF
10594 #define HAVE_LIBDL 1
10597 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10599 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10600 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10601 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 ac_check_lib_save_LIBS=$LIBS
10606 cat >conftest.$ac_ext <<_ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10613 /* Override any GCC internal prototype to avoid an error.
10614 Use char because int might match the return type of a GCC
10615 builtin and then its argument prototype would still apply. */
10623 return dld_link ();
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (ac_try="$ac_link"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_link") 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_try") 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_cv_lib_dld_dld_link=yes
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 ac_cv_lib_dld_dld_link=no
10670 rm -f core conftest.err conftest.$ac_objext \
10671 conftest$ac_exeext conftest.$ac_ext
10672 LIBS=$ac_check_lib_save_LIBS
10674 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10675 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10676 if test $ac_cv_lib_dld_dld_link = yes; then
10678 cat >>confdefs.h <<\_ACEOF
10682 LIBADD_DL="$LIBADD_DL -ldld"
10684 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10685 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10686 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 cat >conftest.$ac_ext <<_ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10697 #define _dyld_func_lookup innocuous__dyld_func_lookup
10699 /* System header to define __stub macros and hopefully few prototypes,
10700 which can conflict with char _dyld_func_lookup (); below.
10701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10702 <limits.h> exists even on freestanding compilers. */
10705 # include <limits.h>
10707 # include <assert.h>
10710 #undef _dyld_func_lookup
10712 /* Override any GCC internal prototype to avoid an error.
10713 Use char because int might match the return type of a GCC
10714 builtin and then its argument prototype would still apply. */
10718 char _dyld_func_lookup ();
10719 /* The GNU C library defines this for functions which it implements
10720 to always fail with ENOSYS. Some functions are actually named
10721 something starting with __ and the normal name is an alias. */
10722 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10729 return _dyld_func_lookup ();
10734 rm -f conftest.$ac_objext conftest$ac_exeext
10735 if { (ac_try="$ac_link"
10736 case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_link") 2>conftest.er1
10743 grep -v '^ *+' conftest.er1 >conftest.err
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10749 { (case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_try") 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest$ac_exeext'
10759 { (case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_try") 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 ac_cv_func__dyld_func_lookup=yes
10770 echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 ac_cv_func__dyld_func_lookup=no
10776 rm -f core conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
10779 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10780 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10781 if test $ac_cv_func__dyld_func_lookup = yes; then
10783 cat >>confdefs.h <<\_ACEOF
10784 #define HAVE_DYLD 1
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10810 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10812 lt_save_LIBS="$LIBS"
10813 LIBS="$LIBS $LIBADD_DL"
10815 for ac_func in dlerror
10817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 cat >conftest.$ac_ext <<_ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10831 #define $ac_func innocuous_$ac_func
10833 /* System header to define __stub macros and hopefully few prototypes,
10834 which can conflict with char $ac_func (); below.
10835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10836 <limits.h> exists even on freestanding compilers. */
10839 # include <limits.h>
10841 # include <assert.h>
10846 /* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
10853 /* The GNU C library defines this for functions which it implements
10854 to always fail with ENOSYS. Some functions are actually named
10855 something starting with __ and the normal name is an alias. */
10856 #if defined __stub_$ac_func || defined __stub___$ac_func
10863 return $ac_func ();
10868 rm -f conftest.$ac_objext conftest$ac_exeext
10869 if { (ac_try="$ac_link"
10870 case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_link") 2>conftest.er1
10877 grep -v '^ *+' conftest.er1 >conftest.err
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883 { (case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_try") 2>&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest$ac_exeext'
10893 { (case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_try") 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
10902 eval "$as_ac_var=yes"
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10907 eval "$as_ac_var=no"
10910 rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
10913 ac_res=`eval echo '${'$as_ac_var'}'`
10914 { echo "$as_me:$LINENO: result: $ac_res" >&5
10915 echo "${ECHO_T}$ac_res" >&6; }
10916 if test `eval echo '${'$as_ac_var'}'` = yes; then
10917 cat >>confdefs.h <<_ACEOF
10918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10924 LIBS="$lt_save_LIBS"
10927 ac_cpp='$CPP $CPPFLAGS'
10928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10934 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10935 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10936 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 ac_cv_sys_symbol_underscore=no
10940 cat > conftest.$ac_ext <<EOF
10941 void nm_test_func(){}
10942 int main(){nm_test_func;return 0;}
10944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945 (eval $ac_compile) 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; then
10949 # Now try to grab the symbols.
10950 ac_nlist=conftest.nm
10951 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10952 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && test -s "$ac_nlist"; then
10956 # See whether the symbols have a leading underscore.
10957 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10958 ac_cv_sys_symbol_underscore=yes
10960 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10963 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10967 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10970 echo "configure: failed program was:" >&5
10976 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10977 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10980 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10981 if test x"$libltdl_cv_func_dlopen" = xyes ||
10982 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10983 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10984 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10985 if test "${libltdl_cv_need_uscore+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 libltdl_cv_need_uscore=unknown
10990 LIBS="$LIBS $LIBADD_DL"
10991 if test "$cross_compiling" = yes; then :
10992 libltdl_cv_need_uscore=cross
10994 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10995 lt_status=$lt_dlunknown
10996 cat > conftest.$ac_ext <<EOF
10997 #line 10997 "configure"
10998 #include "confdefs.h"
11007 # define LT_DLGLOBAL RTLD_GLOBAL
11010 # define LT_DLGLOBAL DL_GLOBAL
11012 # define LT_DLGLOBAL 0
11016 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11017 find out it does not work in some platform. */
11018 #ifndef LT_DLLAZY_OR_NOW
11020 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11023 # define LT_DLLAZY_OR_NOW DL_LAZY
11026 # define LT_DLLAZY_OR_NOW RTLD_NOW
11029 # define LT_DLLAZY_OR_NOW DL_NOW
11031 # define LT_DLLAZY_OR_NOW 0
11039 extern "C" void exit (int);
11042 void fnord() { int i=42;}
11045 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11046 int status = $lt_dlunknown;
11050 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11051 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11052 /* dlclose (self); */
11060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061 (eval $ac_link) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11065 (./conftest; exit; ) >&5 2>/dev/null
11067 case x$lt_status in
11068 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11069 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11070 x$lt_dlunknown|x*) ;;
11073 # compilation failed
11082 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11083 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11087 if test x"$libltdl_cv_need_uscore" = xyes; then
11089 cat >>confdefs.h <<\_ACEOF
11090 #define NEED_USCORE 1
11096 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11097 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11098 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 # PORTME does your system automatically load deplibs for dlopen?
11102 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11103 # For now, we just catch OSes we know something about -- in the
11104 # future, we'll try test this programmatically.
11105 libltdl_cv_sys_dlopen_deplibs=unknown
11107 aix3*|aix4.1.*|aix4.2.*)
11108 # Unknown whether this is true for these versions of AIX, but
11109 # we want this `case' here to explicitly catch those versions.
11110 libltdl_cv_sys_dlopen_deplibs=unknown
11113 libltdl_cv_sys_dlopen_deplibs=yes
11116 # Assuming the user has installed a libdl from somewhere, this is true
11117 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11118 libltdl_cv_sys_dlopen_deplibs=yes
11120 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11121 # GNU and its variants, using gnu ld.so (Glibc)
11122 libltdl_cv_sys_dlopen_deplibs=yes
11125 libltdl_cv_sys_dlopen_deplibs=yes
11128 libltdl_cv_sys_dlopen_deplibs=yes
11130 irix[12345]*|irix6.[01]*)
11131 # Catch all versions of IRIX before 6.2, and indicate that we don't
11132 # know how it worked for any of those versions.
11133 libltdl_cv_sys_dlopen_deplibs=unknown
11136 # The case above catches anything before 6.2, and it's known that
11137 # at 6.2 and later dlopen does load deplibs.
11138 libltdl_cv_sys_dlopen_deplibs=yes
11141 libltdl_cv_sys_dlopen_deplibs=yes
11144 libltdl_cv_sys_dlopen_deplibs=yes
11147 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11148 # it did *not* use an RPATH in a shared library to find objects the
11149 # library depends on, so we explictly say `no'.
11150 libltdl_cv_sys_dlopen_deplibs=no
11152 osf5.0|osf5.0a|osf5.1)
11153 # dlopen *does* load deplibs and with the right loader patch applied
11154 # it even uses RPATH in a shared library to search for shared objects
11155 # that the library depends on, but there's no easy way to know if that
11156 # patch is installed. Since this is the case, all we can really
11157 # say is unknown -- it depends on the patch being installed. If
11158 # it is, this changes to `yes'. Without it, it would be `no'.
11159 libltdl_cv_sys_dlopen_deplibs=unknown
11162 # the two cases above should catch all versions of osf <= 5.1. Read
11163 # the comments above for what we know about them.
11164 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11165 # is used to find them so we can finally say `yes'.
11166 libltdl_cv_sys_dlopen_deplibs=yes
11169 libltdl_cv_sys_dlopen_deplibs=yes
11171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11172 libltdl_cv_sys_dlopen_deplibs=yes
11177 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11178 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11179 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11181 cat >>confdefs.h <<\_ACEOF
11182 #define LTDL_DLOPEN_DEPLIBS 1
11188 for ac_header in argz.h
11190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 ac_res=`eval echo '${'$as_ac_Header'}'`
11198 { echo "$as_me:$LINENO: result: $ac_res" >&5
11199 echo "${ECHO_T}$ac_res" >&6; }
11201 # Is the header compilable?
11202 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11204 cat >conftest.$ac_ext <<_ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210 $ac_includes_default
11211 #include <$ac_header>
11213 rm -f conftest.$ac_objext
11214 if { (ac_try="$ac_compile"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_compile") 2>conftest.er1
11222 grep -v '^ *+' conftest.er1 >conftest.err
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
11227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11228 { (case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_try") 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (case "(($ac_try" in
11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243 (eval "$ac_try") 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
11247 ac_header_compiler=yes
11249 echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11252 ac_header_compiler=no
11255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11257 echo "${ECHO_T}$ac_header_compiler" >&6; }
11259 # Is the header present?
11260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11262 cat >conftest.$ac_ext <<_ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 #include <$ac_header>
11270 if { (ac_try="$ac_cpp conftest.$ac_ext"
11271 case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11278 grep -v '^ *+' conftest.er1 >conftest.err
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } >/dev/null; then
11283 if test -s conftest.err; then
11284 ac_cpp_err=$ac_c_preproc_warn_flag
11285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11292 if test -z "$ac_cpp_err"; then
11293 ac_header_preproc=yes
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 ac_header_preproc=no
11301 rm -f conftest.err conftest.$ac_ext
11302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303 echo "${ECHO_T}$ac_header_preproc" >&6; }
11305 # So? What about this header?
11306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11312 ac_header_preproc=yes
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11328 ## ----------------------------------- ##
11329 ## Report this to llvmbugs@cs.uiuc.edu ##
11330 ## ----------------------------------- ##
11332 ) | sed "s/^/$as_me: WARNING: /" >&2
11335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 eval "$as_ac_Header=\$ac_header_preproc"
11342 ac_res=`eval echo '${'$as_ac_Header'}'`
11343 { echo "$as_me:$LINENO: result: $ac_res" >&5
11344 echo "${ECHO_T}$ac_res" >&6; }
11347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11348 cat >>confdefs.h <<_ACEOF
11349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11357 { echo "$as_me:$LINENO: checking for error_t" >&5
11358 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11359 if test "${ac_cv_type_error_t+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 cat >conftest.$ac_ext <<_ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11372 typedef error_t ac__type_new_;
11376 if ((ac__type_new_ *) 0)
11378 if (sizeof (ac__type_new_))
11384 rm -f conftest.$ac_objext
11385 if { (ac_try="$ac_compile"
11386 case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_compile") 2>conftest.er1
11393 grep -v '^ *+' conftest.er1 >conftest.err
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11399 { (case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404 (eval "$ac_try") 2>&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try='test -s conftest.$ac_objext'
11409 { (case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_try") 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 ac_cv_type_error_t=yes
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11423 ac_cv_type_error_t=no
11426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11429 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11430 if test $ac_cv_type_error_t = yes; then
11432 cat >>confdefs.h <<_ACEOF
11433 #define HAVE_ERROR_T 1
11439 cat >>confdefs.h <<\_ACEOF
11440 #define error_t int
11451 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 cat >conftest.$ac_ext <<_ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11467 #define $ac_func innocuous_$ac_func
11469 /* System header to define __stub macros and hopefully few prototypes,
11470 which can conflict with char $ac_func (); below.
11471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11472 <limits.h> exists even on freestanding compilers. */
11475 # include <limits.h>
11477 # include <assert.h>
11482 /* Override any GCC internal prototype to avoid an error.
11483 Use char because int might match the return type of a GCC
11484 builtin and then its argument prototype would still apply. */
11489 /* The GNU C library defines this for functions which it implements
11490 to always fail with ENOSYS. Some functions are actually named
11491 something starting with __ and the normal name is an alias. */
11492 #if defined __stub_$ac_func || defined __stub___$ac_func
11499 return $ac_func ();
11504 rm -f conftest.$ac_objext conftest$ac_exeext
11505 if { (ac_try="$ac_link"
11506 case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_link") 2>conftest.er1
11513 grep -v '^ *+' conftest.er1 >conftest.err
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11519 { (case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_try") 2>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest$ac_exeext'
11529 { (case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_try") 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; }; then
11538 eval "$as_ac_var=yes"
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 eval "$as_ac_var=no"
11546 rm -f core conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext conftest.$ac_ext
11549 ac_res=`eval echo '${'$as_ac_var'}'`
11550 { echo "$as_me:$LINENO: result: $ac_res" >&5
11551 echo "${ECHO_T}$ac_res" >&6; }
11552 if test `eval echo '${'$as_ac_var'}'` = yes; then
11553 cat >>confdefs.h <<_ACEOF
11554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11587 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 ac_res=`eval echo '${'$as_ac_Header'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599 echo "${ECHO_T}$ac_res" >&6; }
11601 # Is the header compilable?
11602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11604 cat >conftest.$ac_ext <<_ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 $ac_includes_default
11611 #include <$ac_header>
11613 rm -f conftest.$ac_objext
11614 if { (ac_try="$ac_compile"
11615 case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_compile") 2>conftest.er1
11622 grep -v '^ *+' conftest.er1 >conftest.err
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_header_compiler=yes
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 ac_header_compiler=no
11655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11657 echo "${ECHO_T}$ac_header_compiler" >&6; }
11659 # Is the header present?
11660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11662 cat >conftest.$ac_ext <<_ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 #include <$ac_header>
11670 if { (ac_try="$ac_cpp conftest.$ac_ext"
11671 case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11678 grep -v '^ *+' conftest.er1 >conftest.err
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } >/dev/null; then
11683 if test -s conftest.err; then
11684 ac_cpp_err=$ac_c_preproc_warn_flag
11685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11692 if test -z "$ac_cpp_err"; then
11693 ac_header_preproc=yes
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11698 ac_header_preproc=no
11701 rm -f conftest.err conftest.$ac_ext
11702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11703 echo "${ECHO_T}$ac_header_preproc" >&6; }
11705 # So? What about this header?
11706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11712 ac_header_preproc=yes
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11728 ## ----------------------------------- ##
11729 ## Report this to llvmbugs@cs.uiuc.edu ##
11730 ## ----------------------------------- ##
11732 ) | sed "s/^/$as_me: WARNING: /" >&2
11735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 eval "$as_ac_Header=\$ac_header_preproc"
11742 ac_res=`eval echo '${'$as_ac_Header'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11748 cat >>confdefs.h <<_ACEOF
11749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11760 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 ac_res=`eval echo '${'$as_ac_Header'}'`
11770 { echo "$as_me:$LINENO: result: $ac_res" >&5
11771 echo "${ECHO_T}$ac_res" >&6; }
11773 # Is the header compilable?
11774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11776 cat >conftest.$ac_ext <<_ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 $ac_includes_default
11783 #include <$ac_header>
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_compile") 2>conftest.er1
11794 grep -v '^ *+' conftest.er1 >conftest.err
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest.$ac_objext'
11810 { (case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_try") 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 ac_header_compiler=yes
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 ac_header_compiler=no
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11829 echo "${ECHO_T}$ac_header_compiler" >&6; }
11831 # Is the header present?
11832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11834 cat >conftest.$ac_ext <<_ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 #include <$ac_header>
11842 if { (ac_try="$ac_cpp conftest.$ac_ext"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11850 grep -v '^ *+' conftest.er1 >conftest.err
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } >/dev/null; then
11855 if test -s conftest.err; then
11856 ac_cpp_err=$ac_c_preproc_warn_flag
11857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11864 if test -z "$ac_cpp_err"; then
11865 ac_header_preproc=yes
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_header_preproc=no
11873 rm -f conftest.err conftest.$ac_ext
11874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11875 echo "${ECHO_T}$ac_header_preproc" >&6; }
11877 # So? What about this header?
11878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11884 ac_header_preproc=yes
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11900 ## ----------------------------------- ##
11901 ## Report this to llvmbugs@cs.uiuc.edu ##
11902 ## ----------------------------------- ##
11904 ) | sed "s/^/$as_me: WARNING: /" >&2
11907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 eval "$as_ac_Header=\$ac_header_preproc"
11914 ac_res=`eval echo '${'$as_ac_Header'}'`
11915 { echo "$as_me:$LINENO: result: $ac_res" >&5
11916 echo "${ECHO_T}$ac_res" >&6; }
11919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11920 cat >>confdefs.h <<_ACEOF
11921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11930 for ac_header in string.h strings.h
11932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 ac_res=`eval echo '${'$as_ac_Header'}'`
11940 { echo "$as_me:$LINENO: result: $ac_res" >&5
11941 echo "${ECHO_T}$ac_res" >&6; }
11943 # Is the header compilable?
11944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 $ac_includes_default
11953 #include <$ac_header>
11955 rm -f conftest.$ac_objext
11956 if { (ac_try="$ac_compile"
11957 case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_compile") 2>conftest.er1
11964 grep -v '^ *+' conftest.er1 >conftest.err
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_try") 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_try") 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_header_compiler=yes
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11994 ac_header_compiler=no
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11999 echo "${ECHO_T}$ac_header_compiler" >&6; }
12001 # Is the header present?
12002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12004 cat >conftest.$ac_ext <<_ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 #include <$ac_header>
12012 if { (ac_try="$ac_cpp conftest.$ac_ext"
12013 case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12020 grep -v '^ *+' conftest.er1 >conftest.err
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } >/dev/null; then
12025 if test -s conftest.err; then
12026 ac_cpp_err=$ac_c_preproc_warn_flag
12027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12034 if test -z "$ac_cpp_err"; then
12035 ac_header_preproc=yes
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ac_header_preproc=no
12043 rm -f conftest.err conftest.$ac_ext
12044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12045 echo "${ECHO_T}$ac_header_preproc" >&6; }
12047 # So? What about this header?
12048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12054 ac_header_preproc=yes
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12070 ## ----------------------------------- ##
12071 ## Report this to llvmbugs@cs.uiuc.edu ##
12072 ## ----------------------------------- ##
12074 ) | sed "s/^/$as_me: WARNING: /" >&2
12077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 eval "$as_ac_Header=\$ac_header_preproc"
12084 ac_res=`eval echo '${'$as_ac_Header'}'`
12085 { echo "$as_me:$LINENO: result: $ac_res" >&5
12086 echo "${ECHO_T}$ac_res" >&6; }
12089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12090 cat >>confdefs.h <<_ACEOF
12091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12101 for ac_func in strchr index
12103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 cat >conftest.$ac_ext <<_ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12117 #define $ac_func innocuous_$ac_func
12119 /* System header to define __stub macros and hopefully few prototypes,
12120 which can conflict with char $ac_func (); below.
12121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122 <limits.h> exists even on freestanding compilers. */
12125 # include <limits.h>
12127 # include <assert.h>
12132 /* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12139 /* The GNU C library defines this for functions which it implements
12140 to always fail with ENOSYS. Some functions are actually named
12141 something starting with __ and the normal name is an alias. */
12142 #if defined __stub_$ac_func || defined __stub___$ac_func
12149 return $ac_func ();
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (ac_try="$ac_link"
12156 case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_link") 2>conftest.er1
12163 grep -v '^ *+' conftest.er1 >conftest.err
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169 { (case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_try") 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest$ac_exeext'
12179 { (case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_try") 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 eval "$as_ac_var=yes"
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 eval "$as_ac_var=no"
12196 rm -f core conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12199 ac_res=`eval echo '${'$as_ac_var'}'`
12200 { echo "$as_me:$LINENO: result: $ac_res" >&5
12201 echo "${ECHO_T}$ac_res" >&6; }
12202 if test `eval echo '${'$as_ac_var'}'` = yes; then
12203 cat >>confdefs.h <<_ACEOF
12204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12212 for ac_func in strrchr rindex
12214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 cat >conftest.$ac_ext <<_ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12228 #define $ac_func innocuous_$ac_func
12230 /* System header to define __stub macros and hopefully few prototypes,
12231 which can conflict with char $ac_func (); below.
12232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12233 <limits.h> exists even on freestanding compilers. */
12236 # include <limits.h>
12238 # include <assert.h>
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12250 /* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
12253 #if defined __stub_$ac_func || defined __stub___$ac_func
12260 return $ac_func ();
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (ac_try="$ac_link"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12274 grep -v '^ *+' conftest.er1 >conftest.err
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12280 { (case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_try") 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } &&
12289 { ac_try='test -s conftest$ac_exeext'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 eval "$as_ac_var=yes"
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12304 eval "$as_ac_var=no"
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12310 ac_res=`eval echo '${'$as_ac_var'}'`
12311 { echo "$as_me:$LINENO: result: $ac_res" >&5
12312 echo "${ECHO_T}$ac_res" >&6; }
12313 if test `eval echo '${'$as_ac_var'}'` = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12323 for ac_func in memcpy bcopy
12325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 cat >conftest.$ac_ext <<_ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12339 #define $ac_func innocuous_$ac_func
12341 /* System header to define __stub macros and hopefully few prototypes,
12342 which can conflict with char $ac_func (); below.
12343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12344 <limits.h> exists even on freestanding compilers. */
12347 # include <limits.h>
12349 # include <assert.h>
12354 /* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
12361 /* The GNU C library defines this for functions which it implements
12362 to always fail with ENOSYS. Some functions are actually named
12363 something starting with __ and the normal name is an alias. */
12364 #if defined __stub_$ac_func || defined __stub___$ac_func
12371 return $ac_func ();
12376 rm -f conftest.$ac_objext conftest$ac_exeext
12377 if { (ac_try="$ac_link"
12378 case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_link") 2>conftest.er1
12385 grep -v '^ *+' conftest.er1 >conftest.err
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391 { (case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396 (eval "$ac_try") 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
12401 { (case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_try") 2>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 eval "$as_ac_var=yes"
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12415 eval "$as_ac_var=no"
12418 rm -f core conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12421 ac_res=`eval echo '${'$as_ac_var'}'`
12422 { echo "$as_me:$LINENO: result: $ac_res" >&5
12423 echo "${ECHO_T}$ac_res" >&6; }
12424 if test `eval echo '${'$as_ac_var'}'` = yes; then
12425 cat >>confdefs.h <<_ACEOF
12426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12434 for ac_func in memmove strcmp
12436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 cat >conftest.$ac_ext <<_ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12450 #define $ac_func innocuous_$ac_func
12452 /* System header to define __stub macros and hopefully few prototypes,
12453 which can conflict with char $ac_func (); below.
12454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455 <limits.h> exists even on freestanding compilers. */
12458 # include <limits.h>
12460 # include <assert.h>
12465 /* Override any GCC internal prototype to avoid an error.
12466 Use char because int might match the return type of a GCC
12467 builtin and then its argument prototype would still apply. */
12472 /* The GNU C library defines this for functions which it implements
12473 to always fail with ENOSYS. Some functions are actually named
12474 something starting with __ and the normal name is an alias. */
12475 #if defined __stub_$ac_func || defined __stub___$ac_func
12482 return $ac_func ();
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (ac_try="$ac_link"
12489 case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_link") 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12502 { (case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_try") 2>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest$ac_exeext'
12512 { (case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_try") 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 eval "$as_ac_var=yes"
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 eval "$as_ac_var=no"
12529 rm -f core conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12532 ac_res=`eval echo '${'$as_ac_var'}'`
12533 { echo "$as_me:$LINENO: result: $ac_res" >&5
12534 echo "${ECHO_T}$ac_res" >&6; }
12535 if test `eval echo '${'$as_ac_var'}'` = yes; then
12536 cat >>confdefs.h <<_ACEOF
12537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12546 for ac_func in closedir opendir readdir
12548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12549 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12551 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 cat >conftest.$ac_ext <<_ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12562 #define $ac_func innocuous_$ac_func
12564 /* System header to define __stub macros and hopefully few prototypes,
12565 which can conflict with char $ac_func (); below.
12566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12567 <limits.h> exists even on freestanding compilers. */
12570 # include <limits.h>
12572 # include <assert.h>
12577 /* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12584 /* The GNU C library defines this for functions which it implements
12585 to always fail with ENOSYS. Some functions are actually named
12586 something starting with __ and the normal name is an alias. */
12587 #if defined __stub_$ac_func || defined __stub___$ac_func
12594 return $ac_func ();
12599 rm -f conftest.$ac_objext conftest$ac_exeext
12600 if { (ac_try="$ac_link"
12601 case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_link") 2>conftest.er1
12608 grep -v '^ *+' conftest.er1 >conftest.err
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12614 { (case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_try") 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; } &&
12623 { ac_try='test -s conftest$ac_exeext'
12624 { (case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_try") 2>&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12633 eval "$as_ac_var=yes"
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12638 eval "$as_ac_var=no"
12641 rm -f core conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12644 ac_res=`eval echo '${'$as_ac_var'}'`
12645 { echo "$as_me:$LINENO: result: $ac_res" >&5
12646 echo "${ECHO_T}$ac_res" >&6; }
12647 if test `eval echo '${'$as_ac_var'}'` = yes; then
12648 cat >>confdefs.h <<_ACEOF
12649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12656 # Check whether --enable-shared was given.
12657 if test "${enable_shared+set}" = set; then
12658 enableval=$enable_shared; p=${PACKAGE-default}
12660 yes) enable_shared=yes ;;
12661 no) enable_shared=no ;;
12664 # Look at the argument we got. We use all the common list separators.
12665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12666 for pkg in $enableval; do
12668 if test "X$pkg" = "X$p"; then
12680 # Check whether --enable-static was given.
12681 if test "${enable_static+set}" = set; then
12682 enableval=$enable_static; p=${PACKAGE-default}
12684 yes) enable_static=yes ;;
12685 no) enable_static=no ;;
12688 # Look at the argument we got. We use all the common list separators.
12689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12690 for pkg in $enableval; do
12692 if test "X$pkg" = "X$p"; then
12704 # Check whether --enable-fast-install was given.
12705 if test "${enable_fast_install+set}" = set; then
12706 enableval=$enable_fast_install; p=${PACKAGE-default}
12708 yes) enable_fast_install=yes ;;
12709 no) enable_fast_install=no ;;
12711 enable_fast_install=no
12712 # Look at the argument we got. We use all the common list separators.
12713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12714 for pkg in $enableval; do
12716 if test "X$pkg" = "X$p"; then
12717 enable_fast_install=yes
12724 enable_fast_install=yes
12728 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12729 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12730 if test "${lt_cv_path_SED+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12733 # Loop through the user's path and test for sed and gsed.
12734 # Then use that list of sed's as ones to test for truncation.
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736 for as_dir in $PATH
12739 test -z "$as_dir" && as_dir=.
12740 for lt_ac_prog in sed gsed; do
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12743 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12750 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12751 # along with /bin/sed that truncates output.
12752 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12753 test ! -f $lt_ac_sed && continue
12754 cat /dev/null > conftest.in
12756 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12757 # Check for GNU sed and select it if it is found.
12758 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12759 lt_cv_path_SED=$lt_ac_sed
12763 cat conftest.in conftest.in >conftest.tmp
12764 mv conftest.tmp conftest.in
12765 cp conftest.in conftest.nl
12767 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12768 cmp -s conftest.out conftest.nl || break
12769 # 10000 chars as input seems more than enough
12770 test $lt_ac_count -gt 10 && break
12771 lt_ac_count=`expr $lt_ac_count + 1`
12772 if test $lt_ac_count -gt $lt_ac_max; then
12773 lt_ac_max=$lt_ac_count
12774 lt_cv_path_SED=$lt_ac_sed
12781 SED=$lt_cv_path_SED
12782 { echo "$as_me:$LINENO: result: $SED" >&5
12783 echo "${ECHO_T}$SED" >&6; }
12786 # Check whether --with-gnu-ld was given.
12787 if test "${with_gnu_ld+set}" = set; then
12788 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12794 if test "$GCC" = yes; then
12795 # Check if gcc -print-prog-name=ld gives a path.
12796 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12797 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12800 # gcc leaves a trailing carriage return which upsets mingw
12801 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12803 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12806 # Accept absolute paths.
12808 re_direlt='/[^/][^/]*/\.\./'
12809 # Canonicalize the pathname of ld
12810 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12811 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12812 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12814 test -z "$LD" && LD="$ac_prog"
12817 # If it fails, then pretend we aren't using GCC.
12821 # If it is relative, then search for the first ld in PATH.
12822 with_gnu_ld=unknown
12825 elif test "$with_gnu_ld" = yes; then
12826 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12827 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12829 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12830 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12832 if test "${lt_cv_path_LD+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 if test -z "$LD"; then
12836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12837 for ac_dir in $PATH; do
12839 test -z "$ac_dir" && ac_dir=.
12840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12841 lt_cv_path_LD="$ac_dir/$ac_prog"
12842 # Check to see if the program is GNU ld. I'd rather use --version,
12843 # but apparently some variants of GNU ld only accept -v.
12844 # Break only if it was the GNU/non-GNU ld that we prefer.
12845 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12846 *GNU* | *'with BFD'*)
12847 test "$with_gnu_ld" != no && break
12850 test "$with_gnu_ld" != yes && break
12857 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12861 LD="$lt_cv_path_LD"
12862 if test -n "$LD"; then
12863 { echo "$as_me:$LINENO: result: $LD" >&5
12864 echo "${ECHO_T}$LD" >&6; }
12866 { echo "$as_me:$LINENO: result: no" >&5
12867 echo "${ECHO_T}no" >&6; }
12869 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12870 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12871 { (exit 1); exit 1; }; }
12872 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12873 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12874 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12878 case `$LD -v 2>&1 </dev/null` in
12879 *GNU* | *'with BFD'*)
12880 lt_cv_prog_gnu_ld=yes
12883 lt_cv_prog_gnu_ld=no
12887 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12888 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12889 with_gnu_ld=$lt_cv_prog_gnu_ld
12892 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12893 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12894 if test "${lt_cv_ld_reload_flag+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 lt_cv_ld_reload_flag='-r'
12899 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12900 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12901 reload_flag=$lt_cv_ld_reload_flag
12902 case $reload_flag in
12904 *) reload_flag=" $reload_flag" ;;
12906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12909 if test "$GCC" = yes; then
12910 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12912 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12917 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12918 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12919 if test "${lt_cv_deplibs_check_method+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 lt_cv_file_magic_cmd='$MAGIC_CMD'
12923 lt_cv_file_magic_test_file=
12924 lt_cv_deplibs_check_method='unknown'
12925 # Need to set the preceding variable on all platforms that support
12926 # interlibrary dependencies.
12927 # 'none' -- dependencies not supported.
12928 # `unknown' -- same as none, but documents that we really don't know.
12929 # 'pass_all' -- all dependencies passed with no checks.
12930 # 'test_compile' -- check by making test program.
12931 # 'file_magic [[regex]]' -- check by looking for files in library path
12932 # which responds to the $file_magic_cmd with a given extended regex.
12933 # If you have `file' or equivalent on your system and you're not sure
12934 # whether `pass_all' will *always* work, you probably want this one.
12938 lt_cv_deplibs_check_method=pass_all
12942 lt_cv_deplibs_check_method=pass_all
12946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12947 lt_cv_file_magic_cmd='/usr/bin/file -L'
12948 lt_cv_file_magic_test_file=/shlib/libc.so
12952 # func_win32_libid is a shell function defined in ltmain.sh
12953 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12954 lt_cv_file_magic_cmd='func_win32_libid'
12958 # Base MSYS/MinGW do not provide the 'file' command needed by
12959 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12960 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12961 lt_cv_file_magic_cmd='$OBJDUMP -f'
12964 darwin* | rhapsody*)
12965 lt_cv_deplibs_check_method=pass_all
12968 freebsd* | kfreebsd*-gnu | dragonfly*)
12969 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12972 # Not sure whether the presence of OpenBSD here was a mistake.
12973 # Let's accept both of them until this is cleared up.
12974 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12975 lt_cv_file_magic_cmd=/usr/bin/file
12976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12980 lt_cv_deplibs_check_method=pass_all
12985 lt_cv_deplibs_check_method=pass_all
12988 hpux10.20* | hpux11*)
12989 lt_cv_file_magic_cmd=/usr/bin/file
12992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12993 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12996 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]'
12997 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13001 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13007 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13011 irix5* | irix6* | nonstopux*)
13013 *-32|*"-32 ") libmagic=32-bit;;
13014 *-n32|*"-n32 ") libmagic=N32;;
13015 *-64|*"-64 ") libmagic=64-bit;;
13016 *) libmagic=never-match;;
13018 lt_cv_deplibs_check_method=pass_all
13021 # This must be Linux ELF.
13023 lt_cv_deplibs_check_method=pass_all
13027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13036 lt_cv_file_magic_cmd=/usr/bin/file
13037 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13041 lt_cv_deplibs_check_method=unknown
13045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13052 osf3* | osf4* | osf5*)
13053 lt_cv_deplibs_check_method=pass_all
13057 lt_cv_deplibs_check_method=pass_all
13061 case $host_vendor in
13063 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]'
13064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13067 lt_cv_deplibs_check_method=pass_all
13070 lt_cv_file_magic_cmd='/bin/file'
13071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13074 lt_cv_file_magic_cmd='/bin/file'
13075 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13076 lt_cv_file_magic_test_file=/lib/libc.so
13079 lt_cv_deplibs_check_method=pass_all
13082 lt_cv_deplibs_check_method=pass_all
13087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13088 lt_cv_deplibs_check_method=pass_all
13093 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13094 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13095 file_magic_cmd=$lt_cv_file_magic_cmd
13096 deplibs_check_method=$lt_cv_deplibs_check_method
13097 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13101 # If no C compiler was specified, use CC.
13104 # If no C compiler flags were specified, use CFLAGS.
13105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13107 # Allow CC to be a program name with arguments.
13110 # Check whether --enable-libtool-lock was given.
13111 if test "${enable_libtool_lock+set}" = set; then
13112 enableval=$enable_libtool_lock;
13115 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13117 # Some flags need to be propagated to the compiler or linker for good
13121 # Find out which ABI we are using.
13122 echo 'int i;' > conftest.$ac_ext
13123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124 (eval $ac_compile) 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; then
13128 case `/usr/bin/file conftest.$ac_objext` in
13130 HPUX_IA64_MODE="32"
13133 HPUX_IA64_MODE="64"
13140 # Find out which ABI we are using.
13141 echo '#line 13141 "configure"' > conftest.$ac_ext
13142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13143 (eval $ac_compile) 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; then
13147 if test "$lt_cv_prog_gnu_ld" = yes; then
13148 case `/usr/bin/file conftest.$ac_objext` in
13150 LD="${LD-ld} -melf32bsmip"
13153 LD="${LD-ld} -melf32bmipn32"
13156 LD="${LD-ld} -melf64bmip"
13160 case `/usr/bin/file conftest.$ac_objext` in
13176 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13177 # Find out which ABI we are using.
13178 echo 'int i;' > conftest.$ac_ext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13180 (eval $ac_compile) 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; then
13184 case `/usr/bin/file conftest.o` in
13188 LD="${LD-ld} -m elf_i386"
13190 ppc64-*linux*|powerpc64-*linux*)
13191 LD="${LD-ld} -m elf32ppclinux"
13194 LD="${LD-ld} -m elf_s390"
13197 LD="${LD-ld} -m elf32_sparc"
13204 LD="${LD-ld} -m elf_x86_64"
13206 ppc*-*linux*|powerpc*-*linux*)
13207 LD="${LD-ld} -m elf64ppc"
13210 LD="${LD-ld} -m elf64_s390"
13213 LD="${LD-ld} -m elf64_sparc"
13223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13224 SAVE_CFLAGS="$CFLAGS"
13225 CFLAGS="$CFLAGS -belf"
13226 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13227 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13228 if test "${lt_cv_cc_needs_belf+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 ac_cpp='$CPP $CPPFLAGS'
13233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237 cat >conftest.$ac_ext <<_ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13252 rm -f conftest.$ac_objext conftest$ac_exeext
13253 if { (ac_try="$ac_link"
13254 case "(($ac_try" in
13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259 (eval "$ac_link") 2>conftest.er1
13261 grep -v '^ *+' conftest.er1 >conftest.err
13263 cat conftest.err >&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } &&
13266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13267 { (case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_try") 2>&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; } &&
13276 { ac_try='test -s conftest$ac_exeext'
13277 { (case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_try") 2>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 lt_cv_cc_needs_belf=yes
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13291 lt_cv_cc_needs_belf=no
13294 rm -f core conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
13297 ac_cpp='$CPP $CPPFLAGS'
13298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13303 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13304 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13305 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13306 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13307 CFLAGS="$SAVE_CFLAGS"
13311 # Find out which ABI we are using.
13312 echo 'int i;' > conftest.$ac_ext
13313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13314 (eval $ac_compile) 2>&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; then
13318 case `/usr/bin/file conftest.o` in
13320 case $lt_cv_prog_gnu_ld in
13321 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13322 *) LD="${LD-ld} -64" ;;
13333 need_locks="$enable_libtool_lock"
13338 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13339 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13340 (test "X$CXX" != "Xg++"))) ; then
13342 ac_cpp='$CXXCPP $CPPFLAGS'
13343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13346 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13347 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13348 if test -z "$CXXCPP"; then
13349 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13352 # Double quotes because CXXCPP needs to be expanded
13353 for CXXCPP in "$CXX -E" "/lib/cpp"
13355 ac_preproc_ok=false
13356 for ac_cxx_preproc_warn_flag in '' yes
13358 # Use a header file that comes with gcc, so configuring glibc
13359 # with a fresh cross-compiler works.
13360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13361 # <limits.h> exists even on freestanding compilers.
13362 # On the NeXT, cc -E runs the code through the compiler's parser,
13363 # not just through cpp. "Syntax error" is here to catch this case.
13364 cat >conftest.$ac_ext <<_ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13371 # include <limits.h>
13373 # include <assert.h>
13377 if { (ac_try="$ac_cpp conftest.$ac_ext"
13378 case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13385 grep -v '^ *+' conftest.er1 >conftest.err
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } >/dev/null; then
13390 if test -s conftest.err; then
13391 ac_cpp_err=$ac_cxx_preproc_warn_flag
13392 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13399 if test -z "$ac_cpp_err"; then
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 # Broken: fails on valid input.
13409 rm -f conftest.err conftest.$ac_ext
13411 # OK, works on sane cases. Now check whether nonexistent headers
13412 # can be detected and how.
13413 cat >conftest.$ac_ext <<_ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 #include <ac_nonexistent.h>
13421 if { (ac_try="$ac_cpp conftest.$ac_ext"
13422 case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13429 grep -v '^ *+' conftest.er1 >conftest.err
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } >/dev/null; then
13434 if test -s conftest.err; then
13435 ac_cpp_err=$ac_cxx_preproc_warn_flag
13436 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13443 if test -z "$ac_cpp_err"; then
13444 # Broken: success on invalid input.
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 # Passes both tests.
13455 rm -f conftest.err conftest.$ac_ext
13458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13459 rm -f conftest.err conftest.$ac_ext
13460 if $ac_preproc_ok; then
13465 ac_cv_prog_CXXCPP=$CXXCPP
13468 CXXCPP=$ac_cv_prog_CXXCPP
13470 ac_cv_prog_CXXCPP=$CXXCPP
13472 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13473 echo "${ECHO_T}$CXXCPP" >&6; }
13474 ac_preproc_ok=false
13475 for ac_cxx_preproc_warn_flag in '' yes
13477 # Use a header file that comes with gcc, so configuring glibc
13478 # with a fresh cross-compiler works.
13479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13480 # <limits.h> exists even on freestanding compilers.
13481 # On the NeXT, cc -E runs the code through the compiler's parser,
13482 # not just through cpp. "Syntax error" is here to catch this case.
13483 cat >conftest.$ac_ext <<_ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13490 # include <limits.h>
13492 # include <assert.h>
13496 if { (ac_try="$ac_cpp conftest.$ac_ext"
13497 case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13504 grep -v '^ *+' conftest.er1 >conftest.err
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } >/dev/null; then
13509 if test -s conftest.err; then
13510 ac_cpp_err=$ac_cxx_preproc_warn_flag
13511 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13518 if test -z "$ac_cpp_err"; then
13521 echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13524 # Broken: fails on valid input.
13528 rm -f conftest.err conftest.$ac_ext
13530 # OK, works on sane cases. Now check whether nonexistent headers
13531 # can be detected and how.
13532 cat >conftest.$ac_ext <<_ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13538 #include <ac_nonexistent.h>
13540 if { (ac_try="$ac_cpp conftest.$ac_ext"
13541 case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13548 grep -v '^ *+' conftest.er1 >conftest.err
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } >/dev/null; then
13553 if test -s conftest.err; then
13554 ac_cpp_err=$ac_cxx_preproc_warn_flag
13555 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13562 if test -z "$ac_cpp_err"; then
13563 # Broken: success on invalid input.
13566 echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13569 # Passes both tests.
13574 rm -f conftest.err conftest.$ac_ext
13577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13578 rm -f conftest.err conftest.$ac_ext
13579 if $ac_preproc_ok; then
13582 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13583 See \`config.log' for more details." >&5
13584 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13585 See \`config.log' for more details." >&2;}
13586 { (exit 1); exit 1; }; }
13590 ac_cpp='$CXXCPP $CPPFLAGS'
13591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13599 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13600 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13601 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13602 if test -n "$ac_tool_prefix"; then
13603 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
13605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13609 if test "${ac_cv_prog_F77+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 if test -n "$F77"; then
13613 ac_cv_prog_F77="$F77" # Let the user override the test.
13615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616 for as_dir in $PATH
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13622 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13632 F77=$ac_cv_prog_F77
13633 if test -n "$F77"; then
13634 { echo "$as_me:$LINENO: result: $F77" >&5
13635 echo "${ECHO_T}$F77" >&6; }
13637 { echo "$as_me:$LINENO: result: no" >&5
13638 echo "${ECHO_T}no" >&6; }
13642 test -n "$F77" && break
13645 if test -z "$F77"; then
13647 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
13649 # Extract the first word of "$ac_prog", so it can be a program name with args.
13650 set dummy $ac_prog; ac_word=$2
13651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13653 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 if test -n "$ac_ct_F77"; then
13657 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
13665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13666 ac_cv_prog_ac_ct_F77="$ac_prog"
13667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13677 if test -n "$ac_ct_F77"; then
13678 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13679 echo "${ECHO_T}$ac_ct_F77" >&6; }
13681 { echo "$as_me:$LINENO: result: no" >&5
13682 echo "${ECHO_T}no" >&6; }
13686 test -n "$ac_ct_F77" && break
13689 if test "x$ac_ct_F77" = x; then
13692 case $cross_compiling:$ac_tool_warned in
13694 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13695 whose name does not start with the host triplet. If you think this
13696 configuration is useful to you, please write to autoconf@gnu.org." >&5
13697 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13698 whose name does not start with the host triplet. If you think this
13699 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13700 ac_tool_warned=yes ;;
13707 # Provide some information about the compiler.
13708 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13709 ac_compiler=`set X $ac_compile; echo $2`
13710 { (ac_try="$ac_compiler --version >&5"
13711 case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_compiler --version >&5") 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }
13720 { (ac_try="$ac_compiler -v >&5"
13721 case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_compiler -v >&5") 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }
13730 { (ac_try="$ac_compiler -V >&5"
13731 case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_compiler -V >&5") 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }
13742 # If we don't use `.F' as extension, the preprocessor is not run on the
13743 # input file. (Note that this only needs to work for GNU compilers.)
13744 ac_save_ext=$ac_ext
13746 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13747 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13748 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 cat >conftest.$ac_ext <<_ACEOF
13759 rm -f conftest.$ac_objext
13760 if { (ac_try="$ac_compile"
13761 case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_compile") 2>conftest.er1
13768 grep -v '^ *+' conftest.er1 >conftest.err
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13774 { (case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_try") 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; } &&
13783 { ac_try='test -s conftest.$ac_objext'
13784 { (case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789 (eval "$ac_try") 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
13793 ac_compiler_gnu=yes
13795 echo "$as_me: failed program was:" >&5
13796 sed 's/^/| /' conftest.$ac_ext >&5
13801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13805 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13806 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13807 ac_ext=$ac_save_ext
13808 ac_test_FFLAGS=${FFLAGS+set}
13809 ac_save_FFLAGS=$FFLAGS
13811 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13812 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13813 if test "${ac_cv_prog_f77_g+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 cat >conftest.$ac_ext <<_ACEOF
13822 rm -f conftest.$ac_objext
13823 if { (ac_try="$ac_compile"
13824 case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_compile") 2>conftest.er1
13831 grep -v '^ *+' conftest.er1 >conftest.err
13833 cat conftest.err >&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13837 { (case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_try") 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest.$ac_objext'
13847 { (case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852 (eval "$ac_try") 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 ac_cv_prog_f77_g=yes
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 ac_cv_prog_f77_g=no
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13867 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13868 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13869 if test "$ac_test_FFLAGS" = set; then
13870 FFLAGS=$ac_save_FFLAGS
13871 elif test $ac_cv_prog_f77_g = yes; then
13872 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13878 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13885 G77=`test $ac_compiler_gnu = yes && echo yes`
13887 ac_cpp='$CPP $CPPFLAGS'
13888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13894 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13896 # find the maximum length of command line arguments
13897 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13898 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13899 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 # On DJGPP, this test can blow up pretty badly due to problems in libc
13908 # (any single argument exceeding 2000 bytes causes a buffer overrun
13909 # during glob expansion). Even if it were fixed, the result of this
13910 # check would be larger than it should be.
13911 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13915 # Under GNU Hurd, this test is not required because there is
13916 # no limit to the length of command line arguments.
13917 # Libtool will interpret -1 as no limit whatsoever
13918 lt_cv_sys_max_cmd_len=-1;
13922 # On Win9x/ME, this test blows up -- it succeeds, but takes
13923 # about 5 minutes as the teststring grows exponentially.
13924 # Worse, since 9x/ME are not pre-emptively multitasking,
13925 # you end up with a "frozen" computer, even though with patience
13926 # the test eventually succeeds (with a max line length of 256k).
13927 # Instead, let's just punt: use the minimum linelength reported by
13928 # all of the supported platforms: 8192 (on NT/2K/XP).
13929 lt_cv_sys_max_cmd_len=8192;
13933 # On AmigaOS with pdksh, this test takes hours, literally.
13934 # So we just punt and use a minimum line length of 8192.
13935 lt_cv_sys_max_cmd_len=8192;
13938 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13939 # This has been around since 386BSD, at least. Likely further.
13940 if test -x /sbin/sysctl; then
13941 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13942 elif test -x /usr/sbin/sysctl; then
13943 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13945 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13947 # And add a safety zone
13948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13953 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13954 lt_cv_sys_max_cmd_len=196608
13958 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13959 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13960 # nice to cause kernel panics so lets avoid the loop below.
13961 # First set a reasonable default.
13962 lt_cv_sys_max_cmd_len=16384
13964 if test -x /sbin/sysconfig; then
13965 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13966 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13971 lt_cv_sys_max_cmd_len=102400
13973 sysv5* | sco5v6* | sysv4.2uw2*)
13974 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13975 if test -n "$kargmax"; then
13976 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13978 lt_cv_sys_max_cmd_len=32768
13982 # If test is not a shell built-in, we'll probably end up computing a
13983 # maximum length that is only half of the actual maximum length, but
13985 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13986 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13987 = "XX$teststring") >/dev/null 2>&1 &&
13988 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13989 lt_cv_sys_max_cmd_len=$new_result &&
13990 test $i != 17 # 1/2 MB should be enough
13993 teststring=$teststring$teststring
13996 # Add a significant safety factor because C++ compilers can tack on massive
13997 # amounts of additional arguments before passing them to the linker.
13998 # It appears as though 1/2 is a usable value.
13999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14005 if test -n $lt_cv_sys_max_cmd_len ; then
14006 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14007 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14009 { echo "$as_me:$LINENO: result: none" >&5
14010 echo "${ECHO_T}none" >&6; }
14016 # Check for command to grab the raw symbol name followed by C symbol from nm.
14017 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14018 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14019 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 # These are sane defaults that work on at least a few old systems.
14024 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14026 # Character class describing NM global symbol codes.
14027 symcode='[BCDEGRST]'
14029 # Regexp to match symbols that can be accessed directly from C.
14030 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14032 # Transform an extracted symbol line into a proper C declaration
14033 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14035 # Transform an extracted symbol line into symbol name and symbol address
14036 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'"
14038 # Define system-specific variables.
14043 cygwin* | mingw* | pw32*)
14044 symcode='[ABCDGISTW]'
14046 hpux*) # Its linker distinguishes data from code symbols
14047 if test "$host_cpu" = ia64; then
14048 symcode='[ABCDEGRST]'
14050 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14051 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'"
14054 if test "$host_cpu" = ia64; then
14055 symcode='[ABCDGIRSTW]'
14056 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14057 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'"
14060 irix* | nonstopux*)
14061 symcode='[BCDEGRST]'
14064 symcode='[BCDEGQRST]'
14075 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14083 # Handle CRLF in mingw tool chain
14087 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14091 # If we're using GNU nm, then use its standard symbol codes.
14092 case `$NM -V 2>&1` in
14093 *GNU* | *'with BFD'*)
14094 symcode='[ABCDGIRSTW]' ;;
14097 # Try without a prefix undercore, then with it.
14098 for ac_symprfx in "" "_"; do
14100 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14101 symxfrm="\\1 $ac_symprfx\\2 \\2"
14103 # Write the raw and C identifiers.
14104 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14106 # Check to see that the pipe works correctly.
14110 cat > conftest.$ac_ext <<EOF
14115 void nm_test_func(){}
14119 int main(){nm_test_var='a';nm_test_func();return(0);}
14122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123 (eval $ac_compile) 2>&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; then
14127 # Now try to grab the symbols.
14129 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14130 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } && test -s "$nlist"; then
14134 # Try sorting and uniquifying the output.
14135 if sort "$nlist" | uniq > "$nlist"T; then
14136 mv -f "$nlist"T "$nlist"
14141 # Make sure that we snagged all the symbols we need.
14142 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14143 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14144 cat <<EOF > conftest.$ac_ext
14150 # Now generate the symbol file.
14151 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14153 cat <<EOF >> conftest.$ac_ext
14154 #if defined (__STDC__) && __STDC__
14155 # define lt_ptr_t void *
14157 # define lt_ptr_t char *
14161 /* The mapping between symbol names and symbols. */
14166 lt_preloaded_symbols[] =
14169 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14170 cat <<\EOF >> conftest.$ac_ext
14178 # Now try linking the two files.
14179 mv conftest.$ac_objext conftstm.$ac_objext
14180 lt_save_LIBS="$LIBS"
14181 lt_save_CFLAGS="$CFLAGS"
14182 LIBS="conftstm.$ac_objext"
14183 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14185 (eval $ac_link) 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14191 LIBS="$lt_save_LIBS"
14192 CFLAGS="$lt_save_CFLAGS"
14194 echo "cannot find nm_test_func in $nlist" >&5
14197 echo "cannot find nm_test_var in $nlist" >&5
14200 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14203 echo "$progname: failed program was:" >&5
14204 cat conftest.$ac_ext >&5
14206 rm -f conftest* conftst*
14208 # Do not use the global_symbol_pipe unless it works.
14209 if test "$pipe_works" = yes; then
14212 lt_cv_sys_global_symbol_pipe=
14218 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14219 lt_cv_sys_global_symbol_to_cdecl=
14221 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14222 { echo "$as_me:$LINENO: result: failed" >&5
14223 echo "${ECHO_T}failed" >&6; }
14225 { echo "$as_me:$LINENO: result: ok" >&5
14226 echo "${ECHO_T}ok" >&6; }
14229 { echo "$as_me:$LINENO: checking for objdir" >&5
14230 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14231 if test "${lt_cv_objdir+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 rm -f .libs 2>/dev/null
14235 mkdir .libs 2>/dev/null
14236 if test -d .libs; then
14239 # MS-DOS does not allow filenames that begin with a dot.
14242 rmdir .libs 2>/dev/null
14244 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14245 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14246 objdir=$lt_cv_objdir
14254 # AIX sometimes has problems with the GCC collect2 program. For some
14255 # reason, if we set the COLLECT_NAMES environment variable, the problems
14256 # vanish in a puff of smoke.
14257 if test "X${COLLECT_NAMES+set}" != Xset; then
14259 export COLLECT_NAMES
14264 # Sed substitution that helps us do robust quoting. It backslashifies
14265 # metacharacters that are still active within double-quoted strings.
14266 Xsed='sed -e 1s/^X//'
14267 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14269 # Same as above, but do not quote variable references.
14270 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14272 # Sed substitution to delay expansion of an escaped shell variable in a
14273 # double_quote_subst'ed string.
14274 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14276 # Sed substitution to avoid accidental globbing in evaled expressions
14277 no_glob_subst='s/\*/\\\*/g'
14282 # Global variables:
14283 default_ofile=mklib
14284 can_build_shared=yes
14286 # All known linkers require a `.a' archive for static linking (except MSVC,
14287 # which needs '.lib').
14289 ltmain="$ac_aux_dir/ltmain.sh"
14290 ofile="$default_ofile"
14291 with_gnu_ld="$lt_cv_prog_gnu_ld"
14293 if test -n "$ac_tool_prefix"; then
14294 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14295 set dummy ${ac_tool_prefix}ar; ac_word=$2
14296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14298 if test "${ac_cv_prog_AR+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 if test -n "$AR"; then
14302 ac_cv_prog_AR="$AR" # Let the user override the test.
14304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14305 for as_dir in $PATH
14308 test -z "$as_dir" && as_dir=.
14309 for ac_exec_ext in '' $ac_executable_extensions; do
14310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14311 ac_cv_prog_AR="${ac_tool_prefix}ar"
14312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14322 if test -n "$AR"; then
14323 { echo "$as_me:$LINENO: result: $AR" >&5
14324 echo "${ECHO_T}$AR" >&6; }
14326 { echo "$as_me:$LINENO: result: no" >&5
14327 echo "${ECHO_T}no" >&6; }
14332 if test -z "$ac_cv_prog_AR"; then
14334 # Extract the first word of "ar", so it can be a program name with args.
14335 set dummy ar; ac_word=$2
14336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14338 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14341 if test -n "$ac_ct_AR"; then
14342 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14345 for as_dir in $PATH
14348 test -z "$as_dir" && as_dir=.
14349 for ac_exec_ext in '' $ac_executable_extensions; do
14350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14351 ac_cv_prog_ac_ct_AR="ar"
14352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14361 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14362 if test -n "$ac_ct_AR"; then
14363 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14364 echo "${ECHO_T}$ac_ct_AR" >&6; }
14366 { echo "$as_me:$LINENO: result: no" >&5
14367 echo "${ECHO_T}no" >&6; }
14370 if test "x$ac_ct_AR" = x; then
14373 case $cross_compiling:$ac_tool_warned in
14375 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14376 whose name does not start with the host triplet. If you think this
14377 configuration is useful to you, please write to autoconf@gnu.org." >&5
14378 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14379 whose name does not start with the host triplet. If you think this
14380 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14381 ac_tool_warned=yes ;;
14386 AR="$ac_cv_prog_AR"
14389 if test -n "$ac_tool_prefix"; then
14390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14394 if test "${ac_cv_prog_RANLIB+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 if test -n "$RANLIB"; then
14398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14401 for as_dir in $PATH
14404 test -z "$as_dir" && as_dir=.
14405 for ac_exec_ext in '' $ac_executable_extensions; do
14406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14417 RANLIB=$ac_cv_prog_RANLIB
14418 if test -n "$RANLIB"; then
14419 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14420 echo "${ECHO_T}$RANLIB" >&6; }
14422 { echo "$as_me:$LINENO: result: no" >&5
14423 echo "${ECHO_T}no" >&6; }
14428 if test -z "$ac_cv_prog_RANLIB"; then
14429 ac_ct_RANLIB=$RANLIB
14430 # Extract the first word of "ranlib", so it can be a program name with args.
14431 set dummy ranlib; ac_word=$2
14432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14434 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 if test -n "$ac_ct_RANLIB"; then
14438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14447 ac_cv_prog_ac_ct_RANLIB="ranlib"
14448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14458 if test -n "$ac_ct_RANLIB"; then
14459 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14460 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14462 { echo "$as_me:$LINENO: result: no" >&5
14463 echo "${ECHO_T}no" >&6; }
14466 if test "x$ac_ct_RANLIB" = x; then
14469 case $cross_compiling:$ac_tool_warned in
14471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14472 whose name does not start with the host triplet. If you think this
14473 configuration is useful to you, please write to autoconf@gnu.org." >&5
14474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14475 whose name does not start with the host triplet. If you think this
14476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14477 ac_tool_warned=yes ;;
14479 RANLIB=$ac_ct_RANLIB
14482 RANLIB="$ac_cv_prog_RANLIB"
14485 if test -n "$ac_tool_prefix"; then
14486 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14487 set dummy ${ac_tool_prefix}strip; ac_word=$2
14488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14490 if test "${ac_cv_prog_STRIP+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 if test -n "$STRIP"; then
14494 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14497 for as_dir in $PATH
14500 test -z "$as_dir" && as_dir=.
14501 for ac_exec_ext in '' $ac_executable_extensions; do
14502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14503 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14513 STRIP=$ac_cv_prog_STRIP
14514 if test -n "$STRIP"; then
14515 { echo "$as_me:$LINENO: result: $STRIP" >&5
14516 echo "${ECHO_T}$STRIP" >&6; }
14518 { echo "$as_me:$LINENO: result: no" >&5
14519 echo "${ECHO_T}no" >&6; }
14524 if test -z "$ac_cv_prog_STRIP"; then
14526 # Extract the first word of "strip", so it can be a program name with args.
14527 set dummy strip; ac_word=$2
14528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14530 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14533 if test -n "$ac_ct_STRIP"; then
14534 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14537 for as_dir in $PATH
14540 test -z "$as_dir" && as_dir=.
14541 for ac_exec_ext in '' $ac_executable_extensions; do
14542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14543 ac_cv_prog_ac_ct_STRIP="strip"
14544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14554 if test -n "$ac_ct_STRIP"; then
14555 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14556 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14558 { echo "$as_me:$LINENO: result: no" >&5
14559 echo "${ECHO_T}no" >&6; }
14562 if test "x$ac_ct_STRIP" = x; then
14565 case $cross_compiling:$ac_tool_warned in
14567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14568 whose name does not start with the host triplet. If you think this
14569 configuration is useful to you, please write to autoconf@gnu.org." >&5
14570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14571 whose name does not start with the host triplet. If you think this
14572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14573 ac_tool_warned=yes ;;
14578 STRIP="$ac_cv_prog_STRIP"
14583 old_CFLAGS="$CFLAGS"
14585 # Set sane defaults for various variables
14586 test -z "$AR" && AR=ar
14587 test -z "$AR_FLAGS" && AR_FLAGS=cru
14588 test -z "$AS" && AS=as
14589 test -z "$CC" && CC=cc
14590 test -z "$LTCC" && LTCC=$CC
14591 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14592 test -z "$DLLTOOL" && DLLTOOL=dlltool
14593 test -z "$LD" && LD=ld
14594 test -z "$LN_S" && LN_S="ln -s"
14595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14596 test -z "$NM" && NM=nm
14597 test -z "$SED" && SED=sed
14598 test -z "$OBJDUMP" && OBJDUMP=objdump
14599 test -z "$RANLIB" && RANLIB=:
14600 test -z "$STRIP" && STRIP=:
14601 test -z "$ac_objext" && ac_objext=o
14603 # Determine commands to create old-style static archives.
14604 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14605 old_postinstall_cmds='chmod 644 $oldlib'
14606 old_postuninstall_cmds=
14608 if test -n "$RANLIB"; then
14611 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14614 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14617 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14620 for cc_temp in $compiler""; do
14622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14628 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14631 # Only perform the check for file, if the check method requires it
14632 case $deplibs_check_method in
14634 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14635 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14636 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14637 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14645 lt_save_MAGIC_CMD="$MAGIC_CMD"
14646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14648 for ac_dir in $ac_dummy; do
14650 test -z "$ac_dir" && ac_dir=.
14651 if test -f $ac_dir/${ac_tool_prefix}file; then
14652 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14653 if test -n "$file_magic_test_file"; then
14654 case $deplibs_check_method in
14656 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14659 $EGREP "$file_magic_regex" > /dev/null; then
14664 *** Warning: the command libtool uses to detect shared libraries,
14665 *** $file_magic_cmd, produces output that libtool cannot recognize.
14666 *** The result is that libtool may fail to recognize shared libraries
14667 *** as such. This will affect the creation of libtool libraries that
14668 *** depend on shared libraries, but programs linked with such libtool
14669 *** libraries will work regardless of this problem. Nevertheless, you
14670 *** may want to report the problem to your system manager and/or to
14671 *** bug-libtool@gnu.org
14681 MAGIC_CMD="$lt_save_MAGIC_CMD"
14686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14687 if test -n "$MAGIC_CMD"; then
14688 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14689 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14691 { echo "$as_me:$LINENO: result: no" >&5
14692 echo "${ECHO_T}no" >&6; }
14695 if test -z "$lt_cv_path_MAGIC_CMD"; then
14696 if test -n "$ac_tool_prefix"; then
14697 { echo "$as_me:$LINENO: checking for file" >&5
14698 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14699 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14707 lt_save_MAGIC_CMD="$MAGIC_CMD"
14708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14710 for ac_dir in $ac_dummy; do
14712 test -z "$ac_dir" && ac_dir=.
14713 if test -f $ac_dir/file; then
14714 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14715 if test -n "$file_magic_test_file"; then
14716 case $deplibs_check_method in
14718 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14721 $EGREP "$file_magic_regex" > /dev/null; then
14726 *** Warning: the command libtool uses to detect shared libraries,
14727 *** $file_magic_cmd, produces output that libtool cannot recognize.
14728 *** The result is that libtool may fail to recognize shared libraries
14729 *** as such. This will affect the creation of libtool libraries that
14730 *** depend on shared libraries, but programs linked with such libtool
14731 *** libraries will work regardless of this problem. Nevertheless, you
14732 *** may want to report the problem to your system manager and/or to
14733 *** bug-libtool@gnu.org
14743 MAGIC_CMD="$lt_save_MAGIC_CMD"
14748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14749 if test -n "$MAGIC_CMD"; then
14750 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14751 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14753 { echo "$as_me:$LINENO: result: no" >&5
14754 echo "${ECHO_T}no" >&6; }
14767 enable_win32_dll=no
14769 # Check whether --enable-libtool-lock was given.
14770 if test "${enable_libtool_lock+set}" = set; then
14771 enableval=$enable_libtool_lock;
14774 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14777 # Check whether --with-pic was given.
14778 if test "${with_pic+set}" = set; then
14779 withval=$with_pic; pic_mode="$withval"
14784 test -z "$pic_mode" && pic_mode=default
14786 # Use C for the default configuration in the libtool script
14790 ac_cpp='$CPP $CPPFLAGS'
14791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14796 # Source file extension for C test sources.
14799 # Object file extension for compiled C test sources.
14803 # Code to be used in simple compile tests
14804 lt_simple_compile_test_code="int some_variable = 0;\n"
14806 # Code to be used in simple link tests
14807 lt_simple_link_test_code='int main(){return(0);}\n'
14810 # If no C compiler was specified, use CC.
14813 # If no C compiler flags were specified, use CFLAGS.
14814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14816 # Allow CC to be a program name with arguments.
14820 # save warnings/boilerplate of simple test code
14821 ac_outfile=conftest.$ac_objext
14822 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14823 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14824 _lt_compiler_boilerplate=`cat conftest.err`
14827 ac_outfile=conftest.$ac_objext
14828 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14829 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14830 _lt_linker_boilerplate=`cat conftest.err`
14835 lt_prog_compiler_no_builtin_flag=
14837 if test "$GCC" = yes; then
14838 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14841 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14842 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14843 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14846 lt_cv_prog_compiler_rtti_exceptions=no
14847 ac_outfile=conftest.$ac_objext
14848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14849 lt_compiler_flag="-fno-rtti -fno-exceptions"
14850 # Insert the option either (1) after the last *FLAGS variable, or
14851 # (2) before a word containing "conftest.", or (3) at the end.
14852 # Note that $ac_compile itself does not contain backslashes and begins
14853 # with a dollar sign (not a hyphen), so the echo should work correctly.
14854 # The option is referenced via a variable to avoid confusing sed.
14855 lt_compile=`echo "$ac_compile" | $SED \
14856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14858 -e 's:$: $lt_compiler_flag:'`
14859 (eval echo "\"\$as_me:14859: $lt_compile\"" >&5)
14860 (eval "$lt_compile" 2>conftest.err)
14862 cat conftest.err >&5
14863 echo "$as_me:14863: \$? = $ac_status" >&5
14864 if (exit $ac_status) && test -s "$ac_outfile"; then
14865 # The compiler can only warn and ignore the option if not recognized
14866 # So say no if there are warnings other than the usual output.
14867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14870 lt_cv_prog_compiler_rtti_exceptions=yes
14876 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14877 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14879 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14880 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14887 lt_prog_compiler_wl=
14888 lt_prog_compiler_pic=
14889 lt_prog_compiler_static=
14891 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14892 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14894 if test "$GCC" = yes; then
14895 lt_prog_compiler_wl='-Wl,'
14896 lt_prog_compiler_static='-static'
14900 # All AIX code is PIC.
14901 if test "$host_cpu" = ia64; then
14902 # AIX 5 now supports IA64 processor
14903 lt_prog_compiler_static='-Bstatic'
14908 # FIXME: we need at least 68020 code to build shared libraries, but
14909 # adding the `-m68020' flag to GCC prevents building anything better,
14911 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14914 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14915 # PIC is the default for these OSes.
14918 mingw* | pw32* | os2*)
14919 # This hack is so that the source file can tell whether it is being
14920 # built for inclusion in a dll (and should export symbols for example).
14921 lt_prog_compiler_pic='-DDLL_EXPORT'
14924 darwin* | rhapsody*)
14925 # PIC is the default on this platform
14926 # Common symbols not allowed in MH_DYLIB files
14927 lt_prog_compiler_pic='-fno-common'
14931 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14932 # Instead, we relocate shared libraries at runtime.
14936 # Just because we use GCC doesn't mean we suddenly get shared libraries
14937 # on systems that don't support them.
14938 lt_prog_compiler_can_build_shared=no
14943 if test -d /usr/nec; then
14944 lt_prog_compiler_pic=-Kconform_pic
14949 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14950 # not for PA HP-UX.
14956 lt_prog_compiler_pic='-fPIC'
14962 lt_prog_compiler_pic='-fPIC'
14966 # PORTME Check for flag to pass linker flags through the system compiler.
14969 lt_prog_compiler_wl='-Wl,'
14970 if test "$host_cpu" = ia64; then
14971 # AIX 5 now supports IA64 processor
14972 lt_prog_compiler_static='-Bstatic'
14974 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14978 # PIC is the default on this platform
14979 # Common symbols not allowed in MH_DYLIB files
14980 case $cc_basename in
14982 lt_prog_compiler_pic='-qnocommon'
14983 lt_prog_compiler_wl='-Wl,'
14988 mingw* | pw32* | os2*)
14989 # This hack is so that the source file can tell whether it is being
14990 # built for inclusion in a dll (and should export symbols for example).
14991 lt_prog_compiler_pic='-DDLL_EXPORT'
14994 hpux9* | hpux10* | hpux11*)
14995 lt_prog_compiler_wl='-Wl,'
14996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14997 # not for PA HP-UX.
15003 lt_prog_compiler_pic='+Z'
15006 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15007 lt_prog_compiler_static='${wl}-a ${wl}archive'
15010 irix5* | irix6* | nonstopux*)
15011 lt_prog_compiler_wl='-Wl,'
15012 # PIC (with -KPIC) is the default.
15013 lt_prog_compiler_static='-non_shared'
15017 lt_prog_compiler_pic='-KPIC'
15018 lt_prog_compiler_static='-Bstatic'
15022 case $cc_basename in
15024 lt_prog_compiler_wl='-Wl,'
15025 lt_prog_compiler_pic='-KPIC'
15026 lt_prog_compiler_static='-static'
15028 pgcc* | pgf77* | pgf90* | pgf95*)
15029 # Portland Group compilers (*not* the Pentium gcc compiler,
15030 # which looks to be a dead project)
15031 lt_prog_compiler_wl='-Wl,'
15032 lt_prog_compiler_pic='-fpic'
15033 lt_prog_compiler_static='-Bstatic'
15036 lt_prog_compiler_wl='-Wl,'
15037 # All Alpha code is PIC.
15038 lt_prog_compiler_static='-non_shared'
15043 osf3* | osf4* | osf5*)
15044 lt_prog_compiler_wl='-Wl,'
15045 # All OSF/1 code is PIC.
15046 lt_prog_compiler_static='-non_shared'
15050 lt_prog_compiler_pic='-KPIC'
15051 lt_prog_compiler_static='-Bstatic'
15052 case $cc_basename in
15053 f77* | f90* | f95*)
15054 lt_prog_compiler_wl='-Qoption ld ';;
15056 lt_prog_compiler_wl='-Wl,';;
15061 lt_prog_compiler_wl='-Qoption ld '
15062 lt_prog_compiler_pic='-PIC'
15063 lt_prog_compiler_static='-Bstatic'
15066 sysv4 | sysv4.2uw2* | sysv4.3*)
15067 lt_prog_compiler_wl='-Wl,'
15068 lt_prog_compiler_pic='-KPIC'
15069 lt_prog_compiler_static='-Bstatic'
15073 if test -d /usr/nec ;then
15074 lt_prog_compiler_pic='-Kconform_pic'
15075 lt_prog_compiler_static='-Bstatic'
15079 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15080 lt_prog_compiler_wl='-Wl,'
15081 lt_prog_compiler_pic='-KPIC'
15082 lt_prog_compiler_static='-Bstatic'
15086 lt_prog_compiler_wl='-Wl,'
15087 lt_prog_compiler_can_build_shared=no
15091 lt_prog_compiler_pic='-pic'
15092 lt_prog_compiler_static='-Bstatic'
15096 lt_prog_compiler_can_build_shared=no
15101 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15102 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15105 # Check to make sure the PIC flag actually works.
15107 if test -n "$lt_prog_compiler_pic"; then
15109 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15110 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15111 if test "${lt_prog_compiler_pic_works+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 lt_prog_compiler_pic_works=no
15115 ac_outfile=conftest.$ac_objext
15116 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15117 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15118 # Insert the option either (1) after the last *FLAGS variable, or
15119 # (2) before a word containing "conftest.", or (3) at the end.
15120 # Note that $ac_compile itself does not contain backslashes and begins
15121 # with a dollar sign (not a hyphen), so the echo should work correctly.
15122 # The option is referenced via a variable to avoid confusing sed.
15123 lt_compile=`echo "$ac_compile" | $SED \
15124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15126 -e 's:$: $lt_compiler_flag:'`
15127 (eval echo "\"\$as_me:15127: $lt_compile\"" >&5)
15128 (eval "$lt_compile" 2>conftest.err)
15130 cat conftest.err >&5
15131 echo "$as_me:15131: \$? = $ac_status" >&5
15132 if (exit $ac_status) && test -s "$ac_outfile"; then
15133 # The compiler can only warn and ignore the option if not recognized
15134 # So say no if there are warnings other than the usual output.
15135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15138 lt_prog_compiler_pic_works=yes
15144 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15145 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15147 if test x"$lt_prog_compiler_pic_works" = xyes; then
15148 case $lt_prog_compiler_pic in
15150 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15153 lt_prog_compiler_pic=
15154 lt_prog_compiler_can_build_shared=no
15159 # For platforms which do not support PIC, -DPIC is meaningless:
15161 lt_prog_compiler_pic=
15164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15169 # Check to make sure the static flag actually works.
15171 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15172 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15173 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15174 if test "${lt_prog_compiler_static_works+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 lt_prog_compiler_static_works=no
15178 save_LDFLAGS="$LDFLAGS"
15179 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15180 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15181 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15182 # The linker can only warn and ignore the option if not recognized
15183 # So say no if there are warnings
15184 if test -s conftest.err; then
15185 # Append any errors to the config.log.
15186 cat conftest.err 1>&5
15187 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15189 if diff conftest.exp conftest.er2 >/dev/null; then
15190 lt_prog_compiler_static_works=yes
15193 lt_prog_compiler_static_works=yes
15197 LDFLAGS="$save_LDFLAGS"
15200 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15201 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15203 if test x"$lt_prog_compiler_static_works" = xyes; then
15206 lt_prog_compiler_static=
15210 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15211 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15212 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 lt_cv_prog_compiler_c_o=no
15216 $rm -r conftest 2>/dev/null
15220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15222 lt_compiler_flag="-o out/conftest2.$ac_objext"
15223 # Insert the option either (1) after the last *FLAGS variable, or
15224 # (2) before a word containing "conftest.", or (3) at the end.
15225 # Note that $ac_compile itself does not contain backslashes and begins
15226 # with a dollar sign (not a hyphen), so the echo should work correctly.
15227 lt_compile=`echo "$ac_compile" | $SED \
15228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15230 -e 's:$: $lt_compiler_flag:'`
15231 (eval echo "\"\$as_me:15231: $lt_compile\"" >&5)
15232 (eval "$lt_compile" 2>out/conftest.err)
15234 cat out/conftest.err >&5
15235 echo "$as_me:15235: \$? = $ac_status" >&5
15236 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15238 # The compiler can only warn and ignore the option if not recognized
15239 # So say no if there are warnings
15240 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15241 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15242 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15243 lt_cv_prog_compiler_c_o=yes
15248 # SGI C++ compiler will create directory out/ii_files/ for
15249 # template instantiation
15250 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15251 $rm out/* && rmdir out
15257 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15258 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15261 hard_links="nottested"
15262 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15263 # do not overwrite the value of need_locks provided by the user
15264 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15265 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15270 ln conftest.a conftest.b 2>&5 || hard_links=no
15271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15272 { echo "$as_me:$LINENO: result: $hard_links" >&5
15273 echo "${ECHO_T}$hard_links" >&6; }
15274 if test "$hard_links" = no; then
15275 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15276 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15283 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15284 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15287 allow_undefined_flag=
15288 enable_shared_with_static_runtimes=no
15290 archive_expsym_cmds=
15291 old_archive_From_new_cmds=
15292 old_archive_from_expsyms_cmds=
15293 export_dynamic_flag_spec=
15294 whole_archive_flag_spec=
15295 thread_safe_flag_spec=
15296 hardcode_libdir_flag_spec=
15297 hardcode_libdir_flag_spec_ld=
15298 hardcode_libdir_separator=
15300 hardcode_minus_L=no
15301 hardcode_shlibpath_var=unsupported
15302 link_all_deplibs=unknown
15303 hardcode_automatic=no
15305 module_expsym_cmds=
15306 always_export_symbols=no
15307 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15308 # include_expsyms should be a list of space-separated symbols to be *always*
15309 # included in the symbol list
15311 # exclude_expsyms can be an extended regexp of symbols to exclude
15312 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15313 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15314 # as well as any symbol that contains `d'.
15315 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15316 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15317 # platforms (ab)use it in PIC code, but their linkers get confused if
15318 # the symbol is explicitly referenced. Since portable code cannot
15319 # rely on this symbol name, it's probably fine to never include it in
15320 # preloaded symbol tables.
15321 extract_expsyms_cmds=
15322 # Just being paranoid about ensuring that cc_basename is set.
15323 for cc_temp in $compiler""; do
15325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15331 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15334 cygwin* | mingw* | pw32*)
15335 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15336 # When not using gcc, we currently assume that we are using
15337 # Microsoft Visual C++.
15338 if test "$GCC" != yes; then
15343 # we just hope/assume this is gcc and not c89 (= MSVC++)
15352 if test "$with_gnu_ld" = yes; then
15353 # If archive_cmds runs LD, not CC, wlarc should be empty
15356 # Set some defaults for GNU ld with shared library support. These
15357 # are reset later if shared libraries are not supported. Putting them
15358 # here allows them to be overridden if necessary.
15359 runpath_var=LD_RUN_PATH
15360 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15361 export_dynamic_flag_spec='${wl}--export-dynamic'
15362 # ancient GNU ld didn't support --whole-archive et. al.
15363 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15364 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15366 whole_archive_flag_spec=
15368 supports_anon_versioning=no
15369 case `$LD -v 2>/dev/null` in
15370 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15371 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15372 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15373 *\ 2.11.*) ;; # other 2.11 versions
15374 *) supports_anon_versioning=yes ;;
15377 # See if GNU ld supports shared libraries.
15379 aix3* | aix4* | aix5*)
15380 # On AIX/PPC, the GNU linker is very broken
15381 if test "$host_cpu" != ia64; then
15385 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15386 *** to be unable to reliably create shared libraries on AIX.
15387 *** Therefore, libtool is disabling shared libraries support. If you
15388 *** really care for shared libraries, you may want to modify your PATH
15389 *** so that a non-GNU linker is found, and then restart.
15396 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)'
15397 hardcode_libdir_flag_spec='-L$libdir'
15398 hardcode_minus_L=yes
15400 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15401 # that the semantics of dynamic libraries on AmigaOS, at least up
15402 # to version 4, is to share data among multiple programs linked
15403 # with the same dynamic library. Since this doesn't match the
15404 # behavior of shared libraries on other platforms, we can't use
15410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15411 allow_undefined_flag=unsupported
15412 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15413 # support --undefined. This deserves some investigation. FIXME
15414 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15420 cygwin* | mingw* | pw32*)
15421 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15422 # as there is no search path for DLLs.
15423 hardcode_libdir_flag_spec='-L$libdir'
15424 allow_undefined_flag=unsupported
15425 always_export_symbols=no
15426 enable_shared_with_static_runtimes=yes
15427 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15429 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15431 # If the export-symbols file already is a .def file (1st line
15432 # is EXPORTS), use it as is; otherwise, prepend...
15433 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15434 cp $export_symbols $output_objdir/$soname.def;
15436 echo EXPORTS > $output_objdir/$soname.def;
15437 cat $export_symbols >> $output_objdir/$soname.def;
15439 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15447 hardcode_shlibpath_var=no
15448 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15449 export_dynamic_flag_spec='${wl}-E'
15450 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15451 # Instead, shared libraries are loaded at an image base (0x10000000 by
15452 # default) and relocated if they conflict, which is a slow very memory
15453 # consuming and fragmenting process. To avoid this, we pick a random,
15454 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15455 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15456 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15457 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'
15461 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15463 case $cc_basename,$host_cpu in
15464 pgcc*) # Portland Group C compiler
15465 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'
15466 tmp_addflag=' $pic_flag'
15468 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15469 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'
15470 tmp_addflag=' $pic_flag -Mnomain' ;;
15471 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15472 tmp_addflag=' -i_dynamic' ;;
15473 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15474 tmp_addflag=' -i_dynamic -nofor_main' ;;
15475 ifc* | ifort*) # Intel Fortran compiler
15476 tmp_addflag=' -nofor_main' ;;
15478 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15480 if test $supports_anon_versioning = yes; then
15481 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15483 $echo "local: *; };" >> $output_objdir/$libname.ver~
15484 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15493 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15502 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15506 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15507 *** create shared libraries on Solaris systems. Therefore, libtool
15508 *** is disabling shared libraries support. We urge you to upgrade GNU
15509 *** binutils to release 2.9.1 or newer. Another option is to modify
15510 *** your PATH or compiler configuration so that the native linker is
15511 *** used, and then restart.
15514 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15516 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15522 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15523 case `$LD -v 2>&1` in
15524 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15528 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15529 *** reliably create shared libraries on SCO systems. Therefore, libtool
15530 *** is disabling shared libraries support. We urge you to upgrade GNU
15531 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15532 *** your PATH or compiler configuration so that the native linker is
15533 *** used, and then restart.
15538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15539 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15550 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_direct=yes
15553 hardcode_shlibpath_var=no
15557 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15566 if test "$ld_shlibs" = no; then
15568 hardcode_libdir_flag_spec=
15569 export_dynamic_flag_spec=
15570 whole_archive_flag_spec=
15573 # PORTME fill in a description of your system's linker (not GNU ld)
15576 allow_undefined_flag=unsupported
15577 always_export_symbols=yes
15578 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'
15579 # Note: this linker hardcodes the directories in LIBPATH if there
15580 # are no directories specified by -L.
15581 hardcode_minus_L=yes
15582 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15583 # Neither direct hardcoding nor static linking is supported with a
15585 hardcode_direct=unsupported
15590 if test "$host_cpu" = ia64; then
15591 # On IA64, the linker does run time linking by default, so we don't
15592 # have to do anything special.
15593 aix_use_runtimelinking=no
15594 exp_sym_flag='-Bexport'
15597 # If we're using GNU nm, then we don't want the "-C" option.
15598 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15599 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15600 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'
15602 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'
15604 aix_use_runtimelinking=no
15606 # Test if we are trying to use run time linking or normal
15607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15608 # need to do runtime linking.
15609 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15610 for ld_flag in $LDFLAGS; do
15611 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15612 aix_use_runtimelinking=yes
15619 exp_sym_flag='-bexport'
15620 no_entry_flag='-bnoentry'
15623 # When large executables or shared objects are built, AIX ld can
15624 # have problems creating the table of contents. If linking a library
15625 # or program results in "error TOC overflow" add -mminimal-toc to
15626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15630 hardcode_direct=yes
15631 hardcode_libdir_separator=':'
15632 link_all_deplibs=yes
15634 if test "$GCC" = yes; then
15635 case $host_os in aix4.[012]|aix4.[012].*)
15636 # We only want to do this on AIX 4.2 and lower, the check
15637 # below for broken collect2 doesn't work under 4.3+
15638 collect2name=`${CC} -print-prog-name=collect2`
15639 if test -f "$collect2name" && \
15640 strings "$collect2name" | grep resolve_lib_name >/dev/null
15642 # We have reworked collect2
15643 hardcode_direct=yes
15645 # We have old collect2
15646 hardcode_direct=unsupported
15647 # It fails to find uninstalled libraries when the uninstalled
15648 # path is not listed in the libpath. Setting hardcode_minus_L
15649 # to unsupported forces relinking
15650 hardcode_minus_L=yes
15651 hardcode_libdir_flag_spec='-L$libdir'
15652 hardcode_libdir_separator=
15656 shared_flag='-shared'
15657 if test "$aix_use_runtimelinking" = yes; then
15658 shared_flag="$shared_flag "'${wl}-G'
15662 if test "$host_cpu" = ia64; then
15663 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15664 # chokes on -Wl,-G. The following line is correct:
15667 if test "$aix_use_runtimelinking" = yes; then
15668 shared_flag='${wl}-G'
15670 shared_flag='${wl}-bM:SRE'
15675 # It seems that -bexpall does not export symbols beginning with
15676 # underscore (_), so it is better to generate a list of symbols to export.
15677 always_export_symbols=yes
15678 if test "$aix_use_runtimelinking" = yes; then
15679 # Warning - without using the other runtime loading flags (-brtl),
15680 # -berok will link without error, but may produce a broken library.
15681 allow_undefined_flag='-berok'
15682 # Determine the default libpath from the value encoded in an empty executable.
15683 cat >conftest.$ac_ext <<_ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15698 rm -f conftest.$ac_objext conftest$ac_exeext
15699 if { (ac_try="$ac_link"
15700 case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15705 (eval "$ac_link") 2>conftest.er1
15707 grep -v '^ *+' conftest.er1 >conftest.err
15709 cat conftest.err >&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } &&
15712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; } &&
15722 { ac_try='test -s conftest$ac_exeext'
15723 { (case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_try") 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
15733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15735 # Check for a 64-bit object if we didn't find anything.
15736 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; }
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15745 rm -f core conftest.err conftest.$ac_objext \
15746 conftest$ac_exeext conftest.$ac_ext
15747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15750 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"
15752 if test "$host_cpu" = ia64; then
15753 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15754 allow_undefined_flag="-z nodefs"
15755 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"
15757 # Determine the default libpath from the value encoded in an empty executable.
15758 cat >conftest.$ac_ext <<_ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15773 rm -f conftest.$ac_objext conftest$ac_exeext
15774 if { (ac_try="$ac_link"
15775 case "(($ac_try" in
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780 (eval "$ac_link") 2>conftest.er1
15782 grep -v '^ *+' conftest.er1 >conftest.err
15784 cat conftest.err >&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } &&
15787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15788 { (case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_try") 2>&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; } &&
15797 { ac_try='test -s conftest$ac_exeext'
15798 { (case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803 (eval "$ac_try") 2>&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; }; then
15808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15810 # Check for a 64-bit object if we didn't find anything.
15811 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; }
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15820 rm -f core conftest.err conftest.$ac_objext \
15821 conftest$ac_exeext conftest.$ac_ext
15822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15824 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15825 # Warning - without using the other run time loading flags,
15826 # -berok will link without error, but may produce a broken library.
15827 no_undefined_flag=' ${wl}-bernotok'
15828 allow_undefined_flag=' ${wl}-berok'
15829 # Exported symbols can be pulled into shared objects from archives
15830 whole_archive_flag_spec='$convenience'
15831 archive_cmds_need_lc=yes
15832 # This is similar to how AIX traditionally builds its shared libraries.
15833 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'
15839 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)'
15840 hardcode_libdir_flag_spec='-L$libdir'
15841 hardcode_minus_L=yes
15842 # see comment about different semantics on the GNU ld section
15847 export_dynamic_flag_spec=-rdynamic
15850 cygwin* | mingw* | pw32*)
15851 # When not using gcc, we currently assume that we are using
15852 # Microsoft Visual C++.
15853 # hardcode_libdir_flag_spec is actually meaningless, as there is
15854 # no search path for DLLs.
15855 hardcode_libdir_flag_spec=' '
15856 allow_undefined_flag=unsupported
15857 # Tell ltmain to make .lib files, not .a files.
15859 # Tell ltmain to make .dll files, not .so files.
15861 # FIXME: Setting linknames here is a bad hack.
15862 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15863 # The linker will automatically build a .lib file if we build a DLL.
15864 old_archive_From_new_cmds='true'
15865 # FIXME: Should let the user specify the lib program.
15866 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15867 fix_srcfile_path='`cygpath -w "$srcfile"`'
15868 enable_shared_with_static_runtimes=yes
15871 darwin* | rhapsody*)
15873 rhapsody* | darwin1.[012])
15874 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15877 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15878 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15880 case ${MACOSX_DEPLOYMENT_TARGET} in
15882 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15885 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15891 archive_cmds_need_lc=no
15893 hardcode_automatic=yes
15894 hardcode_shlibpath_var=unsupported
15895 whole_archive_flag_spec=''
15896 link_all_deplibs=yes
15897 if test "$GCC" = yes ; then
15898 output_verbose_link_cmd='echo'
15899 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15900 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15901 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15902 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}'
15903 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}'
15905 case $cc_basename in
15907 output_verbose_link_cmd='echo'
15908 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15909 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15910 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15911 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}'
15912 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}'
15922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923 hardcode_libdir_flag_spec='-L$libdir'
15924 hardcode_shlibpath_var=no
15931 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15932 # support. Future versions do this automatically, but an explicit c++rt0.o
15933 # does not break anything, and helps significantly (at the cost of a little
15936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15937 hardcode_libdir_flag_spec='-R$libdir'
15938 hardcode_direct=yes
15939 hardcode_shlibpath_var=no
15942 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15945 hardcode_direct=yes
15946 hardcode_minus_L=yes
15947 hardcode_shlibpath_var=no
15950 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15951 freebsd* | kfreebsd*-gnu | dragonfly*)
15952 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15953 hardcode_libdir_flag_spec='-R$libdir'
15954 hardcode_direct=yes
15955 hardcode_shlibpath_var=no
15959 if test "$GCC" = yes; then
15960 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'
15962 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'
15964 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15965 hardcode_libdir_separator=:
15966 hardcode_direct=yes
15968 # hardcode_minus_L: Not really in the search PATH,
15969 # but as the default location of the library.
15970 hardcode_minus_L=yes
15971 export_dynamic_flag_spec='${wl}-E'
15975 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15976 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15978 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15980 if test "$with_gnu_ld" = no; then
15981 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15982 hardcode_libdir_separator=:
15984 hardcode_direct=yes
15985 export_dynamic_flag_spec='${wl}-E'
15987 # hardcode_minus_L: Not really in the search PATH,
15988 # but as the default location of the library.
15989 hardcode_minus_L=yes
15994 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15997 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16000 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16003 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16009 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16012 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16015 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16019 if test "$with_gnu_ld" = no; then
16020 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16021 hardcode_libdir_separator=:
16025 hardcode_libdir_flag_spec_ld='+b $libdir'
16027 hardcode_shlibpath_var=no
16030 hardcode_direct=yes
16031 export_dynamic_flag_spec='${wl}-E'
16033 # hardcode_minus_L: Not really in the search PATH,
16034 # but as the default location of the library.
16035 hardcode_minus_L=yes
16041 irix5* | irix6* | nonstopux*)
16042 if test "$GCC" = yes; then
16043 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'
16045 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'
16046 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16049 hardcode_libdir_separator=:
16050 link_all_deplibs=yes
16054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16057 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16059 hardcode_libdir_flag_spec='-R$libdir'
16060 hardcode_direct=yes
16061 hardcode_shlibpath_var=no
16065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16066 hardcode_direct=yes
16067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16068 hardcode_libdir_separator=:
16069 hardcode_shlibpath_var=no
16073 hardcode_direct=yes
16074 hardcode_shlibpath_var=no
16075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16077 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16079 export_dynamic_flag_spec='${wl}-E'
16082 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16084 hardcode_libdir_flag_spec='-R$libdir'
16087 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16088 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16095 hardcode_libdir_flag_spec='-L$libdir'
16096 hardcode_minus_L=yes
16097 allow_undefined_flag=unsupported
16098 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'
16099 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16103 if test "$GCC" = yes; then
16104 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16105 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'
16107 allow_undefined_flag=' -expect_unresolved \*'
16108 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'
16110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16111 hardcode_libdir_separator=:
16114 osf4* | osf5*) # as osf3* with the addition of -msym flag
16115 if test "$GCC" = yes; then
16116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16117 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'
16118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16120 allow_undefined_flag=' -expect_unresolved \*'
16121 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'
16122 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16123 $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'
16125 # Both c and cxx compiler support -rpath directly
16126 hardcode_libdir_flag_spec='-rpath $libdir'
16128 hardcode_libdir_separator=:
16132 no_undefined_flag=' -z text'
16133 if test "$GCC" = yes; then
16135 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16136 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16137 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16140 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16142 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16144 hardcode_libdir_flag_spec='-R$libdir'
16145 hardcode_shlibpath_var=no
16147 solaris2.[0-5] | solaris2.[0-5].*) ;;
16149 # The compiler driver will combine linker options so we
16150 # cannot just pass the convience library names through
16151 # without $wl, iff we do not link with $LD.
16152 # Luckily, gcc supports the same syntax we need for Sun Studio.
16153 # Supported since Solaris 2.6 (maybe 2.5.1?)
16156 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16158 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' ;;
16161 link_all_deplibs=yes
16165 if test "x$host_vendor" = xsequent; then
16166 # Use $CC to link under sequent, because it throws in some extra .o
16167 # files that make .init and .fini sections work.
16168 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16170 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16172 hardcode_libdir_flag_spec='-L$libdir'
16173 hardcode_direct=yes
16174 hardcode_minus_L=yes
16175 hardcode_shlibpath_var=no
16179 case $host_vendor in
16181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16182 hardcode_direct=yes # is this really true???
16185 ## LD is ld it makes a PLAMLIB
16186 ## CC just makes a GrossModule.
16187 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16188 reload_cmds='$CC -r -o $output$reload_objs'
16192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16196 runpath_var='LD_RUN_PATH'
16197 hardcode_shlibpath_var=no
16201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16202 hardcode_shlibpath_var=no
16203 export_dynamic_flag_spec='-Bexport'
16207 if test -d /usr/nec; then
16208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_shlibpath_var=no
16210 runpath_var=LD_RUN_PATH
16211 hardcode_runpath_var=yes
16216 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16217 no_undefined_flag='${wl}-z,text'
16218 archive_cmds_need_lc=no
16219 hardcode_shlibpath_var=no
16220 runpath_var='LD_RUN_PATH'
16222 if test "$GCC" = yes; then
16223 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16224 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16226 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16231 sysv5* | sco3.2v5* | sco5v6*)
16232 # Note: We can NOT use -z defs as we might desire, because we do not
16233 # link with -lc, and that would cause any symbols used from libc to
16234 # always be unresolved, which means just about no library would
16235 # ever link correctly. If we're not using GNU ld we use -z text
16236 # though, which does catch some bad symbols but isn't as heavy-handed
16238 no_undefined_flag='${wl}-z,text'
16239 allow_undefined_flag='${wl}-z,nodefs'
16240 archive_cmds_need_lc=no
16241 hardcode_shlibpath_var=no
16242 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16243 hardcode_libdir_separator=':'
16244 link_all_deplibs=yes
16245 export_dynamic_flag_spec='${wl}-Bexport'
16246 runpath_var='LD_RUN_PATH'
16248 if test "$GCC" = yes; then
16249 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16250 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16252 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16253 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16259 hardcode_libdir_flag_spec='-L$libdir'
16260 hardcode_shlibpath_var=no
16269 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16270 echo "${ECHO_T}$ld_shlibs" >&6; }
16271 test "$ld_shlibs" = no && can_build_shared=no
16274 # Do we need to explicitly link libc?
16276 case "x$archive_cmds_need_lc" in
16278 # Assume -lc should be added
16279 archive_cmds_need_lc=yes
16281 if test "$enable_shared" = yes && test "$GCC" = yes; then
16282 case $archive_cmds in
16284 # FIXME: we may have to deal with multi-command sequences.
16287 # Test whether the compiler implicitly links with -lc since on some
16288 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16289 # to ld, don't add -lc before -lgcc.
16290 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16291 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296 (eval $ac_compile) 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } 2>conftest.err; then
16302 libobjs=conftest.$ac_objext
16304 wl=$lt_prog_compiler_wl
16305 pic_flag=$lt_prog_compiler_pic
16311 lt_save_allow_undefined_flag=$allow_undefined_flag
16312 allow_undefined_flag=
16313 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16314 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }
16319 archive_cmds_need_lc=no
16321 archive_cmds_need_lc=yes
16323 allow_undefined_flag=$lt_save_allow_undefined_flag
16325 cat conftest.err 1>&5
16328 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16329 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16336 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16337 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16338 library_names_spec=
16339 libname_spec='lib$name'
16343 postuninstall_cmds=
16347 shlibpath_overrides_runpath=unknown
16349 dynamic_linker="$host_os ld.so"
16350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16351 if test "$GCC" = yes; then
16352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16353 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16354 # if the path contains ";" then we assume it to be the separator
16355 # otherwise default to the standard path separator (i.e. ":") - it is
16356 # assumed that no part of a normal pathname contains ";" but that should
16357 # okay in the real world where ";" in dirpaths is itself problematic.
16358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16365 need_lib_prefix=unknown
16366 hardcode_into_libs=no
16368 # when you set need_version to no, make sure it does not cause -set_version
16369 # flags to be left without arguments
16370 need_version=unknown
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16376 shlibpath_var=LIBPATH
16378 # AIX 3 has no versioning support, so we append a major version to the name.
16379 soname_spec='${libname}${release}${shared_ext}$major'
16386 hardcode_into_libs=yes
16387 if test "$host_cpu" = ia64; then
16388 # AIX 5 supports IA64
16389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16390 shlibpath_var=LD_LIBRARY_PATH
16392 # With GCC up to 2.95.x, collect2 would create an import file
16393 # for dependence libraries. The import file would start with
16394 # the line `#! .'. This would cause the generated library to
16395 # depend on `.', always an invalid library. This was fixed in
16396 # development snapshots of GCC prior to 3.0.
16398 aix4 | aix4.[01] | aix4.[01].*)
16399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16404 can_build_shared=no
16408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16409 # soname into executable. Probably we can add versioning support to
16410 # collect2, so additional links can be useful in future.
16411 if test "$aix_use_runtimelinking" = yes; then
16412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16413 # instead of lib<name>.a to let people know that these are not
16414 # typical AIX shared libraries.
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 # We preserve .a as extension for shared libraries through AIX4.2
16418 # and later when we are not doing run time linking.
16419 library_names_spec='${libname}${release}.a $libname.a'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16422 shlibpath_var=LIBPATH
16427 library_names_spec='$libname.ixlibrary $libname.a'
16428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16429 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'
16433 library_names_spec='${libname}${shared_ext}'
16434 dynamic_linker="$host_os ld.so"
16435 shlibpath_var=LIBRARY_PATH
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442 soname_spec='${libname}${release}${shared_ext}$major'
16443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16447 # the default ld.so.conf also contains /usr/contrib/lib and
16448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16449 # libtool to hard-code these into programs
16452 cygwin* | mingw* | pw32*)
16453 version_type=windows
16458 case $GCC,$host_os in
16459 yes,cygwin* | yes,mingw* | yes,pw32*)
16460 library_names_spec='$libname.dll.a'
16461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16462 postinstall_cmds='base_file=`basename \${file}`~
16463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16464 dldir=$destdir/`dirname \$dlpath`~
16465 test -d \$dldir || mkdir -p \$dldir~
16466 $install_prog $dir/$dlname \$dldir/$dlname~
16467 chmod a+x \$dldir/$dlname'
16468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16469 dlpath=$dir/\$dldll~
16471 shlibpath_overrides_runpath=yes
16475 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16476 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16477 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16480 # MinGW DLLs use traditional 'lib' prefix
16481 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16482 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16483 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16484 # It is most probably a Windows format PATH printed by
16485 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16486 # path with ; separators, and with drive letters. We can handle the
16487 # drive letters (cygwin fileutils understands them), so leave them,
16488 # especially as we might pass files found there to a mingw objdump,
16489 # which wouldn't understand a cygwinified path. Ahh.
16490 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16496 # pw32 DLLs use 'pw' prefix rather than 'lib'
16497 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16503 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16506 dynamic_linker='Win32 ld.exe'
16507 # FIXME: first we should search . and the directory the executable is in
16511 darwin* | rhapsody*)
16512 dynamic_linker="$host_os dyld"
16513 version_type=darwin
16516 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16517 soname_spec='${libname}${release}${major}$shared_ext'
16518 shlibpath_overrides_runpath=yes
16519 shlibpath_var=DYLD_LIBRARY_PATH
16520 shrext_cmds='.dylib'
16521 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16522 if test "$GCC" = yes; then
16523 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"`
16525 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LD_LIBRARY_PATH
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 shlibpath_overrides_runpath=no
16551 hardcode_into_libs=yes
16552 dynamic_linker='GNU ld.so'
16555 freebsd* | dragonfly*)
16556 # DragonFly does not have aout. When/if they implement a new
16557 # versioning mechanism, adjust this.
16558 if test -x /usr/bin/objformat; then
16559 objformat=`/usr/bin/objformat`
16562 freebsd[123]*) objformat=aout ;;
16563 *) objformat=elf ;;
16566 version_type=freebsd-$objformat
16567 case $version_type in
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16578 shlibpath_var=LD_LIBRARY_PATH
16581 shlibpath_overrides_runpath=yes
16583 freebsd3.[01]* | freebsdelf3.[01]*)
16584 shlibpath_overrides_runpath=yes
16585 hardcode_into_libs=yes
16587 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16588 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16589 shlibpath_overrides_runpath=no
16590 hardcode_into_libs=yes
16592 freebsd*) # from 4.6 on
16593 shlibpath_overrides_runpath=yes
16594 hardcode_into_libs=yes
16603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16604 soname_spec='${libname}${release}${shared_ext}$major'
16605 shlibpath_var=LD_LIBRARY_PATH
16606 hardcode_into_libs=yes
16609 hpux9* | hpux10* | hpux11*)
16610 # Give a soname corresponding to the major version so that dld.sl refuses to
16611 # link against other versions.
16618 hardcode_into_libs=yes
16619 dynamic_linker="$host_os dld.so"
16620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 if test "X$HPUX_IA64_MODE" = X32; then
16625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16633 hardcode_into_libs=yes
16634 dynamic_linker="$host_os dld.sl"
16635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16644 dynamic_linker="$host_os dld.sl"
16645 shlibpath_var=SHLIB_PATH
16646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
16651 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16652 postinstall_cmds='chmod 555 $lib'
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16660 soname_spec='${libname}${release}${shared_ext}$major'
16661 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16662 shlibpath_var=LD_LIBRARY_PATH
16663 shlibpath_overrides_runpath=no
16664 hardcode_into_libs=yes
16667 irix5* | irix6* | nonstopux*)
16669 nonstopux*) version_type=nonstopux ;;
16671 if test "$lt_cv_prog_gnu_ld" = yes; then
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16682 irix5* | nonstopux*)
16683 libsuff= shlibsuff=
16686 case $LD in # libtool.m4 will add one of these switches to LD
16687 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16688 libsuff= shlibsuff= libmagic=32-bit;;
16689 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16690 libsuff=32 shlibsuff=N32 libmagic=N32;;
16691 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16692 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16693 *) libsuff= shlibsuff= libmagic=never-match;;
16697 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16698 shlibpath_overrides_runpath=no
16699 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16700 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16701 hardcode_into_libs=yes
16704 # No shared lib support for Linux oldld, aout, or coff.
16705 linux*oldld* | linux*aout* | linux*coff*)
16709 # This must be Linux ELF.
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=no
16719 # This implies no fast_install, which is unacceptable.
16720 # Some rework will be needed to allow for fast_install
16721 # before this can be enabled.
16722 hardcode_into_libs=yes
16724 # Append ld.so.conf contents to the search path
16725 if test -f /etc/ld.so.conf; then
16726 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' ' '`
16727 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16730 # We used to test for /lib/ld.so.1 and disable shared libraries on
16731 # powerpc, because MkLinux only supported shared libraries with the
16732 # GNU dynamic linker. Since this was broken with cross compilers,
16733 # most powerpc-linux boxes support dynamic linking these days and
16734 # people can always --disable-shared, the test was removed, and we
16735 # assume the GNU/Linux dynamic linker is in use.
16736 dynamic_linker='GNU/Linux ld.so'
16743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16744 soname_spec='${libname}${release}${shared_ext}$major'
16745 shlibpath_var=LD_LIBRARY_PATH
16746 shlibpath_overrides_runpath=no
16747 hardcode_into_libs=yes
16748 dynamic_linker='GNU ld.so'
16755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16758 dynamic_linker='NetBSD (a.out) ld.so'
16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16761 soname_spec='${libname}${release}${shared_ext}$major'
16762 dynamic_linker='NetBSD ld.elf_so'
16764 shlibpath_var=LD_LIBRARY_PATH
16765 shlibpath_overrides_runpath=yes
16766 hardcode_into_libs=yes
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 shlibpath_overrides_runpath=yes
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781 soname_spec='${libname}${release}${shared_ext}$major'
16782 shlibpath_var=LD_LIBRARY_PATH
16783 shlibpath_overrides_runpath=yes
16788 sys_lib_dlsearch_path_spec="/usr/lib"
16790 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16792 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16793 *) need_version=no ;;
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16797 shlibpath_var=LD_LIBRARY_PATH
16798 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16800 openbsd2.[89] | openbsd2.[89].*)
16801 shlibpath_overrides_runpath=no
16804 shlibpath_overrides_runpath=yes
16808 shlibpath_overrides_runpath=yes
16813 libname_spec='$name'
16816 library_names_spec='$libname${shared_ext} $libname.a'
16817 dynamic_linker='OS/2 ld.exe'
16818 shlibpath_var=LIBPATH
16821 osf3* | osf4* | osf5*)
16825 soname_spec='${libname}${release}${shared_ext}$major'
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16829 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16837 soname_spec='${libname}${release}${shared_ext}$major'
16838 shlibpath_var=LD_LIBRARY_PATH
16839 shlibpath_overrides_runpath=yes
16840 hardcode_into_libs=yes
16841 # ldd complains unless libraries are executable
16842 postinstall_cmds='chmod +x $lib'
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16849 shlibpath_var=LD_LIBRARY_PATH
16850 shlibpath_overrides_runpath=yes
16851 if test "$with_gnu_ld" = yes; then
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860 soname_spec='${libname}${release}${shared_ext}$major'
16861 shlibpath_var=LD_LIBRARY_PATH
16862 case $host_vendor in
16864 shlibpath_overrides_runpath=no
16866 export_dynamic_flag_spec='${wl}-Blargedynsym'
16867 runpath_var=LD_RUN_PATH
16875 shlibpath_overrides_runpath=no
16876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16882 if test -d /usr/nec ;then
16884 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16885 soname_spec='$libname${shared_ext}.$major'
16886 shlibpath_var=LD_LIBRARY_PATH
16890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16891 version_type=freebsd-elf
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16895 soname_spec='${libname}${release}${shared_ext}$major'
16896 shlibpath_var=LD_LIBRARY_PATH
16897 hardcode_into_libs=yes
16898 if test "$with_gnu_ld" = yes; then
16899 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16900 shlibpath_overrides_runpath=no
16902 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16903 shlibpath_overrides_runpath=yes
16906 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16910 sys_lib_dlsearch_path_spec='/usr/lib'
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 soname_spec='${libname}${release}${shared_ext}$major'
16917 shlibpath_var=LD_LIBRARY_PATH
16924 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16925 echo "${ECHO_T}$dynamic_linker" >&6; }
16926 test "$dynamic_linker" = no && can_build_shared=no
16928 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16929 if test "$GCC" = yes; then
16930 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16933 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16934 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16936 if test -n "$hardcode_libdir_flag_spec" || \
16937 test -n "$runpath_var" || \
16938 test "X$hardcode_automatic" = "Xyes" ; then
16940 # We can hardcode non-existant directories.
16941 if test "$hardcode_direct" != no &&
16942 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16943 # have to relink, otherwise we might link with an installed library
16944 # when we should be linking with a yet-to-be-installed one
16945 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16946 test "$hardcode_minus_L" != no; then
16947 # Linking always hardcodes the temporary library directory.
16948 hardcode_action=relink
16950 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16951 hardcode_action=immediate
16954 # We cannot hardcode anything, or else we can only hardcode existing
16956 hardcode_action=unsupported
16958 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16959 echo "${ECHO_T}$hardcode_action" >&6; }
16961 if test "$hardcode_action" = relink; then
16962 # Fast installation is not supported
16963 enable_fast_install=no
16964 elif test "$shlibpath_overrides_runpath" = yes ||
16965 test "$enable_shared" = no; then
16966 # Fast installation is not necessary
16967 enable_fast_install=needless
16972 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16973 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16974 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16975 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16976 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16977 { echo "$as_me:$LINENO: result: yes" >&5
16978 echo "${ECHO_T}yes" >&6; }
16980 # FIXME - insert some real tests, host_os isn't really good enough
16983 if test -n "$STRIP" ; then
16984 striplib="$STRIP -x"
16985 { echo "$as_me:$LINENO: result: yes" >&5
16986 echo "${ECHO_T}yes" >&6; }
16988 { echo "$as_me:$LINENO: result: no" >&5
16989 echo "${ECHO_T}no" >&6; }
16993 { echo "$as_me:$LINENO: result: no" >&5
16994 echo "${ECHO_T}no" >&6; }
16999 if test "x$enable_dlopen" != xyes; then
17000 enable_dlopen=unknown
17001 enable_dlopen_self=unknown
17002 enable_dlopen_self_static=unknown
17009 lt_cv_dlopen="load_add_on"
17011 lt_cv_dlopen_self=yes
17015 lt_cv_dlopen="LoadLibrary"
17020 lt_cv_dlopen="dlopen"
17025 # if libdl is installed we need to link against it
17026 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17027 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17028 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 ac_check_lib_save_LIBS=$LIBS
17033 cat >conftest.$ac_ext <<_ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17040 /* Override any GCC internal prototype to avoid an error.
17041 Use char because int might match the return type of a GCC
17042 builtin and then its argument prototype would still apply. */
17055 rm -f conftest.$ac_objext conftest$ac_exeext
17056 if { (ac_try="$ac_link"
17057 case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_link") 2>conftest.er1
17064 grep -v '^ *+' conftest.er1 >conftest.err
17066 cat conftest.err >&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } &&
17069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17070 { (case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest$ac_exeext'
17080 { (case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_try") 2>&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
17089 ac_cv_lib_dl_dlopen=yes
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17094 ac_cv_lib_dl_dlopen=no
17097 rm -f core conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
17099 LIBS=$ac_check_lib_save_LIBS
17101 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17102 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17103 if test $ac_cv_lib_dl_dlopen = yes; then
17104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17107 lt_cv_dlopen="dyld"
17109 lt_cv_dlopen_self=yes
17116 { echo "$as_me:$LINENO: checking for shl_load" >&5
17117 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17118 if test "${ac_cv_func_shl_load+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17121 cat >conftest.$ac_ext <<_ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h. */
17127 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17129 #define shl_load innocuous_shl_load
17131 /* System header to define __stub macros and hopefully few prototypes,
17132 which can conflict with char shl_load (); below.
17133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17134 <limits.h> exists even on freestanding compilers. */
17137 # include <limits.h>
17139 # include <assert.h>
17144 /* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17151 /* The GNU C library defines this for functions which it implements
17152 to always fail with ENOSYS. Some functions are actually named
17153 something starting with __ and the normal name is an alias. */
17154 #if defined __stub_shl_load || defined __stub___shl_load
17161 return shl_load ();
17166 rm -f conftest.$ac_objext conftest$ac_exeext
17167 if { (ac_try="$ac_link"
17168 case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_link") 2>conftest.er1
17175 grep -v '^ *+' conftest.er1 >conftest.err
17177 cat conftest.err >&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); } &&
17180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17181 { (case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_try") 2>&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest$ac_exeext'
17191 { (case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_try") 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 ac_cv_func_shl_load=yes
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 ac_cv_func_shl_load=no
17208 rm -f core conftest.err conftest.$ac_objext \
17209 conftest$ac_exeext conftest.$ac_ext
17211 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17212 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17213 if test $ac_cv_func_shl_load = yes; then
17214 lt_cv_dlopen="shl_load"
17216 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17217 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17218 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17221 ac_check_lib_save_LIBS=$LIBS
17223 cat >conftest.$ac_ext <<_ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17230 /* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
17240 return shl_load ();
17245 rm -f conftest.$ac_objext conftest$ac_exeext
17246 if { (ac_try="$ac_link"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_link") 2>conftest.er1
17254 grep -v '^ *+' conftest.er1 >conftest.err
17256 cat conftest.err >&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } &&
17259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17260 { (case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_try") 2>&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; } &&
17269 { ac_try='test -s conftest$ac_exeext'
17270 { (case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_try") 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17279 ac_cv_lib_dld_shl_load=yes
17281 echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17284 ac_cv_lib_dld_shl_load=no
17287 rm -f core conftest.err conftest.$ac_objext \
17288 conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17291 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17292 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17293 if test $ac_cv_lib_dld_shl_load = yes; then
17294 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17296 { echo "$as_me:$LINENO: checking for dlopen" >&5
17297 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17298 if test "${ac_cv_func_dlopen+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 cat >conftest.$ac_ext <<_ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17309 #define dlopen innocuous_dlopen
17311 /* System header to define __stub macros and hopefully few prototypes,
17312 which can conflict with char dlopen (); below.
17313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17314 <limits.h> exists even on freestanding compilers. */
17317 # include <limits.h>
17319 # include <assert.h>
17324 /* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
17331 /* The GNU C library defines this for functions which it implements
17332 to always fail with ENOSYS. Some functions are actually named
17333 something starting with __ and the normal name is an alias. */
17334 #if defined __stub_dlopen || defined __stub___dlopen
17346 rm -f conftest.$ac_objext conftest$ac_exeext
17347 if { (ac_try="$ac_link"
17348 case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_link") 2>conftest.er1
17355 grep -v '^ *+' conftest.er1 >conftest.err
17357 cat conftest.err >&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } &&
17360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17361 { (case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_try") 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest$ac_exeext'
17371 { (case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_try") 2>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 ac_cv_func_dlopen=yes
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17385 ac_cv_func_dlopen=no
17388 rm -f core conftest.err conftest.$ac_objext \
17389 conftest$ac_exeext conftest.$ac_ext
17391 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17392 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17393 if test $ac_cv_func_dlopen = yes; then
17394 lt_cv_dlopen="dlopen"
17396 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17397 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 ac_check_lib_save_LIBS=$LIBS
17403 cat >conftest.$ac_ext <<_ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17410 /* Override any GCC internal prototype to avoid an error.
17411 Use char because int might match the return type of a GCC
17412 builtin and then its argument prototype would still apply. */
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (ac_try="$ac_link"
17427 case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_link") 2>conftest.er1
17434 grep -v '^ *+' conftest.er1 >conftest.err
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } &&
17439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17440 { (case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_try") 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; } &&
17449 { ac_try='test -s conftest$ac_exeext'
17450 { (case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455 (eval "$ac_try") 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 ac_cv_lib_dl_dlopen=yes
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 ac_cv_lib_dl_dlopen=no
17467 rm -f core conftest.err conftest.$ac_objext \
17468 conftest$ac_exeext conftest.$ac_ext
17469 LIBS=$ac_check_lib_save_LIBS
17471 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17472 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17473 if test $ac_cv_lib_dl_dlopen = yes; then
17474 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17476 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17477 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17478 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 ac_check_lib_save_LIBS=$LIBS
17482 LIBS="-lsvld $LIBS"
17483 cat >conftest.$ac_ext <<_ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h. */
17490 /* Override any GCC internal prototype to avoid an error.
17491 Use char because int might match the return type of a GCC
17492 builtin and then its argument prototype would still apply. */
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>conftest.er1
17514 grep -v '^ *+' conftest.er1 >conftest.err
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } &&
17519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17520 { (case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_try") 2>&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; } &&
17529 { ac_try='test -s conftest$ac_exeext'
17530 { (case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535 (eval "$ac_try") 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_lib_svld_dlopen=yes
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 ac_cv_lib_svld_dlopen=no
17547 rm -f core conftest.err conftest.$ac_objext \
17548 conftest$ac_exeext conftest.$ac_ext
17549 LIBS=$ac_check_lib_save_LIBS
17551 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17552 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17553 if test $ac_cv_lib_svld_dlopen = yes; then
17554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17556 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17557 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17558 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 ac_check_lib_save_LIBS=$LIBS
17563 cat >conftest.$ac_ext <<_ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17570 /* Override any GCC internal prototype to avoid an error.
17571 Use char because int might match the return type of a GCC
17572 builtin and then its argument prototype would still apply. */
17580 return dld_link ();
17585 rm -f conftest.$ac_objext conftest$ac_exeext
17586 if { (ac_try="$ac_link"
17587 case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592 (eval "$ac_link") 2>conftest.er1
17594 grep -v '^ *+' conftest.er1 >conftest.err
17596 cat conftest.err >&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } &&
17599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17600 { (case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_try") 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest$ac_exeext'
17610 { (case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_try") 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17619 ac_cv_lib_dld_dld_link=yes
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17624 ac_cv_lib_dld_dld_link=no
17627 rm -f core conftest.err conftest.$ac_objext \
17628 conftest$ac_exeext conftest.$ac_ext
17629 LIBS=$ac_check_lib_save_LIBS
17631 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17632 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17633 if test $ac_cv_lib_dld_dld_link = yes; then
17634 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17655 if test "x$lt_cv_dlopen" != xno; then
17661 case $lt_cv_dlopen in
17663 save_CPPFLAGS="$CPPFLAGS"
17664 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17666 save_LDFLAGS="$LDFLAGS"
17667 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17670 LIBS="$lt_cv_dlopen_libs $LIBS"
17672 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17673 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17674 if test "${lt_cv_dlopen_self+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17677 if test "$cross_compiling" = yes; then :
17678 lt_cv_dlopen_self=cross
17680 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17681 lt_status=$lt_dlunknown
17682 cat > conftest.$ac_ext <<EOF
17683 #line 17683 "configure"
17684 #include "confdefs.h"
17693 # define LT_DLGLOBAL RTLD_GLOBAL
17696 # define LT_DLGLOBAL DL_GLOBAL
17698 # define LT_DLGLOBAL 0
17702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17703 find out it does not work in some platform. */
17704 #ifndef LT_DLLAZY_OR_NOW
17706 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17709 # define LT_DLLAZY_OR_NOW DL_LAZY
17712 # define LT_DLLAZY_OR_NOW RTLD_NOW
17715 # define LT_DLLAZY_OR_NOW DL_NOW
17717 # define LT_DLLAZY_OR_NOW 0
17725 extern "C" void exit (int);
17728 void fnord() { int i=42;}
17731 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17732 int status = $lt_dlunknown;
17736 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17737 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17738 /* dlclose (self); */
17746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17747 (eval $ac_link) 2>&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17751 (./conftest; exit; ) >&5 2>/dev/null
17753 case x$lt_status in
17754 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17755 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17756 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17759 # compilation failed
17760 lt_cv_dlopen_self=no
17767 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17768 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17770 if test "x$lt_cv_dlopen_self" = xyes; then
17771 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17772 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17773 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17774 if test "${lt_cv_dlopen_self_static+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 if test "$cross_compiling" = yes; then :
17778 lt_cv_dlopen_self_static=cross
17780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17781 lt_status=$lt_dlunknown
17782 cat > conftest.$ac_ext <<EOF
17783 #line 17783 "configure"
17784 #include "confdefs.h"
17793 # define LT_DLGLOBAL RTLD_GLOBAL
17796 # define LT_DLGLOBAL DL_GLOBAL
17798 # define LT_DLGLOBAL 0
17802 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17803 find out it does not work in some platform. */
17804 #ifndef LT_DLLAZY_OR_NOW
17806 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17809 # define LT_DLLAZY_OR_NOW DL_LAZY
17812 # define LT_DLLAZY_OR_NOW RTLD_NOW
17815 # define LT_DLLAZY_OR_NOW DL_NOW
17817 # define LT_DLLAZY_OR_NOW 0
17825 extern "C" void exit (int);
17828 void fnord() { int i=42;}
17831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17832 int status = $lt_dlunknown;
17836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17837 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17838 /* dlclose (self); */
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847 (eval $ac_link) 2>&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17851 (./conftest; exit; ) >&5 2>/dev/null
17853 case x$lt_status in
17854 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17855 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17856 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17859 # compilation failed
17860 lt_cv_dlopen_self_static=no
17867 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17868 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17871 CPPFLAGS="$save_CPPFLAGS"
17872 LDFLAGS="$save_LDFLAGS"
17877 case $lt_cv_dlopen_self in
17878 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17879 *) enable_dlopen_self=unknown ;;
17882 case $lt_cv_dlopen_self_static in
17883 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17884 *) enable_dlopen_self_static=unknown ;;
17889 # Report which library types will actually be built
17890 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17891 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17892 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17893 echo "${ECHO_T}$can_build_shared" >&6; }
17895 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17896 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17897 test "$can_build_shared" = "no" && enable_shared=no
17899 # On AIX, shared libraries and static libraries use the same namespace, and
17900 # are all built from PIC.
17903 test "$enable_shared" = yes && enable_static=no
17904 if test -n "$RANLIB"; then
17905 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17906 postinstall_cmds='$RANLIB $lib'
17911 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17912 test "$enable_shared" = yes && enable_static=no
17916 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17917 echo "${ECHO_T}$enable_shared" >&6; }
17919 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17920 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17921 # Make sure either enable_shared or enable_static is yes.
17922 test "$enable_shared" = yes || enable_static=yes
17923 { echo "$as_me:$LINENO: result: $enable_static" >&5
17924 echo "${ECHO_T}$enable_static" >&6; }
17926 # The else clause should only fire when bootstrapping the
17927 # libtool distribution, otherwise you forgot to ship ltmain.sh
17928 # with your package, and you will get complaints that there are
17929 # no rules to generate ltmain.sh.
17930 if test -f "$ltmain"; then
17931 # See if we are running on zsh, and set the options which allow our commands through
17932 # without removal of \ escapes.
17933 if test -n "${ZSH_VERSION+set}" ; then
17934 setopt NO_GLOB_SUBST
17936 # Now quote all the things that may contain metacharacters while being
17937 # careful not to overquote the AC_SUBSTed values. We take copies of the
17938 # variables and quote the copies for generation of the libtool script.
17939 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17941 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17942 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17943 deplibs_check_method reload_flag reload_cmds need_locks \
17944 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17945 lt_cv_sys_global_symbol_to_c_name_address \
17946 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17947 old_postinstall_cmds old_postuninstall_cmds \
17951 lt_prog_compiler_wl \
17952 lt_prog_compiler_pic \
17953 lt_prog_compiler_static \
17954 lt_prog_compiler_no_builtin_flag \
17955 export_dynamic_flag_spec \
17956 thread_safe_flag_spec \
17957 whole_archive_flag_spec \
17958 enable_shared_with_static_runtimes \
17960 old_archive_from_new_cmds \
17965 compiler_lib_search_path \
17967 archive_expsym_cmds \
17969 postuninstall_cmds \
17970 old_archive_from_expsyms_cmds \
17971 allow_undefined_flag \
17972 no_undefined_flag \
17973 export_symbols_cmds \
17974 hardcode_libdir_flag_spec \
17975 hardcode_libdir_flag_spec_ld \
17976 hardcode_libdir_separator \
17977 hardcode_automatic \
17979 module_expsym_cmds \
17980 lt_cv_prog_compiler_c_o \
17982 include_expsyms; do
17985 old_archive_cmds | \
17986 old_archive_from_new_cmds | \
17988 archive_expsym_cmds | \
17990 module_expsym_cmds | \
17991 old_archive_from_expsyms_cmds | \
17992 export_symbols_cmds | \
17993 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17994 postinstall_cmds | postuninstall_cmds | \
17995 old_postinstall_cmds | old_postuninstall_cmds | \
17996 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17997 # Double-quote double-evaled strings.
17998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18007 *'\$0 --fallback-echo"')
18008 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18012 cfgfile="${ofile}T"
18013 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18015 { echo "$as_me:$LINENO: creating $ofile" >&5
18016 echo "$as_me: creating $ofile" >&6;}
18018 cat <<__EOF__ >> "$cfgfile"
18021 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18022 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18023 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18025 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18026 # Free Software Foundation, Inc.
18028 # This file is part of GNU Libtool:
18029 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18031 # This program is free software; you can redistribute it and/or modify
18032 # it under the terms of the GNU General Public License as published by
18033 # the Free Software Foundation; either version 2 of the License, or
18034 # (at your option) any later version.
18036 # This program is distributed in the hope that it will be useful, but
18037 # WITHOUT ANY WARRANTY; without even the implied warranty of
18038 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18039 # General Public License for more details.
18041 # You should have received a copy of the GNU General Public License
18042 # along with this program; if not, write to the Free Software
18043 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18045 # As a special exception to the GNU General Public License, if you
18046 # distribute this file as part of a program that contains a
18047 # configuration script generated by Autoconf, you may include it under
18048 # the same distribution terms that you use for the rest of that program.
18050 # A sed program that does not truncate output.
18053 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18054 Xsed="$SED -e 1s/^X//"
18056 # The HP-UX ksh and POSIX shell print the target directory to stdout
18057 # if CDPATH is set.
18058 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18060 # The names of the tagged configurations supported by this script.
18063 # ### BEGIN LIBTOOL CONFIG
18065 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18067 # Shell to use when invoking shell scripts.
18070 # Whether or not to build shared libraries.
18071 build_libtool_libs=$enable_shared
18073 # Whether or not to build static libraries.
18074 build_old_libs=$enable_static
18076 # Whether or not to add -lc for building shared libraries.
18077 build_libtool_need_lc=$archive_cmds_need_lc
18079 # Whether or not to disallow shared libs when runtime libs are static
18080 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18082 # Whether or not to optimize for fast installation.
18083 fast_install=$enable_fast_install
18086 host_alias=$host_alias
18090 # The build system.
18091 build_alias=$build_alias
18095 # An echo program that does not interpret backslashes.
18100 AR_FLAGS=$lt_AR_FLAGS
18105 # LTCC compiler flags.
18106 LTCFLAGS=$lt_LTCFLAGS
18108 # A language-specific compiler.
18111 # Is the compiler the GNU C compiler?
18117 # The linker used to build libraries.
18120 # Whether we need hard or soft links.
18123 # A BSD-compatible nm program.
18126 # A symbol stripping program
18129 # Used to examine libraries when file_magic_cmd begins "file"
18130 MAGIC_CMD=$MAGIC_CMD
18132 # Used on cygwin: DLL creation program.
18135 # Used on cygwin: object dumper.
18138 # Used on cygwin: assembler.
18141 # The name of the directory that contains temporary libtool files.
18144 # How to create reloadable object files.
18145 reload_flag=$lt_reload_flag
18146 reload_cmds=$lt_reload_cmds
18148 # How to pass a linker flag through the compiler.
18149 wl=$lt_lt_prog_compiler_wl
18151 # Object file suffix (normally "o").
18152 objext="$ac_objext"
18154 # Old archive suffix (normally "a").
18157 # Shared library suffix (normally ".so").
18158 shrext_cmds='$shrext_cmds'
18160 # Executable file suffix (normally "").
18163 # Additional compiler flags for building library objects.
18164 pic_flag=$lt_lt_prog_compiler_pic
18167 # What is the maximum length of a command?
18168 max_cmd_len=$lt_cv_sys_max_cmd_len
18170 # Does compiler simultaneously support -c and -o options?
18171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18173 # Must we lock files when doing compilation?
18174 need_locks=$lt_need_locks
18176 # Do we need the lib prefix for modules?
18177 need_lib_prefix=$need_lib_prefix
18179 # Do we need a version for libraries?
18180 need_version=$need_version
18182 # Whether dlopen is supported.
18183 dlopen_support=$enable_dlopen
18185 # Whether dlopen of programs is supported.
18186 dlopen_self=$enable_dlopen_self
18188 # Whether dlopen of statically linked programs is supported.
18189 dlopen_self_static=$enable_dlopen_self_static
18191 # Compiler flag to prevent dynamic linking.
18192 link_static_flag=$lt_lt_prog_compiler_static
18194 # Compiler flag to turn off builtin functions.
18195 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18197 # Compiler flag to allow reflexive dlopens.
18198 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18200 # Compiler flag to generate shared objects directly from archives.
18201 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18203 # Compiler flag to generate thread-safe objects.
18204 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18206 # Library versioning type.
18207 version_type=$version_type
18209 # Format of library name prefix.
18210 libname_spec=$lt_libname_spec
18212 # List of archive names. First name is the real one, the rest are links.
18213 # The last name is the one that the linker finds with -lNAME.
18214 library_names_spec=$lt_library_names_spec
18216 # The coded name of the library, if different from the real name.
18217 soname_spec=$lt_soname_spec
18219 # Commands used to build and install an old-style archive.
18221 old_archive_cmds=$lt_old_archive_cmds
18222 old_postinstall_cmds=$lt_old_postinstall_cmds
18223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18225 # Create an old-style archive from a shared archive.
18226 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18228 # Create a temporary old-style archive to link instead of a shared archive.
18229 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18231 # Commands used to build and install a shared archive.
18232 archive_cmds=$lt_archive_cmds
18233 archive_expsym_cmds=$lt_archive_expsym_cmds
18234 postinstall_cmds=$lt_postinstall_cmds
18235 postuninstall_cmds=$lt_postuninstall_cmds
18237 # Commands used to build a loadable module (assumed same as above if empty)
18238 module_cmds=$lt_module_cmds
18239 module_expsym_cmds=$lt_module_expsym_cmds
18241 # Commands to strip libraries.
18242 old_striplib=$lt_old_striplib
18243 striplib=$lt_striplib
18245 # Dependencies to place before the objects being linked to create a
18247 predep_objects=$lt_predep_objects
18249 # Dependencies to place after the objects being linked to create a
18251 postdep_objects=$lt_postdep_objects
18253 # Dependencies to place before the objects being linked to create a
18255 predeps=$lt_predeps
18257 # Dependencies to place after the objects being linked to create a
18259 postdeps=$lt_postdeps
18261 # The library search path used internally by the compiler when linking
18262 # a shared library.
18263 compiler_lib_search_path=$lt_compiler_lib_search_path
18265 # Method to check whether dependent libraries are shared objects.
18266 deplibs_check_method=$lt_deplibs_check_method
18268 # Command to use when deplibs_check_method == file_magic.
18269 file_magic_cmd=$lt_file_magic_cmd
18271 # Flag that allows shared libraries with undefined symbols to be built.
18272 allow_undefined_flag=$lt_allow_undefined_flag
18274 # Flag that forces no undefined symbols.
18275 no_undefined_flag=$lt_no_undefined_flag
18277 # Commands used to finish a libtool library installation in a directory.
18278 finish_cmds=$lt_finish_cmds
18280 # Same as above, but a single script fragment to be evaled but not shown.
18281 finish_eval=$lt_finish_eval
18283 # Take the output of nm and produce a listing of raw symbols and C names.
18284 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18286 # Transform the output of nm in a proper C declaration
18287 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18289 # Transform the output of nm in a C name address pair
18290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18292 # This is the shared library runtime path variable.
18293 runpath_var=$runpath_var
18295 # This is the shared library path variable.
18296 shlibpath_var=$shlibpath_var
18298 # Is shlibpath searched before the hard-coded library search path?
18299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18301 # How to hardcode a shared library path into an executable.
18302 hardcode_action=$hardcode_action
18304 # Whether we should hardcode library paths into libraries.
18305 hardcode_into_libs=$hardcode_into_libs
18307 # Flag to hardcode \$libdir into a binary during linking.
18308 # This must work even if \$libdir does not exist.
18309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18311 # If ld is used when linking, flag to hardcode \$libdir into
18312 # a binary during linking. This must work even if \$libdir does
18314 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18316 # Whether we need a single -rpath flag with a separated argument.
18317 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18319 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18320 # resulting binary.
18321 hardcode_direct=$hardcode_direct
18323 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18324 # resulting binary.
18325 hardcode_minus_L=$hardcode_minus_L
18327 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18328 # the resulting binary.
18329 hardcode_shlibpath_var=$hardcode_shlibpath_var
18331 # Set to yes if building a shared library automatically hardcodes DIR into the library
18332 # and all subsequent libraries and executables linked against it.
18333 hardcode_automatic=$hardcode_automatic
18335 # Variables whose values should be saved in libtool wrapper scripts and
18336 # restored at relink time.
18337 variables_saved_for_relink="$variables_saved_for_relink"
18339 # Whether libtool must link a program against all its dependency libraries.
18340 link_all_deplibs=$link_all_deplibs
18342 # Compile-time system search path for libraries
18343 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18345 # Run-time system search path for libraries
18346 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18348 # Fix the shell variable \$srcfile for the compiler.
18349 fix_srcfile_path="$fix_srcfile_path"
18351 # Set to yes if exported symbols are required.
18352 always_export_symbols=$always_export_symbols
18354 # The commands to list exported symbols.
18355 export_symbols_cmds=$lt_export_symbols_cmds
18357 # The commands to extract the exported symbol list from a shared archive.
18358 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18360 # Symbols that should not be listed in the preloaded symbols.
18361 exclude_expsyms=$lt_exclude_expsyms
18363 # Symbols that must always be exported.
18364 include_expsyms=$lt_include_expsyms
18366 # ### END LIBTOOL CONFIG
18373 cat <<\EOF >> "$cfgfile"
18375 # AIX sometimes has problems with the GCC collect2 program. For some
18376 # reason, if we set the COLLECT_NAMES environment variable, the problems
18377 # vanish in a puff of smoke.
18378 if test "X${COLLECT_NAMES+set}" != Xset; then
18380 export COLLECT_NAMES
18386 # We use sed instead of cat because bash on DJGPP gets confused if
18387 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18388 # text mode, it properly converts lines to CR/LF. This bash problem
18389 # is reportedly fixed, but why not run on old versions too?
18390 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18392 mv -f "$cfgfile" "$ofile" || \
18393 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18397 # If there is no Makefile yet, we rely on a make rule to execute
18398 # `config.status --recheck' to rerun these tests and create the
18399 # libtool script then.
18400 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18401 if test -f "$ltmain_in"; then
18402 test -f Makefile && make "$ltmain"
18408 ac_cpp='$CPP $CPPFLAGS'
18409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18416 # Check whether --with-tags was given.
18417 if test "${with_tags+set}" = set; then
18418 withval=$with_tags; tagnames="$withval"
18422 if test -f "$ltmain" && test -n "$tagnames"; then
18423 if test ! -f "${ofile}"; then
18424 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18425 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18428 if test -z "$LTCC"; then
18429 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18430 if test -z "$LTCC"; then
18431 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18432 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18435 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18438 if test -z "$LTCFLAGS"; then
18439 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18442 # Extract list of available tagged configurations in $ofile.
18443 # Note that this assumes the entire list is on one line.
18444 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18447 for tagname in $tagnames; do
18449 # Check whether tagname contains only valid characters
18450 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18452 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18453 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18454 { (exit 1); exit 1; }; }
18458 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18460 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18461 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18462 { (exit 1); exit 1; }; }
18465 # Update the list of available tags.
18466 if test -n "$tagname"; then
18467 echo appending configuration tag \"$tagname\" to $ofile
18471 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18472 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18473 (test "X$CXX" != "Xg++"))) ; then
18475 ac_cpp='$CXXCPP $CPPFLAGS'
18476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18483 archive_cmds_need_lc_CXX=no
18484 allow_undefined_flag_CXX=
18485 always_export_symbols_CXX=no
18486 archive_expsym_cmds_CXX=
18487 export_dynamic_flag_spec_CXX=
18488 hardcode_direct_CXX=no
18489 hardcode_libdir_flag_spec_CXX=
18490 hardcode_libdir_flag_spec_ld_CXX=
18491 hardcode_libdir_separator_CXX=
18492 hardcode_minus_L_CXX=no
18493 hardcode_shlibpath_var_CXX=unsupported
18494 hardcode_automatic_CXX=no
18496 module_expsym_cmds_CXX=
18497 link_all_deplibs_CXX=unknown
18498 old_archive_cmds_CXX=$old_archive_cmds
18499 no_undefined_flag_CXX=
18500 whole_archive_flag_spec_CXX=
18501 enable_shared_with_static_runtimes_CXX=no
18503 # Dependencies to place before and after the object being linked:
18504 predep_objects_CXX=
18505 postdep_objects_CXX=
18508 compiler_lib_search_path_CXX=
18510 # Source file extension for C++ test sources.
18513 # Object file extension for compiled C++ test sources.
18517 # Code to be used in simple compile tests
18518 lt_simple_compile_test_code="int some_variable = 0;\n"
18520 # Code to be used in simple link tests
18521 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18523 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18525 # If no C compiler was specified, use CC.
18528 # If no C compiler flags were specified, use CFLAGS.
18529 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18531 # Allow CC to be a program name with arguments.
18535 # save warnings/boilerplate of simple test code
18536 ac_outfile=conftest.$ac_objext
18537 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18538 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18539 _lt_compiler_boilerplate=`cat conftest.err`
18542 ac_outfile=conftest.$ac_objext
18543 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18544 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18545 _lt_linker_boilerplate=`cat conftest.err`
18549 # Allow CC to be a program name with arguments.
18554 lt_save_with_gnu_ld=$with_gnu_ld
18555 lt_save_path_LD=$lt_cv_path_LD
18556 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18557 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18559 $as_unset lt_cv_prog_gnu_ld
18561 if test -n "${lt_cv_path_LDCXX+set}"; then
18562 lt_cv_path_LD=$lt_cv_path_LDCXX
18564 $as_unset lt_cv_path_LD
18566 test -z "${LDCXX+set}" || LD=$LDCXX
18570 for cc_temp in $compiler""; do
18572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18578 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18581 # We don't want -fno-exception wen compiling C++ code, so set the
18582 # no_builtin_flag separately
18583 if test "$GXX" = yes; then
18584 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18586 lt_prog_compiler_no_builtin_flag_CXX=
18589 if test "$GXX" = yes; then
18590 # Set up default GNU C++ configuration
18593 # Check whether --with-gnu-ld was given.
18594 if test "${with_gnu_ld+set}" = set; then
18595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18601 if test "$GCC" = yes; then
18602 # Check if gcc -print-prog-name=ld gives a path.
18603 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18604 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18607 # gcc leaves a trailing carriage return which upsets mingw
18608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18613 # Accept absolute paths.
18615 re_direlt='/[^/][^/]*/\.\./'
18616 # Canonicalize the pathname of ld
18617 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18618 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18619 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18621 test -z "$LD" && LD="$ac_prog"
18624 # If it fails, then pretend we aren't using GCC.
18628 # If it is relative, then search for the first ld in PATH.
18629 with_gnu_ld=unknown
18632 elif test "$with_gnu_ld" = yes; then
18633 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18634 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18636 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18637 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18639 if test "${lt_cv_path_LD+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 if test -z "$LD"; then
18643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18644 for ac_dir in $PATH; do
18646 test -z "$ac_dir" && ac_dir=.
18647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18648 lt_cv_path_LD="$ac_dir/$ac_prog"
18649 # Check to see if the program is GNU ld. I'd rather use --version,
18650 # but apparently some variants of GNU ld only accept -v.
18651 # Break only if it was the GNU/non-GNU ld that we prefer.
18652 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18653 *GNU* | *'with BFD'*)
18654 test "$with_gnu_ld" != no && break
18657 test "$with_gnu_ld" != yes && break
18664 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18668 LD="$lt_cv_path_LD"
18669 if test -n "$LD"; then
18670 { echo "$as_me:$LINENO: result: $LD" >&5
18671 echo "${ECHO_T}$LD" >&6; }
18673 { echo "$as_me:$LINENO: result: no" >&5
18674 echo "${ECHO_T}no" >&6; }
18676 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18677 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18678 { (exit 1); exit 1; }; }
18679 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18680 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18681 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18684 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18685 case `$LD -v 2>&1 </dev/null` in
18686 *GNU* | *'with BFD'*)
18687 lt_cv_prog_gnu_ld=yes
18690 lt_cv_prog_gnu_ld=no
18694 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18695 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18696 with_gnu_ld=$lt_cv_prog_gnu_ld
18700 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18701 # archiving commands below assume that GNU ld is being used.
18702 if test "$with_gnu_ld" = yes; then
18703 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18704 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'
18706 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18707 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18709 # If archive_cmds runs LD, not CC, wlarc should be empty
18710 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18711 # investigate it a little bit more. (MM)
18714 # ancient GNU ld didn't support --whole-archive et. al.
18715 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18716 grep 'no-whole-archive' > /dev/null; then
18717 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18719 whole_archive_flag_spec_CXX=
18725 # A generic and very simple default shared library creation
18726 # command for GNU C++ for the case where it uses the native
18727 # linker, instead of GNU ld. If possible, this setting should
18728 # overridden to take advantage of the native linker features on
18729 # the platform it is being used on.
18730 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18733 # Commands to make compiler produce verbose output that lists
18734 # what "hidden" libraries, object files and flags are used when
18735 # linking a shared library.
18736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18744 # PORTME: fill in a description of your system's C++ link characteristics
18745 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18746 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18750 # FIXME: insert proper C++ library support
18754 if test "$host_cpu" = ia64; then
18755 # On IA64, the linker does run time linking by default, so we don't
18756 # have to do anything special.
18757 aix_use_runtimelinking=no
18758 exp_sym_flag='-Bexport'
18761 aix_use_runtimelinking=no
18763 # Test if we are trying to use run time linking or normal
18764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18765 # need to do runtime linking.
18766 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18767 for ld_flag in $LDFLAGS; do
18770 aix_use_runtimelinking=yes
18778 exp_sym_flag='-bexport'
18779 no_entry_flag='-bnoentry'
18782 # When large executables or shared objects are built, AIX ld can
18783 # have problems creating the table of contents. If linking a library
18784 # or program results in "error TOC overflow" add -mminimal-toc to
18785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18788 archive_cmds_CXX=''
18789 hardcode_direct_CXX=yes
18790 hardcode_libdir_separator_CXX=':'
18791 link_all_deplibs_CXX=yes
18793 if test "$GXX" = yes; then
18794 case $host_os in aix4.[012]|aix4.[012].*)
18795 # We only want to do this on AIX 4.2 and lower, the check
18796 # below for broken collect2 doesn't work under 4.3+
18797 collect2name=`${CC} -print-prog-name=collect2`
18798 if test -f "$collect2name" && \
18799 strings "$collect2name" | grep resolve_lib_name >/dev/null
18801 # We have reworked collect2
18802 hardcode_direct_CXX=yes
18804 # We have old collect2
18805 hardcode_direct_CXX=unsupported
18806 # It fails to find uninstalled libraries when the uninstalled
18807 # path is not listed in the libpath. Setting hardcode_minus_L
18808 # to unsupported forces relinking
18809 hardcode_minus_L_CXX=yes
18810 hardcode_libdir_flag_spec_CXX='-L$libdir'
18811 hardcode_libdir_separator_CXX=
18815 shared_flag='-shared'
18816 if test "$aix_use_runtimelinking" = yes; then
18817 shared_flag="$shared_flag "'${wl}-G'
18821 if test "$host_cpu" = ia64; then
18822 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18823 # chokes on -Wl,-G. The following line is correct:
18826 if test "$aix_use_runtimelinking" = yes; then
18827 shared_flag='${wl}-G'
18829 shared_flag='${wl}-bM:SRE'
18834 # It seems that -bexpall does not export symbols beginning with
18835 # underscore (_), so it is better to generate a list of symbols to export.
18836 always_export_symbols_CXX=yes
18837 if test "$aix_use_runtimelinking" = yes; then
18838 # Warning - without using the other runtime loading flags (-brtl),
18839 # -berok will link without error, but may produce a broken library.
18840 allow_undefined_flag_CXX='-berok'
18841 # Determine the default libpath from the value encoded in an empty executable.
18842 cat >conftest.$ac_ext <<_ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h. */
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (ac_try="$ac_link"
18859 case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_link") 2>conftest.er1
18866 grep -v '^ *+' conftest.er1 >conftest.err
18868 cat conftest.err >&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } &&
18871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; } &&
18881 { ac_try='test -s conftest$ac_exeext'
18882 { (case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_try") 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18892 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18894 # Check for a 64-bit object if we didn't find anything.
18895 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; }
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18904 rm -f core conftest.err conftest.$ac_objext \
18905 conftest$ac_exeext conftest.$ac_ext
18906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18908 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18910 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"
18912 if test "$host_cpu" = ia64; then
18913 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18914 allow_undefined_flag_CXX="-z nodefs"
18915 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"
18917 # Determine the default libpath from the value encoded in an empty executable.
18918 cat >conftest.$ac_ext <<_ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h. */
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (ac_try="$ac_link"
18935 case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_link") 2>conftest.er1
18942 grep -v '^ *+' conftest.er1 >conftest.err
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } &&
18947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18948 { (case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_try") 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_try") 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18970 # Check for a 64-bit object if we didn't find anything.
18971 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; }
18974 echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18980 rm -f core conftest.err conftest.$ac_objext \
18981 conftest$ac_exeext conftest.$ac_ext
18982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18984 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18985 # Warning - without using the other run time loading flags,
18986 # -berok will link without error, but may produce a broken library.
18987 no_undefined_flag_CXX=' ${wl}-bernotok'
18988 allow_undefined_flag_CXX=' ${wl}-berok'
18989 # Exported symbols can be pulled into shared objects from archives
18990 whole_archive_flag_spec_CXX='$convenience'
18991 archive_cmds_need_lc_CXX=yes
18992 # This is similar to how AIX traditionally builds its shared libraries.
18993 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'
18999 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19000 allow_undefined_flag_CXX=unsupported
19001 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19002 # support --undefined. This deserves some investigation. FIXME
19003 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19010 case $cc_basename in
19012 # FIXME: insert proper C++ library support
19018 cygwin* | mingw* | pw32*)
19019 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19020 # as there is no search path for DLLs.
19021 hardcode_libdir_flag_spec_CXX='-L$libdir'
19022 allow_undefined_flag_CXX=unsupported
19023 always_export_symbols_CXX=no
19024 enable_shared_with_static_runtimes_CXX=yes
19026 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19027 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'
19028 # If the export-symbols file already is a .def file (1st line
19029 # is EXPORTS), use it as is; otherwise, prepend...
19030 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19031 cp $export_symbols $output_objdir/$soname.def;
19033 echo EXPORTS > $output_objdir/$soname.def;
19034 cat $export_symbols >> $output_objdir/$soname.def;
19036 $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'
19041 darwin* | rhapsody*)
19043 rhapsody* | darwin1.[012])
19044 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19047 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19048 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19050 case ${MACOSX_DEPLOYMENT_TARGET} in
19052 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19055 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19061 archive_cmds_need_lc_CXX=no
19062 hardcode_direct_CXX=no
19063 hardcode_automatic_CXX=yes
19064 hardcode_shlibpath_var_CXX=unsupported
19065 whole_archive_flag_spec_CXX=''
19066 link_all_deplibs_CXX=yes
19068 if test "$GXX" = yes ; then
19069 lt_int_apple_cc_single_mod=no
19070 output_verbose_link_cmd='echo'
19071 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19072 lt_int_apple_cc_single_mod=yes
19074 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19075 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19077 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'
19079 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19080 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19082 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}'
19084 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}'
19086 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}'
19088 case $cc_basename in
19090 output_verbose_link_cmd='echo'
19091 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'
19092 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19093 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19094 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}'
19095 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}'
19105 case $cc_basename in
19107 # FIXME: insert proper C++ library support
19111 # Green Hills C++ Compiler
19112 # FIXME: insert proper C++ library support
19116 # FIXME: insert proper C++ library support
19122 # C++ shared libraries reported to be fairly broken before switch to ELF
19126 archive_cmds_need_lc_CXX=no
19128 freebsd* | kfreebsd*-gnu | dragonfly*)
19129 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19136 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19137 hardcode_libdir_separator_CXX=:
19138 export_dynamic_flag_spec_CXX='${wl}-E'
19139 hardcode_direct_CXX=yes
19140 hardcode_minus_L_CXX=yes # Not in the search PATH,
19141 # but as the default
19142 # location of the library.
19144 case $cc_basename in
19146 # FIXME: insert proper C++ library support
19150 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'
19151 # Commands to make compiler produce verbose output that lists
19152 # what "hidden" libraries, object files and flags are used when
19153 # linking a shared library.
19155 # There doesn't appear to be a way to prevent this compiler from
19156 # explicitly linking system object files so we need to strip them
19157 # from the output so that they don't get included in the library
19159 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'
19162 if test "$GXX" = yes; then
19163 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'
19165 # FIXME: insert proper C++ library support
19172 if test $with_gnu_ld = no; then
19173 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19174 hardcode_libdir_separator_CXX=:
19178 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19181 export_dynamic_flag_spec_CXX='${wl}-E'
19187 hardcode_direct_CXX=no
19188 hardcode_shlibpath_var_CXX=no
19191 hardcode_direct_CXX=yes
19192 hardcode_minus_L_CXX=yes # Not in the search PATH,
19193 # but as the default
19194 # location of the library.
19198 case $cc_basename in
19200 # FIXME: insert proper C++ library support
19206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19209 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19212 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19215 # Commands to make compiler produce verbose output that lists
19216 # what "hidden" libraries, object files and flags are used when
19217 # linking a shared library.
19219 # There doesn't appear to be a way to prevent this compiler from
19220 # explicitly linking system object files so we need to strip them
19221 # from the output so that they don't get included in the library
19223 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'
19226 if test "$GXX" = yes; then
19227 if test $with_gnu_ld = no; then
19230 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19233 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19236 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'
19241 # FIXME: insert proper C++ library support
19248 hardcode_direct_CXX=no
19249 hardcode_shlibpath_var_CXX=no
19250 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19251 export_dynamic_flag_spec_CXX='${wl}-E'
19252 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19253 # Instead, shared libraries are loaded at an image base (0x10000000 by
19254 # default) and relocated if they conflict, which is a slow very memory
19255 # consuming and fragmenting process. To avoid this, we pick a random,
19256 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19257 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19258 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'
19259 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'
19262 case $cc_basename in
19265 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'
19267 # Archives containing C++ object files must be created using
19268 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19269 # necessary to make sure instantiated templates are included
19271 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19274 if test "$GXX" = yes; then
19275 if test "$with_gnu_ld" = no; then
19276 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'
19278 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'
19281 link_all_deplibs_CXX=yes
19284 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19285 hardcode_libdir_separator_CXX=:
19288 case $cc_basename in
19290 # Kuck and Associates, Inc. (KAI) C++ Compiler
19292 # KCC will only create a shared library if the output file
19293 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19294 # to its proper name (with version) after linking.
19295 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'
19296 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'
19297 # Commands to make compiler produce verbose output that lists
19298 # what "hidden" libraries, object files and flags are used when
19299 # linking a shared library.
19301 # There doesn't appear to be a way to prevent this compiler from
19302 # explicitly linking system object files so we need to strip them
19303 # from the output so that they don't get included in the library
19305 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'
19307 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19310 # Archives containing C++ object files must be created using
19311 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19312 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19317 # version 8.0 and above of icpc choke on multiply defined symbols
19318 # if we add $predep_objects and $postdep_objects, however 7.1 and
19319 # earlier do not add the objects themselves.
19320 case `$CC -V 2>&1` in
19322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19323 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'
19325 *) # Version 8.0 or newer
19328 ia64*) tmp_idyn=' -i_dynamic';;
19330 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19331 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'
19334 archive_cmds_need_lc_CXX=no
19335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19337 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19340 # Portland Group C++ compiler
19341 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19342 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'
19344 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19346 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'
19350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351 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'
19353 runpath_var=LD_RUN_PATH
19354 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19355 hardcode_libdir_separator_CXX=:
19357 # Commands to make compiler produce verbose output that lists
19358 # what "hidden" libraries, object files and flags are used when
19359 # linking a shared library.
19361 # There doesn't appear to be a way to prevent this compiler from
19362 # explicitly linking system object files so we need to strip them
19363 # from the output so that they don't get included in the library
19365 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'
19370 # FIXME: insert proper C++ library support
19374 # FIXME: insert proper C++ library support
19378 case $cc_basename in
19380 # FIXME: insert proper C++ library support
19384 # FIXME: insert proper C++ library support
19390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19391 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19393 hardcode_libdir_flag_spec_CXX='-R$libdir'
19394 hardcode_direct_CXX=yes
19395 hardcode_shlibpath_var_CXX=no
19397 # Workaround some broken pre-1.5 toolchains
19398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19401 # C++ shared libraries are fairly broken
19405 hardcode_direct_CXX=yes
19406 hardcode_shlibpath_var_CXX=no
19407 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19409 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19410 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19411 export_dynamic_flag_spec_CXX='${wl}-E'
19412 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19414 output_verbose_link_cmd='echo'
19417 case $cc_basename in
19419 # Kuck and Associates, Inc. (KAI) C++ Compiler
19421 # KCC will only create a shared library if the output file
19422 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19423 # to its proper name (with version) after linking.
19424 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'
19426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19427 hardcode_libdir_separator_CXX=:
19429 # Archives containing C++ object files must be created using
19430 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19431 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19435 # Rational C++ 2.4.1
19436 # FIXME: insert proper C++ library support
19440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19441 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'
19443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19444 hardcode_libdir_separator_CXX=:
19446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
19450 # There doesn't appear to be a way to prevent this compiler from
19451 # explicitly linking system object files so we need to strip them
19452 # from the output so that they don't get included in the library
19454 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'
19457 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19458 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19459 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'
19461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19462 hardcode_libdir_separator_CXX=:
19464 # Commands to make compiler produce verbose output that lists
19465 # what "hidden" libraries, object files and flags are used when
19466 # linking a shared library.
19467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19470 # FIXME: insert proper C++ library support
19477 case $cc_basename in
19479 # Kuck and Associates, Inc. (KAI) C++ Compiler
19481 # KCC will only create a shared library if the output file
19482 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19483 # to its proper name (with version) after linking.
19484 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'
19486 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19487 hardcode_libdir_separator_CXX=:
19489 # Archives containing C++ object files must be created using
19490 # the KAI C++ compiler.
19491 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19494 # Rational C++ 2.4.1
19495 # FIXME: insert proper C++ library support
19499 allow_undefined_flag_CXX=' -expect_unresolved \*'
19500 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'
19501 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19502 echo "-hidden">> $lib.exp~
19503 $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~
19506 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19507 hardcode_libdir_separator_CXX=:
19509 # Commands to make compiler produce verbose output that lists
19510 # what "hidden" libraries, object files and flags are used when
19511 # linking a shared library.
19513 # There doesn't appear to be a way to prevent this compiler from
19514 # explicitly linking system object files so we need to strip them
19515 # from the output so that they don't get included in the library
19517 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'
19520 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19521 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19522 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'
19524 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19525 hardcode_libdir_separator_CXX=:
19527 # Commands to make compiler produce verbose output that lists
19528 # what "hidden" libraries, object files and flags are used when
19529 # linking a shared library.
19530 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19533 # FIXME: insert proper C++ library support
19540 # FIXME: insert proper C++ library support
19544 case $cc_basename in
19547 # FIXME: insert proper C++ library support
19552 # FIXME: insert proper C++ library support
19556 # FIXME: insert proper C++ library support
19562 case $cc_basename in
19564 # Sun C++ 4.2, 5.x and Centerline C++
19565 archive_cmds_need_lc_CXX=yes
19566 no_undefined_flag_CXX=' -zdefs'
19567 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19568 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19569 $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'
19571 hardcode_libdir_flag_spec_CXX='-R$libdir'
19572 hardcode_shlibpath_var_CXX=no
19574 solaris2.[0-5] | solaris2.[0-5].*) ;;
19576 # The C++ compiler is used as linker so we must use $wl
19577 # flag to pass the commands to the underlying system
19578 # linker. We must also pass each convience library through
19579 # to the system linker between allextract/defaultextract.
19580 # The C++ compiler will combine linker options so we
19581 # cannot just pass the convience library names through
19583 # Supported since Solaris 2.6 (maybe 2.5.1?)
19584 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'
19587 link_all_deplibs_CXX=yes
19589 output_verbose_link_cmd='echo'
19591 # Archives containing C++ object files must be created using
19592 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19593 # necessary to make sure instantiated templates are included
19595 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19598 # Green Hills C++ Compiler
19599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19601 # The C++ compiler must be used to create the archive.
19602 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19605 # GNU C++ compiler with Solaris linker
19606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19607 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19608 if $CC --version | grep -v '^2\.7' > /dev/null; then
19609 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19610 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19611 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19613 # Commands to make compiler produce verbose output that lists
19614 # what "hidden" libraries, object files and flags are used when
19615 # linking a shared library.
19616 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19618 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19620 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19621 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19622 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19624 # Commands to make compiler produce verbose output that lists
19625 # what "hidden" libraries, object files and flags are used when
19626 # linking a shared library.
19627 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19630 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19636 no_undefined_flag_CXX='${wl}-z,text'
19637 archive_cmds_need_lc_CXX=no
19638 hardcode_shlibpath_var_CXX=no
19639 runpath_var='LD_RUN_PATH'
19641 case $cc_basename in
19643 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19644 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19647 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19648 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19652 sysv5* | sco3.2v5* | sco5v6*)
19653 # Note: We can NOT use -z defs as we might desire, because we do not
19654 # link with -lc, and that would cause any symbols used from libc to
19655 # always be unresolved, which means just about no library would
19656 # ever link correctly. If we're not using GNU ld we use -z text
19657 # though, which does catch some bad symbols but isn't as heavy-handed
19659 # For security reasons, it is highly recommended that you always
19660 # use absolute paths for naming shared libraries, and exclude the
19661 # DT_RUNPATH tag from executables and libraries. But doing so
19662 # requires that you compile everything twice, which is a pain.
19663 # So that behaviour is only enabled if SCOABSPATH is set to a
19664 # non-empty value in the environment. Most likely only useful for
19665 # creating official distributions of packages.
19666 # This is a hack until libtool officially supports absolute path
19667 # names for shared libraries.
19668 no_undefined_flag_CXX='${wl}-z,text'
19669 allow_undefined_flag_CXX='${wl}-z,nodefs'
19670 archive_cmds_need_lc_CXX=no
19671 hardcode_shlibpath_var_CXX=no
19672 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19673 hardcode_libdir_separator_CXX=':'
19674 link_all_deplibs_CXX=yes
19675 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19676 runpath_var='LD_RUN_PATH'
19678 case $cc_basename in
19680 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19681 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19684 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19685 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19690 case $cc_basename in
19692 # NonStop-UX NCC 3.20
19693 # FIXME: insert proper C++ library support
19697 # FIXME: insert proper C++ library support
19703 # FIXME: insert proper C++ library support
19707 # FIXME: insert proper C++ library support
19711 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19712 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19713 test "$ld_shlibs_CXX" = no && can_build_shared=no
19719 cat > conftest.$ac_ext <<EOF
19723 Foo (void) { a = 0; }
19729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19730 (eval $ac_compile) 2>&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; then
19734 # Parse the compiler output and extract the necessary
19735 # objects, libraries and library flags.
19737 # Sentinel used to keep track of whether or not we are before
19738 # the conftest object file.
19739 pre_test_object_deps_done=no
19741 # The `*' in the case matches for architectures that use `case' in
19742 # $output_verbose_cmd can trigger glob expansion during the loop
19743 # eval without this substitution.
19744 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19746 for p in `eval $output_verbose_link_cmd`; do
19750 # Some compilers place space between "-{L,R}" and the path.
19751 # Remove the space.
19752 if test $p = "-L" \
19753 || test $p = "-R"; then
19760 if test "$pre_test_object_deps_done" = no; then
19763 # Internal compiler library paths should come after those
19764 # provided the user. The postdeps already come after the
19765 # user supplied libs so there is no need to process them.
19766 if test -z "$compiler_lib_search_path_CXX"; then
19767 compiler_lib_search_path_CXX="${prev}${p}"
19769 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19772 # The "-l" case would never come before the object being
19773 # linked, so don't bother handling this case.
19776 if test -z "$postdeps_CXX"; then
19777 postdeps_CXX="${prev}${p}"
19779 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19785 # This assumes that the test object file only shows up
19786 # once in the compiler output.
19787 if test "$p" = "conftest.$objext"; then
19788 pre_test_object_deps_done=yes
19792 if test "$pre_test_object_deps_done" = no; then
19793 if test -z "$predep_objects_CXX"; then
19794 predep_objects_CXX="$p"
19796 predep_objects_CXX="$predep_objects_CXX $p"
19799 if test -z "$postdep_objects_CXX"; then
19800 postdep_objects_CXX="$p"
19802 postdep_objects_CXX="$postdep_objects_CXX $p"
19807 *) ;; # Ignore the rest.
19815 echo "libtool.m4: error: problem compiling CXX test program"
19818 $rm -f confest.$objext
19820 # PORTME: override above test on systems where it is broken
19823 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19824 # hack all around it, let's just trust "g++" to DTRT.
19825 predep_objects_CXX=
19826 postdep_objects_CXX=
19831 case $cc_basename in
19833 # Adding this requires a known-good setup of shared libraries for
19834 # Sun compiler versions before 5.6, else PIC objects from an old
19835 # archive will be linked into the output, leading to subtle bugs.
19836 postdeps_CXX='-lCstd -lCrun'
19843 case " $postdeps_CXX " in
19844 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19847 lt_prog_compiler_wl_CXX=
19848 lt_prog_compiler_pic_CXX=
19849 lt_prog_compiler_static_CXX=
19851 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19852 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19854 # C++ specific cases for pic, static, wl, etc.
19855 if test "$GXX" = yes; then
19856 lt_prog_compiler_wl_CXX='-Wl,'
19857 lt_prog_compiler_static_CXX='-static'
19861 # All AIX code is PIC.
19862 if test "$host_cpu" = ia64; then
19863 # AIX 5 now supports IA64 processor
19864 lt_prog_compiler_static_CXX='-Bstatic'
19868 # FIXME: we need at least 68020 code to build shared libraries, but
19869 # adding the `-m68020' flag to GCC prevents building anything better,
19871 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19873 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19874 # PIC is the default for these OSes.
19876 mingw* | os2* | pw32*)
19877 # This hack is so that the source file can tell whether it is being
19878 # built for inclusion in a dll (and should export symbols for example).
19879 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19881 darwin* | rhapsody*)
19882 # PIC is the default on this platform
19883 # Common symbols not allowed in MH_DYLIB files
19884 lt_prog_compiler_pic_CXX='-fno-common'
19887 # DJGPP does not support shared libraries at all
19888 lt_prog_compiler_pic_CXX=
19891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19892 # Instead, we relocate shared libraries at runtime.
19895 if test -d /usr/nec; then
19896 lt_prog_compiler_pic_CXX=-Kconform_pic
19900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19901 # not for PA HP-UX.
19906 lt_prog_compiler_pic_CXX='-fPIC'
19911 lt_prog_compiler_pic_CXX='-fPIC'
19917 # All AIX code is PIC.
19918 if test "$host_cpu" = ia64; then
19919 # AIX 5 now supports IA64 processor
19920 lt_prog_compiler_static_CXX='-Bstatic'
19922 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19926 case $cc_basename in
19928 # Green Hills C++ Compiler
19929 # _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"
19934 # PIC is the default on this platform
19935 # Common symbols not allowed in MH_DYLIB files
19936 case $cc_basename in
19938 lt_prog_compiler_pic_CXX='-qnocommon'
19939 lt_prog_compiler_wl_CXX='-Wl,'
19944 case $cc_basename in
19946 lt_prog_compiler_pic_CXX='-KPIC'
19949 # Green Hills C++ Compiler
19950 lt_prog_compiler_pic_CXX='-pic'
19956 freebsd* | kfreebsd*-gnu | dragonfly*)
19957 # FreeBSD uses GNU C++
19959 hpux9* | hpux10* | hpux11*)
19960 case $cc_basename in
19962 lt_prog_compiler_wl_CXX='-Wl,'
19963 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19964 if test "$host_cpu" != ia64; then
19965 lt_prog_compiler_pic_CXX='+Z'
19969 lt_prog_compiler_wl_CXX='-Wl,'
19970 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19976 lt_prog_compiler_pic_CXX='+Z'
19985 # This is c89, which is MS Visual C++ (no shared libs)
19986 # Anyone wants to do a port?
19988 irix5* | irix6* | nonstopux*)
19989 case $cc_basename in
19991 lt_prog_compiler_wl_CXX='-Wl,'
19992 lt_prog_compiler_static_CXX='-non_shared'
19993 # CC pic flag -KPIC is the default.
20000 case $cc_basename in
20003 lt_prog_compiler_wl_CXX='--backend -Wl,'
20004 lt_prog_compiler_pic_CXX='-fPIC'
20008 lt_prog_compiler_wl_CXX='-Wl,'
20009 lt_prog_compiler_pic_CXX='-KPIC'
20010 lt_prog_compiler_static_CXX='-static'
20013 # Portland Group C++ compiler.
20014 lt_prog_compiler_wl_CXX='-Wl,'
20015 lt_prog_compiler_pic_CXX='-fpic'
20016 lt_prog_compiler_static_CXX='-Bstatic'
20020 # Make sure the PIC flag is empty. It appears that all Alpha
20021 # Linux and Compaq Tru64 Unix objects are PIC.
20022 lt_prog_compiler_pic_CXX=
20023 lt_prog_compiler_static_CXX='-non_shared'
20034 case $cc_basename in
20036 lt_prog_compiler_pic_CXX='-W c,exportall'
20044 osf3* | osf4* | osf5*)
20045 case $cc_basename in
20047 lt_prog_compiler_wl_CXX='--backend -Wl,'
20050 # Rational C++ 2.4.1
20051 lt_prog_compiler_pic_CXX='-pic'
20054 # Digital/Compaq C++
20055 lt_prog_compiler_wl_CXX='-Wl,'
20056 # Make sure the PIC flag is empty. It appears that all Alpha
20057 # Linux and Compaq Tru64 Unix objects are PIC.
20058 lt_prog_compiler_pic_CXX=
20059 lt_prog_compiler_static_CXX='-non_shared'
20068 case $cc_basename in
20070 # Sun C++ 4.2, 5.x and Centerline C++
20071 lt_prog_compiler_pic_CXX='-KPIC'
20072 lt_prog_compiler_static_CXX='-Bstatic'
20073 lt_prog_compiler_wl_CXX='-Qoption ld '
20076 # Green Hills C++ Compiler
20077 lt_prog_compiler_pic_CXX='-PIC'
20084 case $cc_basename in
20087 lt_prog_compiler_pic_CXX='-pic'
20088 lt_prog_compiler_static_CXX='-Bstatic'
20092 lt_prog_compiler_pic_CXX='-pic'
20099 case $cc_basename in
20101 # NonStop-UX NCC 3.20
20102 lt_prog_compiler_pic_CXX='-KPIC'
20108 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20109 case $cc_basename in
20111 lt_prog_compiler_wl_CXX='-Wl,'
20112 lt_prog_compiler_pic_CXX='-KPIC'
20113 lt_prog_compiler_static_CXX='-Bstatic'
20120 lt_prog_compiler_can_build_shared_CXX=no
20125 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20126 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20129 # Check to make sure the PIC flag actually works.
20131 if test -n "$lt_prog_compiler_pic_CXX"; then
20133 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20134 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20135 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 lt_prog_compiler_pic_works_CXX=no
20139 ac_outfile=conftest.$ac_objext
20140 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20141 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20142 # Insert the option either (1) after the last *FLAGS variable, or
20143 # (2) before a word containing "conftest.", or (3) at the end.
20144 # Note that $ac_compile itself does not contain backslashes and begins
20145 # with a dollar sign (not a hyphen), so the echo should work correctly.
20146 # The option is referenced via a variable to avoid confusing sed.
20147 lt_compile=`echo "$ac_compile" | $SED \
20148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20150 -e 's:$: $lt_compiler_flag:'`
20151 (eval echo "\"\$as_me:20151: $lt_compile\"" >&5)
20152 (eval "$lt_compile" 2>conftest.err)
20154 cat conftest.err >&5
20155 echo "$as_me:20155: \$? = $ac_status" >&5
20156 if (exit $ac_status) && test -s "$ac_outfile"; then
20157 # The compiler can only warn and ignore the option if not recognized
20158 # So say no if there are warnings other than the usual output.
20159 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20162 lt_prog_compiler_pic_works_CXX=yes
20168 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20169 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20171 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20172 case $lt_prog_compiler_pic_CXX in
20174 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20177 lt_prog_compiler_pic_CXX=
20178 lt_prog_compiler_can_build_shared_CXX=no
20183 # For platforms which do not support PIC, -DPIC is meaningless:
20185 lt_prog_compiler_pic_CXX=
20188 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20193 # Check to make sure the static flag actually works.
20195 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20196 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20197 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20198 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20201 lt_prog_compiler_static_works_CXX=no
20202 save_LDFLAGS="$LDFLAGS"
20203 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20204 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20206 # The linker can only warn and ignore the option if not recognized
20207 # So say no if there are warnings
20208 if test -s conftest.err; then
20209 # Append any errors to the config.log.
20210 cat conftest.err 1>&5
20211 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20213 if diff conftest.exp conftest.er2 >/dev/null; then
20214 lt_prog_compiler_static_works_CXX=yes
20217 lt_prog_compiler_static_works_CXX=yes
20221 LDFLAGS="$save_LDFLAGS"
20224 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20225 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20227 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20230 lt_prog_compiler_static_CXX=
20234 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20235 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20236 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 lt_cv_prog_compiler_c_o_CXX=no
20240 $rm -r conftest 2>/dev/null
20244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20246 lt_compiler_flag="-o out/conftest2.$ac_objext"
20247 # Insert the option either (1) after the last *FLAGS variable, or
20248 # (2) before a word containing "conftest.", or (3) at the end.
20249 # Note that $ac_compile itself does not contain backslashes and begins
20250 # with a dollar sign (not a hyphen), so the echo should work correctly.
20251 lt_compile=`echo "$ac_compile" | $SED \
20252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20254 -e 's:$: $lt_compiler_flag:'`
20255 (eval echo "\"\$as_me:20255: $lt_compile\"" >&5)
20256 (eval "$lt_compile" 2>out/conftest.err)
20258 cat out/conftest.err >&5
20259 echo "$as_me:20259: \$? = $ac_status" >&5
20260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20262 # The compiler can only warn and ignore the option if not recognized
20263 # So say no if there are warnings
20264 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20267 lt_cv_prog_compiler_c_o_CXX=yes
20272 # SGI C++ compiler will create directory out/ii_files/ for
20273 # template instantiation
20274 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20275 $rm out/* && rmdir out
20281 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20282 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20285 hard_links="nottested"
20286 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20287 # do not overwrite the value of need_locks provided by the user
20288 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20289 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20294 ln conftest.a conftest.b 2>&5 || hard_links=no
20295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20296 { echo "$as_me:$LINENO: result: $hard_links" >&5
20297 echo "${ECHO_T}$hard_links" >&6; }
20298 if test "$hard_links" = no; then
20299 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20300 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20307 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20308 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20310 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20313 # If we're using GNU nm, then we don't want the "-C" option.
20314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20316 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'
20318 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'
20322 export_symbols_cmds_CXX="$ltdll_cmds"
20325 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'
20328 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20332 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20333 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20334 test "$ld_shlibs_CXX" = no && can_build_shared=no
20337 # Do we need to explicitly link libc?
20339 case "x$archive_cmds_need_lc_CXX" in
20341 # Assume -lc should be added
20342 archive_cmds_need_lc_CXX=yes
20344 if test "$enable_shared" = yes && test "$GCC" = yes; then
20345 case $archive_cmds_CXX in
20347 # FIXME: we may have to deal with multi-command sequences.
20350 # Test whether the compiler implicitly links with -lc since on some
20351 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20352 # to ld, don't add -lc before -lgcc.
20353 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20354 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359 (eval $ac_compile) 2>&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } 2>conftest.err; then
20365 libobjs=conftest.$ac_objext
20367 wl=$lt_prog_compiler_wl_CXX
20368 pic_flag=$lt_prog_compiler_pic_CXX
20374 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20375 allow_undefined_flag_CXX=
20376 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20377 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }
20382 archive_cmds_need_lc_CXX=no
20384 archive_cmds_need_lc_CXX=yes
20386 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20388 cat conftest.err 1>&5
20391 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20392 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20399 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20400 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20401 library_names_spec=
20402 libname_spec='lib$name'
20406 postuninstall_cmds=
20410 shlibpath_overrides_runpath=unknown
20412 dynamic_linker="$host_os ld.so"
20413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20414 if test "$GCC" = yes; then
20415 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20416 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20417 # if the path contains ";" then we assume it to be the separator
20418 # otherwise default to the standard path separator (i.e. ":") - it is
20419 # assumed that no part of a normal pathname contains ";" but that should
20420 # okay in the real world where ";" in dirpaths is itself problematic.
20421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20426 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20428 need_lib_prefix=unknown
20429 hardcode_into_libs=no
20431 # when you set need_version to no, make sure it does not cause -set_version
20432 # flags to be left without arguments
20433 need_version=unknown
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20439 shlibpath_var=LIBPATH
20441 # AIX 3 has no versioning support, so we append a major version to the name.
20442 soname_spec='${libname}${release}${shared_ext}$major'
20449 hardcode_into_libs=yes
20450 if test "$host_cpu" = ia64; then
20451 # AIX 5 supports IA64
20452 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20453 shlibpath_var=LD_LIBRARY_PATH
20455 # With GCC up to 2.95.x, collect2 would create an import file
20456 # for dependence libraries. The import file would start with
20457 # the line `#! .'. This would cause the generated library to
20458 # depend on `.', always an invalid library. This was fixed in
20459 # development snapshots of GCC prior to 3.0.
20461 aix4 | aix4.[01] | aix4.[01].*)
20462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20464 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20467 can_build_shared=no
20471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20472 # soname into executable. Probably we can add versioning support to
20473 # collect2, so additional links can be useful in future.
20474 if test "$aix_use_runtimelinking" = yes; then
20475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20476 # instead of lib<name>.a to let people know that these are not
20477 # typical AIX shared libraries.
20478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480 # We preserve .a as extension for shared libraries through AIX4.2
20481 # and later when we are not doing run time linking.
20482 library_names_spec='${libname}${release}.a $libname.a'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20485 shlibpath_var=LIBPATH
20490 library_names_spec='$libname.ixlibrary $libname.a'
20491 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20492 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'
20496 library_names_spec='${libname}${shared_ext}'
20497 dynamic_linker="$host_os ld.so"
20498 shlibpath_var=LIBRARY_PATH
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505 soname_spec='${libname}${release}${shared_ext}$major'
20506 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20507 shlibpath_var=LD_LIBRARY_PATH
20508 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20509 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20510 # the default ld.so.conf also contains /usr/contrib/lib and
20511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20512 # libtool to hard-code these into programs
20515 cygwin* | mingw* | pw32*)
20516 version_type=windows
20521 case $GCC,$host_os in
20522 yes,cygwin* | yes,mingw* | yes,pw32*)
20523 library_names_spec='$libname.dll.a'
20524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20525 postinstall_cmds='base_file=`basename \${file}`~
20526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20527 dldir=$destdir/`dirname \$dlpath`~
20528 test -d \$dldir || mkdir -p \$dldir~
20529 $install_prog $dir/$dlname \$dldir/$dlname~
20530 chmod a+x \$dldir/$dlname'
20531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20532 dlpath=$dir/\$dldll~
20534 shlibpath_overrides_runpath=yes
20538 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20539 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20540 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20543 # MinGW DLLs use traditional 'lib' prefix
20544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20545 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20546 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20547 # It is most probably a Windows format PATH printed by
20548 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20549 # path with ; separators, and with drive letters. We can handle the
20550 # drive letters (cygwin fileutils understands them), so leave them,
20551 # especially as we might pass files found there to a mingw objdump,
20552 # which wouldn't understand a cygwinified path. Ahh.
20553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20559 # pw32 DLLs use 'pw' prefix rather than 'lib'
20560 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20566 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20569 dynamic_linker='Win32 ld.exe'
20570 # FIXME: first we should search . and the directory the executable is in
20574 darwin* | rhapsody*)
20575 dynamic_linker="$host_os dyld"
20576 version_type=darwin
20579 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20580 soname_spec='${libname}${release}${major}$shared_ext'
20581 shlibpath_overrides_runpath=yes
20582 shlibpath_var=DYLD_LIBRARY_PATH
20583 shrext_cmds='.dylib'
20584 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20585 if test "$GCC" = yes; then
20586 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"`
20588 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20590 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20598 soname_spec='${libname}${release}${shared_ext}$major'
20599 shlibpath_var=LD_LIBRARY_PATH
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20611 soname_spec='${libname}${release}${shared_ext}$major'
20612 shlibpath_var=LD_LIBRARY_PATH
20613 shlibpath_overrides_runpath=no
20614 hardcode_into_libs=yes
20615 dynamic_linker='GNU ld.so'
20618 freebsd* | dragonfly*)
20619 # DragonFly does not have aout. When/if they implement a new
20620 # versioning mechanism, adjust this.
20621 if test -x /usr/bin/objformat; then
20622 objformat=`/usr/bin/objformat`
20625 freebsd[123]*) objformat=aout ;;
20626 *) objformat=elf ;;
20629 version_type=freebsd-$objformat
20630 case $version_type in
20632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20641 shlibpath_var=LD_LIBRARY_PATH
20644 shlibpath_overrides_runpath=yes
20646 freebsd3.[01]* | freebsdelf3.[01]*)
20647 shlibpath_overrides_runpath=yes
20648 hardcode_into_libs=yes
20650 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20651 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20652 shlibpath_overrides_runpath=no
20653 hardcode_into_libs=yes
20655 freebsd*) # from 4.6 on
20656 shlibpath_overrides_runpath=yes
20657 hardcode_into_libs=yes
20666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20667 soname_spec='${libname}${release}${shared_ext}$major'
20668 shlibpath_var=LD_LIBRARY_PATH
20669 hardcode_into_libs=yes
20672 hpux9* | hpux10* | hpux11*)
20673 # Give a soname corresponding to the major version so that dld.sl refuses to
20674 # link against other versions.
20681 hardcode_into_libs=yes
20682 dynamic_linker="$host_os dld.so"
20683 shlibpath_var=LD_LIBRARY_PATH
20684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686 soname_spec='${libname}${release}${shared_ext}$major'
20687 if test "X$HPUX_IA64_MODE" = X32; then
20688 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20690 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20696 hardcode_into_libs=yes
20697 dynamic_linker="$host_os dld.sl"
20698 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20701 soname_spec='${libname}${release}${shared_ext}$major'
20702 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20707 dynamic_linker="$host_os dld.sl"
20708 shlibpath_var=SHLIB_PATH
20709 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711 soname_spec='${libname}${release}${shared_ext}$major'
20714 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20715 postinstall_cmds='chmod 555 $lib'
20722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20723 soname_spec='${libname}${release}${shared_ext}$major'
20724 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20725 shlibpath_var=LD_LIBRARY_PATH
20726 shlibpath_overrides_runpath=no
20727 hardcode_into_libs=yes
20730 irix5* | irix6* | nonstopux*)
20732 nonstopux*) version_type=nonstopux ;;
20734 if test "$lt_cv_prog_gnu_ld" = yes; then
20742 soname_spec='${libname}${release}${shared_ext}$major'
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20745 irix5* | nonstopux*)
20746 libsuff= shlibsuff=
20749 case $LD in # libtool.m4 will add one of these switches to LD
20750 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20751 libsuff= shlibsuff= libmagic=32-bit;;
20752 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20753 libsuff=32 shlibsuff=N32 libmagic=N32;;
20754 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20755 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20756 *) libsuff= shlibsuff= libmagic=never-match;;
20760 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20761 shlibpath_overrides_runpath=no
20762 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20763 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20764 hardcode_into_libs=yes
20767 # No shared lib support for Linux oldld, aout, or coff.
20768 linux*oldld* | linux*aout* | linux*coff*)
20772 # This must be Linux ELF.
20777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20778 soname_spec='${libname}${release}${shared_ext}$major'
20779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20780 shlibpath_var=LD_LIBRARY_PATH
20781 shlibpath_overrides_runpath=no
20782 # This implies no fast_install, which is unacceptable.
20783 # Some rework will be needed to allow for fast_install
20784 # before this can be enabled.
20785 hardcode_into_libs=yes
20787 # Append ld.so.conf contents to the search path
20788 if test -f /etc/ld.so.conf; then
20789 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' ' '`
20790 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20793 # We used to test for /lib/ld.so.1 and disable shared libraries on
20794 # powerpc, because MkLinux only supported shared libraries with the
20795 # GNU dynamic linker. Since this was broken with cross compilers,
20796 # most powerpc-linux boxes support dynamic linking these days and
20797 # people can always --disable-shared, the test was removed, and we
20798 # assume the GNU/Linux dynamic linker is in use.
20799 dynamic_linker='GNU/Linux ld.so'
20806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20807 soname_spec='${libname}${release}${shared_ext}$major'
20808 shlibpath_var=LD_LIBRARY_PATH
20809 shlibpath_overrides_runpath=no
20810 hardcode_into_libs=yes
20811 dynamic_linker='GNU ld.so'
20818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20821 dynamic_linker='NetBSD (a.out) ld.so'
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20824 soname_spec='${libname}${release}${shared_ext}$major'
20825 dynamic_linker='NetBSD ld.elf_so'
20827 shlibpath_var=LD_LIBRARY_PATH
20828 shlibpath_overrides_runpath=yes
20829 hardcode_into_libs=yes
20834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835 shlibpath_var=LD_LIBRARY_PATH
20836 shlibpath_overrides_runpath=yes
20843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20844 soname_spec='${libname}${release}${shared_ext}$major'
20845 shlibpath_var=LD_LIBRARY_PATH
20846 shlibpath_overrides_runpath=yes
20851 sys_lib_dlsearch_path_spec="/usr/lib"
20853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20856 *) need_version=no ;;
20858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20860 shlibpath_var=LD_LIBRARY_PATH
20861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20863 openbsd2.[89] | openbsd2.[89].*)
20864 shlibpath_overrides_runpath=no
20867 shlibpath_overrides_runpath=yes
20871 shlibpath_overrides_runpath=yes
20876 libname_spec='$name'
20879 library_names_spec='$libname${shared_ext} $libname.a'
20880 dynamic_linker='OS/2 ld.exe'
20881 shlibpath_var=LIBPATH
20884 osf3* | osf4* | osf5*)
20888 soname_spec='${libname}${release}${shared_ext}$major'
20889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20890 shlibpath_var=LD_LIBRARY_PATH
20891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20900 soname_spec='${libname}${release}${shared_ext}$major'
20901 shlibpath_var=LD_LIBRARY_PATH
20902 shlibpath_overrides_runpath=yes
20903 hardcode_into_libs=yes
20904 # ldd complains unless libraries are executable
20905 postinstall_cmds='chmod +x $lib'
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20912 shlibpath_var=LD_LIBRARY_PATH
20913 shlibpath_overrides_runpath=yes
20914 if test "$with_gnu_ld" = yes; then
20922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20923 soname_spec='${libname}${release}${shared_ext}$major'
20924 shlibpath_var=LD_LIBRARY_PATH
20925 case $host_vendor in
20927 shlibpath_overrides_runpath=no
20929 export_dynamic_flag_spec='${wl}-Blargedynsym'
20930 runpath_var=LD_RUN_PATH
20938 shlibpath_overrides_runpath=no
20939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20945 if test -d /usr/nec ;then
20947 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20948 soname_spec='$libname${shared_ext}.$major'
20949 shlibpath_var=LD_LIBRARY_PATH
20953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20954 version_type=freebsd-elf
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 hardcode_into_libs=yes
20961 if test "$with_gnu_ld" = yes; then
20962 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20963 shlibpath_overrides_runpath=no
20965 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20966 shlibpath_overrides_runpath=yes
20969 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20973 sys_lib_dlsearch_path_spec='/usr/lib'
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 soname_spec='${libname}${release}${shared_ext}$major'
20980 shlibpath_var=LD_LIBRARY_PATH
20987 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20988 echo "${ECHO_T}$dynamic_linker" >&6; }
20989 test "$dynamic_linker" = no && can_build_shared=no
20991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20992 if test "$GCC" = yes; then
20993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20996 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20997 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20998 hardcode_action_CXX=
20999 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21000 test -n "$runpath_var_CXX" || \
21001 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21003 # We can hardcode non-existant directories.
21004 if test "$hardcode_direct_CXX" != no &&
21005 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21006 # have to relink, otherwise we might link with an installed library
21007 # when we should be linking with a yet-to-be-installed one
21008 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21009 test "$hardcode_minus_L_CXX" != no; then
21010 # Linking always hardcodes the temporary library directory.
21011 hardcode_action_CXX=relink
21013 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21014 hardcode_action_CXX=immediate
21017 # We cannot hardcode anything, or else we can only hardcode existing
21019 hardcode_action_CXX=unsupported
21021 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21022 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21024 if test "$hardcode_action_CXX" = relink; then
21025 # Fast installation is not supported
21026 enable_fast_install=no
21027 elif test "$shlibpath_overrides_runpath" = yes ||
21028 test "$enable_shared" = no; then
21029 # Fast installation is not necessary
21030 enable_fast_install=needless
21034 # The else clause should only fire when bootstrapping the
21035 # libtool distribution, otherwise you forgot to ship ltmain.sh
21036 # with your package, and you will get complaints that there are
21037 # no rules to generate ltmain.sh.
21038 if test -f "$ltmain"; then
21039 # See if we are running on zsh, and set the options which allow our commands through
21040 # without removal of \ escapes.
21041 if test -n "${ZSH_VERSION+set}" ; then
21042 setopt NO_GLOB_SUBST
21044 # Now quote all the things that may contain metacharacters while being
21045 # careful not to overquote the AC_SUBSTed values. We take copies of the
21046 # variables and quote the copies for generation of the libtool script.
21047 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21049 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21050 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21051 deplibs_check_method reload_flag reload_cmds need_locks \
21052 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21053 lt_cv_sys_global_symbol_to_c_name_address \
21054 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21055 old_postinstall_cmds old_postuninstall_cmds \
21059 lt_prog_compiler_wl_CXX \
21060 lt_prog_compiler_pic_CXX \
21061 lt_prog_compiler_static_CXX \
21062 lt_prog_compiler_no_builtin_flag_CXX \
21063 export_dynamic_flag_spec_CXX \
21064 thread_safe_flag_spec_CXX \
21065 whole_archive_flag_spec_CXX \
21066 enable_shared_with_static_runtimes_CXX \
21067 old_archive_cmds_CXX \
21068 old_archive_from_new_cmds_CXX \
21069 predep_objects_CXX \
21070 postdep_objects_CXX \
21073 compiler_lib_search_path_CXX \
21075 archive_expsym_cmds_CXX \
21076 postinstall_cmds_CXX \
21077 postuninstall_cmds_CXX \
21078 old_archive_from_expsyms_cmds_CXX \
21079 allow_undefined_flag_CXX \
21080 no_undefined_flag_CXX \
21081 export_symbols_cmds_CXX \
21082 hardcode_libdir_flag_spec_CXX \
21083 hardcode_libdir_flag_spec_ld_CXX \
21084 hardcode_libdir_separator_CXX \
21085 hardcode_automatic_CXX \
21087 module_expsym_cmds_CXX \
21088 lt_cv_prog_compiler_c_o_CXX \
21089 exclude_expsyms_CXX \
21090 include_expsyms_CXX; do
21093 old_archive_cmds_CXX | \
21094 old_archive_from_new_cmds_CXX | \
21095 archive_cmds_CXX | \
21096 archive_expsym_cmds_CXX | \
21097 module_cmds_CXX | \
21098 module_expsym_cmds_CXX | \
21099 old_archive_from_expsyms_cmds_CXX | \
21100 export_symbols_cmds_CXX | \
21101 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21102 postinstall_cmds | postuninstall_cmds | \
21103 old_postinstall_cmds | old_postuninstall_cmds | \
21104 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21105 # Double-quote double-evaled strings.
21106 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21115 *'\$0 --fallback-echo"')
21116 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21122 cat <<__EOF__ >> "$cfgfile"
21123 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21125 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21127 # Shell to use when invoking shell scripts.
21130 # Whether or not to build shared libraries.
21131 build_libtool_libs=$enable_shared
21133 # Whether or not to build static libraries.
21134 build_old_libs=$enable_static
21136 # Whether or not to add -lc for building shared libraries.
21137 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21139 # Whether or not to disallow shared libs when runtime libs are static
21140 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21142 # Whether or not to optimize for fast installation.
21143 fast_install=$enable_fast_install
21146 host_alias=$host_alias
21150 # The build system.
21151 build_alias=$build_alias
21155 # An echo program that does not interpret backslashes.
21160 AR_FLAGS=$lt_AR_FLAGS
21165 # LTCC compiler flags.
21166 LTCFLAGS=$lt_LTCFLAGS
21168 # A language-specific compiler.
21169 CC=$lt_compiler_CXX
21171 # Is the compiler the GNU C compiler?
21177 # The linker used to build libraries.
21180 # Whether we need hard or soft links.
21183 # A BSD-compatible nm program.
21186 # A symbol stripping program
21189 # Used to examine libraries when file_magic_cmd begins "file"
21190 MAGIC_CMD=$MAGIC_CMD
21192 # Used on cygwin: DLL creation program.
21195 # Used on cygwin: object dumper.
21198 # Used on cygwin: assembler.
21201 # The name of the directory that contains temporary libtool files.
21204 # How to create reloadable object files.
21205 reload_flag=$lt_reload_flag
21206 reload_cmds=$lt_reload_cmds
21208 # How to pass a linker flag through the compiler.
21209 wl=$lt_lt_prog_compiler_wl_CXX
21211 # Object file suffix (normally "o").
21212 objext="$ac_objext"
21214 # Old archive suffix (normally "a").
21217 # Shared library suffix (normally ".so").
21218 shrext_cmds='$shrext_cmds'
21220 # Executable file suffix (normally "").
21223 # Additional compiler flags for building library objects.
21224 pic_flag=$lt_lt_prog_compiler_pic_CXX
21227 # What is the maximum length of a command?
21228 max_cmd_len=$lt_cv_sys_max_cmd_len
21230 # Does compiler simultaneously support -c and -o options?
21231 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21233 # Must we lock files when doing compilation?
21234 need_locks=$lt_need_locks
21236 # Do we need the lib prefix for modules?
21237 need_lib_prefix=$need_lib_prefix
21239 # Do we need a version for libraries?
21240 need_version=$need_version
21242 # Whether dlopen is supported.
21243 dlopen_support=$enable_dlopen
21245 # Whether dlopen of programs is supported.
21246 dlopen_self=$enable_dlopen_self
21248 # Whether dlopen of statically linked programs is supported.
21249 dlopen_self_static=$enable_dlopen_self_static
21251 # Compiler flag to prevent dynamic linking.
21252 link_static_flag=$lt_lt_prog_compiler_static_CXX
21254 # Compiler flag to turn off builtin functions.
21255 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21257 # Compiler flag to allow reflexive dlopens.
21258 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21260 # Compiler flag to generate shared objects directly from archives.
21261 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21263 # Compiler flag to generate thread-safe objects.
21264 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21266 # Library versioning type.
21267 version_type=$version_type
21269 # Format of library name prefix.
21270 libname_spec=$lt_libname_spec
21272 # List of archive names. First name is the real one, the rest are links.
21273 # The last name is the one that the linker finds with -lNAME.
21274 library_names_spec=$lt_library_names_spec
21276 # The coded name of the library, if different from the real name.
21277 soname_spec=$lt_soname_spec
21279 # Commands used to build and install an old-style archive.
21281 old_archive_cmds=$lt_old_archive_cmds_CXX
21282 old_postinstall_cmds=$lt_old_postinstall_cmds
21283 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21285 # Create an old-style archive from a shared archive.
21286 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21288 # Create a temporary old-style archive to link instead of a shared archive.
21289 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21291 # Commands used to build and install a shared archive.
21292 archive_cmds=$lt_archive_cmds_CXX
21293 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21294 postinstall_cmds=$lt_postinstall_cmds
21295 postuninstall_cmds=$lt_postuninstall_cmds
21297 # Commands used to build a loadable module (assumed same as above if empty)
21298 module_cmds=$lt_module_cmds_CXX
21299 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21301 # Commands to strip libraries.
21302 old_striplib=$lt_old_striplib
21303 striplib=$lt_striplib
21305 # Dependencies to place before the objects being linked to create a
21307 predep_objects=$lt_predep_objects_CXX
21309 # Dependencies to place after the objects being linked to create a
21311 postdep_objects=$lt_postdep_objects_CXX
21313 # Dependencies to place before the objects being linked to create a
21315 predeps=$lt_predeps_CXX
21317 # Dependencies to place after the objects being linked to create a
21319 postdeps=$lt_postdeps_CXX
21321 # The library search path used internally by the compiler when linking
21322 # a shared library.
21323 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21325 # Method to check whether dependent libraries are shared objects.
21326 deplibs_check_method=$lt_deplibs_check_method
21328 # Command to use when deplibs_check_method == file_magic.
21329 file_magic_cmd=$lt_file_magic_cmd
21331 # Flag that allows shared libraries with undefined symbols to be built.
21332 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21334 # Flag that forces no undefined symbols.
21335 no_undefined_flag=$lt_no_undefined_flag_CXX
21337 # Commands used to finish a libtool library installation in a directory.
21338 finish_cmds=$lt_finish_cmds
21340 # Same as above, but a single script fragment to be evaled but not shown.
21341 finish_eval=$lt_finish_eval
21343 # Take the output of nm and produce a listing of raw symbols and C names.
21344 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21346 # Transform the output of nm in a proper C declaration
21347 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21349 # Transform the output of nm in a C name address pair
21350 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21352 # This is the shared library runtime path variable.
21353 runpath_var=$runpath_var
21355 # This is the shared library path variable.
21356 shlibpath_var=$shlibpath_var
21358 # Is shlibpath searched before the hard-coded library search path?
21359 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21361 # How to hardcode a shared library path into an executable.
21362 hardcode_action=$hardcode_action_CXX
21364 # Whether we should hardcode library paths into libraries.
21365 hardcode_into_libs=$hardcode_into_libs
21367 # Flag to hardcode \$libdir into a binary during linking.
21368 # This must work even if \$libdir does not exist.
21369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21371 # If ld is used when linking, flag to hardcode \$libdir into
21372 # a binary during linking. This must work even if \$libdir does
21374 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21376 # Whether we need a single -rpath flag with a separated argument.
21377 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21379 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21380 # resulting binary.
21381 hardcode_direct=$hardcode_direct_CXX
21383 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21384 # resulting binary.
21385 hardcode_minus_L=$hardcode_minus_L_CXX
21387 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21388 # the resulting binary.
21389 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21391 # Set to yes if building a shared library automatically hardcodes DIR into the library
21392 # and all subsequent libraries and executables linked against it.
21393 hardcode_automatic=$hardcode_automatic_CXX
21395 # Variables whose values should be saved in libtool wrapper scripts and
21396 # restored at relink time.
21397 variables_saved_for_relink="$variables_saved_for_relink"
21399 # Whether libtool must link a program against all its dependency libraries.
21400 link_all_deplibs=$link_all_deplibs_CXX
21402 # Compile-time system search path for libraries
21403 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21405 # Run-time system search path for libraries
21406 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21408 # Fix the shell variable \$srcfile for the compiler.
21409 fix_srcfile_path="$fix_srcfile_path_CXX"
21411 # Set to yes if exported symbols are required.
21412 always_export_symbols=$always_export_symbols_CXX
21414 # The commands to list exported symbols.
21415 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21417 # The commands to extract the exported symbol list from a shared archive.
21418 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21420 # Symbols that should not be listed in the preloaded symbols.
21421 exclude_expsyms=$lt_exclude_expsyms_CXX
21423 # Symbols that must always be exported.
21424 include_expsyms=$lt_include_expsyms_CXX
21426 # ### END LIBTOOL TAG CONFIG: $tagname
21432 # If there is no Makefile yet, we rely on a make rule to execute
21433 # `config.status --recheck' to rerun these tests and create the
21434 # libtool script then.
21435 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21436 if test -f "$ltmain_in"; then
21437 test -f Makefile && make "$ltmain"
21443 ac_cpp='$CPP $CPPFLAGS'
21444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21452 with_gnu_ldcxx=$with_gnu_ld
21453 with_gnu_ld=$lt_save_with_gnu_ld
21454 lt_cv_path_LDCXX=$lt_cv_path_LD
21455 lt_cv_path_LD=$lt_save_path_LD
21456 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21457 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21465 if test -n "$F77" && test "X$F77" != "Xno"; then
21468 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21469 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21470 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21473 archive_cmds_need_lc_F77=no
21474 allow_undefined_flag_F77=
21475 always_export_symbols_F77=no
21476 archive_expsym_cmds_F77=
21477 export_dynamic_flag_spec_F77=
21478 hardcode_direct_F77=no
21479 hardcode_libdir_flag_spec_F77=
21480 hardcode_libdir_flag_spec_ld_F77=
21481 hardcode_libdir_separator_F77=
21482 hardcode_minus_L_F77=no
21483 hardcode_automatic_F77=no
21485 module_expsym_cmds_F77=
21486 link_all_deplibs_F77=unknown
21487 old_archive_cmds_F77=$old_archive_cmds
21488 no_undefined_flag_F77=
21489 whole_archive_flag_spec_F77=
21490 enable_shared_with_static_runtimes_F77=no
21492 # Source file extension for f77 test sources.
21495 # Object file extension for compiled f77 test sources.
21499 # Code to be used in simple compile tests
21500 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21502 # Code to be used in simple link tests
21503 lt_simple_link_test_code=" program t\n end\n"
21505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21507 # If no C compiler was specified, use CC.
21510 # If no C compiler flags were specified, use CFLAGS.
21511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21513 # Allow CC to be a program name with arguments.
21517 # save warnings/boilerplate of simple test code
21518 ac_outfile=conftest.$ac_objext
21519 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21520 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21521 _lt_compiler_boilerplate=`cat conftest.err`
21524 ac_outfile=conftest.$ac_objext
21525 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21526 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21527 _lt_linker_boilerplate=`cat conftest.err`
21531 # Allow CC to be a program name with arguments.
21536 for cc_temp in $compiler""; do
21538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21544 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21547 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21548 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21549 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21550 echo "${ECHO_T}$can_build_shared" >&6; }
21552 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21553 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21554 test "$can_build_shared" = "no" && enable_shared=no
21556 # On AIX, shared libraries and static libraries use the same namespace, and
21557 # are all built from PIC.
21560 test "$enable_shared" = yes && enable_static=no
21561 if test -n "$RANLIB"; then
21562 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21563 postinstall_cmds='$RANLIB $lib'
21567 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21568 test "$enable_shared" = yes && enable_static=no
21572 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21573 echo "${ECHO_T}$enable_shared" >&6; }
21575 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21576 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21577 # Make sure either enable_shared or enable_static is yes.
21578 test "$enable_shared" = yes || enable_static=yes
21579 { echo "$as_me:$LINENO: result: $enable_static" >&5
21580 echo "${ECHO_T}$enable_static" >&6; }
21585 lt_prog_compiler_wl_F77=
21586 lt_prog_compiler_pic_F77=
21587 lt_prog_compiler_static_F77=
21589 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21590 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21592 if test "$GCC" = yes; then
21593 lt_prog_compiler_wl_F77='-Wl,'
21594 lt_prog_compiler_static_F77='-static'
21598 # All AIX code is PIC.
21599 if test "$host_cpu" = ia64; then
21600 # AIX 5 now supports IA64 processor
21601 lt_prog_compiler_static_F77='-Bstatic'
21606 # FIXME: we need at least 68020 code to build shared libraries, but
21607 # adding the `-m68020' flag to GCC prevents building anything better,
21609 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21612 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21613 # PIC is the default for these OSes.
21616 mingw* | pw32* | os2*)
21617 # This hack is so that the source file can tell whether it is being
21618 # built for inclusion in a dll (and should export symbols for example).
21619 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21622 darwin* | rhapsody*)
21623 # PIC is the default on this platform
21624 # Common symbols not allowed in MH_DYLIB files
21625 lt_prog_compiler_pic_F77='-fno-common'
21629 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21630 # Instead, we relocate shared libraries at runtime.
21634 # Just because we use GCC doesn't mean we suddenly get shared libraries
21635 # on systems that don't support them.
21636 lt_prog_compiler_can_build_shared_F77=no
21641 if test -d /usr/nec; then
21642 lt_prog_compiler_pic_F77=-Kconform_pic
21647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21648 # not for PA HP-UX.
21654 lt_prog_compiler_pic_F77='-fPIC'
21660 lt_prog_compiler_pic_F77='-fPIC'
21664 # PORTME Check for flag to pass linker flags through the system compiler.
21667 lt_prog_compiler_wl_F77='-Wl,'
21668 if test "$host_cpu" = ia64; then
21669 # AIX 5 now supports IA64 processor
21670 lt_prog_compiler_static_F77='-Bstatic'
21672 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21676 # PIC is the default on this platform
21677 # Common symbols not allowed in MH_DYLIB files
21678 case $cc_basename in
21680 lt_prog_compiler_pic_F77='-qnocommon'
21681 lt_prog_compiler_wl_F77='-Wl,'
21686 mingw* | pw32* | os2*)
21687 # This hack is so that the source file can tell whether it is being
21688 # built for inclusion in a dll (and should export symbols for example).
21689 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21692 hpux9* | hpux10* | hpux11*)
21693 lt_prog_compiler_wl_F77='-Wl,'
21694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21695 # not for PA HP-UX.
21701 lt_prog_compiler_pic_F77='+Z'
21704 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21705 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21708 irix5* | irix6* | nonstopux*)
21709 lt_prog_compiler_wl_F77='-Wl,'
21710 # PIC (with -KPIC) is the default.
21711 lt_prog_compiler_static_F77='-non_shared'
21715 lt_prog_compiler_pic_F77='-KPIC'
21716 lt_prog_compiler_static_F77='-Bstatic'
21720 case $cc_basename in
21722 lt_prog_compiler_wl_F77='-Wl,'
21723 lt_prog_compiler_pic_F77='-KPIC'
21724 lt_prog_compiler_static_F77='-static'
21726 pgcc* | pgf77* | pgf90* | pgf95*)
21727 # Portland Group compilers (*not* the Pentium gcc compiler,
21728 # which looks to be a dead project)
21729 lt_prog_compiler_wl_F77='-Wl,'
21730 lt_prog_compiler_pic_F77='-fpic'
21731 lt_prog_compiler_static_F77='-Bstatic'
21734 lt_prog_compiler_wl_F77='-Wl,'
21735 # All Alpha code is PIC.
21736 lt_prog_compiler_static_F77='-non_shared'
21741 osf3* | osf4* | osf5*)
21742 lt_prog_compiler_wl_F77='-Wl,'
21743 # All OSF/1 code is PIC.
21744 lt_prog_compiler_static_F77='-non_shared'
21748 lt_prog_compiler_pic_F77='-KPIC'
21749 lt_prog_compiler_static_F77='-Bstatic'
21750 case $cc_basename in
21751 f77* | f90* | f95*)
21752 lt_prog_compiler_wl_F77='-Qoption ld ';;
21754 lt_prog_compiler_wl_F77='-Wl,';;
21759 lt_prog_compiler_wl_F77='-Qoption ld '
21760 lt_prog_compiler_pic_F77='-PIC'
21761 lt_prog_compiler_static_F77='-Bstatic'
21764 sysv4 | sysv4.2uw2* | sysv4.3*)
21765 lt_prog_compiler_wl_F77='-Wl,'
21766 lt_prog_compiler_pic_F77='-KPIC'
21767 lt_prog_compiler_static_F77='-Bstatic'
21771 if test -d /usr/nec ;then
21772 lt_prog_compiler_pic_F77='-Kconform_pic'
21773 lt_prog_compiler_static_F77='-Bstatic'
21777 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21778 lt_prog_compiler_wl_F77='-Wl,'
21779 lt_prog_compiler_pic_F77='-KPIC'
21780 lt_prog_compiler_static_F77='-Bstatic'
21784 lt_prog_compiler_wl_F77='-Wl,'
21785 lt_prog_compiler_can_build_shared_F77=no
21789 lt_prog_compiler_pic_F77='-pic'
21790 lt_prog_compiler_static_F77='-Bstatic'
21794 lt_prog_compiler_can_build_shared_F77=no
21799 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21800 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21803 # Check to make sure the PIC flag actually works.
21805 if test -n "$lt_prog_compiler_pic_F77"; then
21807 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21808 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21809 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 lt_prog_compiler_pic_works_F77=no
21813 ac_outfile=conftest.$ac_objext
21814 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21815 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21816 # Insert the option either (1) after the last *FLAGS variable, or
21817 # (2) before a word containing "conftest.", or (3) at the end.
21818 # Note that $ac_compile itself does not contain backslashes and begins
21819 # with a dollar sign (not a hyphen), so the echo should work correctly.
21820 # The option is referenced via a variable to avoid confusing sed.
21821 lt_compile=`echo "$ac_compile" | $SED \
21822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21824 -e 's:$: $lt_compiler_flag:'`
21825 (eval echo "\"\$as_me:21825: $lt_compile\"" >&5)
21826 (eval "$lt_compile" 2>conftest.err)
21828 cat conftest.err >&5
21829 echo "$as_me:21829: \$? = $ac_status" >&5
21830 if (exit $ac_status) && test -s "$ac_outfile"; then
21831 # The compiler can only warn and ignore the option if not recognized
21832 # So say no if there are warnings other than the usual output.
21833 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21835 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21836 lt_prog_compiler_pic_works_F77=yes
21842 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21843 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21845 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21846 case $lt_prog_compiler_pic_F77 in
21848 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21851 lt_prog_compiler_pic_F77=
21852 lt_prog_compiler_can_build_shared_F77=no
21857 # For platforms which do not support PIC, -DPIC is meaningless:
21859 lt_prog_compiler_pic_F77=
21862 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21867 # Check to make sure the static flag actually works.
21869 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21870 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21871 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21872 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21875 lt_prog_compiler_static_works_F77=no
21876 save_LDFLAGS="$LDFLAGS"
21877 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21878 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21879 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21880 # The linker can only warn and ignore the option if not recognized
21881 # So say no if there are warnings
21882 if test -s conftest.err; then
21883 # Append any errors to the config.log.
21884 cat conftest.err 1>&5
21885 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21887 if diff conftest.exp conftest.er2 >/dev/null; then
21888 lt_prog_compiler_static_works_F77=yes
21891 lt_prog_compiler_static_works_F77=yes
21895 LDFLAGS="$save_LDFLAGS"
21898 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21899 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21901 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21904 lt_prog_compiler_static_F77=
21908 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21909 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21910 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21911 echo $ECHO_N "(cached) $ECHO_C" >&6
21913 lt_cv_prog_compiler_c_o_F77=no
21914 $rm -r conftest 2>/dev/null
21918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21920 lt_compiler_flag="-o out/conftest2.$ac_objext"
21921 # Insert the option either (1) after the last *FLAGS variable, or
21922 # (2) before a word containing "conftest.", or (3) at the end.
21923 # Note that $ac_compile itself does not contain backslashes and begins
21924 # with a dollar sign (not a hyphen), so the echo should work correctly.
21925 lt_compile=`echo "$ac_compile" | $SED \
21926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21928 -e 's:$: $lt_compiler_flag:'`
21929 (eval echo "\"\$as_me:21929: $lt_compile\"" >&5)
21930 (eval "$lt_compile" 2>out/conftest.err)
21932 cat out/conftest.err >&5
21933 echo "$as_me:21933: \$? = $ac_status" >&5
21934 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21936 # The compiler can only warn and ignore the option if not recognized
21937 # So say no if there are warnings
21938 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21939 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21940 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21941 lt_cv_prog_compiler_c_o_F77=yes
21946 # SGI C++ compiler will create directory out/ii_files/ for
21947 # template instantiation
21948 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21949 $rm out/* && rmdir out
21955 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21956 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21959 hard_links="nottested"
21960 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21961 # do not overwrite the value of need_locks provided by the user
21962 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21963 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21968 ln conftest.a conftest.b 2>&5 || hard_links=no
21969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21970 { echo "$as_me:$LINENO: result: $hard_links" >&5
21971 echo "${ECHO_T}$hard_links" >&6; }
21972 if test "$hard_links" = no; then
21973 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21974 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21981 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21982 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21985 allow_undefined_flag_F77=
21986 enable_shared_with_static_runtimes_F77=no
21988 archive_expsym_cmds_F77=
21989 old_archive_From_new_cmds_F77=
21990 old_archive_from_expsyms_cmds_F77=
21991 export_dynamic_flag_spec_F77=
21992 whole_archive_flag_spec_F77=
21993 thread_safe_flag_spec_F77=
21994 hardcode_libdir_flag_spec_F77=
21995 hardcode_libdir_flag_spec_ld_F77=
21996 hardcode_libdir_separator_F77=
21997 hardcode_direct_F77=no
21998 hardcode_minus_L_F77=no
21999 hardcode_shlibpath_var_F77=unsupported
22000 link_all_deplibs_F77=unknown
22001 hardcode_automatic_F77=no
22003 module_expsym_cmds_F77=
22004 always_export_symbols_F77=no
22005 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22006 # include_expsyms should be a list of space-separated symbols to be *always*
22007 # included in the symbol list
22008 include_expsyms_F77=
22009 # exclude_expsyms can be an extended regexp of symbols to exclude
22010 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22011 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22012 # as well as any symbol that contains `d'.
22013 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22014 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22015 # platforms (ab)use it in PIC code, but their linkers get confused if
22016 # the symbol is explicitly referenced. Since portable code cannot
22017 # rely on this symbol name, it's probably fine to never include it in
22018 # preloaded symbol tables.
22019 extract_expsyms_cmds=
22020 # Just being paranoid about ensuring that cc_basename is set.
22021 for cc_temp in $compiler""; do
22023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22029 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22032 cygwin* | mingw* | pw32*)
22033 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22034 # When not using gcc, we currently assume that we are using
22035 # Microsoft Visual C++.
22036 if test "$GCC" != yes; then
22041 # we just hope/assume this is gcc and not c89 (= MSVC++)
22050 if test "$with_gnu_ld" = yes; then
22051 # If archive_cmds runs LD, not CC, wlarc should be empty
22054 # Set some defaults for GNU ld with shared library support. These
22055 # are reset later if shared libraries are not supported. Putting them
22056 # here allows them to be overridden if necessary.
22057 runpath_var=LD_RUN_PATH
22058 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22059 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22060 # ancient GNU ld didn't support --whole-archive et. al.
22061 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22062 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22064 whole_archive_flag_spec_F77=
22066 supports_anon_versioning=no
22067 case `$LD -v 2>/dev/null` in
22068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22071 *\ 2.11.*) ;; # other 2.11 versions
22072 *) supports_anon_versioning=yes ;;
22075 # See if GNU ld supports shared libraries.
22077 aix3* | aix4* | aix5*)
22078 # On AIX/PPC, the GNU linker is very broken
22079 if test "$host_cpu" != ia64; then
22083 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22084 *** to be unable to reliably create shared libraries on AIX.
22085 *** Therefore, libtool is disabling shared libraries support. If you
22086 *** really care for shared libraries, you may want to modify your PATH
22087 *** so that a non-GNU linker is found, and then restart.
22094 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)'
22095 hardcode_libdir_flag_spec_F77='-L$libdir'
22096 hardcode_minus_L_F77=yes
22098 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22099 # that the semantics of dynamic libraries on AmigaOS, at least up
22100 # to version 4, is to share data among multiple programs linked
22101 # with the same dynamic library. Since this doesn't match the
22102 # behavior of shared libraries on other platforms, we can't use
22108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22109 allow_undefined_flag_F77=unsupported
22110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22111 # support --undefined. This deserves some investigation. FIXME
22112 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22118 cygwin* | mingw* | pw32*)
22119 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22120 # as there is no search path for DLLs.
22121 hardcode_libdir_flag_spec_F77='-L$libdir'
22122 allow_undefined_flag_F77=unsupported
22123 always_export_symbols_F77=no
22124 enable_shared_with_static_runtimes_F77=yes
22125 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22128 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22129 # If the export-symbols file already is a .def file (1st line
22130 # is EXPORTS), use it as is; otherwise, prepend...
22131 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22132 cp $export_symbols $output_objdir/$soname.def;
22134 echo EXPORTS > $output_objdir/$soname.def;
22135 cat $export_symbols >> $output_objdir/$soname.def;
22137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22144 hardcode_direct_F77=no
22145 hardcode_shlibpath_var_F77=no
22146 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22147 export_dynamic_flag_spec_F77='${wl}-E'
22148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22149 # Instead, shared libraries are loaded at an image base (0x10000000 by
22150 # default) and relocated if they conflict, which is a slow very memory
22151 # consuming and fragmenting process. To avoid this, we pick a random,
22152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22153 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22154 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'
22155 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'
22159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22161 case $cc_basename,$host_cpu in
22162 pgcc*) # Portland Group C compiler
22163 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'
22164 tmp_addflag=' $pic_flag'
22166 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22167 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'
22168 tmp_addflag=' $pic_flag -Mnomain' ;;
22169 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22170 tmp_addflag=' -i_dynamic' ;;
22171 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22172 tmp_addflag=' -i_dynamic -nofor_main' ;;
22173 ifc* | ifort*) # Intel Fortran compiler
22174 tmp_addflag=' -nofor_main' ;;
22176 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22178 if test $supports_anon_versioning = yes; then
22179 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22181 $echo "local: *; };" >> $output_objdir/$libname.ver~
22182 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22191 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22194 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22195 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22200 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22204 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22205 *** create shared libraries on Solaris systems. Therefore, libtool
22206 *** is disabling shared libraries support. We urge you to upgrade GNU
22207 *** binutils to release 2.9.1 or newer. Another option is to modify
22208 *** your PATH or compiler configuration so that the native linker is
22209 *** used, and then restart.
22212 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22213 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22214 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22221 case `$LD -v 2>&1` in
22222 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22226 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22227 *** reliably create shared libraries on SCO systems. Therefore, libtool
22228 *** is disabling shared libraries support. We urge you to upgrade GNU
22229 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22230 *** your PATH or compiler configuration so that the native linker is
22231 *** used, and then restart.
22236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22237 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22239 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22248 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22250 hardcode_direct_F77=yes
22251 hardcode_shlibpath_var_F77=no
22255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22256 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22257 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22264 if test "$ld_shlibs_F77" = no; then
22266 hardcode_libdir_flag_spec_F77=
22267 export_dynamic_flag_spec_F77=
22268 whole_archive_flag_spec_F77=
22271 # PORTME fill in a description of your system's linker (not GNU ld)
22274 allow_undefined_flag_F77=unsupported
22275 always_export_symbols_F77=yes
22276 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'
22277 # Note: this linker hardcodes the directories in LIBPATH if there
22278 # are no directories specified by -L.
22279 hardcode_minus_L_F77=yes
22280 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22281 # Neither direct hardcoding nor static linking is supported with a
22283 hardcode_direct_F77=unsupported
22288 if test "$host_cpu" = ia64; then
22289 # On IA64, the linker does run time linking by default, so we don't
22290 # have to do anything special.
22291 aix_use_runtimelinking=no
22292 exp_sym_flag='-Bexport'
22295 # If we're using GNU nm, then we don't want the "-C" option.
22296 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22297 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22298 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'
22300 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'
22302 aix_use_runtimelinking=no
22304 # Test if we are trying to use run time linking or normal
22305 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22306 # need to do runtime linking.
22307 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22308 for ld_flag in $LDFLAGS; do
22309 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22310 aix_use_runtimelinking=yes
22317 exp_sym_flag='-bexport'
22318 no_entry_flag='-bnoentry'
22321 # When large executables or shared objects are built, AIX ld can
22322 # have problems creating the table of contents. If linking a library
22323 # or program results in "error TOC overflow" add -mminimal-toc to
22324 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22325 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22327 archive_cmds_F77=''
22328 hardcode_direct_F77=yes
22329 hardcode_libdir_separator_F77=':'
22330 link_all_deplibs_F77=yes
22332 if test "$GCC" = yes; then
22333 case $host_os in aix4.[012]|aix4.[012].*)
22334 # We only want to do this on AIX 4.2 and lower, the check
22335 # below for broken collect2 doesn't work under 4.3+
22336 collect2name=`${CC} -print-prog-name=collect2`
22337 if test -f "$collect2name" && \
22338 strings "$collect2name" | grep resolve_lib_name >/dev/null
22340 # We have reworked collect2
22341 hardcode_direct_F77=yes
22343 # We have old collect2
22344 hardcode_direct_F77=unsupported
22345 # It fails to find uninstalled libraries when the uninstalled
22346 # path is not listed in the libpath. Setting hardcode_minus_L
22347 # to unsupported forces relinking
22348 hardcode_minus_L_F77=yes
22349 hardcode_libdir_flag_spec_F77='-L$libdir'
22350 hardcode_libdir_separator_F77=
22354 shared_flag='-shared'
22355 if test "$aix_use_runtimelinking" = yes; then
22356 shared_flag="$shared_flag "'${wl}-G'
22360 if test "$host_cpu" = ia64; then
22361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22362 # chokes on -Wl,-G. The following line is correct:
22365 if test "$aix_use_runtimelinking" = yes; then
22366 shared_flag='${wl}-G'
22368 shared_flag='${wl}-bM:SRE'
22373 # It seems that -bexpall does not export symbols beginning with
22374 # underscore (_), so it is better to generate a list of symbols to export.
22375 always_export_symbols_F77=yes
22376 if test "$aix_use_runtimelinking" = yes; then
22377 # Warning - without using the other runtime loading flags (-brtl),
22378 # -berok will link without error, but may produce a broken library.
22379 allow_undefined_flag_F77='-berok'
22380 # Determine the default libpath from the value encoded in an empty executable.
22381 cat >conftest.$ac_ext <<_ACEOF
22386 rm -f conftest.$ac_objext conftest$ac_exeext
22387 if { (ac_try="$ac_link"
22388 case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_link") 2>conftest.er1
22395 grep -v '^ *+' conftest.er1 >conftest.err
22397 cat conftest.err >&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); } &&
22400 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22401 { (case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_try") 2>&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try='test -s conftest$ac_exeext'
22411 { (case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_try") 2>&5
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; }; then
22421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22423 # Check for a 64-bit object if we didn't find anything.
22424 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; }
22427 echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22433 rm -f core conftest.err conftest.$ac_objext \
22434 conftest$ac_exeext conftest.$ac_ext
22435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22437 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22438 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"
22440 if test "$host_cpu" = ia64; then
22441 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22442 allow_undefined_flag_F77="-z nodefs"
22443 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"
22445 # Determine the default libpath from the value encoded in an empty executable.
22446 cat >conftest.$ac_ext <<_ACEOF
22451 rm -f conftest.$ac_objext conftest$ac_exeext
22452 if { (ac_try="$ac_link"
22453 case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_link") 2>conftest.er1
22460 grep -v '^ *+' conftest.er1 >conftest.err
22462 cat conftest.err >&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); } &&
22465 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22466 { (case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_try") 2>&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; } &&
22475 { ac_try='test -s conftest$ac_exeext'
22476 { (case "(($ac_try" in
22477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478 *) ac_try_echo=$ac_try;;
22480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481 (eval "$ac_try") 2>&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22488 # Check for a 64-bit object if we didn't find anything.
22489 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; }
22492 echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22498 rm -f core conftest.err conftest.$ac_objext \
22499 conftest$ac_exeext conftest.$ac_ext
22500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22502 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22503 # Warning - without using the other run time loading flags,
22504 # -berok will link without error, but may produce a broken library.
22505 no_undefined_flag_F77=' ${wl}-bernotok'
22506 allow_undefined_flag_F77=' ${wl}-berok'
22507 # Exported symbols can be pulled into shared objects from archives
22508 whole_archive_flag_spec_F77='$convenience'
22509 archive_cmds_need_lc_F77=yes
22510 # This is similar to how AIX traditionally builds its shared libraries.
22511 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'
22517 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)'
22518 hardcode_libdir_flag_spec_F77='-L$libdir'
22519 hardcode_minus_L_F77=yes
22520 # see comment about different semantics on the GNU ld section
22525 export_dynamic_flag_spec_F77=-rdynamic
22528 cygwin* | mingw* | pw32*)
22529 # When not using gcc, we currently assume that we are using
22530 # Microsoft Visual C++.
22531 # hardcode_libdir_flag_spec is actually meaningless, as there is
22532 # no search path for DLLs.
22533 hardcode_libdir_flag_spec_F77=' '
22534 allow_undefined_flag_F77=unsupported
22535 # Tell ltmain to make .lib files, not .a files.
22537 # Tell ltmain to make .dll files, not .so files.
22539 # FIXME: Setting linknames here is a bad hack.
22540 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22541 # The linker will automatically build a .lib file if we build a DLL.
22542 old_archive_From_new_cmds_F77='true'
22543 # FIXME: Should let the user specify the lib program.
22544 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22545 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22546 enable_shared_with_static_runtimes_F77=yes
22549 darwin* | rhapsody*)
22551 rhapsody* | darwin1.[012])
22552 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22555 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22556 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22558 case ${MACOSX_DEPLOYMENT_TARGET} in
22560 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22563 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22569 archive_cmds_need_lc_F77=no
22570 hardcode_direct_F77=no
22571 hardcode_automatic_F77=yes
22572 hardcode_shlibpath_var_F77=unsupported
22573 whole_archive_flag_spec_F77=''
22574 link_all_deplibs_F77=yes
22575 if test "$GCC" = yes ; then
22576 output_verbose_link_cmd='echo'
22577 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22578 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22579 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22580 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}'
22581 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}'
22583 case $cc_basename in
22585 output_verbose_link_cmd='echo'
22586 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22587 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22588 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22589 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}'
22590 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}'
22600 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22601 hardcode_libdir_flag_spec_F77='-L$libdir'
22602 hardcode_shlibpath_var_F77=no
22609 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22610 # support. Future versions do this automatically, but an explicit c++rt0.o
22611 # does not break anything, and helps significantly (at the cost of a little
22614 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22615 hardcode_libdir_flag_spec_F77='-R$libdir'
22616 hardcode_direct_F77=yes
22617 hardcode_shlibpath_var_F77=no
22620 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22622 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22623 hardcode_direct_F77=yes
22624 hardcode_minus_L_F77=yes
22625 hardcode_shlibpath_var_F77=no
22628 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22629 freebsd* | kfreebsd*-gnu | dragonfly*)
22630 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22631 hardcode_libdir_flag_spec_F77='-R$libdir'
22632 hardcode_direct_F77=yes
22633 hardcode_shlibpath_var_F77=no
22637 if test "$GCC" = yes; then
22638 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'
22640 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'
22642 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22643 hardcode_libdir_separator_F77=:
22644 hardcode_direct_F77=yes
22646 # hardcode_minus_L: Not really in the search PATH,
22647 # but as the default location of the library.
22648 hardcode_minus_L_F77=yes
22649 export_dynamic_flag_spec_F77='${wl}-E'
22653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22654 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22656 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22658 if test "$with_gnu_ld" = no; then
22659 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22660 hardcode_libdir_separator_F77=:
22662 hardcode_direct_F77=yes
22663 export_dynamic_flag_spec_F77='${wl}-E'
22665 # hardcode_minus_L: Not really in the search PATH,
22666 # but as the default location of the library.
22667 hardcode_minus_L_F77=yes
22672 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22675 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22678 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22681 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22687 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22690 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22693 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22697 if test "$with_gnu_ld" = no; then
22698 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22699 hardcode_libdir_separator_F77=:
22703 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22704 hardcode_direct_F77=no
22705 hardcode_shlibpath_var_F77=no
22708 hardcode_direct_F77=yes
22709 export_dynamic_flag_spec_F77='${wl}-E'
22711 # hardcode_minus_L: Not really in the search PATH,
22712 # but as the default location of the library.
22713 hardcode_minus_L_F77=yes
22719 irix5* | irix6* | nonstopux*)
22720 if test "$GCC" = yes; then
22721 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'
22723 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'
22724 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22726 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22727 hardcode_libdir_separator_F77=:
22728 link_all_deplibs_F77=yes
22732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22733 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22735 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22737 hardcode_libdir_flag_spec_F77='-R$libdir'
22738 hardcode_direct_F77=yes
22739 hardcode_shlibpath_var_F77=no
22743 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22744 hardcode_direct_F77=yes
22745 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22746 hardcode_libdir_separator_F77=:
22747 hardcode_shlibpath_var_F77=no
22751 hardcode_direct_F77=yes
22752 hardcode_shlibpath_var_F77=no
22753 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22754 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22755 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22756 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22757 export_dynamic_flag_spec_F77='${wl}-E'
22760 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22761 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22762 hardcode_libdir_flag_spec_F77='-R$libdir'
22765 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22766 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22773 hardcode_libdir_flag_spec_F77='-L$libdir'
22774 hardcode_minus_L_F77=yes
22775 allow_undefined_flag_F77=unsupported
22776 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'
22777 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22781 if test "$GCC" = yes; then
22782 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22783 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'
22785 allow_undefined_flag_F77=' -expect_unresolved \*'
22786 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'
22788 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22789 hardcode_libdir_separator_F77=:
22792 osf4* | osf5*) # as osf3* with the addition of -msym flag
22793 if test "$GCC" = yes; then
22794 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22795 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'
22796 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22798 allow_undefined_flag_F77=' -expect_unresolved \*'
22799 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'
22800 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~
22801 $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'
22803 # Both c and cxx compiler support -rpath directly
22804 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22806 hardcode_libdir_separator_F77=:
22810 no_undefined_flag_F77=' -z text'
22811 if test "$GCC" = yes; then
22813 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22814 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22815 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22818 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22819 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22820 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22822 hardcode_libdir_flag_spec_F77='-R$libdir'
22823 hardcode_shlibpath_var_F77=no
22825 solaris2.[0-5] | solaris2.[0-5].*) ;;
22827 # The compiler driver will combine linker options so we
22828 # cannot just pass the convience library names through
22829 # without $wl, iff we do not link with $LD.
22830 # Luckily, gcc supports the same syntax we need for Sun Studio.
22831 # Supported since Solaris 2.6 (maybe 2.5.1?)
22834 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22836 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' ;;
22839 link_all_deplibs_F77=yes
22843 if test "x$host_vendor" = xsequent; then
22844 # Use $CC to link under sequent, because it throws in some extra .o
22845 # files that make .init and .fini sections work.
22846 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22848 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22850 hardcode_libdir_flag_spec_F77='-L$libdir'
22851 hardcode_direct_F77=yes
22852 hardcode_minus_L_F77=yes
22853 hardcode_shlibpath_var_F77=no
22857 case $host_vendor in
22859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22860 hardcode_direct_F77=yes # is this really true???
22863 ## LD is ld it makes a PLAMLIB
22864 ## CC just makes a GrossModule.
22865 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22866 reload_cmds_F77='$CC -r -o $output$reload_objs'
22867 hardcode_direct_F77=no
22870 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22871 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22874 runpath_var='LD_RUN_PATH'
22875 hardcode_shlibpath_var_F77=no
22879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22880 hardcode_shlibpath_var_F77=no
22881 export_dynamic_flag_spec_F77='-Bexport'
22885 if test -d /usr/nec; then
22886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22887 hardcode_shlibpath_var_F77=no
22888 runpath_var=LD_RUN_PATH
22889 hardcode_runpath_var=yes
22894 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22895 no_undefined_flag_F77='${wl}-z,text'
22896 archive_cmds_need_lc_F77=no
22897 hardcode_shlibpath_var_F77=no
22898 runpath_var='LD_RUN_PATH'
22900 if test "$GCC" = yes; then
22901 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22902 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22904 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22905 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22909 sysv5* | sco3.2v5* | sco5v6*)
22910 # Note: We can NOT use -z defs as we might desire, because we do not
22911 # link with -lc, and that would cause any symbols used from libc to
22912 # always be unresolved, which means just about no library would
22913 # ever link correctly. If we're not using GNU ld we use -z text
22914 # though, which does catch some bad symbols but isn't as heavy-handed
22916 no_undefined_flag_F77='${wl}-z,text'
22917 allow_undefined_flag_F77='${wl}-z,nodefs'
22918 archive_cmds_need_lc_F77=no
22919 hardcode_shlibpath_var_F77=no
22920 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22921 hardcode_libdir_separator_F77=':'
22922 link_all_deplibs_F77=yes
22923 export_dynamic_flag_spec_F77='${wl}-Bexport'
22924 runpath_var='LD_RUN_PATH'
22926 if test "$GCC" = yes; then
22927 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22928 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22930 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22931 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22936 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22937 hardcode_libdir_flag_spec_F77='-L$libdir'
22938 hardcode_shlibpath_var_F77=no
22947 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22948 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22949 test "$ld_shlibs_F77" = no && can_build_shared=no
22952 # Do we need to explicitly link libc?
22954 case "x$archive_cmds_need_lc_F77" in
22956 # Assume -lc should be added
22957 archive_cmds_need_lc_F77=yes
22959 if test "$enable_shared" = yes && test "$GCC" = yes; then
22960 case $archive_cmds_F77 in
22962 # FIXME: we may have to deal with multi-command sequences.
22965 # Test whether the compiler implicitly links with -lc since on some
22966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22967 # to ld, don't add -lc before -lgcc.
22968 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22969 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22974 (eval $ac_compile) 2>&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } 2>conftest.err; then
22980 libobjs=conftest.$ac_objext
22982 wl=$lt_prog_compiler_wl_F77
22983 pic_flag=$lt_prog_compiler_pic_F77
22989 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22990 allow_undefined_flag_F77=
22991 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22992 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }
22997 archive_cmds_need_lc_F77=no
22999 archive_cmds_need_lc_F77=yes
23001 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23003 cat conftest.err 1>&5
23006 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23007 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23014 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23015 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23016 library_names_spec=
23017 libname_spec='lib$name'
23021 postuninstall_cmds=
23025 shlibpath_overrides_runpath=unknown
23027 dynamic_linker="$host_os ld.so"
23028 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23029 if test "$GCC" = yes; then
23030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23031 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23032 # if the path contains ";" then we assume it to be the separator
23033 # otherwise default to the standard path separator (i.e. ":") - it is
23034 # assumed that no part of a normal pathname contains ";" but that should
23035 # okay in the real world where ";" in dirpaths is itself problematic.
23036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23043 need_lib_prefix=unknown
23044 hardcode_into_libs=no
23046 # when you set need_version to no, make sure it does not cause -set_version
23047 # flags to be left without arguments
23048 need_version=unknown
23053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23054 shlibpath_var=LIBPATH
23056 # AIX 3 has no versioning support, so we append a major version to the name.
23057 soname_spec='${libname}${release}${shared_ext}$major'
23064 hardcode_into_libs=yes
23065 if test "$host_cpu" = ia64; then
23066 # AIX 5 supports IA64
23067 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23068 shlibpath_var=LD_LIBRARY_PATH
23070 # With GCC up to 2.95.x, collect2 would create an import file
23071 # for dependence libraries. The import file would start with
23072 # the line `#! .'. This would cause the generated library to
23073 # depend on `.', always an invalid library. This was fixed in
23074 # development snapshots of GCC prior to 3.0.
23076 aix4 | aix4.[01] | aix4.[01].*)
23077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23079 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23082 can_build_shared=no
23086 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23087 # soname into executable. Probably we can add versioning support to
23088 # collect2, so additional links can be useful in future.
23089 if test "$aix_use_runtimelinking" = yes; then
23090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23091 # instead of lib<name>.a to let people know that these are not
23092 # typical AIX shared libraries.
23093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095 # We preserve .a as extension for shared libraries through AIX4.2
23096 # and later when we are not doing run time linking.
23097 library_names_spec='${libname}${release}.a $libname.a'
23098 soname_spec='${libname}${release}${shared_ext}$major'
23100 shlibpath_var=LIBPATH
23105 library_names_spec='$libname.ixlibrary $libname.a'
23106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23107 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'
23111 library_names_spec='${libname}${shared_ext}'
23112 dynamic_linker="$host_os ld.so"
23113 shlibpath_var=LIBRARY_PATH
23119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23120 soname_spec='${libname}${release}${shared_ext}$major'
23121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23122 shlibpath_var=LD_LIBRARY_PATH
23123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23125 # the default ld.so.conf also contains /usr/contrib/lib and
23126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23127 # libtool to hard-code these into programs
23130 cygwin* | mingw* | pw32*)
23131 version_type=windows
23136 case $GCC,$host_os in
23137 yes,cygwin* | yes,mingw* | yes,pw32*)
23138 library_names_spec='$libname.dll.a'
23139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23140 postinstall_cmds='base_file=`basename \${file}`~
23141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23142 dldir=$destdir/`dirname \$dlpath`~
23143 test -d \$dldir || mkdir -p \$dldir~
23144 $install_prog $dir/$dlname \$dldir/$dlname~
23145 chmod a+x \$dldir/$dlname'
23146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23147 dlpath=$dir/\$dldll~
23149 shlibpath_overrides_runpath=yes
23153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23154 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23155 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23158 # MinGW DLLs use traditional 'lib' prefix
23159 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23161 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23162 # It is most probably a Windows format PATH printed by
23163 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23164 # path with ; separators, and with drive letters. We can handle the
23165 # drive letters (cygwin fileutils understands them), so leave them,
23166 # especially as we might pass files found there to a mingw objdump,
23167 # which wouldn't understand a cygwinified path. Ahh.
23168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23174 # pw32 DLLs use 'pw' prefix rather than 'lib'
23175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23184 dynamic_linker='Win32 ld.exe'
23185 # FIXME: first we should search . and the directory the executable is in
23189 darwin* | rhapsody*)
23190 dynamic_linker="$host_os dyld"
23191 version_type=darwin
23194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23195 soname_spec='${libname}${release}${major}$shared_ext'
23196 shlibpath_overrides_runpath=yes
23197 shlibpath_var=DYLD_LIBRARY_PATH
23198 shrext_cmds='.dylib'
23199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23200 if test "$GCC" = yes; then
23201 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"`
23203 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23213 soname_spec='${libname}${release}${shared_ext}$major'
23214 shlibpath_var=LD_LIBRARY_PATH
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23226 soname_spec='${libname}${release}${shared_ext}$major'
23227 shlibpath_var=LD_LIBRARY_PATH
23228 shlibpath_overrides_runpath=no
23229 hardcode_into_libs=yes
23230 dynamic_linker='GNU ld.so'
23233 freebsd* | dragonfly*)
23234 # DragonFly does not have aout. When/if they implement a new
23235 # versioning mechanism, adjust this.
23236 if test -x /usr/bin/objformat; then
23237 objformat=`/usr/bin/objformat`
23240 freebsd[123]*) objformat=aout ;;
23241 *) objformat=elf ;;
23244 version_type=freebsd-$objformat
23245 case $version_type in
23247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23256 shlibpath_var=LD_LIBRARY_PATH
23259 shlibpath_overrides_runpath=yes
23261 freebsd3.[01]* | freebsdelf3.[01]*)
23262 shlibpath_overrides_runpath=yes
23263 hardcode_into_libs=yes
23265 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23266 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23267 shlibpath_overrides_runpath=no
23268 hardcode_into_libs=yes
23270 freebsd*) # from 4.6 on
23271 shlibpath_overrides_runpath=yes
23272 hardcode_into_libs=yes
23281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23282 soname_spec='${libname}${release}${shared_ext}$major'
23283 shlibpath_var=LD_LIBRARY_PATH
23284 hardcode_into_libs=yes
23287 hpux9* | hpux10* | hpux11*)
23288 # Give a soname corresponding to the major version so that dld.sl refuses to
23289 # link against other versions.
23296 hardcode_into_libs=yes
23297 dynamic_linker="$host_os dld.so"
23298 shlibpath_var=LD_LIBRARY_PATH
23299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23301 soname_spec='${libname}${release}${shared_ext}$major'
23302 if test "X$HPUX_IA64_MODE" = X32; then
23303 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23305 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23311 hardcode_into_libs=yes
23312 dynamic_linker="$host_os dld.sl"
23313 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23316 soname_spec='${libname}${release}${shared_ext}$major'
23317 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23322 dynamic_linker="$host_os dld.sl"
23323 shlibpath_var=SHLIB_PATH
23324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23326 soname_spec='${libname}${release}${shared_ext}$major'
23329 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23330 postinstall_cmds='chmod 555 $lib'
23337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23338 soname_spec='${libname}${release}${shared_ext}$major'
23339 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23340 shlibpath_var=LD_LIBRARY_PATH
23341 shlibpath_overrides_runpath=no
23342 hardcode_into_libs=yes
23345 irix5* | irix6* | nonstopux*)
23347 nonstopux*) version_type=nonstopux ;;
23349 if test "$lt_cv_prog_gnu_ld" = yes; then
23357 soname_spec='${libname}${release}${shared_ext}$major'
23358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23360 irix5* | nonstopux*)
23361 libsuff= shlibsuff=
23364 case $LD in # libtool.m4 will add one of these switches to LD
23365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23366 libsuff= shlibsuff= libmagic=32-bit;;
23367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23368 libsuff=32 shlibsuff=N32 libmagic=N32;;
23369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23371 *) libsuff= shlibsuff= libmagic=never-match;;
23375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23376 shlibpath_overrides_runpath=no
23377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23379 hardcode_into_libs=yes
23382 # No shared lib support for Linux oldld, aout, or coff.
23383 linux*oldld* | linux*aout* | linux*coff*)
23387 # This must be Linux ELF.
23392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23393 soname_spec='${libname}${release}${shared_ext}$major'
23394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23395 shlibpath_var=LD_LIBRARY_PATH
23396 shlibpath_overrides_runpath=no
23397 # This implies no fast_install, which is unacceptable.
23398 # Some rework will be needed to allow for fast_install
23399 # before this can be enabled.
23400 hardcode_into_libs=yes
23402 # Append ld.so.conf contents to the search path
23403 if test -f /etc/ld.so.conf; then
23404 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' ' '`
23405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23408 # We used to test for /lib/ld.so.1 and disable shared libraries on
23409 # powerpc, because MkLinux only supported shared libraries with the
23410 # GNU dynamic linker. Since this was broken with cross compilers,
23411 # most powerpc-linux boxes support dynamic linking these days and
23412 # people can always --disable-shared, the test was removed, and we
23413 # assume the GNU/Linux dynamic linker is in use.
23414 dynamic_linker='GNU/Linux ld.so'
23421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23422 soname_spec='${libname}${release}${shared_ext}$major'
23423 shlibpath_var=LD_LIBRARY_PATH
23424 shlibpath_overrides_runpath=no
23425 hardcode_into_libs=yes
23426 dynamic_linker='GNU ld.so'
23433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23436 dynamic_linker='NetBSD (a.out) ld.so'
23438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23439 soname_spec='${libname}${release}${shared_ext}$major'
23440 dynamic_linker='NetBSD ld.elf_so'
23442 shlibpath_var=LD_LIBRARY_PATH
23443 shlibpath_overrides_runpath=yes
23444 hardcode_into_libs=yes
23449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23450 shlibpath_var=LD_LIBRARY_PATH
23451 shlibpath_overrides_runpath=yes
23458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23459 soname_spec='${libname}${release}${shared_ext}$major'
23460 shlibpath_var=LD_LIBRARY_PATH
23461 shlibpath_overrides_runpath=yes
23466 sys_lib_dlsearch_path_spec="/usr/lib"
23468 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23470 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23471 *) need_version=no ;;
23473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23475 shlibpath_var=LD_LIBRARY_PATH
23476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23478 openbsd2.[89] | openbsd2.[89].*)
23479 shlibpath_overrides_runpath=no
23482 shlibpath_overrides_runpath=yes
23486 shlibpath_overrides_runpath=yes
23491 libname_spec='$name'
23494 library_names_spec='$libname${shared_ext} $libname.a'
23495 dynamic_linker='OS/2 ld.exe'
23496 shlibpath_var=LIBPATH
23499 osf3* | osf4* | osf5*)
23503 soname_spec='${libname}${release}${shared_ext}$major'
23504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23505 shlibpath_var=LD_LIBRARY_PATH
23506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23515 soname_spec='${libname}${release}${shared_ext}$major'
23516 shlibpath_var=LD_LIBRARY_PATH
23517 shlibpath_overrides_runpath=yes
23518 hardcode_into_libs=yes
23519 # ldd complains unless libraries are executable
23520 postinstall_cmds='chmod +x $lib'
23525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23527 shlibpath_var=LD_LIBRARY_PATH
23528 shlibpath_overrides_runpath=yes
23529 if test "$with_gnu_ld" = yes; then
23537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23538 soname_spec='${libname}${release}${shared_ext}$major'
23539 shlibpath_var=LD_LIBRARY_PATH
23540 case $host_vendor in
23542 shlibpath_overrides_runpath=no
23544 export_dynamic_flag_spec='${wl}-Blargedynsym'
23545 runpath_var=LD_RUN_PATH
23553 shlibpath_overrides_runpath=no
23554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23560 if test -d /usr/nec ;then
23562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23563 soname_spec='$libname${shared_ext}.$major'
23564 shlibpath_var=LD_LIBRARY_PATH
23568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23569 version_type=freebsd-elf
23572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23573 soname_spec='${libname}${release}${shared_ext}$major'
23574 shlibpath_var=LD_LIBRARY_PATH
23575 hardcode_into_libs=yes
23576 if test "$with_gnu_ld" = yes; then
23577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23578 shlibpath_overrides_runpath=no
23580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23581 shlibpath_overrides_runpath=yes
23584 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23588 sys_lib_dlsearch_path_spec='/usr/lib'
23593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23594 soname_spec='${libname}${release}${shared_ext}$major'
23595 shlibpath_var=LD_LIBRARY_PATH
23602 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23603 echo "${ECHO_T}$dynamic_linker" >&6; }
23604 test "$dynamic_linker" = no && can_build_shared=no
23606 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23607 if test "$GCC" = yes; then
23608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23611 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23612 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23613 hardcode_action_F77=
23614 if test -n "$hardcode_libdir_flag_spec_F77" || \
23615 test -n "$runpath_var_F77" || \
23616 test "X$hardcode_automatic_F77" = "Xyes" ; then
23618 # We can hardcode non-existant directories.
23619 if test "$hardcode_direct_F77" != no &&
23620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23621 # have to relink, otherwise we might link with an installed library
23622 # when we should be linking with a yet-to-be-installed one
23623 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23624 test "$hardcode_minus_L_F77" != no; then
23625 # Linking always hardcodes the temporary library directory.
23626 hardcode_action_F77=relink
23628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23629 hardcode_action_F77=immediate
23632 # We cannot hardcode anything, or else we can only hardcode existing
23634 hardcode_action_F77=unsupported
23636 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23637 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23639 if test "$hardcode_action_F77" = relink; then
23640 # Fast installation is not supported
23641 enable_fast_install=no
23642 elif test "$shlibpath_overrides_runpath" = yes ||
23643 test "$enable_shared" = no; then
23644 # Fast installation is not necessary
23645 enable_fast_install=needless
23649 # The else clause should only fire when bootstrapping the
23650 # libtool distribution, otherwise you forgot to ship ltmain.sh
23651 # with your package, and you will get complaints that there are
23652 # no rules to generate ltmain.sh.
23653 if test -f "$ltmain"; then
23654 # See if we are running on zsh, and set the options which allow our commands through
23655 # without removal of \ escapes.
23656 if test -n "${ZSH_VERSION+set}" ; then
23657 setopt NO_GLOB_SUBST
23659 # Now quote all the things that may contain metacharacters while being
23660 # careful not to overquote the AC_SUBSTed values. We take copies of the
23661 # variables and quote the copies for generation of the libtool script.
23662 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23664 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23665 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23666 deplibs_check_method reload_flag reload_cmds need_locks \
23667 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23668 lt_cv_sys_global_symbol_to_c_name_address \
23669 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23670 old_postinstall_cmds old_postuninstall_cmds \
23674 lt_prog_compiler_wl_F77 \
23675 lt_prog_compiler_pic_F77 \
23676 lt_prog_compiler_static_F77 \
23677 lt_prog_compiler_no_builtin_flag_F77 \
23678 export_dynamic_flag_spec_F77 \
23679 thread_safe_flag_spec_F77 \
23680 whole_archive_flag_spec_F77 \
23681 enable_shared_with_static_runtimes_F77 \
23682 old_archive_cmds_F77 \
23683 old_archive_from_new_cmds_F77 \
23684 predep_objects_F77 \
23685 postdep_objects_F77 \
23688 compiler_lib_search_path_F77 \
23690 archive_expsym_cmds_F77 \
23691 postinstall_cmds_F77 \
23692 postuninstall_cmds_F77 \
23693 old_archive_from_expsyms_cmds_F77 \
23694 allow_undefined_flag_F77 \
23695 no_undefined_flag_F77 \
23696 export_symbols_cmds_F77 \
23697 hardcode_libdir_flag_spec_F77 \
23698 hardcode_libdir_flag_spec_ld_F77 \
23699 hardcode_libdir_separator_F77 \
23700 hardcode_automatic_F77 \
23702 module_expsym_cmds_F77 \
23703 lt_cv_prog_compiler_c_o_F77 \
23704 exclude_expsyms_F77 \
23705 include_expsyms_F77; do
23708 old_archive_cmds_F77 | \
23709 old_archive_from_new_cmds_F77 | \
23710 archive_cmds_F77 | \
23711 archive_expsym_cmds_F77 | \
23712 module_cmds_F77 | \
23713 module_expsym_cmds_F77 | \
23714 old_archive_from_expsyms_cmds_F77 | \
23715 export_symbols_cmds_F77 | \
23716 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23717 postinstall_cmds | postuninstall_cmds | \
23718 old_postinstall_cmds | old_postuninstall_cmds | \
23719 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23720 # Double-quote double-evaled strings.
23721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23730 *'\$0 --fallback-echo"')
23731 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23737 cat <<__EOF__ >> "$cfgfile"
23738 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23740 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23742 # Shell to use when invoking shell scripts.
23745 # Whether or not to build shared libraries.
23746 build_libtool_libs=$enable_shared
23748 # Whether or not to build static libraries.
23749 build_old_libs=$enable_static
23751 # Whether or not to add -lc for building shared libraries.
23752 build_libtool_need_lc=$archive_cmds_need_lc_F77
23754 # Whether or not to disallow shared libs when runtime libs are static
23755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23757 # Whether or not to optimize for fast installation.
23758 fast_install=$enable_fast_install
23761 host_alias=$host_alias
23765 # The build system.
23766 build_alias=$build_alias
23770 # An echo program that does not interpret backslashes.
23775 AR_FLAGS=$lt_AR_FLAGS
23780 # LTCC compiler flags.
23781 LTCFLAGS=$lt_LTCFLAGS
23783 # A language-specific compiler.
23784 CC=$lt_compiler_F77
23786 # Is the compiler the GNU C compiler?
23792 # The linker used to build libraries.
23795 # Whether we need hard or soft links.
23798 # A BSD-compatible nm program.
23801 # A symbol stripping program
23804 # Used to examine libraries when file_magic_cmd begins "file"
23805 MAGIC_CMD=$MAGIC_CMD
23807 # Used on cygwin: DLL creation program.
23810 # Used on cygwin: object dumper.
23813 # Used on cygwin: assembler.
23816 # The name of the directory that contains temporary libtool files.
23819 # How to create reloadable object files.
23820 reload_flag=$lt_reload_flag
23821 reload_cmds=$lt_reload_cmds
23823 # How to pass a linker flag through the compiler.
23824 wl=$lt_lt_prog_compiler_wl_F77
23826 # Object file suffix (normally "o").
23827 objext="$ac_objext"
23829 # Old archive suffix (normally "a").
23832 # Shared library suffix (normally ".so").
23833 shrext_cmds='$shrext_cmds'
23835 # Executable file suffix (normally "").
23838 # Additional compiler flags for building library objects.
23839 pic_flag=$lt_lt_prog_compiler_pic_F77
23842 # What is the maximum length of a command?
23843 max_cmd_len=$lt_cv_sys_max_cmd_len
23845 # Does compiler simultaneously support -c and -o options?
23846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23848 # Must we lock files when doing compilation?
23849 need_locks=$lt_need_locks
23851 # Do we need the lib prefix for modules?
23852 need_lib_prefix=$need_lib_prefix
23854 # Do we need a version for libraries?
23855 need_version=$need_version
23857 # Whether dlopen is supported.
23858 dlopen_support=$enable_dlopen
23860 # Whether dlopen of programs is supported.
23861 dlopen_self=$enable_dlopen_self
23863 # Whether dlopen of statically linked programs is supported.
23864 dlopen_self_static=$enable_dlopen_self_static
23866 # Compiler flag to prevent dynamic linking.
23867 link_static_flag=$lt_lt_prog_compiler_static_F77
23869 # Compiler flag to turn off builtin functions.
23870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23872 # Compiler flag to allow reflexive dlopens.
23873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23875 # Compiler flag to generate shared objects directly from archives.
23876 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23878 # Compiler flag to generate thread-safe objects.
23879 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23881 # Library versioning type.
23882 version_type=$version_type
23884 # Format of library name prefix.
23885 libname_spec=$lt_libname_spec
23887 # List of archive names. First name is the real one, the rest are links.
23888 # The last name is the one that the linker finds with -lNAME.
23889 library_names_spec=$lt_library_names_spec
23891 # The coded name of the library, if different from the real name.
23892 soname_spec=$lt_soname_spec
23894 # Commands used to build and install an old-style archive.
23896 old_archive_cmds=$lt_old_archive_cmds_F77
23897 old_postinstall_cmds=$lt_old_postinstall_cmds
23898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23900 # Create an old-style archive from a shared archive.
23901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23903 # Create a temporary old-style archive to link instead of a shared archive.
23904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23906 # Commands used to build and install a shared archive.
23907 archive_cmds=$lt_archive_cmds_F77
23908 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23909 postinstall_cmds=$lt_postinstall_cmds
23910 postuninstall_cmds=$lt_postuninstall_cmds
23912 # Commands used to build a loadable module (assumed same as above if empty)
23913 module_cmds=$lt_module_cmds_F77
23914 module_expsym_cmds=$lt_module_expsym_cmds_F77
23916 # Commands to strip libraries.
23917 old_striplib=$lt_old_striplib
23918 striplib=$lt_striplib
23920 # Dependencies to place before the objects being linked to create a
23922 predep_objects=$lt_predep_objects_F77
23924 # Dependencies to place after the objects being linked to create a
23926 postdep_objects=$lt_postdep_objects_F77
23928 # Dependencies to place before the objects being linked to create a
23930 predeps=$lt_predeps_F77
23932 # Dependencies to place after the objects being linked to create a
23934 postdeps=$lt_postdeps_F77
23936 # The library search path used internally by the compiler when linking
23937 # a shared library.
23938 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23940 # Method to check whether dependent libraries are shared objects.
23941 deplibs_check_method=$lt_deplibs_check_method
23943 # Command to use when deplibs_check_method == file_magic.
23944 file_magic_cmd=$lt_file_magic_cmd
23946 # Flag that allows shared libraries with undefined symbols to be built.
23947 allow_undefined_flag=$lt_allow_undefined_flag_F77
23949 # Flag that forces no undefined symbols.
23950 no_undefined_flag=$lt_no_undefined_flag_F77
23952 # Commands used to finish a libtool library installation in a directory.
23953 finish_cmds=$lt_finish_cmds
23955 # Same as above, but a single script fragment to be evaled but not shown.
23956 finish_eval=$lt_finish_eval
23958 # Take the output of nm and produce a listing of raw symbols and C names.
23959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23961 # Transform the output of nm in a proper C declaration
23962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23964 # Transform the output of nm in a C name address pair
23965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23967 # This is the shared library runtime path variable.
23968 runpath_var=$runpath_var
23970 # This is the shared library path variable.
23971 shlibpath_var=$shlibpath_var
23973 # Is shlibpath searched before the hard-coded library search path?
23974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23976 # How to hardcode a shared library path into an executable.
23977 hardcode_action=$hardcode_action_F77
23979 # Whether we should hardcode library paths into libraries.
23980 hardcode_into_libs=$hardcode_into_libs
23982 # Flag to hardcode \$libdir into a binary during linking.
23983 # This must work even if \$libdir does not exist.
23984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23986 # If ld is used when linking, flag to hardcode \$libdir into
23987 # a binary during linking. This must work even if \$libdir does
23989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23991 # Whether we need a single -rpath flag with a separated argument.
23992 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23995 # resulting binary.
23996 hardcode_direct=$hardcode_direct_F77
23998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23999 # resulting binary.
24000 hardcode_minus_L=$hardcode_minus_L_F77
24002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24003 # the resulting binary.
24004 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24006 # Set to yes if building a shared library automatically hardcodes DIR into the library
24007 # and all subsequent libraries and executables linked against it.
24008 hardcode_automatic=$hardcode_automatic_F77
24010 # Variables whose values should be saved in libtool wrapper scripts and
24011 # restored at relink time.
24012 variables_saved_for_relink="$variables_saved_for_relink"
24014 # Whether libtool must link a program against all its dependency libraries.
24015 link_all_deplibs=$link_all_deplibs_F77
24017 # Compile-time system search path for libraries
24018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24020 # Run-time system search path for libraries
24021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24023 # Fix the shell variable \$srcfile for the compiler.
24024 fix_srcfile_path="$fix_srcfile_path_F77"
24026 # Set to yes if exported symbols are required.
24027 always_export_symbols=$always_export_symbols_F77
24029 # The commands to list exported symbols.
24030 export_symbols_cmds=$lt_export_symbols_cmds_F77
24032 # The commands to extract the exported symbol list from a shared archive.
24033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24035 # Symbols that should not be listed in the preloaded symbols.
24036 exclude_expsyms=$lt_exclude_expsyms_F77
24038 # Symbols that must always be exported.
24039 include_expsyms=$lt_include_expsyms_F77
24041 # ### END LIBTOOL TAG CONFIG: $tagname
24047 # If there is no Makefile yet, we rely on a make rule to execute
24048 # `config.status --recheck' to rerun these tests and create the
24049 # libtool script then.
24050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24051 if test -f "$ltmain_in"; then
24052 test -f Makefile && make "$ltmain"
24058 ac_cpp='$CPP $CPPFLAGS'
24059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24071 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24073 ac_cpp='$CPP $CPPFLAGS'
24074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24079 # Source file extension for Java test sources.
24082 # Object file extension for compiled Java test sources.
24086 # Code to be used in simple compile tests
24087 lt_simple_compile_test_code="class foo {}\n"
24089 # Code to be used in simple link tests
24090 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24092 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24094 # If no C compiler was specified, use CC.
24097 # If no C compiler flags were specified, use CFLAGS.
24098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24100 # Allow CC to be a program name with arguments.
24104 # save warnings/boilerplate of simple test code
24105 ac_outfile=conftest.$ac_objext
24106 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24108 _lt_compiler_boilerplate=`cat conftest.err`
24111 ac_outfile=conftest.$ac_objext
24112 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24114 _lt_linker_boilerplate=`cat conftest.err`
24118 # Allow CC to be a program name with arguments.
24123 for cc_temp in $compiler""; do
24125 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24126 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24131 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24134 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24135 archive_cmds_need_lc_GCJ=no
24137 old_archive_cmds_GCJ=$old_archive_cmds
24140 lt_prog_compiler_no_builtin_flag_GCJ=
24142 if test "$GCC" = yes; then
24143 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24146 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24147 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24148 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24149 echo $ECHO_N "(cached) $ECHO_C" >&6
24151 lt_cv_prog_compiler_rtti_exceptions=no
24152 ac_outfile=conftest.$ac_objext
24153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24154 lt_compiler_flag="-fno-rtti -fno-exceptions"
24155 # Insert the option either (1) after the last *FLAGS variable, or
24156 # (2) before a word containing "conftest.", or (3) at the end.
24157 # Note that $ac_compile itself does not contain backslashes and begins
24158 # with a dollar sign (not a hyphen), so the echo should work correctly.
24159 # The option is referenced via a variable to avoid confusing sed.
24160 lt_compile=`echo "$ac_compile" | $SED \
24161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24163 -e 's:$: $lt_compiler_flag:'`
24164 (eval echo "\"\$as_me:24164: $lt_compile\"" >&5)
24165 (eval "$lt_compile" 2>conftest.err)
24167 cat conftest.err >&5
24168 echo "$as_me:24168: \$? = $ac_status" >&5
24169 if (exit $ac_status) && test -s "$ac_outfile"; then
24170 # The compiler can only warn and ignore the option if not recognized
24171 # So say no if there are warnings other than the usual output.
24172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24175 lt_cv_prog_compiler_rtti_exceptions=yes
24181 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24182 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24185 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24192 lt_prog_compiler_wl_GCJ=
24193 lt_prog_compiler_pic_GCJ=
24194 lt_prog_compiler_static_GCJ=
24196 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24199 if test "$GCC" = yes; then
24200 lt_prog_compiler_wl_GCJ='-Wl,'
24201 lt_prog_compiler_static_GCJ='-static'
24205 # All AIX code is PIC.
24206 if test "$host_cpu" = ia64; then
24207 # AIX 5 now supports IA64 processor
24208 lt_prog_compiler_static_GCJ='-Bstatic'
24213 # FIXME: we need at least 68020 code to build shared libraries, but
24214 # adding the `-m68020' flag to GCC prevents building anything better,
24216 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24220 # PIC is the default for these OSes.
24223 mingw* | pw32* | os2*)
24224 # This hack is so that the source file can tell whether it is being
24225 # built for inclusion in a dll (and should export symbols for example).
24226 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24229 darwin* | rhapsody*)
24230 # PIC is the default on this platform
24231 # Common symbols not allowed in MH_DYLIB files
24232 lt_prog_compiler_pic_GCJ='-fno-common'
24236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24237 # Instead, we relocate shared libraries at runtime.
24241 # Just because we use GCC doesn't mean we suddenly get shared libraries
24242 # on systems that don't support them.
24243 lt_prog_compiler_can_build_shared_GCJ=no
24248 if test -d /usr/nec; then
24249 lt_prog_compiler_pic_GCJ=-Kconform_pic
24254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24255 # not for PA HP-UX.
24261 lt_prog_compiler_pic_GCJ='-fPIC'
24267 lt_prog_compiler_pic_GCJ='-fPIC'
24271 # PORTME Check for flag to pass linker flags through the system compiler.
24274 lt_prog_compiler_wl_GCJ='-Wl,'
24275 if test "$host_cpu" = ia64; then
24276 # AIX 5 now supports IA64 processor
24277 lt_prog_compiler_static_GCJ='-Bstatic'
24279 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24283 # PIC is the default on this platform
24284 # Common symbols not allowed in MH_DYLIB files
24285 case $cc_basename in
24287 lt_prog_compiler_pic_GCJ='-qnocommon'
24288 lt_prog_compiler_wl_GCJ='-Wl,'
24293 mingw* | pw32* | os2*)
24294 # This hack is so that the source file can tell whether it is being
24295 # built for inclusion in a dll (and should export symbols for example).
24296 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24299 hpux9* | hpux10* | hpux11*)
24300 lt_prog_compiler_wl_GCJ='-Wl,'
24301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24302 # not for PA HP-UX.
24308 lt_prog_compiler_pic_GCJ='+Z'
24311 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24312 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24315 irix5* | irix6* | nonstopux*)
24316 lt_prog_compiler_wl_GCJ='-Wl,'
24317 # PIC (with -KPIC) is the default.
24318 lt_prog_compiler_static_GCJ='-non_shared'
24322 lt_prog_compiler_pic_GCJ='-KPIC'
24323 lt_prog_compiler_static_GCJ='-Bstatic'
24327 case $cc_basename in
24329 lt_prog_compiler_wl_GCJ='-Wl,'
24330 lt_prog_compiler_pic_GCJ='-KPIC'
24331 lt_prog_compiler_static_GCJ='-static'
24333 pgcc* | pgf77* | pgf90* | pgf95*)
24334 # Portland Group compilers (*not* the Pentium gcc compiler,
24335 # which looks to be a dead project)
24336 lt_prog_compiler_wl_GCJ='-Wl,'
24337 lt_prog_compiler_pic_GCJ='-fpic'
24338 lt_prog_compiler_static_GCJ='-Bstatic'
24341 lt_prog_compiler_wl_GCJ='-Wl,'
24342 # All Alpha code is PIC.
24343 lt_prog_compiler_static_GCJ='-non_shared'
24348 osf3* | osf4* | osf5*)
24349 lt_prog_compiler_wl_GCJ='-Wl,'
24350 # All OSF/1 code is PIC.
24351 lt_prog_compiler_static_GCJ='-non_shared'
24355 lt_prog_compiler_pic_GCJ='-KPIC'
24356 lt_prog_compiler_static_GCJ='-Bstatic'
24357 case $cc_basename in
24358 f77* | f90* | f95*)
24359 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24361 lt_prog_compiler_wl_GCJ='-Wl,';;
24366 lt_prog_compiler_wl_GCJ='-Qoption ld '
24367 lt_prog_compiler_pic_GCJ='-PIC'
24368 lt_prog_compiler_static_GCJ='-Bstatic'
24371 sysv4 | sysv4.2uw2* | sysv4.3*)
24372 lt_prog_compiler_wl_GCJ='-Wl,'
24373 lt_prog_compiler_pic_GCJ='-KPIC'
24374 lt_prog_compiler_static_GCJ='-Bstatic'
24378 if test -d /usr/nec ;then
24379 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24380 lt_prog_compiler_static_GCJ='-Bstatic'
24384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24385 lt_prog_compiler_wl_GCJ='-Wl,'
24386 lt_prog_compiler_pic_GCJ='-KPIC'
24387 lt_prog_compiler_static_GCJ='-Bstatic'
24391 lt_prog_compiler_wl_GCJ='-Wl,'
24392 lt_prog_compiler_can_build_shared_GCJ=no
24396 lt_prog_compiler_pic_GCJ='-pic'
24397 lt_prog_compiler_static_GCJ='-Bstatic'
24401 lt_prog_compiler_can_build_shared_GCJ=no
24406 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24407 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24410 # Check to make sure the PIC flag actually works.
24412 if test -n "$lt_prog_compiler_pic_GCJ"; then
24414 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24416 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24419 lt_prog_compiler_pic_works_GCJ=no
24420 ac_outfile=conftest.$ac_objext
24421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24422 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24423 # Insert the option either (1) after the last *FLAGS variable, or
24424 # (2) before a word containing "conftest.", or (3) at the end.
24425 # Note that $ac_compile itself does not contain backslashes and begins
24426 # with a dollar sign (not a hyphen), so the echo should work correctly.
24427 # The option is referenced via a variable to avoid confusing sed.
24428 lt_compile=`echo "$ac_compile" | $SED \
24429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24431 -e 's:$: $lt_compiler_flag:'`
24432 (eval echo "\"\$as_me:24432: $lt_compile\"" >&5)
24433 (eval "$lt_compile" 2>conftest.err)
24435 cat conftest.err >&5
24436 echo "$as_me:24436: \$? = $ac_status" >&5
24437 if (exit $ac_status) && test -s "$ac_outfile"; then
24438 # The compiler can only warn and ignore the option if not recognized
24439 # So say no if there are warnings other than the usual output.
24440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24443 lt_prog_compiler_pic_works_GCJ=yes
24449 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24450 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24452 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24453 case $lt_prog_compiler_pic_GCJ in
24455 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24458 lt_prog_compiler_pic_GCJ=
24459 lt_prog_compiler_can_build_shared_GCJ=no
24464 # For platforms which do not support PIC, -DPIC is meaningless:
24466 lt_prog_compiler_pic_GCJ=
24469 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24474 # Check to make sure the static flag actually works.
24476 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24477 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24478 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24479 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24480 echo $ECHO_N "(cached) $ECHO_C" >&6
24482 lt_prog_compiler_static_works_GCJ=no
24483 save_LDFLAGS="$LDFLAGS"
24484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24485 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24487 # The linker can only warn and ignore the option if not recognized
24488 # So say no if there are warnings
24489 if test -s conftest.err; then
24490 # Append any errors to the config.log.
24491 cat conftest.err 1>&5
24492 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24494 if diff conftest.exp conftest.er2 >/dev/null; then
24495 lt_prog_compiler_static_works_GCJ=yes
24498 lt_prog_compiler_static_works_GCJ=yes
24502 LDFLAGS="$save_LDFLAGS"
24505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24506 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24508 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24511 lt_prog_compiler_static_GCJ=
24515 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24517 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24520 lt_cv_prog_compiler_c_o_GCJ=no
24521 $rm -r conftest 2>/dev/null
24525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24527 lt_compiler_flag="-o out/conftest2.$ac_objext"
24528 # Insert the option either (1) after the last *FLAGS variable, or
24529 # (2) before a word containing "conftest.", or (3) at the end.
24530 # Note that $ac_compile itself does not contain backslashes and begins
24531 # with a dollar sign (not a hyphen), so the echo should work correctly.
24532 lt_compile=`echo "$ac_compile" | $SED \
24533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24535 -e 's:$: $lt_compiler_flag:'`
24536 (eval echo "\"\$as_me:24536: $lt_compile\"" >&5)
24537 (eval "$lt_compile" 2>out/conftest.err)
24539 cat out/conftest.err >&5
24540 echo "$as_me:24540: \$? = $ac_status" >&5
24541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24543 # The compiler can only warn and ignore the option if not recognized
24544 # So say no if there are warnings
24545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24548 lt_cv_prog_compiler_c_o_GCJ=yes
24553 # SGI C++ compiler will create directory out/ii_files/ for
24554 # template instantiation
24555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24556 $rm out/* && rmdir out
24562 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24566 hard_links="nottested"
24567 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24568 # do not overwrite the value of need_locks provided by the user
24569 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24570 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24575 ln conftest.a conftest.b 2>&5 || hard_links=no
24576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24577 { echo "$as_me:$LINENO: result: $hard_links" >&5
24578 echo "${ECHO_T}$hard_links" >&6; }
24579 if test "$hard_links" = no; then
24580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24581 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24588 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24592 allow_undefined_flag_GCJ=
24593 enable_shared_with_static_runtimes_GCJ=no
24595 archive_expsym_cmds_GCJ=
24596 old_archive_From_new_cmds_GCJ=
24597 old_archive_from_expsyms_cmds_GCJ=
24598 export_dynamic_flag_spec_GCJ=
24599 whole_archive_flag_spec_GCJ=
24600 thread_safe_flag_spec_GCJ=
24601 hardcode_libdir_flag_spec_GCJ=
24602 hardcode_libdir_flag_spec_ld_GCJ=
24603 hardcode_libdir_separator_GCJ=
24604 hardcode_direct_GCJ=no
24605 hardcode_minus_L_GCJ=no
24606 hardcode_shlibpath_var_GCJ=unsupported
24607 link_all_deplibs_GCJ=unknown
24608 hardcode_automatic_GCJ=no
24610 module_expsym_cmds_GCJ=
24611 always_export_symbols_GCJ=no
24612 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24613 # include_expsyms should be a list of space-separated symbols to be *always*
24614 # included in the symbol list
24615 include_expsyms_GCJ=
24616 # exclude_expsyms can be an extended regexp of symbols to exclude
24617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24619 # as well as any symbol that contains `d'.
24620 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24622 # platforms (ab)use it in PIC code, but their linkers get confused if
24623 # the symbol is explicitly referenced. Since portable code cannot
24624 # rely on this symbol name, it's probably fine to never include it in
24625 # preloaded symbol tables.
24626 extract_expsyms_cmds=
24627 # Just being paranoid about ensuring that cc_basename is set.
24628 for cc_temp in $compiler""; do
24630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24639 cygwin* | mingw* | pw32*)
24640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24641 # When not using gcc, we currently assume that we are using
24642 # Microsoft Visual C++.
24643 if test "$GCC" != yes; then
24648 # we just hope/assume this is gcc and not c89 (= MSVC++)
24657 if test "$with_gnu_ld" = yes; then
24658 # If archive_cmds runs LD, not CC, wlarc should be empty
24661 # Set some defaults for GNU ld with shared library support. These
24662 # are reset later if shared libraries are not supported. Putting them
24663 # here allows them to be overridden if necessary.
24664 runpath_var=LD_RUN_PATH
24665 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24666 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24667 # ancient GNU ld didn't support --whole-archive et. al.
24668 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24669 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24671 whole_archive_flag_spec_GCJ=
24673 supports_anon_versioning=no
24674 case `$LD -v 2>/dev/null` in
24675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24678 *\ 2.11.*) ;; # other 2.11 versions
24679 *) supports_anon_versioning=yes ;;
24682 # See if GNU ld supports shared libraries.
24684 aix3* | aix4* | aix5*)
24685 # On AIX/PPC, the GNU linker is very broken
24686 if test "$host_cpu" != ia64; then
24690 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24691 *** to be unable to reliably create shared libraries on AIX.
24692 *** Therefore, libtool is disabling shared libraries support. If you
24693 *** really care for shared libraries, you may want to modify your PATH
24694 *** so that a non-GNU linker is found, and then restart.
24701 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)'
24702 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24703 hardcode_minus_L_GCJ=yes
24705 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24706 # that the semantics of dynamic libraries on AmigaOS, at least up
24707 # to version 4, is to share data among multiple programs linked
24708 # with the same dynamic library. Since this doesn't match the
24709 # behavior of shared libraries on other platforms, we can't use
24715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24716 allow_undefined_flag_GCJ=unsupported
24717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24718 # support --undefined. This deserves some investigation. FIXME
24719 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24725 cygwin* | mingw* | pw32*)
24726 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24727 # as there is no search path for DLLs.
24728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24729 allow_undefined_flag_GCJ=unsupported
24730 always_export_symbols_GCJ=no
24731 enable_shared_with_static_runtimes_GCJ=yes
24732 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24734 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24735 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24736 # If the export-symbols file already is a .def file (1st line
24737 # is EXPORTS), use it as is; otherwise, prepend...
24738 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24739 cp $export_symbols $output_objdir/$soname.def;
24741 echo EXPORTS > $output_objdir/$soname.def;
24742 cat $export_symbols >> $output_objdir/$soname.def;
24744 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24751 hardcode_direct_GCJ=no
24752 hardcode_shlibpath_var_GCJ=no
24753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24754 export_dynamic_flag_spec_GCJ='${wl}-E'
24755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24756 # Instead, shared libraries are loaded at an image base (0x10000000 by
24757 # default) and relocated if they conflict, which is a slow very memory
24758 # consuming and fragmenting process. To avoid this, we pick a random,
24759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24761 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'
24762 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'
24766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24768 case $cc_basename,$host_cpu in
24769 pgcc*) # Portland Group C compiler
24770 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'
24771 tmp_addflag=' $pic_flag'
24773 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24774 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'
24775 tmp_addflag=' $pic_flag -Mnomain' ;;
24776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24777 tmp_addflag=' -i_dynamic' ;;
24778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24779 tmp_addflag=' -i_dynamic -nofor_main' ;;
24780 ifc* | ifort*) # Intel Fortran compiler
24781 tmp_addflag=' -nofor_main' ;;
24783 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24785 if test $supports_anon_versioning = yes; then
24786 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24788 $echo "local: *; };" >> $output_objdir/$libname.ver~
24789 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24798 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24801 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24802 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24807 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24811 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24812 *** create shared libraries on Solaris systems. Therefore, libtool
24813 *** is disabling shared libraries support. We urge you to upgrade GNU
24814 *** binutils to release 2.9.1 or newer. Another option is to modify
24815 *** your PATH or compiler configuration so that the native linker is
24816 *** used, and then restart.
24819 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24821 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24828 case `$LD -v 2>&1` in
24829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24833 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24834 *** reliably create shared libraries on SCO systems. Therefore, libtool
24835 *** is disabling shared libraries support. We urge you to upgrade GNU
24836 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24837 *** your PATH or compiler configuration so that the native linker is
24838 *** used, and then restart.
24843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24844 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24846 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24855 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24857 hardcode_direct_GCJ=yes
24858 hardcode_shlibpath_var_GCJ=no
24862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24863 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24864 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24871 if test "$ld_shlibs_GCJ" = no; then
24873 hardcode_libdir_flag_spec_GCJ=
24874 export_dynamic_flag_spec_GCJ=
24875 whole_archive_flag_spec_GCJ=
24878 # PORTME fill in a description of your system's linker (not GNU ld)
24881 allow_undefined_flag_GCJ=unsupported
24882 always_export_symbols_GCJ=yes
24883 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'
24884 # Note: this linker hardcodes the directories in LIBPATH if there
24885 # are no directories specified by -L.
24886 hardcode_minus_L_GCJ=yes
24887 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24888 # Neither direct hardcoding nor static linking is supported with a
24890 hardcode_direct_GCJ=unsupported
24895 if test "$host_cpu" = ia64; then
24896 # On IA64, the linker does run time linking by default, so we don't
24897 # have to do anything special.
24898 aix_use_runtimelinking=no
24899 exp_sym_flag='-Bexport'
24902 # If we're using GNU nm, then we don't want the "-C" option.
24903 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24904 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24905 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'
24907 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'
24909 aix_use_runtimelinking=no
24911 # Test if we are trying to use run time linking or normal
24912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24913 # need to do runtime linking.
24914 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24915 for ld_flag in $LDFLAGS; do
24916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24917 aix_use_runtimelinking=yes
24924 exp_sym_flag='-bexport'
24925 no_entry_flag='-bnoentry'
24928 # When large executables or shared objects are built, AIX ld can
24929 # have problems creating the table of contents. If linking a library
24930 # or program results in "error TOC overflow" add -mminimal-toc to
24931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24934 archive_cmds_GCJ=''
24935 hardcode_direct_GCJ=yes
24936 hardcode_libdir_separator_GCJ=':'
24937 link_all_deplibs_GCJ=yes
24939 if test "$GCC" = yes; then
24940 case $host_os in aix4.[012]|aix4.[012].*)
24941 # We only want to do this on AIX 4.2 and lower, the check
24942 # below for broken collect2 doesn't work under 4.3+
24943 collect2name=`${CC} -print-prog-name=collect2`
24944 if test -f "$collect2name" && \
24945 strings "$collect2name" | grep resolve_lib_name >/dev/null
24947 # We have reworked collect2
24948 hardcode_direct_GCJ=yes
24950 # We have old collect2
24951 hardcode_direct_GCJ=unsupported
24952 # It fails to find uninstalled libraries when the uninstalled
24953 # path is not listed in the libpath. Setting hardcode_minus_L
24954 # to unsupported forces relinking
24955 hardcode_minus_L_GCJ=yes
24956 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24957 hardcode_libdir_separator_GCJ=
24961 shared_flag='-shared'
24962 if test "$aix_use_runtimelinking" = yes; then
24963 shared_flag="$shared_flag "'${wl}-G'
24967 if test "$host_cpu" = ia64; then
24968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24969 # chokes on -Wl,-G. The following line is correct:
24972 if test "$aix_use_runtimelinking" = yes; then
24973 shared_flag='${wl}-G'
24975 shared_flag='${wl}-bM:SRE'
24980 # It seems that -bexpall does not export symbols beginning with
24981 # underscore (_), so it is better to generate a list of symbols to export.
24982 always_export_symbols_GCJ=yes
24983 if test "$aix_use_runtimelinking" = yes; then
24984 # Warning - without using the other runtime loading flags (-brtl),
24985 # -berok will link without error, but may produce a broken library.
24986 allow_undefined_flag_GCJ='-berok'
24987 # Determine the default libpath from the value encoded in an empty executable.
24988 cat >conftest.$ac_ext <<_ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
25003 rm -f conftest.$ac_objext conftest$ac_exeext
25004 if { (ac_try="$ac_link"
25005 case "(($ac_try" in
25006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25007 *) ac_try_echo=$ac_try;;
25009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25010 (eval "$ac_link") 2>conftest.er1
25012 grep -v '^ *+' conftest.er1 >conftest.err
25014 cat conftest.err >&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } &&
25017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25018 { (case "(($ac_try" in
25019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020 *) ac_try_echo=$ac_try;;
25022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25023 (eval "$ac_try") 2>&5
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); }; } &&
25027 { ac_try='test -s conftest$ac_exeext'
25028 { (case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_try") 2>&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; }; then
25038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25040 # Check for a 64-bit object if we didn't find anything.
25041 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; }
25044 echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25050 rm -f core conftest.err conftest.$ac_objext \
25051 conftest$ac_exeext conftest.$ac_ext
25052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25054 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25055 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"
25057 if test "$host_cpu" = ia64; then
25058 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25059 allow_undefined_flag_GCJ="-z nodefs"
25060 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"
25062 # Determine the default libpath from the value encoded in an empty executable.
25063 cat >conftest.$ac_ext <<_ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h. */
25078 rm -f conftest.$ac_objext conftest$ac_exeext
25079 if { (ac_try="$ac_link"
25080 case "(($ac_try" in
25081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082 *) ac_try_echo=$ac_try;;
25084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085 (eval "$ac_link") 2>conftest.er1
25087 grep -v '^ *+' conftest.er1 >conftest.err
25089 cat conftest.err >&5
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); } &&
25092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25093 { (case "(($ac_try" in
25094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095 *) ac_try_echo=$ac_try;;
25097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25098 (eval "$ac_try") 2>&5
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; } &&
25102 { ac_try='test -s conftest$ac_exeext'
25103 { (case "(($ac_try" in
25104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105 *) ac_try_echo=$ac_try;;
25107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25108 (eval "$ac_try") 2>&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; }; then
25113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25115 # Check for a 64-bit object if we didn't find anything.
25116 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; }
25119 echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25125 rm -f core conftest.err conftest.$ac_objext \
25126 conftest$ac_exeext conftest.$ac_ext
25127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25129 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25130 # Warning - without using the other run time loading flags,
25131 # -berok will link without error, but may produce a broken library.
25132 no_undefined_flag_GCJ=' ${wl}-bernotok'
25133 allow_undefined_flag_GCJ=' ${wl}-berok'
25134 # Exported symbols can be pulled into shared objects from archives
25135 whole_archive_flag_spec_GCJ='$convenience'
25136 archive_cmds_need_lc_GCJ=yes
25137 # This is similar to how AIX traditionally builds its shared libraries.
25138 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'
25144 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)'
25145 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25146 hardcode_minus_L_GCJ=yes
25147 # see comment about different semantics on the GNU ld section
25152 export_dynamic_flag_spec_GCJ=-rdynamic
25155 cygwin* | mingw* | pw32*)
25156 # When not using gcc, we currently assume that we are using
25157 # Microsoft Visual C++.
25158 # hardcode_libdir_flag_spec is actually meaningless, as there is
25159 # no search path for DLLs.
25160 hardcode_libdir_flag_spec_GCJ=' '
25161 allow_undefined_flag_GCJ=unsupported
25162 # Tell ltmain to make .lib files, not .a files.
25164 # Tell ltmain to make .dll files, not .so files.
25166 # FIXME: Setting linknames here is a bad hack.
25167 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25168 # The linker will automatically build a .lib file if we build a DLL.
25169 old_archive_From_new_cmds_GCJ='true'
25170 # FIXME: Should let the user specify the lib program.
25171 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25172 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25173 enable_shared_with_static_runtimes_GCJ=yes
25176 darwin* | rhapsody*)
25178 rhapsody* | darwin1.[012])
25179 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25182 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25183 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25185 case ${MACOSX_DEPLOYMENT_TARGET} in
25187 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25190 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25196 archive_cmds_need_lc_GCJ=no
25197 hardcode_direct_GCJ=no
25198 hardcode_automatic_GCJ=yes
25199 hardcode_shlibpath_var_GCJ=unsupported
25200 whole_archive_flag_spec_GCJ=''
25201 link_all_deplibs_GCJ=yes
25202 if test "$GCC" = yes ; then
25203 output_verbose_link_cmd='echo'
25204 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25205 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25206 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25207 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}'
25208 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}'
25210 case $cc_basename in
25212 output_verbose_link_cmd='echo'
25213 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25214 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25215 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25216 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}'
25217 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}'
25227 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25228 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25229 hardcode_shlibpath_var_GCJ=no
25236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25237 # support. Future versions do this automatically, but an explicit c++rt0.o
25238 # does not break anything, and helps significantly (at the cost of a little
25241 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25242 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25243 hardcode_direct_GCJ=yes
25244 hardcode_shlibpath_var_GCJ=no
25247 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25249 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25250 hardcode_direct_GCJ=yes
25251 hardcode_minus_L_GCJ=yes
25252 hardcode_shlibpath_var_GCJ=no
25255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25256 freebsd* | kfreebsd*-gnu | dragonfly*)
25257 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25258 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25259 hardcode_direct_GCJ=yes
25260 hardcode_shlibpath_var_GCJ=no
25264 if test "$GCC" = yes; then
25265 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'
25267 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'
25269 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25270 hardcode_libdir_separator_GCJ=:
25271 hardcode_direct_GCJ=yes
25273 # hardcode_minus_L: Not really in the search PATH,
25274 # but as the default location of the library.
25275 hardcode_minus_L_GCJ=yes
25276 export_dynamic_flag_spec_GCJ='${wl}-E'
25280 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25281 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25283 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25285 if test "$with_gnu_ld" = no; then
25286 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25287 hardcode_libdir_separator_GCJ=:
25289 hardcode_direct_GCJ=yes
25290 export_dynamic_flag_spec_GCJ='${wl}-E'
25292 # hardcode_minus_L: Not really in the search PATH,
25293 # but as the default location of the library.
25294 hardcode_minus_L_GCJ=yes
25299 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25302 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25305 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25308 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25314 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25317 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25320 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25324 if test "$with_gnu_ld" = no; then
25325 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25326 hardcode_libdir_separator_GCJ=:
25330 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25331 hardcode_direct_GCJ=no
25332 hardcode_shlibpath_var_GCJ=no
25335 hardcode_direct_GCJ=yes
25336 export_dynamic_flag_spec_GCJ='${wl}-E'
25338 # hardcode_minus_L: Not really in the search PATH,
25339 # but as the default location of the library.
25340 hardcode_minus_L_GCJ=yes
25346 irix5* | irix6* | nonstopux*)
25347 if test "$GCC" = yes; then
25348 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'
25350 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'
25351 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25353 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25354 hardcode_libdir_separator_GCJ=:
25355 link_all_deplibs_GCJ=yes
25359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25360 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25362 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25364 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25365 hardcode_direct_GCJ=yes
25366 hardcode_shlibpath_var_GCJ=no
25370 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25371 hardcode_direct_GCJ=yes
25372 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25373 hardcode_libdir_separator_GCJ=:
25374 hardcode_shlibpath_var_GCJ=no
25378 hardcode_direct_GCJ=yes
25379 hardcode_shlibpath_var_GCJ=no
25380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25381 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25382 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25383 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25384 export_dynamic_flag_spec_GCJ='${wl}-E'
25387 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25388 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25389 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25392 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25400 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25401 hardcode_minus_L_GCJ=yes
25402 allow_undefined_flag_GCJ=unsupported
25403 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'
25404 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25408 if test "$GCC" = yes; then
25409 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25410 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'
25412 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25413 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'
25415 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25416 hardcode_libdir_separator_GCJ=:
25419 osf4* | osf5*) # as osf3* with the addition of -msym flag
25420 if test "$GCC" = yes; then
25421 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25422 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'
25423 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25425 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25426 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'
25427 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~
25428 $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'
25430 # Both c and cxx compiler support -rpath directly
25431 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25433 hardcode_libdir_separator_GCJ=:
25437 no_undefined_flag_GCJ=' -z text'
25438 if test "$GCC" = yes; then
25440 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25441 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25442 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25445 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25446 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25449 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25450 hardcode_shlibpath_var_GCJ=no
25452 solaris2.[0-5] | solaris2.[0-5].*) ;;
25454 # The compiler driver will combine linker options so we
25455 # cannot just pass the convience library names through
25456 # without $wl, iff we do not link with $LD.
25457 # Luckily, gcc supports the same syntax we need for Sun Studio.
25458 # Supported since Solaris 2.6 (maybe 2.5.1?)
25461 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25463 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' ;;
25466 link_all_deplibs_GCJ=yes
25470 if test "x$host_vendor" = xsequent; then
25471 # Use $CC to link under sequent, because it throws in some extra .o
25472 # files that make .init and .fini sections work.
25473 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25475 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25478 hardcode_direct_GCJ=yes
25479 hardcode_minus_L_GCJ=yes
25480 hardcode_shlibpath_var_GCJ=no
25484 case $host_vendor in
25486 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25487 hardcode_direct_GCJ=yes # is this really true???
25490 ## LD is ld it makes a PLAMLIB
25491 ## CC just makes a GrossModule.
25492 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25493 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25494 hardcode_direct_GCJ=no
25497 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25498 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25501 runpath_var='LD_RUN_PATH'
25502 hardcode_shlibpath_var_GCJ=no
25506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25507 hardcode_shlibpath_var_GCJ=no
25508 export_dynamic_flag_spec_GCJ='-Bexport'
25512 if test -d /usr/nec; then
25513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25514 hardcode_shlibpath_var_GCJ=no
25515 runpath_var=LD_RUN_PATH
25516 hardcode_runpath_var=yes
25521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25522 no_undefined_flag_GCJ='${wl}-z,text'
25523 archive_cmds_need_lc_GCJ=no
25524 hardcode_shlibpath_var_GCJ=no
25525 runpath_var='LD_RUN_PATH'
25527 if test "$GCC" = yes; then
25528 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25529 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25531 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25532 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25536 sysv5* | sco3.2v5* | sco5v6*)
25537 # Note: We can NOT use -z defs as we might desire, because we do not
25538 # link with -lc, and that would cause any symbols used from libc to
25539 # always be unresolved, which means just about no library would
25540 # ever link correctly. If we're not using GNU ld we use -z text
25541 # though, which does catch some bad symbols but isn't as heavy-handed
25543 no_undefined_flag_GCJ='${wl}-z,text'
25544 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25545 archive_cmds_need_lc_GCJ=no
25546 hardcode_shlibpath_var_GCJ=no
25547 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25548 hardcode_libdir_separator_GCJ=':'
25549 link_all_deplibs_GCJ=yes
25550 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25551 runpath_var='LD_RUN_PATH'
25553 if test "$GCC" = yes; then
25554 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25555 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25557 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25558 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25563 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25564 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25565 hardcode_shlibpath_var_GCJ=no
25574 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25575 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25576 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25579 # Do we need to explicitly link libc?
25581 case "x$archive_cmds_need_lc_GCJ" in
25583 # Assume -lc should be added
25584 archive_cmds_need_lc_GCJ=yes
25586 if test "$enable_shared" = yes && test "$GCC" = yes; then
25587 case $archive_cmds_GCJ in
25589 # FIXME: we may have to deal with multi-command sequences.
25592 # Test whether the compiler implicitly links with -lc since on some
25593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25594 # to ld, don't add -lc before -lgcc.
25595 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25596 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25601 (eval $ac_compile) 2>&5
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } 2>conftest.err; then
25607 libobjs=conftest.$ac_objext
25609 wl=$lt_prog_compiler_wl_GCJ
25610 pic_flag=$lt_prog_compiler_pic_GCJ
25616 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25617 allow_undefined_flag_GCJ=
25618 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25619 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }
25624 archive_cmds_need_lc_GCJ=no
25626 archive_cmds_need_lc_GCJ=yes
25628 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25630 cat conftest.err 1>&5
25633 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25634 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25641 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25642 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25643 library_names_spec=
25644 libname_spec='lib$name'
25648 postuninstall_cmds=
25652 shlibpath_overrides_runpath=unknown
25654 dynamic_linker="$host_os ld.so"
25655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25656 if test "$GCC" = yes; then
25657 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25658 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25659 # if the path contains ";" then we assume it to be the separator
25660 # otherwise default to the standard path separator (i.e. ":") - it is
25661 # assumed that no part of a normal pathname contains ";" but that should
25662 # okay in the real world where ";" in dirpaths is itself problematic.
25663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25668 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25670 need_lib_prefix=unknown
25671 hardcode_into_libs=no
25673 # when you set need_version to no, make sure it does not cause -set_version
25674 # flags to be left without arguments
25675 need_version=unknown
25680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25681 shlibpath_var=LIBPATH
25683 # AIX 3 has no versioning support, so we append a major version to the name.
25684 soname_spec='${libname}${release}${shared_ext}$major'
25691 hardcode_into_libs=yes
25692 if test "$host_cpu" = ia64; then
25693 # AIX 5 supports IA64
25694 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25695 shlibpath_var=LD_LIBRARY_PATH
25697 # With GCC up to 2.95.x, collect2 would create an import file
25698 # for dependence libraries. The import file would start with
25699 # the line `#! .'. This would cause the generated library to
25700 # depend on `.', always an invalid library. This was fixed in
25701 # development snapshots of GCC prior to 3.0.
25703 aix4 | aix4.[01] | aix4.[01].*)
25704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25706 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25709 can_build_shared=no
25713 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25714 # soname into executable. Probably we can add versioning support to
25715 # collect2, so additional links can be useful in future.
25716 if test "$aix_use_runtimelinking" = yes; then
25717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25718 # instead of lib<name>.a to let people know that these are not
25719 # typical AIX shared libraries.
25720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25722 # We preserve .a as extension for shared libraries through AIX4.2
25723 # and later when we are not doing run time linking.
25724 library_names_spec='${libname}${release}.a $libname.a'
25725 soname_spec='${libname}${release}${shared_ext}$major'
25727 shlibpath_var=LIBPATH
25732 library_names_spec='$libname.ixlibrary $libname.a'
25733 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25734 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'
25738 library_names_spec='${libname}${shared_ext}'
25739 dynamic_linker="$host_os ld.so"
25740 shlibpath_var=LIBRARY_PATH
25746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25747 soname_spec='${libname}${release}${shared_ext}$major'
25748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25749 shlibpath_var=LD_LIBRARY_PATH
25750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25752 # the default ld.so.conf also contains /usr/contrib/lib and
25753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25754 # libtool to hard-code these into programs
25757 cygwin* | mingw* | pw32*)
25758 version_type=windows
25763 case $GCC,$host_os in
25764 yes,cygwin* | yes,mingw* | yes,pw32*)
25765 library_names_spec='$libname.dll.a'
25766 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25767 postinstall_cmds='base_file=`basename \${file}`~
25768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25769 dldir=$destdir/`dirname \$dlpath`~
25770 test -d \$dldir || mkdir -p \$dldir~
25771 $install_prog $dir/$dlname \$dldir/$dlname~
25772 chmod a+x \$dldir/$dlname'
25773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25774 dlpath=$dir/\$dldll~
25776 shlibpath_overrides_runpath=yes
25780 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25781 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25782 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25785 # MinGW DLLs use traditional 'lib' prefix
25786 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25788 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25789 # It is most probably a Windows format PATH printed by
25790 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25791 # path with ; separators, and with drive letters. We can handle the
25792 # drive letters (cygwin fileutils understands them), so leave them,
25793 # especially as we might pass files found there to a mingw objdump,
25794 # which wouldn't understand a cygwinified path. Ahh.
25795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25801 # pw32 DLLs use 'pw' prefix rather than 'lib'
25802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25811 dynamic_linker='Win32 ld.exe'
25812 # FIXME: first we should search . and the directory the executable is in
25816 darwin* | rhapsody*)
25817 dynamic_linker="$host_os dyld"
25818 version_type=darwin
25821 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25822 soname_spec='${libname}${release}${major}$shared_ext'
25823 shlibpath_overrides_runpath=yes
25824 shlibpath_var=DYLD_LIBRARY_PATH
25825 shrext_cmds='.dylib'
25826 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25827 if test "$GCC" = yes; then
25828 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"`
25830 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25832 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25840 soname_spec='${libname}${release}${shared_ext}$major'
25841 shlibpath_var=LD_LIBRARY_PATH
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25853 soname_spec='${libname}${release}${shared_ext}$major'
25854 shlibpath_var=LD_LIBRARY_PATH
25855 shlibpath_overrides_runpath=no
25856 hardcode_into_libs=yes
25857 dynamic_linker='GNU ld.so'
25860 freebsd* | dragonfly*)
25861 # DragonFly does not have aout. When/if they implement a new
25862 # versioning mechanism, adjust this.
25863 if test -x /usr/bin/objformat; then
25864 objformat=`/usr/bin/objformat`
25867 freebsd[123]*) objformat=aout ;;
25868 *) objformat=elf ;;
25871 version_type=freebsd-$objformat
25872 case $version_type in
25874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25883 shlibpath_var=LD_LIBRARY_PATH
25886 shlibpath_overrides_runpath=yes
25888 freebsd3.[01]* | freebsdelf3.[01]*)
25889 shlibpath_overrides_runpath=yes
25890 hardcode_into_libs=yes
25892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25894 shlibpath_overrides_runpath=no
25895 hardcode_into_libs=yes
25897 freebsd*) # from 4.6 on
25898 shlibpath_overrides_runpath=yes
25899 hardcode_into_libs=yes
25908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25909 soname_spec='${libname}${release}${shared_ext}$major'
25910 shlibpath_var=LD_LIBRARY_PATH
25911 hardcode_into_libs=yes
25914 hpux9* | hpux10* | hpux11*)
25915 # Give a soname corresponding to the major version so that dld.sl refuses to
25916 # link against other versions.
25923 hardcode_into_libs=yes
25924 dynamic_linker="$host_os dld.so"
25925 shlibpath_var=LD_LIBRARY_PATH
25926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25928 soname_spec='${libname}${release}${shared_ext}$major'
25929 if test "X$HPUX_IA64_MODE" = X32; then
25930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25938 hardcode_into_libs=yes
25939 dynamic_linker="$host_os dld.sl"
25940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25943 soname_spec='${libname}${release}${shared_ext}$major'
25944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25949 dynamic_linker="$host_os dld.sl"
25950 shlibpath_var=SHLIB_PATH
25951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25953 soname_spec='${libname}${release}${shared_ext}$major'
25956 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25957 postinstall_cmds='chmod 555 $lib'
25964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25965 soname_spec='${libname}${release}${shared_ext}$major'
25966 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25967 shlibpath_var=LD_LIBRARY_PATH
25968 shlibpath_overrides_runpath=no
25969 hardcode_into_libs=yes
25972 irix5* | irix6* | nonstopux*)
25974 nonstopux*) version_type=nonstopux ;;
25976 if test "$lt_cv_prog_gnu_ld" = yes; then
25984 soname_spec='${libname}${release}${shared_ext}$major'
25985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25987 irix5* | nonstopux*)
25988 libsuff= shlibsuff=
25991 case $LD in # libtool.m4 will add one of these switches to LD
25992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25993 libsuff= shlibsuff= libmagic=32-bit;;
25994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25995 libsuff=32 shlibsuff=N32 libmagic=N32;;
25996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25998 *) libsuff= shlibsuff= libmagic=never-match;;
26002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26003 shlibpath_overrides_runpath=no
26004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26006 hardcode_into_libs=yes
26009 # No shared lib support for Linux oldld, aout, or coff.
26010 linux*oldld* | linux*aout* | linux*coff*)
26014 # This must be Linux ELF.
26019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26020 soname_spec='${libname}${release}${shared_ext}$major'
26021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26022 shlibpath_var=LD_LIBRARY_PATH
26023 shlibpath_overrides_runpath=no
26024 # This implies no fast_install, which is unacceptable.
26025 # Some rework will be needed to allow for fast_install
26026 # before this can be enabled.
26027 hardcode_into_libs=yes
26029 # Append ld.so.conf contents to the search path
26030 if test -f /etc/ld.so.conf; then
26031 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' ' '`
26032 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26035 # We used to test for /lib/ld.so.1 and disable shared libraries on
26036 # powerpc, because MkLinux only supported shared libraries with the
26037 # GNU dynamic linker. Since this was broken with cross compilers,
26038 # most powerpc-linux boxes support dynamic linking these days and
26039 # people can always --disable-shared, the test was removed, and we
26040 # assume the GNU/Linux dynamic linker is in use.
26041 dynamic_linker='GNU/Linux ld.so'
26048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26049 soname_spec='${libname}${release}${shared_ext}$major'
26050 shlibpath_var=LD_LIBRARY_PATH
26051 shlibpath_overrides_runpath=no
26052 hardcode_into_libs=yes
26053 dynamic_linker='GNU ld.so'
26060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26063 dynamic_linker='NetBSD (a.out) ld.so'
26065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26066 soname_spec='${libname}${release}${shared_ext}$major'
26067 dynamic_linker='NetBSD ld.elf_so'
26069 shlibpath_var=LD_LIBRARY_PATH
26070 shlibpath_overrides_runpath=yes
26071 hardcode_into_libs=yes
26076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26077 shlibpath_var=LD_LIBRARY_PATH
26078 shlibpath_overrides_runpath=yes
26085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26086 soname_spec='${libname}${release}${shared_ext}$major'
26087 shlibpath_var=LD_LIBRARY_PATH
26088 shlibpath_overrides_runpath=yes
26093 sys_lib_dlsearch_path_spec="/usr/lib"
26095 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26097 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26098 *) need_version=no ;;
26100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26102 shlibpath_var=LD_LIBRARY_PATH
26103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26105 openbsd2.[89] | openbsd2.[89].*)
26106 shlibpath_overrides_runpath=no
26109 shlibpath_overrides_runpath=yes
26113 shlibpath_overrides_runpath=yes
26118 libname_spec='$name'
26121 library_names_spec='$libname${shared_ext} $libname.a'
26122 dynamic_linker='OS/2 ld.exe'
26123 shlibpath_var=LIBPATH
26126 osf3* | osf4* | osf5*)
26130 soname_spec='${libname}${release}${shared_ext}$major'
26131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26132 shlibpath_var=LD_LIBRARY_PATH
26133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26142 soname_spec='${libname}${release}${shared_ext}$major'
26143 shlibpath_var=LD_LIBRARY_PATH
26144 shlibpath_overrides_runpath=yes
26145 hardcode_into_libs=yes
26146 # ldd complains unless libraries are executable
26147 postinstall_cmds='chmod +x $lib'
26152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26154 shlibpath_var=LD_LIBRARY_PATH
26155 shlibpath_overrides_runpath=yes
26156 if test "$with_gnu_ld" = yes; then
26164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26165 soname_spec='${libname}${release}${shared_ext}$major'
26166 shlibpath_var=LD_LIBRARY_PATH
26167 case $host_vendor in
26169 shlibpath_overrides_runpath=no
26171 export_dynamic_flag_spec='${wl}-Blargedynsym'
26172 runpath_var=LD_RUN_PATH
26180 shlibpath_overrides_runpath=no
26181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26187 if test -d /usr/nec ;then
26189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26190 soname_spec='$libname${shared_ext}.$major'
26191 shlibpath_var=LD_LIBRARY_PATH
26195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26196 version_type=freebsd-elf
26199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26200 soname_spec='${libname}${release}${shared_ext}$major'
26201 shlibpath_var=LD_LIBRARY_PATH
26202 hardcode_into_libs=yes
26203 if test "$with_gnu_ld" = yes; then
26204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26205 shlibpath_overrides_runpath=no
26207 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26208 shlibpath_overrides_runpath=yes
26211 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26215 sys_lib_dlsearch_path_spec='/usr/lib'
26220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26221 soname_spec='${libname}${release}${shared_ext}$major'
26222 shlibpath_var=LD_LIBRARY_PATH
26229 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26230 echo "${ECHO_T}$dynamic_linker" >&6; }
26231 test "$dynamic_linker" = no && can_build_shared=no
26233 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26234 if test "$GCC" = yes; then
26235 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26238 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26239 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26240 hardcode_action_GCJ=
26241 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26242 test -n "$runpath_var_GCJ" || \
26243 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26245 # We can hardcode non-existant directories.
26246 if test "$hardcode_direct_GCJ" != no &&
26247 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26248 # have to relink, otherwise we might link with an installed library
26249 # when we should be linking with a yet-to-be-installed one
26250 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26251 test "$hardcode_minus_L_GCJ" != no; then
26252 # Linking always hardcodes the temporary library directory.
26253 hardcode_action_GCJ=relink
26255 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26256 hardcode_action_GCJ=immediate
26259 # We cannot hardcode anything, or else we can only hardcode existing
26261 hardcode_action_GCJ=unsupported
26263 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26264 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26266 if test "$hardcode_action_GCJ" = relink; then
26267 # Fast installation is not supported
26268 enable_fast_install=no
26269 elif test "$shlibpath_overrides_runpath" = yes ||
26270 test "$enable_shared" = no; then
26271 # Fast installation is not necessary
26272 enable_fast_install=needless
26276 # The else clause should only fire when bootstrapping the
26277 # libtool distribution, otherwise you forgot to ship ltmain.sh
26278 # with your package, and you will get complaints that there are
26279 # no rules to generate ltmain.sh.
26280 if test -f "$ltmain"; then
26281 # See if we are running on zsh, and set the options which allow our commands through
26282 # without removal of \ escapes.
26283 if test -n "${ZSH_VERSION+set}" ; then
26284 setopt NO_GLOB_SUBST
26286 # Now quote all the things that may contain metacharacters while being
26287 # careful not to overquote the AC_SUBSTed values. We take copies of the
26288 # variables and quote the copies for generation of the libtool script.
26289 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26291 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26292 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26293 deplibs_check_method reload_flag reload_cmds need_locks \
26294 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26295 lt_cv_sys_global_symbol_to_c_name_address \
26296 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26297 old_postinstall_cmds old_postuninstall_cmds \
26301 lt_prog_compiler_wl_GCJ \
26302 lt_prog_compiler_pic_GCJ \
26303 lt_prog_compiler_static_GCJ \
26304 lt_prog_compiler_no_builtin_flag_GCJ \
26305 export_dynamic_flag_spec_GCJ \
26306 thread_safe_flag_spec_GCJ \
26307 whole_archive_flag_spec_GCJ \
26308 enable_shared_with_static_runtimes_GCJ \
26309 old_archive_cmds_GCJ \
26310 old_archive_from_new_cmds_GCJ \
26311 predep_objects_GCJ \
26312 postdep_objects_GCJ \
26315 compiler_lib_search_path_GCJ \
26317 archive_expsym_cmds_GCJ \
26318 postinstall_cmds_GCJ \
26319 postuninstall_cmds_GCJ \
26320 old_archive_from_expsyms_cmds_GCJ \
26321 allow_undefined_flag_GCJ \
26322 no_undefined_flag_GCJ \
26323 export_symbols_cmds_GCJ \
26324 hardcode_libdir_flag_spec_GCJ \
26325 hardcode_libdir_flag_spec_ld_GCJ \
26326 hardcode_libdir_separator_GCJ \
26327 hardcode_automatic_GCJ \
26329 module_expsym_cmds_GCJ \
26330 lt_cv_prog_compiler_c_o_GCJ \
26331 exclude_expsyms_GCJ \
26332 include_expsyms_GCJ; do
26335 old_archive_cmds_GCJ | \
26336 old_archive_from_new_cmds_GCJ | \
26337 archive_cmds_GCJ | \
26338 archive_expsym_cmds_GCJ | \
26339 module_cmds_GCJ | \
26340 module_expsym_cmds_GCJ | \
26341 old_archive_from_expsyms_cmds_GCJ | \
26342 export_symbols_cmds_GCJ | \
26343 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26344 postinstall_cmds | postuninstall_cmds | \
26345 old_postinstall_cmds | old_postuninstall_cmds | \
26346 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26347 # Double-quote double-evaled strings.
26348 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26357 *'\$0 --fallback-echo"')
26358 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26364 cat <<__EOF__ >> "$cfgfile"
26365 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26367 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26369 # Shell to use when invoking shell scripts.
26372 # Whether or not to build shared libraries.
26373 build_libtool_libs=$enable_shared
26375 # Whether or not to build static libraries.
26376 build_old_libs=$enable_static
26378 # Whether or not to add -lc for building shared libraries.
26379 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26381 # Whether or not to disallow shared libs when runtime libs are static
26382 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26384 # Whether or not to optimize for fast installation.
26385 fast_install=$enable_fast_install
26388 host_alias=$host_alias
26392 # The build system.
26393 build_alias=$build_alias
26397 # An echo program that does not interpret backslashes.
26402 AR_FLAGS=$lt_AR_FLAGS
26407 # LTCC compiler flags.
26408 LTCFLAGS=$lt_LTCFLAGS
26410 # A language-specific compiler.
26411 CC=$lt_compiler_GCJ
26413 # Is the compiler the GNU C compiler?
26419 # The linker used to build libraries.
26422 # Whether we need hard or soft links.
26425 # A BSD-compatible nm program.
26428 # A symbol stripping program
26431 # Used to examine libraries when file_magic_cmd begins "file"
26432 MAGIC_CMD=$MAGIC_CMD
26434 # Used on cygwin: DLL creation program.
26437 # Used on cygwin: object dumper.
26440 # Used on cygwin: assembler.
26443 # The name of the directory that contains temporary libtool files.
26446 # How to create reloadable object files.
26447 reload_flag=$lt_reload_flag
26448 reload_cmds=$lt_reload_cmds
26450 # How to pass a linker flag through the compiler.
26451 wl=$lt_lt_prog_compiler_wl_GCJ
26453 # Object file suffix (normally "o").
26454 objext="$ac_objext"
26456 # Old archive suffix (normally "a").
26459 # Shared library suffix (normally ".so").
26460 shrext_cmds='$shrext_cmds'
26462 # Executable file suffix (normally "").
26465 # Additional compiler flags for building library objects.
26466 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26469 # What is the maximum length of a command?
26470 max_cmd_len=$lt_cv_sys_max_cmd_len
26472 # Does compiler simultaneously support -c and -o options?
26473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26475 # Must we lock files when doing compilation?
26476 need_locks=$lt_need_locks
26478 # Do we need the lib prefix for modules?
26479 need_lib_prefix=$need_lib_prefix
26481 # Do we need a version for libraries?
26482 need_version=$need_version
26484 # Whether dlopen is supported.
26485 dlopen_support=$enable_dlopen
26487 # Whether dlopen of programs is supported.
26488 dlopen_self=$enable_dlopen_self
26490 # Whether dlopen of statically linked programs is supported.
26491 dlopen_self_static=$enable_dlopen_self_static
26493 # Compiler flag to prevent dynamic linking.
26494 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26496 # Compiler flag to turn off builtin functions.
26497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26499 # Compiler flag to allow reflexive dlopens.
26500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26502 # Compiler flag to generate shared objects directly from archives.
26503 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26505 # Compiler flag to generate thread-safe objects.
26506 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26508 # Library versioning type.
26509 version_type=$version_type
26511 # Format of library name prefix.
26512 libname_spec=$lt_libname_spec
26514 # List of archive names. First name is the real one, the rest are links.
26515 # The last name is the one that the linker finds with -lNAME.
26516 library_names_spec=$lt_library_names_spec
26518 # The coded name of the library, if different from the real name.
26519 soname_spec=$lt_soname_spec
26521 # Commands used to build and install an old-style archive.
26523 old_archive_cmds=$lt_old_archive_cmds_GCJ
26524 old_postinstall_cmds=$lt_old_postinstall_cmds
26525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26527 # Create an old-style archive from a shared archive.
26528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26530 # Create a temporary old-style archive to link instead of a shared archive.
26531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26533 # Commands used to build and install a shared archive.
26534 archive_cmds=$lt_archive_cmds_GCJ
26535 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26536 postinstall_cmds=$lt_postinstall_cmds
26537 postuninstall_cmds=$lt_postuninstall_cmds
26539 # Commands used to build a loadable module (assumed same as above if empty)
26540 module_cmds=$lt_module_cmds_GCJ
26541 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26543 # Commands to strip libraries.
26544 old_striplib=$lt_old_striplib
26545 striplib=$lt_striplib
26547 # Dependencies to place before the objects being linked to create a
26549 predep_objects=$lt_predep_objects_GCJ
26551 # Dependencies to place after the objects being linked to create a
26553 postdep_objects=$lt_postdep_objects_GCJ
26555 # Dependencies to place before the objects being linked to create a
26557 predeps=$lt_predeps_GCJ
26559 # Dependencies to place after the objects being linked to create a
26561 postdeps=$lt_postdeps_GCJ
26563 # The library search path used internally by the compiler when linking
26564 # a shared library.
26565 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26567 # Method to check whether dependent libraries are shared objects.
26568 deplibs_check_method=$lt_deplibs_check_method
26570 # Command to use when deplibs_check_method == file_magic.
26571 file_magic_cmd=$lt_file_magic_cmd
26573 # Flag that allows shared libraries with undefined symbols to be built.
26574 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26576 # Flag that forces no undefined symbols.
26577 no_undefined_flag=$lt_no_undefined_flag_GCJ
26579 # Commands used to finish a libtool library installation in a directory.
26580 finish_cmds=$lt_finish_cmds
26582 # Same as above, but a single script fragment to be evaled but not shown.
26583 finish_eval=$lt_finish_eval
26585 # Take the output of nm and produce a listing of raw symbols and C names.
26586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26588 # Transform the output of nm in a proper C declaration
26589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26591 # Transform the output of nm in a C name address pair
26592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26594 # This is the shared library runtime path variable.
26595 runpath_var=$runpath_var
26597 # This is the shared library path variable.
26598 shlibpath_var=$shlibpath_var
26600 # Is shlibpath searched before the hard-coded library search path?
26601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26603 # How to hardcode a shared library path into an executable.
26604 hardcode_action=$hardcode_action_GCJ
26606 # Whether we should hardcode library paths into libraries.
26607 hardcode_into_libs=$hardcode_into_libs
26609 # Flag to hardcode \$libdir into a binary during linking.
26610 # This must work even if \$libdir does not exist.
26611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26613 # If ld is used when linking, flag to hardcode \$libdir into
26614 # a binary during linking. This must work even if \$libdir does
26616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26618 # Whether we need a single -rpath flag with a separated argument.
26619 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26621 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26622 # resulting binary.
26623 hardcode_direct=$hardcode_direct_GCJ
26625 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26626 # resulting binary.
26627 hardcode_minus_L=$hardcode_minus_L_GCJ
26629 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26630 # the resulting binary.
26631 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26633 # Set to yes if building a shared library automatically hardcodes DIR into the library
26634 # and all subsequent libraries and executables linked against it.
26635 hardcode_automatic=$hardcode_automatic_GCJ
26637 # Variables whose values should be saved in libtool wrapper scripts and
26638 # restored at relink time.
26639 variables_saved_for_relink="$variables_saved_for_relink"
26641 # Whether libtool must link a program against all its dependency libraries.
26642 link_all_deplibs=$link_all_deplibs_GCJ
26644 # Compile-time system search path for libraries
26645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26647 # Run-time system search path for libraries
26648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26650 # Fix the shell variable \$srcfile for the compiler.
26651 fix_srcfile_path="$fix_srcfile_path_GCJ"
26653 # Set to yes if exported symbols are required.
26654 always_export_symbols=$always_export_symbols_GCJ
26656 # The commands to list exported symbols.
26657 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26659 # The commands to extract the exported symbol list from a shared archive.
26660 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26662 # Symbols that should not be listed in the preloaded symbols.
26663 exclude_expsyms=$lt_exclude_expsyms_GCJ
26665 # Symbols that must always be exported.
26666 include_expsyms=$lt_include_expsyms_GCJ
26668 # ### END LIBTOOL TAG CONFIG: $tagname
26674 # If there is no Makefile yet, we rely on a make rule to execute
26675 # `config.status --recheck' to rerun these tests and create the
26676 # libtool script then.
26677 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26678 if test -f "$ltmain_in"; then
26679 test -f Makefile && make "$ltmain"
26685 ac_cpp='$CPP $CPPFLAGS'
26686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26699 ac_cpp='$CPP $CPPFLAGS'
26700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26705 # Source file extension for RC test sources.
26708 # Object file extension for compiled RC test sources.
26712 # Code to be used in simple compile tests
26713 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26715 # Code to be used in simple link tests
26716 lt_simple_link_test_code="$lt_simple_compile_test_code"
26718 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26720 # If no C compiler was specified, use CC.
26723 # If no C compiler flags were specified, use CFLAGS.
26724 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26726 # Allow CC to be a program name with arguments.
26730 # save warnings/boilerplate of simple test code
26731 ac_outfile=conftest.$ac_objext
26732 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26733 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26734 _lt_compiler_boilerplate=`cat conftest.err`
26737 ac_outfile=conftest.$ac_objext
26738 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26739 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26740 _lt_linker_boilerplate=`cat conftest.err`
26744 # Allow CC to be a program name with arguments.
26749 for cc_temp in $compiler""; do
26751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26757 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26759 lt_cv_prog_compiler_c_o_RC=yes
26761 # The else clause should only fire when bootstrapping the
26762 # libtool distribution, otherwise you forgot to ship ltmain.sh
26763 # with your package, and you will get complaints that there are
26764 # no rules to generate ltmain.sh.
26765 if test -f "$ltmain"; then
26766 # See if we are running on zsh, and set the options which allow our commands through
26767 # without removal of \ escapes.
26768 if test -n "${ZSH_VERSION+set}" ; then
26769 setopt NO_GLOB_SUBST
26771 # Now quote all the things that may contain metacharacters while being
26772 # careful not to overquote the AC_SUBSTed values. We take copies of the
26773 # variables and quote the copies for generation of the libtool script.
26774 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26776 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26777 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26778 deplibs_check_method reload_flag reload_cmds need_locks \
26779 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26780 lt_cv_sys_global_symbol_to_c_name_address \
26781 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26782 old_postinstall_cmds old_postuninstall_cmds \
26786 lt_prog_compiler_wl_RC \
26787 lt_prog_compiler_pic_RC \
26788 lt_prog_compiler_static_RC \
26789 lt_prog_compiler_no_builtin_flag_RC \
26790 export_dynamic_flag_spec_RC \
26791 thread_safe_flag_spec_RC \
26792 whole_archive_flag_spec_RC \
26793 enable_shared_with_static_runtimes_RC \
26794 old_archive_cmds_RC \
26795 old_archive_from_new_cmds_RC \
26796 predep_objects_RC \
26797 postdep_objects_RC \
26800 compiler_lib_search_path_RC \
26802 archive_expsym_cmds_RC \
26803 postinstall_cmds_RC \
26804 postuninstall_cmds_RC \
26805 old_archive_from_expsyms_cmds_RC \
26806 allow_undefined_flag_RC \
26807 no_undefined_flag_RC \
26808 export_symbols_cmds_RC \
26809 hardcode_libdir_flag_spec_RC \
26810 hardcode_libdir_flag_spec_ld_RC \
26811 hardcode_libdir_separator_RC \
26812 hardcode_automatic_RC \
26814 module_expsym_cmds_RC \
26815 lt_cv_prog_compiler_c_o_RC \
26816 exclude_expsyms_RC \
26817 include_expsyms_RC; do
26820 old_archive_cmds_RC | \
26821 old_archive_from_new_cmds_RC | \
26822 archive_cmds_RC | \
26823 archive_expsym_cmds_RC | \
26825 module_expsym_cmds_RC | \
26826 old_archive_from_expsyms_cmds_RC | \
26827 export_symbols_cmds_RC | \
26828 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26829 postinstall_cmds | postuninstall_cmds | \
26830 old_postinstall_cmds | old_postuninstall_cmds | \
26831 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26832 # Double-quote double-evaled strings.
26833 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26836 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26842 *'\$0 --fallback-echo"')
26843 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26849 cat <<__EOF__ >> "$cfgfile"
26850 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26852 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26854 # Shell to use when invoking shell scripts.
26857 # Whether or not to build shared libraries.
26858 build_libtool_libs=$enable_shared
26860 # Whether or not to build static libraries.
26861 build_old_libs=$enable_static
26863 # Whether or not to add -lc for building shared libraries.
26864 build_libtool_need_lc=$archive_cmds_need_lc_RC
26866 # Whether or not to disallow shared libs when runtime libs are static
26867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26869 # Whether or not to optimize for fast installation.
26870 fast_install=$enable_fast_install
26873 host_alias=$host_alias
26877 # The build system.
26878 build_alias=$build_alias
26882 # An echo program that does not interpret backslashes.
26887 AR_FLAGS=$lt_AR_FLAGS
26892 # LTCC compiler flags.
26893 LTCFLAGS=$lt_LTCFLAGS
26895 # A language-specific compiler.
26898 # Is the compiler the GNU C compiler?
26904 # The linker used to build libraries.
26907 # Whether we need hard or soft links.
26910 # A BSD-compatible nm program.
26913 # A symbol stripping program
26916 # Used to examine libraries when file_magic_cmd begins "file"
26917 MAGIC_CMD=$MAGIC_CMD
26919 # Used on cygwin: DLL creation program.
26922 # Used on cygwin: object dumper.
26925 # Used on cygwin: assembler.
26928 # The name of the directory that contains temporary libtool files.
26931 # How to create reloadable object files.
26932 reload_flag=$lt_reload_flag
26933 reload_cmds=$lt_reload_cmds
26935 # How to pass a linker flag through the compiler.
26936 wl=$lt_lt_prog_compiler_wl_RC
26938 # Object file suffix (normally "o").
26939 objext="$ac_objext"
26941 # Old archive suffix (normally "a").
26944 # Shared library suffix (normally ".so").
26945 shrext_cmds='$shrext_cmds'
26947 # Executable file suffix (normally "").
26950 # Additional compiler flags for building library objects.
26951 pic_flag=$lt_lt_prog_compiler_pic_RC
26954 # What is the maximum length of a command?
26955 max_cmd_len=$lt_cv_sys_max_cmd_len
26957 # Does compiler simultaneously support -c and -o options?
26958 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26960 # Must we lock files when doing compilation?
26961 need_locks=$lt_need_locks
26963 # Do we need the lib prefix for modules?
26964 need_lib_prefix=$need_lib_prefix
26966 # Do we need a version for libraries?
26967 need_version=$need_version
26969 # Whether dlopen is supported.
26970 dlopen_support=$enable_dlopen
26972 # Whether dlopen of programs is supported.
26973 dlopen_self=$enable_dlopen_self
26975 # Whether dlopen of statically linked programs is supported.
26976 dlopen_self_static=$enable_dlopen_self_static
26978 # Compiler flag to prevent dynamic linking.
26979 link_static_flag=$lt_lt_prog_compiler_static_RC
26981 # Compiler flag to turn off builtin functions.
26982 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26984 # Compiler flag to allow reflexive dlopens.
26985 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26987 # Compiler flag to generate shared objects directly from archives.
26988 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26990 # Compiler flag to generate thread-safe objects.
26991 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26993 # Library versioning type.
26994 version_type=$version_type
26996 # Format of library name prefix.
26997 libname_spec=$lt_libname_spec
26999 # List of archive names. First name is the real one, the rest are links.
27000 # The last name is the one that the linker finds with -lNAME.
27001 library_names_spec=$lt_library_names_spec
27003 # The coded name of the library, if different from the real name.
27004 soname_spec=$lt_soname_spec
27006 # Commands used to build and install an old-style archive.
27008 old_archive_cmds=$lt_old_archive_cmds_RC
27009 old_postinstall_cmds=$lt_old_postinstall_cmds
27010 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27012 # Create an old-style archive from a shared archive.
27013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27015 # Create a temporary old-style archive to link instead of a shared archive.
27016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27018 # Commands used to build and install a shared archive.
27019 archive_cmds=$lt_archive_cmds_RC
27020 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27021 postinstall_cmds=$lt_postinstall_cmds
27022 postuninstall_cmds=$lt_postuninstall_cmds
27024 # Commands used to build a loadable module (assumed same as above if empty)
27025 module_cmds=$lt_module_cmds_RC
27026 module_expsym_cmds=$lt_module_expsym_cmds_RC
27028 # Commands to strip libraries.
27029 old_striplib=$lt_old_striplib
27030 striplib=$lt_striplib
27032 # Dependencies to place before the objects being linked to create a
27034 predep_objects=$lt_predep_objects_RC
27036 # Dependencies to place after the objects being linked to create a
27038 postdep_objects=$lt_postdep_objects_RC
27040 # Dependencies to place before the objects being linked to create a
27042 predeps=$lt_predeps_RC
27044 # Dependencies to place after the objects being linked to create a
27046 postdeps=$lt_postdeps_RC
27048 # The library search path used internally by the compiler when linking
27049 # a shared library.
27050 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27052 # Method to check whether dependent libraries are shared objects.
27053 deplibs_check_method=$lt_deplibs_check_method
27055 # Command to use when deplibs_check_method == file_magic.
27056 file_magic_cmd=$lt_file_magic_cmd
27058 # Flag that allows shared libraries with undefined symbols to be built.
27059 allow_undefined_flag=$lt_allow_undefined_flag_RC
27061 # Flag that forces no undefined symbols.
27062 no_undefined_flag=$lt_no_undefined_flag_RC
27064 # Commands used to finish a libtool library installation in a directory.
27065 finish_cmds=$lt_finish_cmds
27067 # Same as above, but a single script fragment to be evaled but not shown.
27068 finish_eval=$lt_finish_eval
27070 # Take the output of nm and produce a listing of raw symbols and C names.
27071 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27073 # Transform the output of nm in a proper C declaration
27074 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27076 # Transform the output of nm in a C name address pair
27077 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27079 # This is the shared library runtime path variable.
27080 runpath_var=$runpath_var
27082 # This is the shared library path variable.
27083 shlibpath_var=$shlibpath_var
27085 # Is shlibpath searched before the hard-coded library search path?
27086 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27088 # How to hardcode a shared library path into an executable.
27089 hardcode_action=$hardcode_action_RC
27091 # Whether we should hardcode library paths into libraries.
27092 hardcode_into_libs=$hardcode_into_libs
27094 # Flag to hardcode \$libdir into a binary during linking.
27095 # This must work even if \$libdir does not exist.
27096 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27098 # If ld is used when linking, flag to hardcode \$libdir into
27099 # a binary during linking. This must work even if \$libdir does
27101 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27103 # Whether we need a single -rpath flag with a separated argument.
27104 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27106 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27107 # resulting binary.
27108 hardcode_direct=$hardcode_direct_RC
27110 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27111 # resulting binary.
27112 hardcode_minus_L=$hardcode_minus_L_RC
27114 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27115 # the resulting binary.
27116 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27118 # Set to yes if building a shared library automatically hardcodes DIR into the library
27119 # and all subsequent libraries and executables linked against it.
27120 hardcode_automatic=$hardcode_automatic_RC
27122 # Variables whose values should be saved in libtool wrapper scripts and
27123 # restored at relink time.
27124 variables_saved_for_relink="$variables_saved_for_relink"
27126 # Whether libtool must link a program against all its dependency libraries.
27127 link_all_deplibs=$link_all_deplibs_RC
27129 # Compile-time system search path for libraries
27130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27132 # Run-time system search path for libraries
27133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27135 # Fix the shell variable \$srcfile for the compiler.
27136 fix_srcfile_path="$fix_srcfile_path_RC"
27138 # Set to yes if exported symbols are required.
27139 always_export_symbols=$always_export_symbols_RC
27141 # The commands to list exported symbols.
27142 export_symbols_cmds=$lt_export_symbols_cmds_RC
27144 # The commands to extract the exported symbol list from a shared archive.
27145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27147 # Symbols that should not be listed in the preloaded symbols.
27148 exclude_expsyms=$lt_exclude_expsyms_RC
27150 # Symbols that must always be exported.
27151 include_expsyms=$lt_include_expsyms_RC
27153 # ### END LIBTOOL TAG CONFIG: $tagname
27159 # If there is no Makefile yet, we rely on a make rule to execute
27160 # `config.status --recheck' to rerun these tests and create the
27161 # libtool script then.
27162 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27163 if test -f "$ltmain_in"; then
27164 test -f Makefile && make "$ltmain"
27170 ac_cpp='$CPP $CPPFLAGS'
27171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27180 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27181 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27182 { (exit 1); exit 1; }; }
27186 # Append the new tag name to the list of available tags.
27187 if test -n "$tagname" ; then
27188 available_tags="$available_tags $tagname"
27194 # Now substitute the updated list of available tags.
27195 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27196 mv "${ofile}T" "$ofile"
27200 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27201 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27202 { (exit 1); exit 1; }; }
27208 # This can be used to rebuild libtool when needed
27209 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27211 # Always use our own libtool.
27212 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27214 # Prevent multiple expansion
27236 if test "$lt_cv_dlopen_self" = "yes" ; then
27238 cat >>confdefs.h <<\_ACEOF
27239 #define CAN_DLOPEN_SELF 1
27245 if test "$WITH_LLVMGCCDIR" = "default" ; then
27246 LLVMGCC="llvm-gcc${EXEEXT}"
27247 LLVMGXX="llvm-g++${EXEEXT}"
27248 LLVMGCCCOMMAND="$LLVMGCC"
27249 LLVMGXXCOMMAND="$LLVMGXX"
27250 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27252 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27254 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27255 set dummy $LLVMGCC; ac_word=$2
27256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27258 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27259 echo $ECHO_N "(cached) $ECHO_C" >&6
27263 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27267 for as_dir in $PATH
27270 test -z "$as_dir" && as_dir=.
27271 for ac_exec_ext in '' $ac_executable_extensions; do
27272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27273 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27284 LLVMGCC=$ac_cv_path_LLVMGCC
27285 if test -n "$LLVMGCC"; then
27286 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27287 echo "${ECHO_T}$LLVMGCC" >&6; }
27289 { echo "$as_me:$LINENO: result: no" >&5
27290 echo "${ECHO_T}no" >&6; }
27294 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27295 set dummy $LLVMGXX; ac_word=$2
27296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27298 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
27303 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27307 for as_dir in $PATH
27310 test -z "$as_dir" && as_dir=.
27311 for ac_exec_ext in '' $ac_executable_extensions; do
27312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27313 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27324 LLVMGXX=$ac_cv_path_LLVMGXX
27325 if test -n "$LLVMGXX"; then
27326 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27327 echo "${ECHO_T}$LLVMGXX" >&6; }
27329 { echo "$as_me:$LINENO: result: no" >&5
27330 echo "${ECHO_T}no" >&6; }
27335 if test -z "$LLVMGCC"; then
27336 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27337 LLVMGCCCOMMAND="$LLVMGCC"
27339 if test -z "$LLVMGXX"; then
27340 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27341 LLVMGXXCOMMAND="$LLVMGXX"
27348 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27350 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27355 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27356 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27369 if test "$GCC" != "yes" && test "$ICC" != "yes"
27371 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27372 echo "$as_me: error: gcc|icc required but not found" >&2;}
27373 { (exit 1); exit 1; }; }
27376 if test "$GXX" != "yes" && test "$IXX" != "yes"
27378 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27379 echo "$as_me: error: g++|icc required but not found" >&2;}
27380 { (exit 1); exit 1; }; }
27383 if test "$GCC" = "yes"
27385 cat >conftest.$ac_ext <<_ACEOF
27386 #if !defined(__GNUC__) || __GNUC__ < 3
27387 #error Unsupported GCC version
27391 rm -f conftest.$ac_objext
27392 if { (ac_try="$ac_compile"
27393 case "(($ac_try" in
27394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27395 *) ac_try_echo=$ac_try;;
27397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27398 (eval "$ac_compile") 2>conftest.er1
27400 grep -v '^ *+' conftest.er1 >conftest.err
27402 cat conftest.err >&5
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); } &&
27405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27406 { (case "(($ac_try" in
27407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408 *) ac_try_echo=$ac_try;;
27410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411 (eval "$ac_try") 2>&5
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; } &&
27415 { ac_try='test -s conftest.$ac_objext'
27416 { (case "(($ac_try" in
27417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418 *) ac_try_echo=$ac_try;;
27420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421 (eval "$ac_try") 2>&5
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); }; }; then
27427 echo "$as_me: failed program was:" >&5
27428 sed 's/^/| /' conftest.$ac_ext >&5
27430 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27431 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27432 { (exit 1); exit 1; }; }
27435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27438 if test -z "$llvm_cv_gnu_make_command"
27440 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27441 echo "$as_me: error: GNU Make required but not found" >&2;}
27442 { (exit 1); exit 1; }; }
27445 { echo "$as_me:$LINENO: result: ok" >&5
27446 echo "${ECHO_T}ok" >&6; }
27450 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27451 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27452 if test "${ac_cv_lib_m_sin+set}" = set; then
27453 echo $ECHO_N "(cached) $ECHO_C" >&6
27455 ac_check_lib_save_LIBS=$LIBS
27457 cat >conftest.$ac_ext <<_ACEOF
27460 cat confdefs.h >>conftest.$ac_ext
27461 cat >>conftest.$ac_ext <<_ACEOF
27462 /* end confdefs.h. */
27464 /* Override any GCC internal prototype to avoid an error.
27465 Use char because int might match the return type of a GCC
27466 builtin and then its argument prototype would still apply. */
27479 rm -f conftest.$ac_objext conftest$ac_exeext
27480 if { (ac_try="$ac_link"
27481 case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_link") 2>conftest.er1
27488 grep -v '^ *+' conftest.er1 >conftest.err
27490 cat conftest.err >&5
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); } &&
27493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27494 { (case "(($ac_try" in
27495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27496 *) ac_try_echo=$ac_try;;
27498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27499 (eval "$ac_try") 2>&5
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); }; } &&
27503 { ac_try='test -s conftest$ac_exeext'
27504 { (case "(($ac_try" in
27505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27506 *) ac_try_echo=$ac_try;;
27508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27509 (eval "$ac_try") 2>&5
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); }; }; then
27513 ac_cv_lib_m_sin=yes
27515 echo "$as_me: failed program was:" >&5
27516 sed 's/^/| /' conftest.$ac_ext >&5
27521 rm -f core conftest.err conftest.$ac_objext \
27522 conftest$ac_exeext conftest.$ac_ext
27523 LIBS=$ac_check_lib_save_LIBS
27525 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27526 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27527 if test $ac_cv_lib_m_sin = yes; then
27528 cat >>confdefs.h <<_ACEOF
27529 #define HAVE_LIBM 1
27536 if test "$llvm_cv_os_type" = "MingW" ; then
27538 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27539 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27540 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27541 echo $ECHO_N "(cached) $ECHO_C" >&6
27543 ac_check_lib_save_LIBS=$LIBS
27544 LIBS="-limagehlp $LIBS"
27545 cat >conftest.$ac_ext <<_ACEOF
27548 cat confdefs.h >>conftest.$ac_ext
27549 cat >>conftest.$ac_ext <<_ACEOF
27550 /* end confdefs.h. */
27561 rm -f conftest.$ac_objext conftest$ac_exeext
27562 if { (ac_try="$ac_link"
27563 case "(($ac_try" in
27564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565 *) ac_try_echo=$ac_try;;
27567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568 (eval "$ac_link") 2>conftest.er1
27570 grep -v '^ *+' conftest.er1 >conftest.err
27572 cat conftest.err >&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); } &&
27575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27576 { (case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_try") 2>&5
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; } &&
27585 { ac_try='test -s conftest$ac_exeext'
27586 { (case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591 (eval "$ac_try") 2>&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; }; then
27595 ac_cv_lib_imagehlp_main=yes
27597 echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27600 ac_cv_lib_imagehlp_main=no
27603 rm -f core conftest.err conftest.$ac_objext \
27604 conftest$ac_exeext conftest.$ac_ext
27605 LIBS=$ac_check_lib_save_LIBS
27607 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27608 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27609 if test $ac_cv_lib_imagehlp_main = yes; then
27610 cat >>confdefs.h <<_ACEOF
27611 #define HAVE_LIBIMAGEHLP 1
27614 LIBS="-limagehlp $LIBS"
27619 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27620 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27621 if test "${ac_cv_lib_psapi_main+set}" = set; then
27622 echo $ECHO_N "(cached) $ECHO_C" >&6
27624 ac_check_lib_save_LIBS=$LIBS
27625 LIBS="-lpsapi $LIBS"
27626 cat >conftest.$ac_ext <<_ACEOF
27629 cat confdefs.h >>conftest.$ac_ext
27630 cat >>conftest.$ac_ext <<_ACEOF
27631 /* end confdefs.h. */
27642 rm -f conftest.$ac_objext conftest$ac_exeext
27643 if { (ac_try="$ac_link"
27644 case "(($ac_try" in
27645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27646 *) ac_try_echo=$ac_try;;
27648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27649 (eval "$ac_link") 2>conftest.er1
27651 grep -v '^ *+' conftest.er1 >conftest.err
27653 cat conftest.err >&5
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); } &&
27656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27657 { (case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_try") 2>&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; } &&
27666 { ac_try='test -s conftest$ac_exeext'
27667 { (case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_try") 2>&5
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; }; then
27676 ac_cv_lib_psapi_main=yes
27678 echo "$as_me: failed program was:" >&5
27679 sed 's/^/| /' conftest.$ac_ext >&5
27681 ac_cv_lib_psapi_main=no
27684 rm -f core conftest.err conftest.$ac_objext \
27685 conftest$ac_exeext conftest.$ac_ext
27686 LIBS=$ac_check_lib_save_LIBS
27688 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27689 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27690 if test $ac_cv_lib_psapi_main = yes; then
27691 cat >>confdefs.h <<_ACEOF
27692 #define HAVE_LIBPSAPI 1
27695 LIBS="-lpsapi $LIBS"
27701 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27702 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27703 if test "${ac_cv_search_dlopen+set}" = set; then
27704 echo $ECHO_N "(cached) $ECHO_C" >&6
27706 ac_func_search_save_LIBS=$LIBS
27707 cat >conftest.$ac_ext <<_ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h. */
27714 /* Override any GCC internal prototype to avoid an error.
27715 Use char because int might match the return type of a GCC
27716 builtin and then its argument prototype would still apply. */
27729 for ac_lib in '' dl; do
27730 if test -z "$ac_lib"; then
27731 ac_res="none required"
27734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27736 rm -f conftest.$ac_objext conftest$ac_exeext
27737 if { (ac_try="$ac_link"
27738 case "(($ac_try" in
27739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27740 *) ac_try_echo=$ac_try;;
27742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27743 (eval "$ac_link") 2>conftest.er1
27745 grep -v '^ *+' conftest.er1 >conftest.err
27747 cat conftest.err >&5
27748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); } &&
27750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27751 { (case "(($ac_try" in
27752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753 *) ac_try_echo=$ac_try;;
27755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27756 (eval "$ac_try") 2>&5
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; } &&
27760 { ac_try='test -s conftest$ac_exeext'
27761 { (case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_try") 2>&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); }; }; then
27770 ac_cv_search_dlopen=$ac_res
27772 echo "$as_me: failed program was:" >&5
27773 sed 's/^/| /' conftest.$ac_ext >&5
27778 rm -f core conftest.err conftest.$ac_objext \
27780 if test "${ac_cv_search_dlopen+set}" = set; then
27784 if test "${ac_cv_search_dlopen+set}" = set; then
27787 ac_cv_search_dlopen=no
27789 rm conftest.$ac_ext
27790 LIBS=$ac_func_search_save_LIBS
27792 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27793 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27794 ac_res=$ac_cv_search_dlopen
27795 if test "$ac_res" != no; then
27796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27798 cat >>confdefs.h <<\_ACEOF
27799 #define HAVE_DLOPEN 1
27803 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27804 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27808 if test "$llvm_cv_enable_libffi" = "yes" ; then
27809 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27810 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27811 if test "${ac_cv_search_ffi_call+set}" = set; then
27812 echo $ECHO_N "(cached) $ECHO_C" >&6
27814 ac_func_search_save_LIBS=$LIBS
27815 cat >conftest.$ac_ext <<_ACEOF
27818 cat confdefs.h >>conftest.$ac_ext
27819 cat >>conftest.$ac_ext <<_ACEOF
27820 /* end confdefs.h. */
27822 /* Override any GCC internal prototype to avoid an error.
27823 Use char because int might match the return type of a GCC
27824 builtin and then its argument prototype would still apply. */
27832 return ffi_call ();
27837 for ac_lib in '' ffi; do
27838 if test -z "$ac_lib"; then
27839 ac_res="none required"
27842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27844 rm -f conftest.$ac_objext conftest$ac_exeext
27845 if { (ac_try="$ac_link"
27846 case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_link") 2>conftest.er1
27853 grep -v '^ *+' conftest.er1 >conftest.err
27855 cat conftest.err >&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); } &&
27858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27859 { (case "(($ac_try" in
27860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861 *) ac_try_echo=$ac_try;;
27863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27864 (eval "$ac_try") 2>&5
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); }; } &&
27868 { ac_try='test -s conftest$ac_exeext'
27869 { (case "(($ac_try" in
27870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871 *) ac_try_echo=$ac_try;;
27873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27874 (eval "$ac_try") 2>&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; }; then
27878 ac_cv_search_ffi_call=$ac_res
27880 echo "$as_me: failed program was:" >&5
27881 sed 's/^/| /' conftest.$ac_ext >&5
27886 rm -f core conftest.err conftest.$ac_objext \
27888 if test "${ac_cv_search_ffi_call+set}" = set; then
27892 if test "${ac_cv_search_ffi_call+set}" = set; then
27895 ac_cv_search_ffi_call=no
27897 rm conftest.$ac_ext
27898 LIBS=$ac_func_search_save_LIBS
27900 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27901 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27902 ac_res=$ac_cv_search_ffi_call
27903 if test "$ac_res" != no; then
27904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27906 cat >>confdefs.h <<\_ACEOF
27907 #define HAVE_FFI_CALL 1
27911 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27912 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27917 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27918 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27919 if test "${ac_cv_search_mallinfo+set}" = set; then
27920 echo $ECHO_N "(cached) $ECHO_C" >&6
27922 ac_func_search_save_LIBS=$LIBS
27923 cat >conftest.$ac_ext <<_ACEOF
27926 cat confdefs.h >>conftest.$ac_ext
27927 cat >>conftest.$ac_ext <<_ACEOF
27928 /* end confdefs.h. */
27930 /* Override any GCC internal prototype to avoid an error.
27931 Use char because int might match the return type of a GCC
27932 builtin and then its argument prototype would still apply. */
27940 return mallinfo ();
27945 for ac_lib in '' malloc; do
27946 if test -z "$ac_lib"; then
27947 ac_res="none required"
27950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27952 rm -f conftest.$ac_objext conftest$ac_exeext
27953 if { (ac_try="$ac_link"
27954 case "(($ac_try" in
27955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27956 *) ac_try_echo=$ac_try;;
27958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27959 (eval "$ac_link") 2>conftest.er1
27961 grep -v '^ *+' conftest.er1 >conftest.err
27963 cat conftest.err >&5
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); } &&
27966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27967 { (case "(($ac_try" in
27968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969 *) ac_try_echo=$ac_try;;
27971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27972 (eval "$ac_try") 2>&5
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); }; } &&
27976 { ac_try='test -s conftest$ac_exeext'
27977 { (case "(($ac_try" in
27978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979 *) ac_try_echo=$ac_try;;
27981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982 (eval "$ac_try") 2>&5
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); }; }; then
27986 ac_cv_search_mallinfo=$ac_res
27988 echo "$as_me: failed program was:" >&5
27989 sed 's/^/| /' conftest.$ac_ext >&5
27994 rm -f core conftest.err conftest.$ac_objext \
27996 if test "${ac_cv_search_mallinfo+set}" = set; then
28000 if test "${ac_cv_search_mallinfo+set}" = set; then
28003 ac_cv_search_mallinfo=no
28005 rm conftest.$ac_ext
28006 LIBS=$ac_func_search_save_LIBS
28008 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28009 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28010 ac_res=$ac_cv_search_mallinfo
28011 if test "$ac_res" != no; then
28012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28014 cat >>confdefs.h <<\_ACEOF
28015 #define HAVE_MALLINFO 1
28021 if test "$ENABLE_THREADS" -eq 1 ; then
28023 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28024 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28025 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28028 ac_check_lib_save_LIBS=$LIBS
28029 LIBS="-lpthread $LIBS"
28030 cat >conftest.$ac_ext <<_ACEOF
28033 cat confdefs.h >>conftest.$ac_ext
28034 cat >>conftest.$ac_ext <<_ACEOF
28035 /* end confdefs.h. */
28037 /* Override any GCC internal prototype to avoid an error.
28038 Use char because int might match the return type of a GCC
28039 builtin and then its argument prototype would still apply. */
28043 char pthread_mutex_init ();
28047 return pthread_mutex_init ();
28052 rm -f conftest.$ac_objext conftest$ac_exeext
28053 if { (ac_try="$ac_link"
28054 case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_link") 2>conftest.er1
28061 grep -v '^ *+' conftest.er1 >conftest.err
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest$ac_exeext'
28077 { (case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_try") 2>&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
28086 ac_cv_lib_pthread_pthread_mutex_init=yes
28088 echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28091 ac_cv_lib_pthread_pthread_mutex_init=no
28094 rm -f core conftest.err conftest.$ac_objext \
28095 conftest$ac_exeext conftest.$ac_ext
28096 LIBS=$ac_check_lib_save_LIBS
28098 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28099 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28100 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28101 cat >>confdefs.h <<_ACEOF
28102 #define HAVE_LIBPTHREAD 1
28105 LIBS="-lpthread $LIBS"
28109 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28110 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28111 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28112 echo $ECHO_N "(cached) $ECHO_C" >&6
28114 ac_func_search_save_LIBS=$LIBS
28115 cat >conftest.$ac_ext <<_ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h. */
28122 /* Override any GCC internal prototype to avoid an error.
28123 Use char because int might match the return type of a GCC
28124 builtin and then its argument prototype would still apply. */
28128 char pthread_mutex_lock ();
28132 return pthread_mutex_lock ();
28137 for ac_lib in '' pthread; do
28138 if test -z "$ac_lib"; then
28139 ac_res="none required"
28142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28144 rm -f conftest.$ac_objext conftest$ac_exeext
28145 if { (ac_try="$ac_link"
28146 case "(($ac_try" in
28147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148 *) ac_try_echo=$ac_try;;
28150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151 (eval "$ac_link") 2>conftest.er1
28153 grep -v '^ *+' conftest.er1 >conftest.err
28155 cat conftest.err >&5
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157 (exit $ac_status); } &&
28158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28159 { (case "(($ac_try" in
28160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28161 *) ac_try_echo=$ac_try;;
28163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28164 (eval "$ac_try") 2>&5
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; } &&
28168 { ac_try='test -s conftest$ac_exeext'
28169 { (case "(($ac_try" in
28170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171 *) ac_try_echo=$ac_try;;
28173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174 (eval "$ac_try") 2>&5
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); }; }; then
28178 ac_cv_search_pthread_mutex_lock=$ac_res
28180 echo "$as_me: failed program was:" >&5
28181 sed 's/^/| /' conftest.$ac_ext >&5
28186 rm -f core conftest.err conftest.$ac_objext \
28188 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28192 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28195 ac_cv_search_pthread_mutex_lock=no
28197 rm conftest.$ac_ext
28198 LIBS=$ac_func_search_save_LIBS
28200 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28201 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28202 ac_res=$ac_cv_search_pthread_mutex_lock
28203 if test "$ac_res" != no; then
28204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28206 cat >>confdefs.h <<\_ACEOF
28207 #define HAVE_PTHREAD_MUTEX_LOCK 1
28212 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28213 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28214 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28215 echo $ECHO_N "(cached) $ECHO_C" >&6
28217 ac_func_search_save_LIBS=$LIBS
28218 cat >conftest.$ac_ext <<_ACEOF
28221 cat confdefs.h >>conftest.$ac_ext
28222 cat >>conftest.$ac_ext <<_ACEOF
28223 /* end confdefs.h. */
28225 /* Override any GCC internal prototype to avoid an error.
28226 Use char because int might match the return type of a GCC
28227 builtin and then its argument prototype would still apply. */
28231 char pthread_rwlock_init ();
28235 return pthread_rwlock_init ();
28240 for ac_lib in '' pthread; do
28241 if test -z "$ac_lib"; then
28242 ac_res="none required"
28245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28247 rm -f conftest.$ac_objext conftest$ac_exeext
28248 if { (ac_try="$ac_link"
28249 case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_link") 2>conftest.er1
28256 grep -v '^ *+' conftest.er1 >conftest.err
28258 cat conftest.err >&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } &&
28261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28262 { (case "(($ac_try" in
28263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264 *) ac_try_echo=$ac_try;;
28266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267 (eval "$ac_try") 2>&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; } &&
28271 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; }; then
28281 ac_cv_search_pthread_rwlock_init=$ac_res
28283 echo "$as_me: failed program was:" >&5
28284 sed 's/^/| /' conftest.$ac_ext >&5
28289 rm -f core conftest.err conftest.$ac_objext \
28291 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28295 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28298 ac_cv_search_pthread_rwlock_init=no
28300 rm conftest.$ac_ext
28301 LIBS=$ac_func_search_save_LIBS
28303 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28304 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28305 ac_res=$ac_cv_search_pthread_rwlock_init
28306 if test "$ac_res" != no; then
28307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28309 cat >>confdefs.h <<\_ACEOF
28310 #define HAVE_PTHREAD_RWLOCK_INIT 1
28315 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28316 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28317 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28318 echo $ECHO_N "(cached) $ECHO_C" >&6
28320 ac_func_search_save_LIBS=$LIBS
28321 cat >conftest.$ac_ext <<_ACEOF
28324 cat confdefs.h >>conftest.$ac_ext
28325 cat >>conftest.$ac_ext <<_ACEOF
28326 /* end confdefs.h. */
28328 /* Override any GCC internal prototype to avoid an error.
28329 Use char because int might match the return type of a GCC
28330 builtin and then its argument prototype would still apply. */
28334 char pthread_getspecific ();
28338 return pthread_getspecific ();
28343 for ac_lib in '' pthread; do
28344 if test -z "$ac_lib"; then
28345 ac_res="none required"
28348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28350 rm -f conftest.$ac_objext conftest$ac_exeext
28351 if { (ac_try="$ac_link"
28352 case "(($ac_try" in
28353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354 *) ac_try_echo=$ac_try;;
28356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28357 (eval "$ac_link") 2>conftest.er1
28359 grep -v '^ *+' conftest.er1 >conftest.err
28361 cat conftest.err >&5
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); } &&
28364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28365 { (case "(($ac_try" in
28366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28367 *) ac_try_echo=$ac_try;;
28369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28370 (eval "$ac_try") 2>&5
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; } &&
28374 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); }; }; then
28384 ac_cv_search_pthread_getspecific=$ac_res
28386 echo "$as_me: failed program was:" >&5
28387 sed 's/^/| /' conftest.$ac_ext >&5
28392 rm -f core conftest.err conftest.$ac_objext \
28394 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28398 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28401 ac_cv_search_pthread_getspecific=no
28403 rm conftest.$ac_ext
28404 LIBS=$ac_func_search_save_LIBS
28406 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28407 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28408 ac_res=$ac_cv_search_pthread_getspecific
28409 if test "$ac_res" != no; then
28410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28412 cat >>confdefs.h <<\_ACEOF
28413 #define HAVE_PTHREAD_GETSPECIFIC 1
28421 # Check whether --with-udis86 was given.
28422 if test "${with_udis86+set}" = set; then
28423 withval=$with_udis86;
28428 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28431 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28432 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28433 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28434 echo $ECHO_N "(cached) $ECHO_C" >&6
28436 ac_check_lib_save_LIBS=$LIBS
28437 LIBS="-ludis86 $LIBS"
28438 cat >conftest.$ac_ext <<_ACEOF
28441 cat confdefs.h >>conftest.$ac_ext
28442 cat >>conftest.$ac_ext <<_ACEOF
28443 /* end confdefs.h. */
28445 /* Override any GCC internal prototype to avoid an error.
28446 Use char because int might match the return type of a GCC
28447 builtin and then its argument prototype would still apply. */
28460 rm -f conftest.$ac_objext conftest$ac_exeext
28461 if { (ac_try="$ac_link"
28462 case "(($ac_try" in
28463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464 *) ac_try_echo=$ac_try;;
28466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467 (eval "$ac_link") 2>conftest.er1
28469 grep -v '^ *+' conftest.er1 >conftest.err
28471 cat conftest.err >&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); } &&
28474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28475 { (case "(($ac_try" in
28476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477 *) ac_try_echo=$ac_try;;
28479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480 (eval "$ac_try") 2>&5
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483 (exit $ac_status); }; } &&
28484 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); }; }; then
28494 ac_cv_lib_udis86_ud_init=yes
28496 echo "$as_me: failed program was:" >&5
28497 sed 's/^/| /' conftest.$ac_ext >&5
28499 ac_cv_lib_udis86_ud_init=no
28502 rm -f core conftest.err conftest.$ac_objext \
28503 conftest$ac_exeext conftest.$ac_ext
28504 LIBS=$ac_check_lib_save_LIBS
28506 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28507 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28508 if test $ac_cv_lib_udis86_ud_init = yes; then
28509 cat >>confdefs.h <<_ACEOF
28510 #define HAVE_LIBUDIS86 1
28513 LIBS="-ludis86 $LIBS"
28517 echo "Error! You need to have libudis86 around."
28529 cat >>confdefs.h <<_ACEOF
28530 #define USE_UDIS86 $USE_UDIS86
28535 # Check whether --with-oprofile was given.
28536 if test "${with_oprofile+set}" = set; then
28537 withval=$with_oprofile;
28541 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28542 no) llvm_cv_oppath=
28545 *) llvm_cv_oppath="${withval}/lib/oprofile"
28546 CPPFLAGS="-I${withval}/include";;
28548 if test -n "$llvm_cv_oppath" ; then
28549 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28550 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28551 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28552 if test "${ac_cv_search_bfd_init+set}" = set; then
28553 echo $ECHO_N "(cached) $ECHO_C" >&6
28555 ac_func_search_save_LIBS=$LIBS
28556 cat >conftest.$ac_ext <<_ACEOF
28559 cat confdefs.h >>conftest.$ac_ext
28560 cat >>conftest.$ac_ext <<_ACEOF
28561 /* end confdefs.h. */
28563 /* Override any GCC internal prototype to avoid an error.
28564 Use char because int might match the return type of a GCC
28565 builtin and then its argument prototype would still apply. */
28573 return bfd_init ();
28578 for ac_lib in '' bfd; do
28579 if test -z "$ac_lib"; then
28580 ac_res="none required"
28583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28585 rm -f conftest.$ac_objext conftest$ac_exeext
28586 if { (ac_try="$ac_link"
28587 case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_link") 2>conftest.er1
28594 grep -v '^ *+' conftest.er1 >conftest.err
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } &&
28599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28600 { (case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_try") 2>&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; } &&
28609 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28619 ac_cv_search_bfd_init=$ac_res
28621 echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28627 rm -f core conftest.err conftest.$ac_objext \
28629 if test "${ac_cv_search_bfd_init+set}" = set; then
28633 if test "${ac_cv_search_bfd_init+set}" = set; then
28636 ac_cv_search_bfd_init=no
28638 rm conftest.$ac_ext
28639 LIBS=$ac_func_search_save_LIBS
28641 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28642 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28643 ac_res=$ac_cv_search_bfd_init
28644 if test "$ac_res" != no; then
28645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28649 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28650 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28651 if test "${ac_cv_search_op_open_agent+set}" = set; then
28652 echo $ECHO_N "(cached) $ECHO_C" >&6
28654 ac_func_search_save_LIBS=$LIBS
28655 cat >conftest.$ac_ext <<_ACEOF
28658 cat confdefs.h >>conftest.$ac_ext
28659 cat >>conftest.$ac_ext <<_ACEOF
28660 /* end confdefs.h. */
28662 /* Override any GCC internal prototype to avoid an error.
28663 Use char because int might match the return type of a GCC
28664 builtin and then its argument prototype would still apply. */
28668 char op_open_agent ();
28672 return op_open_agent ();
28677 for ac_lib in '' opagent; do
28678 if test -z "$ac_lib"; then
28679 ac_res="none required"
28682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28684 rm -f conftest.$ac_objext conftest$ac_exeext
28685 if { (ac_try="$ac_link"
28686 case "(($ac_try" in
28687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688 *) ac_try_echo=$ac_try;;
28690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691 (eval "$ac_link") 2>conftest.er1
28693 grep -v '^ *+' conftest.er1 >conftest.err
28695 cat conftest.err >&5
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); } &&
28698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28699 { (case "(($ac_try" in
28700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28701 *) ac_try_echo=$ac_try;;
28703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28704 (eval "$ac_try") 2>&5
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); }; } &&
28708 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; }; then
28718 ac_cv_search_op_open_agent=$ac_res
28720 echo "$as_me: failed program was:" >&5
28721 sed 's/^/| /' conftest.$ac_ext >&5
28726 rm -f core conftest.err conftest.$ac_objext \
28728 if test "${ac_cv_search_op_open_agent+set}" = set; then
28732 if test "${ac_cv_search_op_open_agent+set}" = set; then
28735 ac_cv_search_op_open_agent=no
28737 rm conftest.$ac_ext
28738 LIBS=$ac_func_search_save_LIBS
28740 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28741 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28742 ac_res=$ac_cv_search_op_open_agent
28743 if test "$ac_res" != no; then
28744 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28748 echo "Error! You need to have libopagent around."
28753 if test "${ac_cv_header_opagent_h+set}" = set; then
28754 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28755 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28756 if test "${ac_cv_header_opagent_h+set}" = set; then
28757 echo $ECHO_N "(cached) $ECHO_C" >&6
28759 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28760 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28762 # Is the header compilable?
28763 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28764 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28765 cat >conftest.$ac_ext <<_ACEOF
28768 cat confdefs.h >>conftest.$ac_ext
28769 cat >>conftest.$ac_ext <<_ACEOF
28770 /* end confdefs.h. */
28771 $ac_includes_default
28772 #include <opagent.h>
28774 rm -f conftest.$ac_objext
28775 if { (ac_try="$ac_compile"
28776 case "(($ac_try" in
28777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778 *) ac_try_echo=$ac_try;;
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781 (eval "$ac_compile") 2>conftest.er1
28783 grep -v '^ *+' conftest.er1 >conftest.err
28785 cat conftest.err >&5
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); } &&
28788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28789 { (case "(($ac_try" in
28790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28791 *) ac_try_echo=$ac_try;;
28793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794 (eval "$ac_try") 2>&5
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; } &&
28798 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); }; }; then
28808 ac_header_compiler=yes
28810 echo "$as_me: failed program was:" >&5
28811 sed 's/^/| /' conftest.$ac_ext >&5
28813 ac_header_compiler=no
28816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28818 echo "${ECHO_T}$ac_header_compiler" >&6; }
28820 # Is the header present?
28821 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28822 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28823 cat >conftest.$ac_ext <<_ACEOF
28826 cat confdefs.h >>conftest.$ac_ext
28827 cat >>conftest.$ac_ext <<_ACEOF
28828 /* end confdefs.h. */
28829 #include <opagent.h>
28831 if { (ac_try="$ac_cpp conftest.$ac_ext"
28832 case "(($ac_try" in
28833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834 *) ac_try_echo=$ac_try;;
28836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28839 grep -v '^ *+' conftest.er1 >conftest.err
28841 cat conftest.err >&5
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); } >/dev/null; then
28844 if test -s conftest.err; then
28845 ac_cpp_err=$ac_c_preproc_warn_flag
28846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28853 if test -z "$ac_cpp_err"; then
28854 ac_header_preproc=yes
28856 echo "$as_me: failed program was:" >&5
28857 sed 's/^/| /' conftest.$ac_ext >&5
28859 ac_header_preproc=no
28862 rm -f conftest.err conftest.$ac_ext
28863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28864 echo "${ECHO_T}$ac_header_preproc" >&6; }
28866 # So? What about this header?
28867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28869 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28870 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28872 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28873 ac_header_preproc=yes
28876 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28877 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28879 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28880 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28881 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28882 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28883 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28884 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28885 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28886 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28887 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28889 ## ----------------------------------- ##
28890 ## Report this to llvmbugs@cs.uiuc.edu ##
28891 ## ----------------------------------- ##
28893 ) | sed "s/^/$as_me: WARNING: /" >&2
28896 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28897 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28898 if test "${ac_cv_header_opagent_h+set}" = set; then
28899 echo $ECHO_N "(cached) $ECHO_C" >&6
28901 ac_cv_header_opagent_h=$ac_header_preproc
28903 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28904 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28907 if test $ac_cv_header_opagent_h = yes; then
28911 echo "Error! You need to have opagent.h around."
28927 cat >>confdefs.h <<_ACEOF
28928 #define USE_OPROFILE $USE_OPROFILE
28938 ac_header_dirent=no
28939 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28940 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28941 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28942 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28944 echo $ECHO_N "(cached) $ECHO_C" >&6
28946 cat >conftest.$ac_ext <<_ACEOF
28949 cat confdefs.h >>conftest.$ac_ext
28950 cat >>conftest.$ac_ext <<_ACEOF
28951 /* end confdefs.h. */
28952 #include <sys/types.h>
28964 rm -f conftest.$ac_objext
28965 if { (ac_try="$ac_compile"
28966 case "(($ac_try" in
28967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968 *) ac_try_echo=$ac_try;;
28970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971 (eval "$ac_compile") 2>conftest.er1
28973 grep -v '^ *+' conftest.er1 >conftest.err
28975 cat conftest.err >&5
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); } &&
28978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28979 { (case "(($ac_try" in
28980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28981 *) ac_try_echo=$ac_try;;
28983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28984 (eval "$ac_try") 2>&5
28986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); }; } &&
28988 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); }; }; then
28998 eval "$as_ac_Header=yes"
29000 echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29003 eval "$as_ac_Header=no"
29006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29008 ac_res=`eval echo '${'$as_ac_Header'}'`
29009 { echo "$as_me:$LINENO: result: $ac_res" >&5
29010 echo "${ECHO_T}$ac_res" >&6; }
29011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29012 cat >>confdefs.h <<_ACEOF
29013 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29016 ac_header_dirent=$ac_hdr; break
29020 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29021 if test $ac_header_dirent = dirent.h; then
29022 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29023 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29024 if test "${ac_cv_search_opendir+set}" = set; then
29025 echo $ECHO_N "(cached) $ECHO_C" >&6
29027 ac_func_search_save_LIBS=$LIBS
29028 cat >conftest.$ac_ext <<_ACEOF
29031 cat confdefs.h >>conftest.$ac_ext
29032 cat >>conftest.$ac_ext <<_ACEOF
29033 /* end confdefs.h. */
29035 /* Override any GCC internal prototype to avoid an error.
29036 Use char because int might match the return type of a GCC
29037 builtin and then its argument prototype would still apply. */
29050 for ac_lib in '' dir; do
29051 if test -z "$ac_lib"; then
29052 ac_res="none required"
29055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29057 rm -f conftest.$ac_objext conftest$ac_exeext
29058 if { (ac_try="$ac_link"
29059 case "(($ac_try" in
29060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061 *) ac_try_echo=$ac_try;;
29063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29064 (eval "$ac_link") 2>conftest.er1
29066 grep -v '^ *+' conftest.er1 >conftest.err
29068 cat conftest.err >&5
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); } &&
29071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29072 { (case "(($ac_try" in
29073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074 *) ac_try_echo=$ac_try;;
29076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077 (eval "$ac_try") 2>&5
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; } &&
29081 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); }; }; then
29091 ac_cv_search_opendir=$ac_res
29093 echo "$as_me: failed program was:" >&5
29094 sed 's/^/| /' conftest.$ac_ext >&5
29099 rm -f core conftest.err conftest.$ac_objext \
29101 if test "${ac_cv_search_opendir+set}" = set; then
29105 if test "${ac_cv_search_opendir+set}" = set; then
29108 ac_cv_search_opendir=no
29110 rm conftest.$ac_ext
29111 LIBS=$ac_func_search_save_LIBS
29113 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29114 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29115 ac_res=$ac_cv_search_opendir
29116 if test "$ac_res" != no; then
29117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29122 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29123 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29124 if test "${ac_cv_search_opendir+set}" = set; then
29125 echo $ECHO_N "(cached) $ECHO_C" >&6
29127 ac_func_search_save_LIBS=$LIBS
29128 cat >conftest.$ac_ext <<_ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h. */
29135 /* Override any GCC internal prototype to avoid an error.
29136 Use char because int might match the return type of a GCC
29137 builtin and then its argument prototype would still apply. */
29150 for ac_lib in '' x; do
29151 if test -z "$ac_lib"; then
29152 ac_res="none required"
29155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29157 rm -f conftest.$ac_objext conftest$ac_exeext
29158 if { (ac_try="$ac_link"
29159 case "(($ac_try" in
29160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161 *) ac_try_echo=$ac_try;;
29163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164 (eval "$ac_link") 2>conftest.er1
29166 grep -v '^ *+' conftest.er1 >conftest.err
29168 cat conftest.err >&5
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); } &&
29171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29172 { (case "(($ac_try" in
29173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29174 *) ac_try_echo=$ac_try;;
29176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29177 (eval "$ac_try") 2>&5
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); }; } &&
29181 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); }; }; then
29191 ac_cv_search_opendir=$ac_res
29193 echo "$as_me: failed program was:" >&5
29194 sed 's/^/| /' conftest.$ac_ext >&5
29199 rm -f core conftest.err conftest.$ac_objext \
29201 if test "${ac_cv_search_opendir+set}" = set; then
29205 if test "${ac_cv_search_opendir+set}" = set; then
29208 ac_cv_search_opendir=no
29210 rm conftest.$ac_ext
29211 LIBS=$ac_func_search_save_LIBS
29213 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29214 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29215 ac_res=$ac_cv_search_opendir
29216 if test "$ac_res" != no; then
29217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29223 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29224 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29225 if test "${ac_cv_header_mmap_anon+set}" = set; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29229 ac_cpp='$CPP $CPPFLAGS'
29230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29234 cat >conftest.$ac_ext <<_ACEOF
29237 cat confdefs.h >>conftest.$ac_ext
29238 cat >>conftest.$ac_ext <<_ACEOF
29239 /* end confdefs.h. */
29240 #include <sys/mman.h>
29241 #include <unistd.h>
29246 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29251 rm -f conftest.$ac_objext
29252 if { (ac_try="$ac_compile"
29253 case "(($ac_try" in
29254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255 *) ac_try_echo=$ac_try;;
29257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258 (eval "$ac_compile") 2>conftest.er1
29260 grep -v '^ *+' conftest.er1 >conftest.err
29262 cat conftest.err >&5
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); } &&
29265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29266 { (case "(($ac_try" in
29267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_try") 2>&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; } &&
29275 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); }; }; then
29285 ac_cv_header_mmap_anon=yes
29287 echo "$as_me: failed program was:" >&5
29288 sed 's/^/| /' conftest.$ac_ext >&5
29290 ac_cv_header_mmap_anon=no
29293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29295 ac_cpp='$CPP $CPPFLAGS'
29296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29302 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29303 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29304 if test "$ac_cv_header_mmap_anon" = yes; then
29306 cat >>confdefs.h <<\_ACEOF
29307 #define HAVE_MMAP_ANONYMOUS 1
29312 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29313 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29314 if test "${ac_cv_header_stat_broken+set}" = set; then
29315 echo $ECHO_N "(cached) $ECHO_C" >&6
29317 cat >conftest.$ac_ext <<_ACEOF
29320 cat confdefs.h >>conftest.$ac_ext
29321 cat >>conftest.$ac_ext <<_ACEOF
29322 /* end confdefs.h. */
29323 #include <sys/types.h>
29324 #include <sys/stat.h>
29326 #if defined S_ISBLK && defined S_IFDIR
29327 # if S_ISBLK (S_IFDIR)
29332 #if defined S_ISBLK && defined S_IFCHR
29333 # if S_ISBLK (S_IFCHR)
29338 #if defined S_ISLNK && defined S_IFREG
29339 # if S_ISLNK (S_IFREG)
29344 #if defined S_ISSOCK && defined S_IFREG
29345 # if S_ISSOCK (S_IFREG)
29351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29352 $EGREP "You lose" >/dev/null 2>&1; then
29353 ac_cv_header_stat_broken=yes
29355 ac_cv_header_stat_broken=no
29360 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29361 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29362 if test $ac_cv_header_stat_broken = yes; then
29364 cat >>confdefs.h <<\_ACEOF
29365 #define STAT_MACROS_BROKEN 1
29370 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29371 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29372 if test "${ac_cv_header_stdc+set}" = set; then
29373 echo $ECHO_N "(cached) $ECHO_C" >&6
29375 cat >conftest.$ac_ext <<_ACEOF
29378 cat confdefs.h >>conftest.$ac_ext
29379 cat >>conftest.$ac_ext <<_ACEOF
29380 /* end confdefs.h. */
29381 #include <stdlib.h>
29382 #include <stdarg.h>
29383 #include <string.h>
29394 rm -f conftest.$ac_objext
29395 if { (ac_try="$ac_compile"
29396 case "(($ac_try" in
29397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398 *) ac_try_echo=$ac_try;;
29400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401 (eval "$ac_compile") 2>conftest.er1
29403 grep -v '^ *+' conftest.er1 >conftest.err
29405 cat conftest.err >&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } &&
29408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29409 { (case "(($ac_try" in
29410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29411 *) ac_try_echo=$ac_try;;
29413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29414 (eval "$ac_try") 2>&5
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; } &&
29418 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); }; }; then
29428 ac_cv_header_stdc=yes
29430 echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29433 ac_cv_header_stdc=no
29436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29438 if test $ac_cv_header_stdc = yes; then
29439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29440 cat >conftest.$ac_ext <<_ACEOF
29443 cat confdefs.h >>conftest.$ac_ext
29444 cat >>conftest.$ac_ext <<_ACEOF
29445 /* end confdefs.h. */
29446 #include <string.h>
29449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29450 $EGREP "memchr" >/dev/null 2>&1; then
29453 ac_cv_header_stdc=no
29459 if test $ac_cv_header_stdc = yes; then
29460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29461 cat >conftest.$ac_ext <<_ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h. */
29467 #include <stdlib.h>
29470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29471 $EGREP "free" >/dev/null 2>&1; then
29474 ac_cv_header_stdc=no
29480 if test $ac_cv_header_stdc = yes; then
29481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29482 if test "$cross_compiling" = yes; then
29485 cat >conftest.$ac_ext <<_ACEOF
29488 cat confdefs.h >>conftest.$ac_ext
29489 cat >>conftest.$ac_ext <<_ACEOF
29490 /* end confdefs.h. */
29492 #include <stdlib.h>
29493 #if ((' ' & 0x0FF) == 0x020)
29494 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29495 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29497 # define ISLOWER(c) \
29498 (('a' <= (c) && (c) <= 'i') \
29499 || ('j' <= (c) && (c) <= 'r') \
29500 || ('s' <= (c) && (c) <= 'z'))
29501 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29504 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29509 for (i = 0; i < 256; i++)
29510 if (XOR (islower (i), ISLOWER (i))
29511 || toupper (i) != TOUPPER (i))
29516 rm -f conftest$ac_exeext
29517 if { (ac_try="$ac_link"
29518 case "(($ac_try" in
29519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29520 *) ac_try_echo=$ac_try;;
29522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29523 (eval "$ac_link") 2>&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29527 { (case "(($ac_try" in
29528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529 *) ac_try_echo=$ac_try;;
29531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532 (eval "$ac_try") 2>&5
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; }; then
29538 echo "$as_me: program exited with status $ac_status" >&5
29539 echo "$as_me: failed program was:" >&5
29540 sed 's/^/| /' conftest.$ac_ext >&5
29542 ( exit $ac_status )
29543 ac_cv_header_stdc=no
29545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29551 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29552 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29553 if test $ac_cv_header_stdc = yes; then
29555 cat >>confdefs.h <<\_ACEOF
29556 #define STDC_HEADERS 1
29561 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29562 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29563 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29564 echo $ECHO_N "(cached) $ECHO_C" >&6
29566 cat >conftest.$ac_ext <<_ACEOF
29569 cat confdefs.h >>conftest.$ac_ext
29570 cat >>conftest.$ac_ext <<_ACEOF
29571 /* end confdefs.h. */
29572 #include <sys/types.h>
29573 #include <sys/wait.h>
29574 #ifndef WEXITSTATUS
29575 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29578 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29586 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29591 rm -f conftest.$ac_objext
29592 if { (ac_try="$ac_compile"
29593 case "(($ac_try" in
29594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595 *) ac_try_echo=$ac_try;;
29597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598 (eval "$ac_compile") 2>conftest.er1
29600 grep -v '^ *+' conftest.er1 >conftest.err
29602 cat conftest.err >&5
29603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); } &&
29605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29606 { (case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_try") 2>&5
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; } &&
29615 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 ac_cv_header_sys_wait_h=yes
29627 echo "$as_me: failed program was:" >&5
29628 sed 's/^/| /' conftest.$ac_ext >&5
29630 ac_cv_header_sys_wait_h=no
29633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29635 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29636 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29637 if test $ac_cv_header_sys_wait_h = yes; then
29639 cat >>confdefs.h <<\_ACEOF
29640 #define HAVE_SYS_WAIT_H 1
29645 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29646 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29647 if test "${ac_cv_header_time+set}" = set; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29650 cat >conftest.$ac_ext <<_ACEOF
29653 cat confdefs.h >>conftest.$ac_ext
29654 cat >>conftest.$ac_ext <<_ACEOF
29655 /* end confdefs.h. */
29656 #include <sys/types.h>
29657 #include <sys/time.h>
29663 if ((struct tm *) 0)
29669 rm -f conftest.$ac_objext
29670 if { (ac_try="$ac_compile"
29671 case "(($ac_try" in
29672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29673 *) ac_try_echo=$ac_try;;
29675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29676 (eval "$ac_compile") 2>conftest.er1
29678 grep -v '^ *+' conftest.er1 >conftest.err
29680 cat conftest.err >&5
29681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682 (exit $ac_status); } &&
29683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29684 { (case "(($ac_try" in
29685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686 *) ac_try_echo=$ac_try;;
29688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689 (eval "$ac_try") 2>&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; } &&
29693 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); }; }; then
29703 ac_cv_header_time=yes
29705 echo "$as_me: failed program was:" >&5
29706 sed 's/^/| /' conftest.$ac_ext >&5
29708 ac_cv_header_time=no
29711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29713 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29714 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29715 if test $ac_cv_header_time = yes; then
29717 cat >>confdefs.h <<\_ACEOF
29718 #define TIME_WITH_SYS_TIME 1
29730 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29737 echo $ECHO_N "(cached) $ECHO_C" >&6
29739 ac_res=`eval echo '${'$as_ac_Header'}'`
29740 { echo "$as_me:$LINENO: result: $ac_res" >&5
29741 echo "${ECHO_T}$ac_res" >&6; }
29743 # Is the header compilable?
29744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29746 cat >conftest.$ac_ext <<_ACEOF
29749 cat confdefs.h >>conftest.$ac_ext
29750 cat >>conftest.$ac_ext <<_ACEOF
29751 /* end confdefs.h. */
29752 $ac_includes_default
29753 #include <$ac_header>
29755 rm -f conftest.$ac_objext
29756 if { (ac_try="$ac_compile"
29757 case "(($ac_try" in
29758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29759 *) ac_try_echo=$ac_try;;
29761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29762 (eval "$ac_compile") 2>conftest.er1
29764 grep -v '^ *+' conftest.er1 >conftest.err
29766 cat conftest.err >&5
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); } &&
29769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29770 { (case "(($ac_try" in
29771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29772 *) ac_try_echo=$ac_try;;
29774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29775 (eval "$ac_try") 2>&5
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; } &&
29779 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); }; }; then
29789 ac_header_compiler=yes
29791 echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29794 ac_header_compiler=no
29797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29799 echo "${ECHO_T}$ac_header_compiler" >&6; }
29801 # Is the header present?
29802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29804 cat >conftest.$ac_ext <<_ACEOF
29807 cat confdefs.h >>conftest.$ac_ext
29808 cat >>conftest.$ac_ext <<_ACEOF
29809 /* end confdefs.h. */
29810 #include <$ac_header>
29812 if { (ac_try="$ac_cpp conftest.$ac_ext"
29813 case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29820 grep -v '^ *+' conftest.er1 >conftest.err
29822 cat conftest.err >&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } >/dev/null; then
29825 if test -s conftest.err; then
29826 ac_cpp_err=$ac_c_preproc_warn_flag
29827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29834 if test -z "$ac_cpp_err"; then
29835 ac_header_preproc=yes
29837 echo "$as_me: failed program was:" >&5
29838 sed 's/^/| /' conftest.$ac_ext >&5
29840 ac_header_preproc=no
29843 rm -f conftest.err conftest.$ac_ext
29844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29845 echo "${ECHO_T}$ac_header_preproc" >&6; }
29847 # So? What about this header?
29848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29854 ac_header_preproc=yes
29857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29870 ## ----------------------------------- ##
29871 ## Report this to llvmbugs@cs.uiuc.edu ##
29872 ## ----------------------------------- ##
29874 ) | sed "s/^/$as_me: WARNING: /" >&2
29877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29880 echo $ECHO_N "(cached) $ECHO_C" >&6
29882 eval "$as_ac_Header=\$ac_header_preproc"
29884 ac_res=`eval echo '${'$as_ac_Header'}'`
29885 { echo "$as_me:$LINENO: result: $ac_res" >&5
29886 echo "${ECHO_T}$ac_res" >&6; }
29889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29890 cat >>confdefs.h <<_ACEOF
29891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29904 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29911 echo $ECHO_N "(cached) $ECHO_C" >&6
29913 ac_res=`eval echo '${'$as_ac_Header'}'`
29914 { echo "$as_me:$LINENO: result: $ac_res" >&5
29915 echo "${ECHO_T}$ac_res" >&6; }
29917 # Is the header compilable?
29918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29920 cat >conftest.$ac_ext <<_ACEOF
29923 cat confdefs.h >>conftest.$ac_ext
29924 cat >>conftest.$ac_ext <<_ACEOF
29925 /* end confdefs.h. */
29926 $ac_includes_default
29927 #include <$ac_header>
29929 rm -f conftest.$ac_objext
29930 if { (ac_try="$ac_compile"
29931 case "(($ac_try" in
29932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29933 *) ac_try_echo=$ac_try;;
29935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29936 (eval "$ac_compile") 2>conftest.er1
29938 grep -v '^ *+' conftest.er1 >conftest.err
29940 cat conftest.err >&5
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); } &&
29943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29944 { (case "(($ac_try" in
29945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946 *) ac_try_echo=$ac_try;;
29948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949 (eval "$ac_try") 2>&5
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); }; } &&
29953 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); }; }; then
29963 ac_header_compiler=yes
29965 echo "$as_me: failed program was:" >&5
29966 sed 's/^/| /' conftest.$ac_ext >&5
29968 ac_header_compiler=no
29971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29973 echo "${ECHO_T}$ac_header_compiler" >&6; }
29975 # Is the header present?
29976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29978 cat >conftest.$ac_ext <<_ACEOF
29981 cat confdefs.h >>conftest.$ac_ext
29982 cat >>conftest.$ac_ext <<_ACEOF
29983 /* end confdefs.h. */
29984 #include <$ac_header>
29986 if { (ac_try="$ac_cpp conftest.$ac_ext"
29987 case "(($ac_try" in
29988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29989 *) ac_try_echo=$ac_try;;
29991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29994 grep -v '^ *+' conftest.er1 >conftest.err
29996 cat conftest.err >&5
29997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); } >/dev/null; then
29999 if test -s conftest.err; then
30000 ac_cpp_err=$ac_c_preproc_warn_flag
30001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30008 if test -z "$ac_cpp_err"; then
30009 ac_header_preproc=yes
30011 echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30014 ac_header_preproc=no
30017 rm -f conftest.err conftest.$ac_ext
30018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30019 echo "${ECHO_T}$ac_header_preproc" >&6; }
30021 # So? What about this header?
30022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30028 ac_header_preproc=yes
30031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30044 ## ----------------------------------- ##
30045 ## Report this to llvmbugs@cs.uiuc.edu ##
30046 ## ----------------------------------- ##
30048 ) | sed "s/^/$as_me: WARNING: /" >&2
30051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30054 echo $ECHO_N "(cached) $ECHO_C" >&6
30056 eval "$as_ac_Header=\$ac_header_preproc"
30058 ac_res=`eval echo '${'$as_ac_Header'}'`
30059 { echo "$as_me:$LINENO: result: $ac_res" >&5
30060 echo "${ECHO_T}$ac_res" >&6; }
30063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30064 cat >>confdefs.h <<_ACEOF
30065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30074 for ac_header in utime.h windows.h
30076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30081 echo $ECHO_N "(cached) $ECHO_C" >&6
30083 ac_res=`eval echo '${'$as_ac_Header'}'`
30084 { echo "$as_me:$LINENO: result: $ac_res" >&5
30085 echo "${ECHO_T}$ac_res" >&6; }
30087 # Is the header compilable?
30088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30090 cat >conftest.$ac_ext <<_ACEOF
30093 cat confdefs.h >>conftest.$ac_ext
30094 cat >>conftest.$ac_ext <<_ACEOF
30095 /* end confdefs.h. */
30096 $ac_includes_default
30097 #include <$ac_header>
30099 rm -f conftest.$ac_objext
30100 if { (ac_try="$ac_compile"
30101 case "(($ac_try" in
30102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103 *) ac_try_echo=$ac_try;;
30105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106 (eval "$ac_compile") 2>conftest.er1
30108 grep -v '^ *+' conftest.er1 >conftest.err
30110 cat conftest.err >&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); } &&
30113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30114 { (case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_try") 2>&5
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); }; } &&
30123 { ac_try='test -s conftest.$ac_objext'
30124 { (case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_try") 2>&5
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; }; then
30133 ac_header_compiler=yes
30135 echo "$as_me: failed program was:" >&5
30136 sed 's/^/| /' conftest.$ac_ext >&5
30138 ac_header_compiler=no
30141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30143 echo "${ECHO_T}$ac_header_compiler" >&6; }
30145 # Is the header present?
30146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30148 cat >conftest.$ac_ext <<_ACEOF
30151 cat confdefs.h >>conftest.$ac_ext
30152 cat >>conftest.$ac_ext <<_ACEOF
30153 /* end confdefs.h. */
30154 #include <$ac_header>
30156 if { (ac_try="$ac_cpp conftest.$ac_ext"
30157 case "(($ac_try" in
30158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30159 *) ac_try_echo=$ac_try;;
30161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30164 grep -v '^ *+' conftest.er1 >conftest.err
30166 cat conftest.err >&5
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); } >/dev/null; then
30169 if test -s conftest.err; then
30170 ac_cpp_err=$ac_c_preproc_warn_flag
30171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30178 if test -z "$ac_cpp_err"; then
30179 ac_header_preproc=yes
30181 echo "$as_me: failed program was:" >&5
30182 sed 's/^/| /' conftest.$ac_ext >&5
30184 ac_header_preproc=no
30187 rm -f conftest.err conftest.$ac_ext
30188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30189 echo "${ECHO_T}$ac_header_preproc" >&6; }
30191 # So? What about this header?
30192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30198 ac_header_preproc=yes
30201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30214 ## ----------------------------------- ##
30215 ## Report this to llvmbugs@cs.uiuc.edu ##
30216 ## ----------------------------------- ##
30218 ) | sed "s/^/$as_me: WARNING: /" >&2
30221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30224 echo $ECHO_N "(cached) $ECHO_C" >&6
30226 eval "$as_ac_Header=\$ac_header_preproc"
30228 ac_res=`eval echo '${'$as_ac_Header'}'`
30229 { echo "$as_me:$LINENO: result: $ac_res" >&5
30230 echo "${ECHO_T}$ac_res" >&6; }
30233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30234 cat >>confdefs.h <<_ACEOF
30235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30246 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30253 echo $ECHO_N "(cached) $ECHO_C" >&6
30255 ac_res=`eval echo '${'$as_ac_Header'}'`
30256 { echo "$as_me:$LINENO: result: $ac_res" >&5
30257 echo "${ECHO_T}$ac_res" >&6; }
30259 # Is the header compilable?
30260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30262 cat >conftest.$ac_ext <<_ACEOF
30265 cat confdefs.h >>conftest.$ac_ext
30266 cat >>conftest.$ac_ext <<_ACEOF
30267 /* end confdefs.h. */
30268 $ac_includes_default
30269 #include <$ac_header>
30271 rm -f conftest.$ac_objext
30272 if { (ac_try="$ac_compile"
30273 case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_compile") 2>conftest.er1
30280 grep -v '^ *+' conftest.er1 >conftest.err
30282 cat conftest.err >&5
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } &&
30285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30286 { (case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_try") 2>&5
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); }; } &&
30295 { ac_try='test -s conftest.$ac_objext'
30296 { (case "(($ac_try" in
30297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301 (eval "$ac_try") 2>&5
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; }; then
30305 ac_header_compiler=yes
30307 echo "$as_me: failed program was:" >&5
30308 sed 's/^/| /' conftest.$ac_ext >&5
30310 ac_header_compiler=no
30313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30315 echo "${ECHO_T}$ac_header_compiler" >&6; }
30317 # Is the header present?
30318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30320 cat >conftest.$ac_ext <<_ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h. */
30326 #include <$ac_header>
30328 if { (ac_try="$ac_cpp conftest.$ac_ext"
30329 case "(($ac_try" in
30330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30331 *) ac_try_echo=$ac_try;;
30333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30336 grep -v '^ *+' conftest.er1 >conftest.err
30338 cat conftest.err >&5
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); } >/dev/null; then
30341 if test -s conftest.err; then
30342 ac_cpp_err=$ac_c_preproc_warn_flag
30343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30350 if test -z "$ac_cpp_err"; then
30351 ac_header_preproc=yes
30353 echo "$as_me: failed program was:" >&5
30354 sed 's/^/| /' conftest.$ac_ext >&5
30356 ac_header_preproc=no
30359 rm -f conftest.err conftest.$ac_ext
30360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30361 echo "${ECHO_T}$ac_header_preproc" >&6; }
30363 # So? What about this header?
30364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30370 ac_header_preproc=yes
30373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30386 ## ----------------------------------- ##
30387 ## Report this to llvmbugs@cs.uiuc.edu ##
30388 ## ----------------------------------- ##
30390 ) | sed "s/^/$as_me: WARNING: /" >&2
30393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30396 echo $ECHO_N "(cached) $ECHO_C" >&6
30398 eval "$as_ac_Header=\$ac_header_preproc"
30400 ac_res=`eval echo '${'$as_ac_Header'}'`
30401 { echo "$as_me:$LINENO: result: $ac_res" >&5
30402 echo "${ECHO_T}$ac_res" >&6; }
30405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30406 cat >>confdefs.h <<_ACEOF
30407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30418 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30425 echo $ECHO_N "(cached) $ECHO_C" >&6
30427 ac_res=`eval echo '${'$as_ac_Header'}'`
30428 { echo "$as_me:$LINENO: result: $ac_res" >&5
30429 echo "${ECHO_T}$ac_res" >&6; }
30431 # Is the header compilable?
30432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30434 cat >conftest.$ac_ext <<_ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h. */
30440 $ac_includes_default
30441 #include <$ac_header>
30443 rm -f conftest.$ac_objext
30444 if { (ac_try="$ac_compile"
30445 case "(($ac_try" in
30446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447 *) ac_try_echo=$ac_try;;
30449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450 (eval "$ac_compile") 2>conftest.er1
30452 grep -v '^ *+' conftest.er1 >conftest.err
30454 cat conftest.err >&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); } &&
30457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30458 { (case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_try") 2>&5
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; } &&
30467 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); }; }; then
30477 ac_header_compiler=yes
30479 echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30482 ac_header_compiler=no
30485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30487 echo "${ECHO_T}$ac_header_compiler" >&6; }
30489 # Is the header present?
30490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30492 cat >conftest.$ac_ext <<_ACEOF
30495 cat confdefs.h >>conftest.$ac_ext
30496 cat >>conftest.$ac_ext <<_ACEOF
30497 /* end confdefs.h. */
30498 #include <$ac_header>
30500 if { (ac_try="$ac_cpp conftest.$ac_ext"
30501 case "(($ac_try" in
30502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503 *) ac_try_echo=$ac_try;;
30505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30508 grep -v '^ *+' conftest.er1 >conftest.err
30510 cat conftest.err >&5
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); } >/dev/null; then
30513 if test -s conftest.err; then
30514 ac_cpp_err=$ac_c_preproc_warn_flag
30515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30522 if test -z "$ac_cpp_err"; then
30523 ac_header_preproc=yes
30525 echo "$as_me: failed program was:" >&5
30526 sed 's/^/| /' conftest.$ac_ext >&5
30528 ac_header_preproc=no
30531 rm -f conftest.err conftest.$ac_ext
30532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30533 echo "${ECHO_T}$ac_header_preproc" >&6; }
30535 # So? What about this header?
30536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30542 ac_header_preproc=yes
30545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30558 ## ----------------------------------- ##
30559 ## Report this to llvmbugs@cs.uiuc.edu ##
30560 ## ----------------------------------- ##
30562 ) | sed "s/^/$as_me: WARNING: /" >&2
30565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30568 echo $ECHO_N "(cached) $ECHO_C" >&6
30570 eval "$as_ac_Header=\$ac_header_preproc"
30572 ac_res=`eval echo '${'$as_ac_Header'}'`
30573 { echo "$as_me:$LINENO: result: $ac_res" >&5
30574 echo "${ECHO_T}$ac_res" >&6; }
30577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30578 cat >>confdefs.h <<_ACEOF
30579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30586 if test "$ENABLE_THREADS" -eq 1 ; then
30588 for ac_header in pthread.h
30590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30595 echo $ECHO_N "(cached) $ECHO_C" >&6
30597 ac_res=`eval echo '${'$as_ac_Header'}'`
30598 { echo "$as_me:$LINENO: result: $ac_res" >&5
30599 echo "${ECHO_T}$ac_res" >&6; }
30601 # Is the header compilable?
30602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30604 cat >conftest.$ac_ext <<_ACEOF
30607 cat confdefs.h >>conftest.$ac_ext
30608 cat >>conftest.$ac_ext <<_ACEOF
30609 /* end confdefs.h. */
30610 $ac_includes_default
30611 #include <$ac_header>
30613 rm -f conftest.$ac_objext
30614 if { (ac_try="$ac_compile"
30615 case "(($ac_try" in
30616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30617 *) ac_try_echo=$ac_try;;
30619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30620 (eval "$ac_compile") 2>conftest.er1
30622 grep -v '^ *+' conftest.er1 >conftest.err
30624 cat conftest.err >&5
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); } &&
30627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30628 { (case "(($ac_try" in
30629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30630 *) ac_try_echo=$ac_try;;
30632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30633 (eval "$ac_try") 2>&5
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); }; } &&
30637 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646 (exit $ac_status); }; }; then
30647 ac_header_compiler=yes
30649 echo "$as_me: failed program was:" >&5
30650 sed 's/^/| /' conftest.$ac_ext >&5
30652 ac_header_compiler=no
30655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30657 echo "${ECHO_T}$ac_header_compiler" >&6; }
30659 # Is the header present?
30660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30662 cat >conftest.$ac_ext <<_ACEOF
30665 cat confdefs.h >>conftest.$ac_ext
30666 cat >>conftest.$ac_ext <<_ACEOF
30667 /* end confdefs.h. */
30668 #include <$ac_header>
30670 if { (ac_try="$ac_cpp conftest.$ac_ext"
30671 case "(($ac_try" in
30672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30673 *) ac_try_echo=$ac_try;;
30675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30678 grep -v '^ *+' conftest.er1 >conftest.err
30680 cat conftest.err >&5
30681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30682 (exit $ac_status); } >/dev/null; then
30683 if test -s conftest.err; then
30684 ac_cpp_err=$ac_c_preproc_warn_flag
30685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30692 if test -z "$ac_cpp_err"; then
30693 ac_header_preproc=yes
30695 echo "$as_me: failed program was:" >&5
30696 sed 's/^/| /' conftest.$ac_ext >&5
30698 ac_header_preproc=no
30701 rm -f conftest.err conftest.$ac_ext
30702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30703 echo "${ECHO_T}$ac_header_preproc" >&6; }
30705 # So? What about this header?
30706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30712 ac_header_preproc=yes
30715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30728 ## ----------------------------------- ##
30729 ## Report this to llvmbugs@cs.uiuc.edu ##
30730 ## ----------------------------------- ##
30732 ) | sed "s/^/$as_me: WARNING: /" >&2
30735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30738 echo $ECHO_N "(cached) $ECHO_C" >&6
30740 eval "$as_ac_Header=\$ac_header_preproc"
30742 ac_res=`eval echo '${'$as_ac_Header'}'`
30743 { echo "$as_me:$LINENO: result: $ac_res" >&5
30744 echo "${ECHO_T}$ac_res" >&6; }
30747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30748 cat >>confdefs.h <<_ACEOF
30749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30765 if test "$llvm_cv_enable_libffi" = "yes" ; then
30768 for ac_header in ffi.h ffi/ffi.h
30770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30775 echo $ECHO_N "(cached) $ECHO_C" >&6
30777 ac_res=`eval echo '${'$as_ac_Header'}'`
30778 { echo "$as_me:$LINENO: result: $ac_res" >&5
30779 echo "${ECHO_T}$ac_res" >&6; }
30781 # Is the header compilable?
30782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30784 cat >conftest.$ac_ext <<_ACEOF
30787 cat confdefs.h >>conftest.$ac_ext
30788 cat >>conftest.$ac_ext <<_ACEOF
30789 /* end confdefs.h. */
30790 $ac_includes_default
30791 #include <$ac_header>
30793 rm -f conftest.$ac_objext
30794 if { (ac_try="$ac_compile"
30795 case "(($ac_try" in
30796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797 *) ac_try_echo=$ac_try;;
30799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_compile") 2>conftest.er1
30802 grep -v '^ *+' conftest.er1 >conftest.err
30804 cat conftest.err >&5
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); } &&
30807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30808 { (case "(($ac_try" in
30809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810 *) ac_try_echo=$ac_try;;
30812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30813 (eval "$ac_try") 2>&5
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); }; } &&
30817 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; }; then
30827 ac_header_compiler=yes
30829 echo "$as_me: failed program was:" >&5
30830 sed 's/^/| /' conftest.$ac_ext >&5
30832 ac_header_compiler=no
30835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30837 echo "${ECHO_T}$ac_header_compiler" >&6; }
30839 # Is the header present?
30840 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30842 cat >conftest.$ac_ext <<_ACEOF
30845 cat confdefs.h >>conftest.$ac_ext
30846 cat >>conftest.$ac_ext <<_ACEOF
30847 /* end confdefs.h. */
30848 #include <$ac_header>
30850 if { (ac_try="$ac_cpp conftest.$ac_ext"
30851 case "(($ac_try" in
30852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30853 *) ac_try_echo=$ac_try;;
30855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30858 grep -v '^ *+' conftest.er1 >conftest.err
30860 cat conftest.err >&5
30861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862 (exit $ac_status); } >/dev/null; then
30863 if test -s conftest.err; then
30864 ac_cpp_err=$ac_c_preproc_warn_flag
30865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30872 if test -z "$ac_cpp_err"; then
30873 ac_header_preproc=yes
30875 echo "$as_me: failed program was:" >&5
30876 sed 's/^/| /' conftest.$ac_ext >&5
30878 ac_header_preproc=no
30881 rm -f conftest.err conftest.$ac_ext
30882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30883 echo "${ECHO_T}$ac_header_preproc" >&6; }
30885 # So? What about this header?
30886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30892 ac_header_preproc=yes
30895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30902 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30908 ## ----------------------------------- ##
30909 ## Report this to llvmbugs@cs.uiuc.edu ##
30910 ## ----------------------------------- ##
30912 ) | sed "s/^/$as_me: WARNING: /" >&2
30915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30918 echo $ECHO_N "(cached) $ECHO_C" >&6
30920 eval "$as_ac_Header=\$ac_header_preproc"
30922 ac_res=`eval echo '${'$as_ac_Header'}'`
30923 { echo "$as_me:$LINENO: result: $ac_res" >&5
30924 echo "${ECHO_T}$ac_res" >&6; }
30927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30928 cat >>confdefs.h <<_ACEOF
30929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30940 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30941 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30942 if test "${ac_cv_huge_val_sanity+set}" = set; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
30947 ac_cpp='$CXXCPP $CPPFLAGS'
30948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30953 if test "$cross_compiling" = yes; then
30954 ac_cv_huge_val_sanity=yes
30956 cat >conftest.$ac_ext <<_ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h. */
30966 double x = HUGE_VAL; return x != x;
30971 rm -f conftest$ac_exeext
30972 if { (ac_try="$ac_link"
30973 case "(($ac_try" in
30974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30975 *) ac_try_echo=$ac_try;;
30977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30978 (eval "$ac_link") 2>&5
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30982 { (case "(($ac_try" in
30983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987 (eval "$ac_try") 2>&5
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; }; then
30991 ac_cv_huge_val_sanity=yes
30993 echo "$as_me: program exited with status $ac_status" >&5
30994 echo "$as_me: failed program was:" >&5
30995 sed 's/^/| /' conftest.$ac_ext >&5
30997 ( exit $ac_status )
30998 ac_cv_huge_val_sanity=no
31000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31005 ac_cpp='$CPP $CPPFLAGS'
31006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31012 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31013 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31014 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31017 { echo "$as_me:$LINENO: checking for pid_t" >&5
31018 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31019 if test "${ac_cv_type_pid_t+set}" = set; then
31020 echo $ECHO_N "(cached) $ECHO_C" >&6
31022 cat >conftest.$ac_ext <<_ACEOF
31025 cat confdefs.h >>conftest.$ac_ext
31026 cat >>conftest.$ac_ext <<_ACEOF
31027 /* end confdefs.h. */
31028 $ac_includes_default
31029 typedef pid_t ac__type_new_;
31033 if ((ac__type_new_ *) 0)
31035 if (sizeof (ac__type_new_))
31041 rm -f conftest.$ac_objext
31042 if { (ac_try="$ac_compile"
31043 case "(($ac_try" in
31044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31045 *) ac_try_echo=$ac_try;;
31047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31048 (eval "$ac_compile") 2>conftest.er1
31050 grep -v '^ *+' conftest.er1 >conftest.err
31052 cat conftest.err >&5
31053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054 (exit $ac_status); } &&
31055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31056 { (case "(($ac_try" in
31057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31058 *) ac_try_echo=$ac_try;;
31060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31061 (eval "$ac_try") 2>&5
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); }; } &&
31065 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 (exit $ac_status); }; }; then
31075 ac_cv_type_pid_t=yes
31077 echo "$as_me: failed program was:" >&5
31078 sed 's/^/| /' conftest.$ac_ext >&5
31080 ac_cv_type_pid_t=no
31083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31085 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31086 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31087 if test $ac_cv_type_pid_t = yes; then
31091 cat >>confdefs.h <<_ACEOF
31097 { echo "$as_me:$LINENO: checking for size_t" >&5
31098 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31099 if test "${ac_cv_type_size_t+set}" = set; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31102 cat >conftest.$ac_ext <<_ACEOF
31105 cat confdefs.h >>conftest.$ac_ext
31106 cat >>conftest.$ac_ext <<_ACEOF
31107 /* end confdefs.h. */
31108 $ac_includes_default
31109 typedef size_t ac__type_new_;
31113 if ((ac__type_new_ *) 0)
31115 if (sizeof (ac__type_new_))
31121 rm -f conftest.$ac_objext
31122 if { (ac_try="$ac_compile"
31123 case "(($ac_try" in
31124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31125 *) ac_try_echo=$ac_try;;
31127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31128 (eval "$ac_compile") 2>conftest.er1
31130 grep -v '^ *+' conftest.er1 >conftest.err
31132 cat conftest.err >&5
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); } &&
31135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31136 { (case "(($ac_try" in
31137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31138 *) ac_try_echo=$ac_try;;
31140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31141 (eval "$ac_try") 2>&5
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); }; } &&
31145 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154 (exit $ac_status); }; }; then
31155 ac_cv_type_size_t=yes
31157 echo "$as_me: failed program was:" >&5
31158 sed 's/^/| /' conftest.$ac_ext >&5
31160 ac_cv_type_size_t=no
31163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31165 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31166 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31167 if test $ac_cv_type_size_t = yes; then
31171 cat >>confdefs.h <<_ACEOF
31172 #define size_t unsigned int
31177 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31178 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31179 if test "${ac_cv_type_signal+set}" = set; then
31180 echo $ECHO_N "(cached) $ECHO_C" >&6
31182 cat >conftest.$ac_ext <<_ACEOF
31185 cat confdefs.h >>conftest.$ac_ext
31186 cat >>conftest.$ac_ext <<_ACEOF
31187 /* end confdefs.h. */
31188 #include <sys/types.h>
31189 #include <signal.h>
31194 return *(signal (0, 0)) (0) == 1;
31199 rm -f conftest.$ac_objext
31200 if { (ac_try="$ac_compile"
31201 case "(($ac_try" in
31202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203 *) ac_try_echo=$ac_try;;
31205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206 (eval "$ac_compile") 2>conftest.er1
31208 grep -v '^ *+' conftest.er1 >conftest.err
31210 cat conftest.err >&5
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); } &&
31213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31214 { (case "(($ac_try" in
31215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216 *) ac_try_echo=$ac_try;;
31218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219 (eval "$ac_try") 2>&5
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); }; } &&
31223 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); }; }; then
31233 ac_cv_type_signal=int
31235 echo "$as_me: failed program was:" >&5
31236 sed 's/^/| /' conftest.$ac_ext >&5
31238 ac_cv_type_signal=void
31241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31243 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31244 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31246 cat >>confdefs.h <<_ACEOF
31247 #define RETSIGTYPE $ac_cv_type_signal
31251 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31252 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31253 if test "${ac_cv_struct_tm+set}" = set; then
31254 echo $ECHO_N "(cached) $ECHO_C" >&6
31256 cat >conftest.$ac_ext <<_ACEOF
31259 cat confdefs.h >>conftest.$ac_ext
31260 cat >>conftest.$ac_ext <<_ACEOF
31261 /* end confdefs.h. */
31262 #include <sys/types.h>
31268 struct tm *tp; tp->tm_sec;
31273 rm -f conftest.$ac_objext
31274 if { (ac_try="$ac_compile"
31275 case "(($ac_try" in
31276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277 *) ac_try_echo=$ac_try;;
31279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280 (eval "$ac_compile") 2>conftest.er1
31282 grep -v '^ *+' conftest.er1 >conftest.err
31284 cat conftest.err >&5
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); } &&
31287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31288 { (case "(($ac_try" in
31289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290 *) ac_try_echo=$ac_try;;
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293 (eval "$ac_try") 2>&5
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); }; } &&
31297 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); }; }; then
31307 ac_cv_struct_tm=time.h
31309 echo "$as_me: failed program was:" >&5
31310 sed 's/^/| /' conftest.$ac_ext >&5
31312 ac_cv_struct_tm=sys/time.h
31315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31317 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31318 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31319 if test $ac_cv_struct_tm = sys/time.h; then
31321 cat >>confdefs.h <<\_ACEOF
31322 #define TM_IN_SYS_TIME 1
31327 { echo "$as_me:$LINENO: checking for int64_t" >&5
31328 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31329 if test "${ac_cv_type_int64_t+set}" = set; then
31330 echo $ECHO_N "(cached) $ECHO_C" >&6
31332 cat >conftest.$ac_ext <<_ACEOF
31335 cat confdefs.h >>conftest.$ac_ext
31336 cat >>conftest.$ac_ext <<_ACEOF
31337 /* end confdefs.h. */
31338 $ac_includes_default
31339 typedef int64_t ac__type_new_;
31343 if ((ac__type_new_ *) 0)
31345 if (sizeof (ac__type_new_))
31351 rm -f conftest.$ac_objext
31352 if { (ac_try="$ac_compile"
31353 case "(($ac_try" in
31354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31355 *) ac_try_echo=$ac_try;;
31357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358 (eval "$ac_compile") 2>conftest.er1
31360 grep -v '^ *+' conftest.er1 >conftest.err
31362 cat conftest.err >&5
31363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364 (exit $ac_status); } &&
31365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31366 { (case "(($ac_try" in
31367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31368 *) ac_try_echo=$ac_try;;
31370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31371 (eval "$ac_try") 2>&5
31373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374 (exit $ac_status); }; } &&
31375 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31384 (exit $ac_status); }; }; then
31385 ac_cv_type_int64_t=yes
31387 echo "$as_me: failed program was:" >&5
31388 sed 's/^/| /' conftest.$ac_ext >&5
31390 ac_cv_type_int64_t=no
31393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31395 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31396 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31397 if test $ac_cv_type_int64_t = yes; then
31399 cat >>confdefs.h <<_ACEOF
31400 #define HAVE_INT64_T 1
31405 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31406 echo "$as_me: error: Type int64_t required but not found" >&2;}
31407 { (exit 1); exit 1; }; }
31410 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31411 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31412 if test "${ac_cv_type_uint64_t+set}" = set; then
31413 echo $ECHO_N "(cached) $ECHO_C" >&6
31415 cat >conftest.$ac_ext <<_ACEOF
31418 cat confdefs.h >>conftest.$ac_ext
31419 cat >>conftest.$ac_ext <<_ACEOF
31420 /* end confdefs.h. */
31421 $ac_includes_default
31422 typedef uint64_t ac__type_new_;
31426 if ((ac__type_new_ *) 0)
31428 if (sizeof (ac__type_new_))
31434 rm -f conftest.$ac_objext
31435 if { (ac_try="$ac_compile"
31436 case "(($ac_try" in
31437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31438 *) ac_try_echo=$ac_try;;
31440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31441 (eval "$ac_compile") 2>conftest.er1
31443 grep -v '^ *+' conftest.er1 >conftest.err
31445 cat conftest.err >&5
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); } &&
31448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31449 { (case "(($ac_try" in
31450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31451 *) ac_try_echo=$ac_try;;
31453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31454 (eval "$ac_try") 2>&5
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); }; } &&
31458 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); }; }; then
31468 ac_cv_type_uint64_t=yes
31470 echo "$as_me: failed program was:" >&5
31471 sed 's/^/| /' conftest.$ac_ext >&5
31473 ac_cv_type_uint64_t=no
31476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31478 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31479 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31480 if test $ac_cv_type_uint64_t = yes; then
31482 cat >>confdefs.h <<_ACEOF
31483 #define HAVE_UINT64_T 1
31488 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31489 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31490 if test "${ac_cv_type_u_int64_t+set}" = set; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31493 cat >conftest.$ac_ext <<_ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499 $ac_includes_default
31500 typedef u_int64_t ac__type_new_;
31504 if ((ac__type_new_ *) 0)
31506 if (sizeof (ac__type_new_))
31512 rm -f conftest.$ac_objext
31513 if { (ac_try="$ac_compile"
31514 case "(($ac_try" in
31515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31516 *) ac_try_echo=$ac_try;;
31518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31519 (eval "$ac_compile") 2>conftest.er1
31521 grep -v '^ *+' conftest.er1 >conftest.err
31523 cat conftest.err >&5
31524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31525 (exit $ac_status); } &&
31526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31527 { (case "(($ac_try" in
31528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31529 *) ac_try_echo=$ac_try;;
31531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31532 (eval "$ac_try") 2>&5
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); }; } &&
31536 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); }; }; then
31546 ac_cv_type_u_int64_t=yes
31548 echo "$as_me: failed program was:" >&5
31549 sed 's/^/| /' conftest.$ac_ext >&5
31551 ac_cv_type_u_int64_t=no
31554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31556 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31557 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31558 if test $ac_cv_type_u_int64_t = yes; then
31560 cat >>confdefs.h <<_ACEOF
31561 #define HAVE_U_INT64_T 1
31566 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31567 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31568 { (exit 1); exit 1; }; }
31582 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31588 echo $ECHO_N "(cached) $ECHO_C" >&6
31590 cat >conftest.$ac_ext <<_ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h. */
31596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31598 #define $ac_func innocuous_$ac_func
31600 /* System header to define __stub macros and hopefully few prototypes,
31601 which can conflict with char $ac_func (); below.
31602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31603 <limits.h> exists even on freestanding compilers. */
31606 # include <limits.h>
31608 # include <assert.h>
31613 /* Override any GCC internal prototype to avoid an error.
31614 Use char because int might match the return type of a GCC
31615 builtin and then its argument prototype would still apply. */
31620 /* The GNU C library defines this for functions which it implements
31621 to always fail with ENOSYS. Some functions are actually named
31622 something starting with __ and the normal name is an alias. */
31623 #if defined __stub_$ac_func || defined __stub___$ac_func
31630 return $ac_func ();
31635 rm -f conftest.$ac_objext conftest$ac_exeext
31636 if { (ac_try="$ac_link"
31637 case "(($ac_try" in
31638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31639 *) ac_try_echo=$ac_try;;
31641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31642 (eval "$ac_link") 2>conftest.er1
31644 grep -v '^ *+' conftest.er1 >conftest.err
31646 cat conftest.err >&5
31647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648 (exit $ac_status); } &&
31649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31650 { (case "(($ac_try" in
31651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31652 *) ac_try_echo=$ac_try;;
31654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31655 (eval "$ac_try") 2>&5
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); }; } &&
31659 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); }; }; then
31669 eval "$as_ac_var=yes"
31671 echo "$as_me: failed program was:" >&5
31672 sed 's/^/| /' conftest.$ac_ext >&5
31674 eval "$as_ac_var=no"
31677 rm -f core conftest.err conftest.$ac_objext \
31678 conftest$ac_exeext conftest.$ac_ext
31680 ac_res=`eval echo '${'$as_ac_var'}'`
31681 { echo "$as_me:$LINENO: result: $ac_res" >&5
31682 echo "${ECHO_T}$ac_res" >&6; }
31683 if test `eval echo '${'$as_ac_var'}'` = yes; then
31684 cat >>confdefs.h <<_ACEOF
31685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31695 for ac_func in powf fmodf strtof round
31697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31701 echo $ECHO_N "(cached) $ECHO_C" >&6
31703 cat >conftest.$ac_ext <<_ACEOF
31706 cat confdefs.h >>conftest.$ac_ext
31707 cat >>conftest.$ac_ext <<_ACEOF
31708 /* end confdefs.h. */
31709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31711 #define $ac_func innocuous_$ac_func
31713 /* System header to define __stub macros and hopefully few prototypes,
31714 which can conflict with char $ac_func (); below.
31715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31716 <limits.h> exists even on freestanding compilers. */
31719 # include <limits.h>
31721 # include <assert.h>
31726 /* Override any GCC internal prototype to avoid an error.
31727 Use char because int might match the return type of a GCC
31728 builtin and then its argument prototype would still apply. */
31733 /* The GNU C library defines this for functions which it implements
31734 to always fail with ENOSYS. Some functions are actually named
31735 something starting with __ and the normal name is an alias. */
31736 #if defined __stub_$ac_func || defined __stub___$ac_func
31743 return $ac_func ();
31748 rm -f conftest.$ac_objext conftest$ac_exeext
31749 if { (ac_try="$ac_link"
31750 case "(($ac_try" in
31751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752 *) ac_try_echo=$ac_try;;
31754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755 (eval "$ac_link") 2>conftest.er1
31757 grep -v '^ *+' conftest.er1 >conftest.err
31759 cat conftest.err >&5
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 (exit $ac_status); } &&
31762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31763 { (case "(($ac_try" in
31764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765 *) ac_try_echo=$ac_try;;
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768 (eval "$ac_try") 2>&5
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); }; } &&
31772 { ac_try='test -s conftest$ac_exeext'
31773 { (case "(($ac_try" in
31774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775 *) ac_try_echo=$ac_try;;
31777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778 (eval "$ac_try") 2>&5
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); }; }; then
31782 eval "$as_ac_var=yes"
31784 echo "$as_me: failed program was:" >&5
31785 sed 's/^/| /' conftest.$ac_ext >&5
31787 eval "$as_ac_var=no"
31790 rm -f core conftest.err conftest.$ac_objext \
31791 conftest$ac_exeext conftest.$ac_ext
31793 ac_res=`eval echo '${'$as_ac_var'}'`
31794 { echo "$as_me:$LINENO: result: $ac_res" >&5
31795 echo "${ECHO_T}$ac_res" >&6; }
31796 if test `eval echo '${'$as_ac_var'}'` = yes; then
31797 cat >>confdefs.h <<_ACEOF
31798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31809 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31815 echo $ECHO_N "(cached) $ECHO_C" >&6
31817 cat >conftest.$ac_ext <<_ACEOF
31820 cat confdefs.h >>conftest.$ac_ext
31821 cat >>conftest.$ac_ext <<_ACEOF
31822 /* end confdefs.h. */
31823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31825 #define $ac_func innocuous_$ac_func
31827 /* System header to define __stub macros and hopefully few prototypes,
31828 which can conflict with char $ac_func (); below.
31829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31830 <limits.h> exists even on freestanding compilers. */
31833 # include <limits.h>
31835 # include <assert.h>
31840 /* Override any GCC internal prototype to avoid an error.
31841 Use char because int might match the return type of a GCC
31842 builtin and then its argument prototype would still apply. */
31847 /* The GNU C library defines this for functions which it implements
31848 to always fail with ENOSYS. Some functions are actually named
31849 something starting with __ and the normal name is an alias. */
31850 #if defined __stub_$ac_func || defined __stub___$ac_func
31857 return $ac_func ();
31862 rm -f conftest.$ac_objext conftest$ac_exeext
31863 if { (ac_try="$ac_link"
31864 case "(($ac_try" in
31865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31866 *) ac_try_echo=$ac_try;;
31868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31869 (eval "$ac_link") 2>conftest.er1
31871 grep -v '^ *+' conftest.er1 >conftest.err
31873 cat conftest.err >&5
31874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875 (exit $ac_status); } &&
31876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31877 { (case "(($ac_try" in
31878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31879 *) ac_try_echo=$ac_try;;
31881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31882 (eval "$ac_try") 2>&5
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); }; } &&
31886 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
31894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895 (exit $ac_status); }; }; then
31896 eval "$as_ac_var=yes"
31898 echo "$as_me: failed program was:" >&5
31899 sed 's/^/| /' conftest.$ac_ext >&5
31901 eval "$as_ac_var=no"
31904 rm -f core conftest.err conftest.$ac_objext \
31905 conftest$ac_exeext conftest.$ac_ext
31907 ac_res=`eval echo '${'$as_ac_var'}'`
31908 { echo "$as_me:$LINENO: result: $ac_res" >&5
31909 echo "${ECHO_T}$ac_res" >&6; }
31910 if test `eval echo '${'$as_ac_var'}'` = yes; then
31911 cat >>confdefs.h <<_ACEOF
31912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31921 for ac_func in isatty mkdtemp mkstemp
31923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31927 echo $ECHO_N "(cached) $ECHO_C" >&6
31929 cat >conftest.$ac_ext <<_ACEOF
31932 cat confdefs.h >>conftest.$ac_ext
31933 cat >>conftest.$ac_ext <<_ACEOF
31934 /* end confdefs.h. */
31935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31937 #define $ac_func innocuous_$ac_func
31939 /* System header to define __stub macros and hopefully few prototypes,
31940 which can conflict with char $ac_func (); below.
31941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31942 <limits.h> exists even on freestanding compilers. */
31945 # include <limits.h>
31947 # include <assert.h>
31952 /* Override any GCC internal prototype to avoid an error.
31953 Use char because int might match the return type of a GCC
31954 builtin and then its argument prototype would still apply. */
31959 /* The GNU C library defines this for functions which it implements
31960 to always fail with ENOSYS. Some functions are actually named
31961 something starting with __ and the normal name is an alias. */
31962 #if defined __stub_$ac_func || defined __stub___$ac_func
31969 return $ac_func ();
31974 rm -f conftest.$ac_objext conftest$ac_exeext
31975 if { (ac_try="$ac_link"
31976 case "(($ac_try" in
31977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31978 *) ac_try_echo=$ac_try;;
31980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31981 (eval "$ac_link") 2>conftest.er1
31983 grep -v '^ *+' conftest.er1 >conftest.err
31985 cat conftest.err >&5
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); } &&
31988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31989 { (case "(($ac_try" in
31990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31991 *) ac_try_echo=$ac_try;;
31993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31994 (eval "$ac_try") 2>&5
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); }; } &&
31998 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
32006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007 (exit $ac_status); }; }; then
32008 eval "$as_ac_var=yes"
32010 echo "$as_me: failed program was:" >&5
32011 sed 's/^/| /' conftest.$ac_ext >&5
32013 eval "$as_ac_var=no"
32016 rm -f core conftest.err conftest.$ac_objext \
32017 conftest$ac_exeext conftest.$ac_ext
32019 ac_res=`eval echo '${'$as_ac_var'}'`
32020 { echo "$as_me:$LINENO: result: $ac_res" >&5
32021 echo "${ECHO_T}$ac_res" >&6; }
32022 if test `eval echo '${'$as_ac_var'}'` = yes; then
32023 cat >>confdefs.h <<_ACEOF
32024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32035 for ac_func in mktemp realpath sbrk setrlimit strdup
32037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32041 echo $ECHO_N "(cached) $ECHO_C" >&6
32043 cat >conftest.$ac_ext <<_ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h. */
32049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32051 #define $ac_func innocuous_$ac_func
32053 /* System header to define __stub macros and hopefully few prototypes,
32054 which can conflict with char $ac_func (); below.
32055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32056 <limits.h> exists even on freestanding compilers. */
32059 # include <limits.h>
32061 # include <assert.h>
32066 /* Override any GCC internal prototype to avoid an error.
32067 Use char because int might match the return type of a GCC
32068 builtin and then its argument prototype would still apply. */
32073 /* The GNU C library defines this for functions which it implements
32074 to always fail with ENOSYS. Some functions are actually named
32075 something starting with __ and the normal name is an alias. */
32076 #if defined __stub_$ac_func || defined __stub___$ac_func
32083 return $ac_func ();
32088 rm -f conftest.$ac_objext conftest$ac_exeext
32089 if { (ac_try="$ac_link"
32090 case "(($ac_try" in
32091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092 *) ac_try_echo=$ac_try;;
32094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32095 (eval "$ac_link") 2>conftest.er1
32097 grep -v '^ *+' conftest.er1 >conftest.err
32099 cat conftest.err >&5
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); } &&
32102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32103 { (case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_try") 2>&5
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); }; } &&
32112 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); }; }; then
32122 eval "$as_ac_var=yes"
32124 echo "$as_me: failed program was:" >&5
32125 sed 's/^/| /' conftest.$ac_ext >&5
32127 eval "$as_ac_var=no"
32130 rm -f core conftest.err conftest.$ac_objext \
32131 conftest$ac_exeext conftest.$ac_ext
32133 ac_res=`eval echo '${'$as_ac_var'}'`
32134 { echo "$as_me:$LINENO: result: $ac_res" >&5
32135 echo "${ECHO_T}$ac_res" >&6; }
32136 if test `eval echo '${'$as_ac_var'}'` = yes; then
32137 cat >>confdefs.h <<_ACEOF
32138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32148 for ac_func in strerror strerror_r strerror_s setenv
32150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32154 echo $ECHO_N "(cached) $ECHO_C" >&6
32156 cat >conftest.$ac_ext <<_ACEOF
32159 cat confdefs.h >>conftest.$ac_ext
32160 cat >>conftest.$ac_ext <<_ACEOF
32161 /* end confdefs.h. */
32162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32164 #define $ac_func innocuous_$ac_func
32166 /* System header to define __stub macros and hopefully few prototypes,
32167 which can conflict with char $ac_func (); below.
32168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32169 <limits.h> exists even on freestanding compilers. */
32172 # include <limits.h>
32174 # include <assert.h>
32179 /* Override any GCC internal prototype to avoid an error.
32180 Use char because int might match the return type of a GCC
32181 builtin and then its argument prototype would still apply. */
32186 /* The GNU C library defines this for functions which it implements
32187 to always fail with ENOSYS. Some functions are actually named
32188 something starting with __ and the normal name is an alias. */
32189 #if defined __stub_$ac_func || defined __stub___$ac_func
32196 return $ac_func ();
32201 rm -f conftest.$ac_objext conftest$ac_exeext
32202 if { (ac_try="$ac_link"
32203 case "(($ac_try" in
32204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205 *) ac_try_echo=$ac_try;;
32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208 (eval "$ac_link") 2>conftest.er1
32210 grep -v '^ *+' conftest.er1 >conftest.err
32212 cat conftest.err >&5
32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214 (exit $ac_status); } &&
32215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32216 { (case "(($ac_try" in
32217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32218 *) ac_try_echo=$ac_try;;
32220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32221 (eval "$ac_try") 2>&5
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); }; } &&
32225 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; }; then
32235 eval "$as_ac_var=yes"
32237 echo "$as_me: failed program was:" >&5
32238 sed 's/^/| /' conftest.$ac_ext >&5
32240 eval "$as_ac_var=no"
32243 rm -f core conftest.err conftest.$ac_objext \
32244 conftest$ac_exeext conftest.$ac_ext
32246 ac_res=`eval echo '${'$as_ac_var'}'`
32247 { echo "$as_me:$LINENO: result: $ac_res" >&5
32248 echo "${ECHO_T}$ac_res" >&6; }
32249 if test `eval echo '${'$as_ac_var'}'` = yes; then
32250 cat >>confdefs.h <<_ACEOF
32251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32261 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32267 echo $ECHO_N "(cached) $ECHO_C" >&6
32269 cat >conftest.$ac_ext <<_ACEOF
32272 cat confdefs.h >>conftest.$ac_ext
32273 cat >>conftest.$ac_ext <<_ACEOF
32274 /* end confdefs.h. */
32275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32277 #define $ac_func innocuous_$ac_func
32279 /* System header to define __stub macros and hopefully few prototypes,
32280 which can conflict with char $ac_func (); below.
32281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32282 <limits.h> exists even on freestanding compilers. */
32285 # include <limits.h>
32287 # include <assert.h>
32292 /* Override any GCC internal prototype to avoid an error.
32293 Use char because int might match the return type of a GCC
32294 builtin and then its argument prototype would still apply. */
32299 /* The GNU C library defines this for functions which it implements
32300 to always fail with ENOSYS. Some functions are actually named
32301 something starting with __ and the normal name is an alias. */
32302 #if defined __stub_$ac_func || defined __stub___$ac_func
32309 return $ac_func ();
32314 rm -f conftest.$ac_objext conftest$ac_exeext
32315 if { (ac_try="$ac_link"
32316 case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_link") 2>conftest.er1
32323 grep -v '^ *+' conftest.er1 >conftest.err
32325 cat conftest.err >&5
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); } &&
32328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32329 { (case "(($ac_try" in
32330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32331 *) ac_try_echo=$ac_try;;
32333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32334 (eval "$ac_try") 2>&5
32336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32337 (exit $ac_status); }; } &&
32338 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
32346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32347 (exit $ac_status); }; }; then
32348 eval "$as_ac_var=yes"
32350 echo "$as_me: failed program was:" >&5
32351 sed 's/^/| /' conftest.$ac_ext >&5
32353 eval "$as_ac_var=no"
32356 rm -f core conftest.err conftest.$ac_objext \
32357 conftest$ac_exeext conftest.$ac_ext
32359 ac_res=`eval echo '${'$as_ac_var'}'`
32360 { echo "$as_me:$LINENO: result: $ac_res" >&5
32361 echo "${ECHO_T}$ac_res" >&6; }
32362 if test `eval echo '${'$as_ac_var'}'` = yes; then
32363 cat >>confdefs.h <<_ACEOF
32364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32374 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32380 echo $ECHO_N "(cached) $ECHO_C" >&6
32382 cat >conftest.$ac_ext <<_ACEOF
32385 cat confdefs.h >>conftest.$ac_ext
32386 cat >>conftest.$ac_ext <<_ACEOF
32387 /* end confdefs.h. */
32388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32390 #define $ac_func innocuous_$ac_func
32392 /* System header to define __stub macros and hopefully few prototypes,
32393 which can conflict with char $ac_func (); below.
32394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32395 <limits.h> exists even on freestanding compilers. */
32398 # include <limits.h>
32400 # include <assert.h>
32405 /* Override any GCC internal prototype to avoid an error.
32406 Use char because int might match the return type of a GCC
32407 builtin and then its argument prototype would still apply. */
32412 /* The GNU C library defines this for functions which it implements
32413 to always fail with ENOSYS. Some functions are actually named
32414 something starting with __ and the normal name is an alias. */
32415 #if defined __stub_$ac_func || defined __stub___$ac_func
32422 return $ac_func ();
32427 rm -f conftest.$ac_objext conftest$ac_exeext
32428 if { (ac_try="$ac_link"
32429 case "(($ac_try" in
32430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32431 *) ac_try_echo=$ac_try;;
32433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32434 (eval "$ac_link") 2>conftest.er1
32436 grep -v '^ *+' conftest.er1 >conftest.err
32438 cat conftest.err >&5
32439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440 (exit $ac_status); } &&
32441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32442 { (case "(($ac_try" in
32443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32444 *) ac_try_echo=$ac_try;;
32446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32447 (eval "$ac_try") 2>&5
32449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450 (exit $ac_status); }; } &&
32451 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); }; }; then
32461 eval "$as_ac_var=yes"
32463 echo "$as_me: failed program was:" >&5
32464 sed 's/^/| /' conftest.$ac_ext >&5
32466 eval "$as_ac_var=no"
32469 rm -f core conftest.err conftest.$ac_objext \
32470 conftest$ac_exeext conftest.$ac_ext
32472 ac_res=`eval echo '${'$as_ac_var'}'`
32473 { echo "$as_me:$LINENO: result: $ac_res" >&5
32474 echo "${ECHO_T}$ac_res" >&6; }
32475 if test `eval echo '${'$as_ac_var'}'` = yes; then
32476 cat >>confdefs.h <<_ACEOF
32477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32483 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32484 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32485 if test "${llvm_cv_c_printf_a+set}" = set; then
32486 echo $ECHO_N "(cached) $ECHO_C" >&6
32489 ac_cpp='$CPP $CPPFLAGS'
32490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32494 if test "$cross_compiling" = yes; then
32495 llvmac_cv_c_printf_a=no
32497 cat >conftest.$ac_ext <<_ACEOF
32501 cat confdefs.h >>conftest.$ac_ext
32502 cat >>conftest.$ac_ext <<_ACEOF
32503 /* end confdefs.h. */
32506 #include <stdlib.h>
32512 volatile double A, B;
32516 sprintf(Buffer, "%a", A);
32520 if (A != 0x1.999999999999ap-4)
32527 rm -f conftest$ac_exeext
32528 if { (ac_try="$ac_link"
32529 case "(($ac_try" in
32530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32531 *) ac_try_echo=$ac_try;;
32533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32534 (eval "$ac_link") 2>&5
32536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32538 { (case "(($ac_try" in
32539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540 *) ac_try_echo=$ac_try;;
32542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543 (eval "$ac_try") 2>&5
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
32547 llvm_cv_c_printf_a=yes
32549 echo "$as_me: program exited with status $ac_status" >&5
32550 echo "$as_me: failed program was:" >&5
32551 sed 's/^/| /' conftest.$ac_ext >&5
32553 ( exit $ac_status )
32554 llvmac_cv_c_printf_a=no
32556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32561 ac_cpp='$CPP $CPPFLAGS'
32562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32567 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32568 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32569 if test "$llvm_cv_c_printf_a" = "yes"; then
32571 cat >>confdefs.h <<\_ACEOF
32572 #define HAVE_PRINTF_A 1
32577 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32578 # for constant arguments. Useless!
32579 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32580 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32581 if test "${ac_cv_working_alloca_h+set}" = set; then
32582 echo $ECHO_N "(cached) $ECHO_C" >&6
32584 cat >conftest.$ac_ext <<_ACEOF
32587 cat confdefs.h >>conftest.$ac_ext
32588 cat >>conftest.$ac_ext <<_ACEOF
32589 /* end confdefs.h. */
32590 #include <alloca.h>
32594 char *p = (char *) alloca (2 * sizeof (int));
32600 rm -f conftest.$ac_objext conftest$ac_exeext
32601 if { (ac_try="$ac_link"
32602 case "(($ac_try" in
32603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32604 *) ac_try_echo=$ac_try;;
32606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32607 (eval "$ac_link") 2>conftest.er1
32609 grep -v '^ *+' conftest.er1 >conftest.err
32611 cat conftest.err >&5
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); } &&
32614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32615 { (case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_try") 2>&5
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; } &&
32624 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); }; }; then
32634 ac_cv_working_alloca_h=yes
32636 echo "$as_me: failed program was:" >&5
32637 sed 's/^/| /' conftest.$ac_ext >&5
32639 ac_cv_working_alloca_h=no
32642 rm -f core conftest.err conftest.$ac_objext \
32643 conftest$ac_exeext conftest.$ac_ext
32645 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32646 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32647 if test $ac_cv_working_alloca_h = yes; then
32649 cat >>confdefs.h <<\_ACEOF
32650 #define HAVE_ALLOCA_H 1
32655 { echo "$as_me:$LINENO: checking for alloca" >&5
32656 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32657 if test "${ac_cv_func_alloca_works+set}" = set; then
32658 echo $ECHO_N "(cached) $ECHO_C" >&6
32660 cat >conftest.$ac_ext <<_ACEOF
32663 cat confdefs.h >>conftest.$ac_ext
32664 cat >>conftest.$ac_ext <<_ACEOF
32665 /* end confdefs.h. */
32667 # define alloca __builtin_alloca
32670 # include <malloc.h>
32671 # define alloca _alloca
32674 # include <alloca.h>
32679 # ifndef alloca /* predefined by HP cc +Olibcalls */
32690 char *p = (char *) alloca (1);
32696 rm -f conftest.$ac_objext conftest$ac_exeext
32697 if { (ac_try="$ac_link"
32698 case "(($ac_try" in
32699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700 *) ac_try_echo=$ac_try;;
32702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703 (eval "$ac_link") 2>conftest.er1
32705 grep -v '^ *+' conftest.er1 >conftest.err
32707 cat conftest.err >&5
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709 (exit $ac_status); } &&
32710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32711 { (case "(($ac_try" in
32712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32713 *) ac_try_echo=$ac_try;;
32715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32716 (eval "$ac_try") 2>&5
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); }; } &&
32720 { ac_try='test -s conftest$ac_exeext'
32721 { (case "(($ac_try" in
32722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723 *) ac_try_echo=$ac_try;;
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726 (eval "$ac_try") 2>&5
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); }; }; then
32730 ac_cv_func_alloca_works=yes
32732 echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32735 ac_cv_func_alloca_works=no
32738 rm -f core conftest.err conftest.$ac_objext \
32739 conftest$ac_exeext conftest.$ac_ext
32741 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32742 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32744 if test $ac_cv_func_alloca_works = yes; then
32746 cat >>confdefs.h <<\_ACEOF
32747 #define HAVE_ALLOCA 1
32751 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32752 # that cause trouble. Some versions do not even contain alloca or
32753 # contain a buggy version. If you still want to use their alloca,
32754 # use ar to extract alloca.o from them instead of compiling alloca.c.
32756 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32758 cat >>confdefs.h <<\_ACEOF
32763 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32764 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32765 if test "${ac_cv_os_cray+set}" = set; then
32766 echo $ECHO_N "(cached) $ECHO_C" >&6
32768 cat >conftest.$ac_ext <<_ACEOF
32771 cat confdefs.h >>conftest.$ac_ext
32772 cat >>conftest.$ac_ext <<_ACEOF
32773 /* end confdefs.h. */
32774 #if defined CRAY && ! defined CRAY2
32781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32782 $EGREP "webecray" >/dev/null 2>&1; then
32790 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32791 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32792 if test $ac_cv_os_cray = yes; then
32793 for ac_func in _getb67 GETB67 getb67; do
32794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32798 echo $ECHO_N "(cached) $ECHO_C" >&6
32800 cat >conftest.$ac_ext <<_ACEOF
32803 cat confdefs.h >>conftest.$ac_ext
32804 cat >>conftest.$ac_ext <<_ACEOF
32805 /* end confdefs.h. */
32806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32808 #define $ac_func innocuous_$ac_func
32810 /* System header to define __stub macros and hopefully few prototypes,
32811 which can conflict with char $ac_func (); below.
32812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32813 <limits.h> exists even on freestanding compilers. */
32816 # include <limits.h>
32818 # include <assert.h>
32823 /* Override any GCC internal prototype to avoid an error.
32824 Use char because int might match the return type of a GCC
32825 builtin and then its argument prototype would still apply. */
32830 /* The GNU C library defines this for functions which it implements
32831 to always fail with ENOSYS. Some functions are actually named
32832 something starting with __ and the normal name is an alias. */
32833 #if defined __stub_$ac_func || defined __stub___$ac_func
32840 return $ac_func ();
32845 rm -f conftest.$ac_objext conftest$ac_exeext
32846 if { (ac_try="$ac_link"
32847 case "(($ac_try" in
32848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32849 *) ac_try_echo=$ac_try;;
32851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32852 (eval "$ac_link") 2>conftest.er1
32854 grep -v '^ *+' conftest.er1 >conftest.err
32856 cat conftest.err >&5
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); } &&
32859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32860 { (case "(($ac_try" in
32861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32862 *) ac_try_echo=$ac_try;;
32864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32865 (eval "$ac_try") 2>&5
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); }; } &&
32869 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); }; }; then
32879 eval "$as_ac_var=yes"
32881 echo "$as_me: failed program was:" >&5
32882 sed 's/^/| /' conftest.$ac_ext >&5
32884 eval "$as_ac_var=no"
32887 rm -f core conftest.err conftest.$ac_objext \
32888 conftest$ac_exeext conftest.$ac_ext
32890 ac_res=`eval echo '${'$as_ac_var'}'`
32891 { echo "$as_me:$LINENO: result: $ac_res" >&5
32892 echo "${ECHO_T}$ac_res" >&6; }
32893 if test `eval echo '${'$as_ac_var'}'` = yes; then
32895 cat >>confdefs.h <<_ACEOF
32896 #define CRAY_STACKSEG_END $ac_func
32905 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32906 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32907 if test "${ac_cv_c_stack_direction+set}" = set; then
32908 echo $ECHO_N "(cached) $ECHO_C" >&6
32910 if test "$cross_compiling" = yes; then
32911 ac_cv_c_stack_direction=0
32913 cat >conftest.$ac_ext <<_ACEOF
32916 cat confdefs.h >>conftest.$ac_ext
32917 cat >>conftest.$ac_ext <<_ACEOF
32918 /* end confdefs.h. */
32919 $ac_includes_default
32921 find_stack_direction ()
32923 static char *addr = 0;
32928 return find_stack_direction ();
32931 return (&dummy > addr) ? 1 : -1;
32937 return find_stack_direction () < 0;
32940 rm -f conftest$ac_exeext
32941 if { (ac_try="$ac_link"
32942 case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947 (eval "$ac_link") 2>&5
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32951 { (case "(($ac_try" in
32952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32953 *) ac_try_echo=$ac_try;;
32955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32956 (eval "$ac_try") 2>&5
32958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32959 (exit $ac_status); }; }; then
32960 ac_cv_c_stack_direction=1
32962 echo "$as_me: program exited with status $ac_status" >&5
32963 echo "$as_me: failed program was:" >&5
32964 sed 's/^/| /' conftest.$ac_ext >&5
32966 ( exit $ac_status )
32967 ac_cv_c_stack_direction=-1
32969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32974 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32975 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32977 cat >>confdefs.h <<_ACEOF
32978 #define STACK_DIRECTION $ac_cv_c_stack_direction
32985 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32986 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32987 if test "${ac_cv_func_rand48+set}" = set; then
32988 echo $ECHO_N "(cached) $ECHO_C" >&6
32991 ac_cpp='$CXXCPP $CPPFLAGS'
32992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32996 cat >conftest.$ac_ext <<_ACEOF
32999 cat confdefs.h >>conftest.$ac_ext
33000 cat >>conftest.$ac_ext <<_ACEOF
33001 /* end confdefs.h. */
33002 #include <stdlib.h>
33006 srand48(0);lrand48();drand48();
33011 rm -f conftest.$ac_objext
33012 if { (ac_try="$ac_compile"
33013 case "(($ac_try" in
33014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33015 *) ac_try_echo=$ac_try;;
33017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33018 (eval "$ac_compile") 2>conftest.er1
33020 grep -v '^ *+' conftest.er1 >conftest.err
33022 cat conftest.err >&5
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); } &&
33025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33026 { (case "(($ac_try" in
33027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_try") 2>&5
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); }; } &&
33035 { ac_try='test -s conftest.$ac_objext'
33036 { (case "(($ac_try" in
33037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038 *) ac_try_echo=$ac_try;;
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041 (eval "$ac_try") 2>&5
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; }; then
33045 ac_cv_func_rand48=yes
33047 echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33050 ac_cv_func_rand48=no
33053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33055 ac_cpp='$CPP $CPPFLAGS'
33056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33061 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33062 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33064 if test "$ac_cv_func_rand48" = "yes" ; then
33066 cat >>confdefs.h <<\_ACEOF
33067 #define HAVE_RAND48 1
33073 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33074 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33075 if test "${ac_cv_cxx_namespaces+set}" = set; then
33076 echo $ECHO_N "(cached) $ECHO_C" >&6
33079 ac_cpp='$CXXCPP $CPPFLAGS'
33080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33084 cat >conftest.$ac_ext <<_ACEOF
33087 cat confdefs.h >>conftest.$ac_ext
33088 cat >>conftest.$ac_ext <<_ACEOF
33089 /* end confdefs.h. */
33090 namespace Outer { namespace Inner { int i = 0; }}
33094 using namespace Outer::Inner; return i;
33099 rm -f conftest.$ac_objext
33100 if { (ac_try="$ac_compile"
33101 case "(($ac_try" in
33102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103 *) ac_try_echo=$ac_try;;
33105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106 (eval "$ac_compile") 2>conftest.er1
33108 grep -v '^ *+' conftest.er1 >conftest.err
33110 cat conftest.err >&5
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); } &&
33113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33114 { (case "(($ac_try" in
33115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33116 *) ac_try_echo=$ac_try;;
33118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33119 (eval "$ac_try") 2>&5
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; } &&
33123 { ac_try='test -s conftest.$ac_objext'
33124 { (case "(($ac_try" in
33125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126 *) ac_try_echo=$ac_try;;
33128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129 (eval "$ac_try") 2>&5
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); }; }; then
33133 ac_cv_cxx_namespaces=yes
33135 echo "$as_me: failed program was:" >&5
33136 sed 's/^/| /' conftest.$ac_ext >&5
33138 ac_cv_cxx_namespaces=no
33141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33143 ac_cpp='$CPP $CPPFLAGS'
33144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33150 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33151 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33152 if test "$ac_cv_cxx_namespaces" = yes; then
33154 cat >>confdefs.h <<\_ACEOF
33155 #define HAVE_NAMESPACES
33160 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33161 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33162 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33163 echo $ECHO_N "(cached) $ECHO_C" >&6
33167 ac_cpp='$CXXCPP $CPPFLAGS'
33168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33172 cat >conftest.$ac_ext <<_ACEOF
33175 cat confdefs.h >>conftest.$ac_ext
33176 cat >>conftest.$ac_ext <<_ACEOF
33177 /* end confdefs.h. */
33178 #include <iterator>
33179 #ifdef HAVE_NAMESPACES
33180 using namespace std;
33185 iterator<int,int,int> t; return 0;
33190 rm -f conftest.$ac_objext
33191 if { (ac_try="$ac_compile"
33192 case "(($ac_try" in
33193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33194 *) ac_try_echo=$ac_try;;
33196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33197 (eval "$ac_compile") 2>conftest.er1
33199 grep -v '^ *+' conftest.er1 >conftest.err
33201 cat conftest.err >&5
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); } &&
33204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33205 { (case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_try") 2>&5
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); }; } &&
33214 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; }; then
33224 ac_cv_cxx_have_std_iterator=yes
33226 echo "$as_me: failed program was:" >&5
33227 sed 's/^/| /' conftest.$ac_ext >&5
33229 ac_cv_cxx_have_std_iterator=no
33232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33234 ac_cpp='$CPP $CPPFLAGS'
33235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33241 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33242 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33243 if test "$ac_cv_cxx_have_std_iterator" = yes
33246 cat >>confdefs.h <<\_ACEOF
33247 #define HAVE_STD_ITERATOR 1
33252 cat >>confdefs.h <<\_ACEOF
33253 #define HAVE_STD_ITERATOR 0
33258 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33259 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33260 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33261 echo $ECHO_N "(cached) $ECHO_C" >&6
33265 ac_cpp='$CXXCPP $CPPFLAGS'
33266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33270 cat >conftest.$ac_ext <<_ACEOF
33273 cat confdefs.h >>conftest.$ac_ext
33274 cat >>conftest.$ac_ext <<_ACEOF
33275 /* end confdefs.h. */
33276 #include <iterator>
33277 #ifdef HAVE_NAMESPACES
33278 using namespace std;
33283 bidirectional_iterator<int,int> t; return 0;
33288 rm -f conftest.$ac_objext
33289 if { (ac_try="$ac_compile"
33290 case "(($ac_try" in
33291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33292 *) ac_try_echo=$ac_try;;
33294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33295 (eval "$ac_compile") 2>conftest.er1
33297 grep -v '^ *+' conftest.er1 >conftest.err
33299 cat conftest.err >&5
33300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301 (exit $ac_status); } &&
33302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33303 { (case "(($ac_try" in
33304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33305 *) ac_try_echo=$ac_try;;
33307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33308 (eval "$ac_try") 2>&5
33310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311 (exit $ac_status); }; } &&
33312 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); }; }; then
33322 ac_cv_cxx_have_bi_iterator=yes
33324 echo "$as_me: failed program was:" >&5
33325 sed 's/^/| /' conftest.$ac_ext >&5
33327 ac_cv_cxx_have_bi_iterator=no
33330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33332 ac_cpp='$CPP $CPPFLAGS'
33333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33339 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33340 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33341 if test "$ac_cv_cxx_have_bi_iterator" = yes
33344 cat >>confdefs.h <<\_ACEOF
33345 #define HAVE_BI_ITERATOR 1
33350 cat >>confdefs.h <<\_ACEOF
33351 #define HAVE_BI_ITERATOR 0
33356 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33357 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33358 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33359 echo $ECHO_N "(cached) $ECHO_C" >&6
33363 ac_cpp='$CXXCPP $CPPFLAGS'
33364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33368 cat >conftest.$ac_ext <<_ACEOF
33371 cat confdefs.h >>conftest.$ac_ext
33372 cat >>conftest.$ac_ext <<_ACEOF
33373 /* end confdefs.h. */
33374 #include <iterator>
33375 #ifdef HAVE_NAMESPACES
33376 using namespace std;
33381 forward_iterator<int,int> t; return 0;
33386 rm -f conftest.$ac_objext
33387 if { (ac_try="$ac_compile"
33388 case "(($ac_try" in
33389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33390 *) ac_try_echo=$ac_try;;
33392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33393 (eval "$ac_compile") 2>conftest.er1
33395 grep -v '^ *+' conftest.er1 >conftest.err
33397 cat conftest.err >&5
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); } &&
33400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33401 { (case "(($ac_try" in
33402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33403 *) ac_try_echo=$ac_try;;
33405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33406 (eval "$ac_try") 2>&5
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); }; } &&
33410 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
33418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419 (exit $ac_status); }; }; then
33420 ac_cv_cxx_have_fwd_iterator=yes
33422 echo "$as_me: failed program was:" >&5
33423 sed 's/^/| /' conftest.$ac_ext >&5
33425 ac_cv_cxx_have_fwd_iterator=no
33428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33430 ac_cpp='$CPP $CPPFLAGS'
33431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33437 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33438 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33439 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33442 cat >>confdefs.h <<\_ACEOF
33443 #define HAVE_FWD_ITERATOR 1
33448 cat >>confdefs.h <<\_ACEOF
33449 #define HAVE_FWD_ITERATOR 0
33455 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33456 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33457 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33458 echo $ECHO_N "(cached) $ECHO_C" >&6
33461 ac_cpp='$CXXCPP $CPPFLAGS'
33462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33466 cat >conftest.$ac_ext <<_ACEOF
33469 cat confdefs.h >>conftest.$ac_ext
33470 cat >>conftest.$ac_ext <<_ACEOF
33471 /* end confdefs.h. */
33481 rm -f conftest.$ac_objext
33482 if { (ac_try="$ac_compile"
33483 case "(($ac_try" in
33484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33485 *) ac_try_echo=$ac_try;;
33487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33488 (eval "$ac_compile") 2>conftest.er1
33490 grep -v '^ *+' conftest.er1 >conftest.err
33492 cat conftest.err >&5
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); } &&
33495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33496 { (case "(($ac_try" in
33497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33498 *) ac_try_echo=$ac_try;;
33500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33501 (eval "$ac_try") 2>&5
33503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504 (exit $ac_status); }; } &&
33505 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
33513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514 (exit $ac_status); }; }; then
33515 ac_cv_func_isnan_in_math_h=yes
33517 echo "$as_me: failed program was:" >&5
33518 sed 's/^/| /' conftest.$ac_ext >&5
33520 ac_cv_func_isnan_in_math_h=no
33523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33525 ac_cpp='$CPP $CPPFLAGS'
33526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33531 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33532 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33535 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33537 cat >>confdefs.h <<\_ACEOF
33538 #define HAVE_ISNAN_IN_MATH_H 1
33543 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33544 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33545 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33546 echo $ECHO_N "(cached) $ECHO_C" >&6
33549 ac_cpp='$CXXCPP $CPPFLAGS'
33550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33554 cat >conftest.$ac_ext <<_ACEOF
33557 cat confdefs.h >>conftest.$ac_ext
33558 cat >>conftest.$ac_ext <<_ACEOF
33559 /* end confdefs.h. */
33569 rm -f conftest.$ac_objext
33570 if { (ac_try="$ac_compile"
33571 case "(($ac_try" in
33572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33573 *) ac_try_echo=$ac_try;;
33575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33576 (eval "$ac_compile") 2>conftest.er1
33578 grep -v '^ *+' conftest.er1 >conftest.err
33580 cat conftest.err >&5
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); } &&
33583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33584 { (case "(($ac_try" in
33585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33586 *) ac_try_echo=$ac_try;;
33588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33589 (eval "$ac_try") 2>&5
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); }; } &&
33593 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); }; }; then
33603 ac_cv_func_isnan_in_cmath=yes
33605 echo "$as_me: failed program was:" >&5
33606 sed 's/^/| /' conftest.$ac_ext >&5
33608 ac_cv_func_isnan_in_cmath=no
33611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33613 ac_cpp='$CPP $CPPFLAGS'
33614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33619 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33620 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33622 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33624 cat >>confdefs.h <<\_ACEOF
33625 #define HAVE_ISNAN_IN_CMATH 1
33630 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33631 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33632 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33633 echo $ECHO_N "(cached) $ECHO_C" >&6
33636 ac_cpp='$CXXCPP $CPPFLAGS'
33637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33641 cat >conftest.$ac_ext <<_ACEOF
33644 cat confdefs.h >>conftest.$ac_ext
33645 cat >>conftest.$ac_ext <<_ACEOF
33646 /* end confdefs.h. */
33651 float f; std::isnan(f);
33656 rm -f conftest.$ac_objext
33657 if { (ac_try="$ac_compile"
33658 case "(($ac_try" in
33659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33660 *) ac_try_echo=$ac_try;;
33662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33663 (eval "$ac_compile") 2>conftest.er1
33665 grep -v '^ *+' conftest.er1 >conftest.err
33667 cat conftest.err >&5
33668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669 (exit $ac_status); } &&
33670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33671 { (case "(($ac_try" in
33672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673 *) ac_try_echo=$ac_try;;
33675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676 (eval "$ac_try") 2>&5
33678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679 (exit $ac_status); }; } &&
33680 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
33688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689 (exit $ac_status); }; }; then
33690 ac_cv_func_std_isnan_in_cmath=yes
33692 echo "$as_me: failed program was:" >&5
33693 sed 's/^/| /' conftest.$ac_ext >&5
33695 ac_cv_func_std_isnan_in_cmath=no
33698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33700 ac_cpp='$CPP $CPPFLAGS'
33701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33706 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33707 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33709 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33711 cat >>confdefs.h <<\_ACEOF
33712 #define HAVE_STD_ISNAN_IN_CMATH 1
33718 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33719 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33720 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33721 echo $ECHO_N "(cached) $ECHO_C" >&6
33724 ac_cpp='$CXXCPP $CPPFLAGS'
33725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33729 cat >conftest.$ac_ext <<_ACEOF
33732 cat confdefs.h >>conftest.$ac_ext
33733 cat >>conftest.$ac_ext <<_ACEOF
33734 /* end confdefs.h. */
33744 rm -f conftest.$ac_objext
33745 if { (ac_try="$ac_compile"
33746 case "(($ac_try" in
33747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33748 *) ac_try_echo=$ac_try;;
33750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33751 (eval "$ac_compile") 2>conftest.er1
33753 grep -v '^ *+' conftest.er1 >conftest.err
33755 cat conftest.err >&5
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); } &&
33758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33759 { (case "(($ac_try" in
33760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761 *) ac_try_echo=$ac_try;;
33763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764 (eval "$ac_try") 2>&5
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); }; } &&
33768 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
33776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33777 (exit $ac_status); }; }; then
33778 ac_cv_func_isinf_in_math_h=yes
33780 echo "$as_me: failed program was:" >&5
33781 sed 's/^/| /' conftest.$ac_ext >&5
33783 ac_cv_func_isinf_in_math_h=no
33786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33788 ac_cpp='$CPP $CPPFLAGS'
33789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33794 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33795 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33797 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33799 cat >>confdefs.h <<\_ACEOF
33800 #define HAVE_ISINF_IN_MATH_H 1
33805 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33806 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33807 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33808 echo $ECHO_N "(cached) $ECHO_C" >&6
33811 ac_cpp='$CXXCPP $CPPFLAGS'
33812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33816 cat >conftest.$ac_ext <<_ACEOF
33819 cat confdefs.h >>conftest.$ac_ext
33820 cat >>conftest.$ac_ext <<_ACEOF
33821 /* end confdefs.h. */
33831 rm -f conftest.$ac_objext
33832 if { (ac_try="$ac_compile"
33833 case "(($ac_try" in
33834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33835 *) ac_try_echo=$ac_try;;
33837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33838 (eval "$ac_compile") 2>conftest.er1
33840 grep -v '^ *+' conftest.er1 >conftest.err
33842 cat conftest.err >&5
33843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 (exit $ac_status); } &&
33845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33846 { (case "(($ac_try" in
33847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33848 *) ac_try_echo=$ac_try;;
33850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33851 (eval "$ac_try") 2>&5
33853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854 (exit $ac_status); }; } &&
33855 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); }; }; then
33865 ac_cv_func_isinf_in_cmath=yes
33867 echo "$as_me: failed program was:" >&5
33868 sed 's/^/| /' conftest.$ac_ext >&5
33870 ac_cv_func_isinf_in_cmath=no
33873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33875 ac_cpp='$CPP $CPPFLAGS'
33876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33881 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33882 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33884 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33886 cat >>confdefs.h <<\_ACEOF
33887 #define HAVE_ISINF_IN_CMATH 1
33892 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33893 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33894 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33895 echo $ECHO_N "(cached) $ECHO_C" >&6
33898 ac_cpp='$CXXCPP $CPPFLAGS'
33899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33903 cat >conftest.$ac_ext <<_ACEOF
33906 cat confdefs.h >>conftest.$ac_ext
33907 cat >>conftest.$ac_ext <<_ACEOF
33908 /* end confdefs.h. */
33913 float f; std::isinf(f)}
33918 rm -f conftest.$ac_objext
33919 if { (ac_try="$ac_compile"
33920 case "(($ac_try" in
33921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33922 *) ac_try_echo=$ac_try;;
33924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33925 (eval "$ac_compile") 2>conftest.er1
33927 grep -v '^ *+' conftest.er1 >conftest.err
33929 cat conftest.err >&5
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); } &&
33932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33933 { (case "(($ac_try" in
33934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33935 *) ac_try_echo=$ac_try;;
33937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33938 (eval "$ac_try") 2>&5
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; } &&
33942 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
33950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); }; }; then
33952 ac_cv_func_std_isinf_in_cmath=yes
33954 echo "$as_me: failed program was:" >&5
33955 sed 's/^/| /' conftest.$ac_ext >&5
33957 ac_cv_func_std_isinf_in_cmath=no
33960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33962 ac_cpp='$CPP $CPPFLAGS'
33963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33968 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33969 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33971 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33973 cat >>confdefs.h <<\_ACEOF
33974 #define HAVE_STD_ISINF_IN_CMATH 1
33979 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33980 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33981 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33982 echo $ECHO_N "(cached) $ECHO_C" >&6
33985 ac_cpp='$CXXCPP $CPPFLAGS'
33986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33990 cat >conftest.$ac_ext <<_ACEOF
33993 cat confdefs.h >>conftest.$ac_ext
33994 cat >>conftest.$ac_ext <<_ACEOF
33995 /* end confdefs.h. */
33996 #include <ieeefp.h>
34000 float f; finite(f);
34005 rm -f conftest.$ac_objext
34006 if { (ac_try="$ac_compile"
34007 case "(($ac_try" in
34008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34009 *) ac_try_echo=$ac_try;;
34011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34012 (eval "$ac_compile") 2>conftest.er1
34014 grep -v '^ *+' conftest.er1 >conftest.err
34016 cat conftest.err >&5
34017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018 (exit $ac_status); } &&
34019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34020 { (case "(($ac_try" in
34021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34022 *) ac_try_echo=$ac_try;;
34024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34025 (eval "$ac_try") 2>&5
34027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028 (exit $ac_status); }; } &&
34029 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
34037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038 (exit $ac_status); }; }; then
34039 ac_cv_func_finite_in_ieeefp_h=yes
34041 echo "$as_me: failed program was:" >&5
34042 sed 's/^/| /' conftest.$ac_ext >&5
34044 ac_cv_func_finite_in_ieeefp_h=no
34047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34049 ac_cpp='$CPP $CPPFLAGS'
34050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34055 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34056 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34058 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34060 cat >>confdefs.h <<\_ACEOF
34061 #define HAVE_FINITE_IN_IEEEFP_H 1
34068 if test "$llvm_cv_platform_type" = "Unix" ; then
34071 for ac_header in stdlib.h unistd.h
34073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34078 echo $ECHO_N "(cached) $ECHO_C" >&6
34080 ac_res=`eval echo '${'$as_ac_Header'}'`
34081 { echo "$as_me:$LINENO: result: $ac_res" >&5
34082 echo "${ECHO_T}$ac_res" >&6; }
34084 # Is the header compilable?
34085 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34087 cat >conftest.$ac_ext <<_ACEOF
34090 cat confdefs.h >>conftest.$ac_ext
34091 cat >>conftest.$ac_ext <<_ACEOF
34092 /* end confdefs.h. */
34093 $ac_includes_default
34094 #include <$ac_header>
34096 rm -f conftest.$ac_objext
34097 if { (ac_try="$ac_compile"
34098 case "(($ac_try" in
34099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34100 *) ac_try_echo=$ac_try;;
34102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103 (eval "$ac_compile") 2>conftest.er1
34105 grep -v '^ *+' conftest.er1 >conftest.err
34107 cat conftest.err >&5
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); } &&
34110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34111 { (case "(($ac_try" in
34112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34113 *) ac_try_echo=$ac_try;;
34115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34116 (eval "$ac_try") 2>&5
34118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119 (exit $ac_status); }; } &&
34120 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
34128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129 (exit $ac_status); }; }; then
34130 ac_header_compiler=yes
34132 echo "$as_me: failed program was:" >&5
34133 sed 's/^/| /' conftest.$ac_ext >&5
34135 ac_header_compiler=no
34138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34140 echo "${ECHO_T}$ac_header_compiler" >&6; }
34142 # Is the header present?
34143 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34145 cat >conftest.$ac_ext <<_ACEOF
34148 cat confdefs.h >>conftest.$ac_ext
34149 cat >>conftest.$ac_ext <<_ACEOF
34150 /* end confdefs.h. */
34151 #include <$ac_header>
34153 if { (ac_try="$ac_cpp conftest.$ac_ext"
34154 case "(($ac_try" in
34155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34156 *) ac_try_echo=$ac_try;;
34158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34161 grep -v '^ *+' conftest.er1 >conftest.err
34163 cat conftest.err >&5
34164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165 (exit $ac_status); } >/dev/null; then
34166 if test -s conftest.err; then
34167 ac_cpp_err=$ac_c_preproc_warn_flag
34168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34175 if test -z "$ac_cpp_err"; then
34176 ac_header_preproc=yes
34178 echo "$as_me: failed program was:" >&5
34179 sed 's/^/| /' conftest.$ac_ext >&5
34181 ac_header_preproc=no
34184 rm -f conftest.err conftest.$ac_ext
34185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34186 echo "${ECHO_T}$ac_header_preproc" >&6; }
34188 # So? What about this header?
34189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34195 ac_header_preproc=yes
34198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34211 ## ----------------------------------- ##
34212 ## Report this to llvmbugs@cs.uiuc.edu ##
34213 ## ----------------------------------- ##
34215 ) | sed "s/^/$as_me: WARNING: /" >&2
34218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34221 echo $ECHO_N "(cached) $ECHO_C" >&6
34223 eval "$as_ac_Header=\$ac_header_preproc"
34225 ac_res=`eval echo '${'$as_ac_Header'}'`
34226 { echo "$as_me:$LINENO: result: $ac_res" >&5
34227 echo "${ECHO_T}$ac_res" >&6; }
34230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34231 cat >>confdefs.h <<_ACEOF
34232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34240 for ac_func in getpagesize
34242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34246 echo $ECHO_N "(cached) $ECHO_C" >&6
34248 cat >conftest.$ac_ext <<_ACEOF
34251 cat confdefs.h >>conftest.$ac_ext
34252 cat >>conftest.$ac_ext <<_ACEOF
34253 /* end confdefs.h. */
34254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34256 #define $ac_func innocuous_$ac_func
34258 /* System header to define __stub macros and hopefully few prototypes,
34259 which can conflict with char $ac_func (); below.
34260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34261 <limits.h> exists even on freestanding compilers. */
34264 # include <limits.h>
34266 # include <assert.h>
34271 /* Override any GCC internal prototype to avoid an error.
34272 Use char because int might match the return type of a GCC
34273 builtin and then its argument prototype would still apply. */
34278 /* The GNU C library defines this for functions which it implements
34279 to always fail with ENOSYS. Some functions are actually named
34280 something starting with __ and the normal name is an alias. */
34281 #if defined __stub_$ac_func || defined __stub___$ac_func
34288 return $ac_func ();
34293 rm -f conftest.$ac_objext conftest$ac_exeext
34294 if { (ac_try="$ac_link"
34295 case "(($ac_try" in
34296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34297 *) ac_try_echo=$ac_try;;
34299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34300 (eval "$ac_link") 2>conftest.er1
34302 grep -v '^ *+' conftest.er1 >conftest.err
34304 cat conftest.err >&5
34305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306 (exit $ac_status); } &&
34307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34308 { (case "(($ac_try" in
34309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34310 *) ac_try_echo=$ac_try;;
34312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34313 (eval "$ac_try") 2>&5
34315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316 (exit $ac_status); }; } &&
34317 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); }; }; then
34327 eval "$as_ac_var=yes"
34329 echo "$as_me: failed program was:" >&5
34330 sed 's/^/| /' conftest.$ac_ext >&5
34332 eval "$as_ac_var=no"
34335 rm -f core conftest.err conftest.$ac_objext \
34336 conftest$ac_exeext conftest.$ac_ext
34338 ac_res=`eval echo '${'$as_ac_var'}'`
34339 { echo "$as_me:$LINENO: result: $ac_res" >&5
34340 echo "${ECHO_T}$ac_res" >&6; }
34341 if test `eval echo '${'$as_ac_var'}'` = yes; then
34342 cat >>confdefs.h <<_ACEOF
34343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34349 { echo "$as_me:$LINENO: checking for working mmap" >&5
34350 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34351 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34352 echo $ECHO_N "(cached) $ECHO_C" >&6
34354 if test "$cross_compiling" = yes; then
34355 ac_cv_func_mmap_fixed_mapped=no
34357 cat >conftest.$ac_ext <<_ACEOF
34360 cat confdefs.h >>conftest.$ac_ext
34361 cat >>conftest.$ac_ext <<_ACEOF
34362 /* end confdefs.h. */
34363 $ac_includes_default
34364 /* malloc might have been renamed as rpl_malloc. */
34367 /* Thanks to Mike Haertel and Jim Avera for this test.
34368 Here is a matrix of mmap possibilities:
34369 mmap private not fixed
34370 mmap private fixed at somewhere currently unmapped
34371 mmap private fixed at somewhere already mapped
34372 mmap shared not fixed
34373 mmap shared fixed at somewhere currently unmapped
34374 mmap shared fixed at somewhere already mapped
34375 For private mappings, we should verify that changes cannot be read()
34376 back from the file, nor mmap's back from the file at a different
34377 address. (There have been systems where private was not correctly
34378 implemented like the infamous i386 svr4.0, and systems where the
34379 VM page cache was not coherent with the file system buffer cache
34380 like early versions of FreeBSD and possibly contemporary NetBSD.)
34381 For shared mappings, we should conversely verify that changes get
34382 propagated back to all the places they're supposed to be.
34384 Grep wants private fixed already mapped.
34385 The main things grep needs to know about mmap are:
34386 * does it exist and is it safe to write into the mmap'd area
34387 * how to use it (BSD variants) */
34390 #include <sys/mman.h>
34392 #if !STDC_HEADERS && !HAVE_STDLIB_H
34396 /* This mess was copied from the GNU getpagesize.h. */
34397 #if !HAVE_GETPAGESIZE
34398 /* Assume that all systems that can run configure have sys/param.h. */
34399 # if !HAVE_SYS_PARAM_H
34400 # define HAVE_SYS_PARAM_H 1
34403 # ifdef _SC_PAGESIZE
34404 # define getpagesize() sysconf(_SC_PAGESIZE)
34405 # else /* no _SC_PAGESIZE */
34406 # if HAVE_SYS_PARAM_H
34407 # include <sys/param.h>
34408 # ifdef EXEC_PAGESIZE
34409 # define getpagesize() EXEC_PAGESIZE
34410 # else /* no EXEC_PAGESIZE */
34412 # define getpagesize() NBPG * CLSIZE
34415 # endif /* no CLSIZE */
34416 # else /* no NBPG */
34418 # define getpagesize() NBPC
34419 # else /* no NBPC */
34421 # define getpagesize() PAGESIZE
34422 # endif /* PAGESIZE */
34423 # endif /* no NBPC */
34424 # endif /* no NBPG */
34425 # endif /* no EXEC_PAGESIZE */
34426 # else /* no HAVE_SYS_PARAM_H */
34427 # define getpagesize() 8192 /* punt totally */
34428 # endif /* no HAVE_SYS_PARAM_H */
34429 # endif /* no _SC_PAGESIZE */
34431 #endif /* no HAVE_GETPAGESIZE */
34436 char *data, *data2, *data3;
34440 pagesize = getpagesize ();
34442 /* First, make a file with some known garbage in it. */
34443 data = (char *) malloc (pagesize);
34446 for (i = 0; i < pagesize; ++i)
34447 *(data + i) = rand ();
34449 fd = creat ("conftest.mmap", 0600);
34452 if (write (fd, data, pagesize) != pagesize)
34456 /* Next, try to mmap the file at a fixed address which already has
34457 something else allocated at it. If we can, also make sure that
34458 we see the same garbage. */
34459 fd = open ("conftest.mmap", O_RDWR);
34462 data2 = (char *) malloc (2 * pagesize);
34465 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34466 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34467 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34469 for (i = 0; i < pagesize; ++i)
34470 if (*(data + i) != *(data2 + i))
34473 /* Finally, make sure that changes to the mapped area do not
34474 percolate back to the file as seen by read(). (This is a bug on
34475 some variants of i386 svr4.0.) */
34476 for (i = 0; i < pagesize; ++i)
34477 *(data2 + i) = *(data2 + i) + 1;
34478 data3 = (char *) malloc (pagesize);
34481 if (read (fd, data3, pagesize) != pagesize)
34483 for (i = 0; i < pagesize; ++i)
34484 if (*(data + i) != *(data3 + i))
34490 rm -f conftest$ac_exeext
34491 if { (ac_try="$ac_link"
34492 case "(($ac_try" in
34493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34494 *) ac_try_echo=$ac_try;;
34496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34497 (eval "$ac_link") 2>&5
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34501 { (case "(($ac_try" in
34502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34503 *) ac_try_echo=$ac_try;;
34505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34506 (eval "$ac_try") 2>&5
34508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34509 (exit $ac_status); }; }; then
34510 ac_cv_func_mmap_fixed_mapped=yes
34512 echo "$as_me: program exited with status $ac_status" >&5
34513 echo "$as_me: failed program was:" >&5
34514 sed 's/^/| /' conftest.$ac_ext >&5
34516 ( exit $ac_status )
34517 ac_cv_func_mmap_fixed_mapped=no
34519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34524 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34525 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34526 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34528 cat >>confdefs.h <<\_ACEOF
34529 #define HAVE_MMAP 1
34533 rm -f conftest.mmap
34535 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34536 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34537 if test "${ac_cv_func_mmap_file+set}" = set; then
34538 echo $ECHO_N "(cached) $ECHO_C" >&6
34541 ac_cpp='$CPP $CPPFLAGS'
34542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34546 if test "$cross_compiling" = yes; then
34547 ac_cv_func_mmap_file=no
34549 cat >conftest.$ac_ext <<_ACEOF
34553 cat confdefs.h >>conftest.$ac_ext
34554 cat >>conftest.$ac_ext <<_ACEOF
34555 /* end confdefs.h. */
34557 #include <sys/types.h>
34558 #include <sys/mman.h>
34566 fd = creat ("foo",0777);
34567 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34569 return (fd != (int) MAP_FAILED);
34574 rm -f conftest$ac_exeext
34575 if { (ac_try="$ac_link"
34576 case "(($ac_try" in
34577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34578 *) ac_try_echo=$ac_try;;
34580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34581 (eval "$ac_link") 2>&5
34583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34585 { (case "(($ac_try" in
34586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34587 *) ac_try_echo=$ac_try;;
34589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34590 (eval "$ac_try") 2>&5
34592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593 (exit $ac_status); }; }; then
34594 ac_cv_func_mmap_file=yes
34596 echo "$as_me: program exited with status $ac_status" >&5
34597 echo "$as_me: failed program was:" >&5
34598 sed 's/^/| /' conftest.$ac_ext >&5
34600 ( exit $ac_status )
34601 ac_cv_func_mmap_file=no
34603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34608 ac_cpp='$CPP $CPPFLAGS'
34609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34615 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34616 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34617 if test "$ac_cv_func_mmap_file" = yes; then
34619 cat >>confdefs.h <<\_ACEOF
34620 #define HAVE_MMAP_FILE
34627 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34628 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34629 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34630 echo $ECHO_N "(cached) $ECHO_C" >&6
34632 if test "$llvm_cv_os_type" = "Interix" ; then
34633 ac_cv_need_dev_zero_for_mmap=yes
34635 ac_cv_need_dev_zero_for_mmap=no
34639 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34640 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34641 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34643 cat >>confdefs.h <<\_ACEOF
34644 #define NEED_DEV_ZERO_FOR_MMAP 1
34649 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34651 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34652 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34654 if test "$ac_cv_func_mmap_file" = "no"
34656 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34657 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34661 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34662 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34663 cat >conftest.$ac_ext <<_ACEOF
34666 cat confdefs.h >>conftest.$ac_ext
34667 cat >>conftest.$ac_ext <<_ACEOF
34668 /* end confdefs.h. */
34670 volatile unsigned long val = 1;
34671 __sync_synchronize();
34672 __sync_val_compare_and_swap(&val, 1, 0);
34673 __sync_add_and_fetch(&val, 1);
34674 __sync_sub_and_fetch(&val, 1);
34679 rm -f conftest.$ac_objext conftest$ac_exeext
34680 if { (ac_try="$ac_link"
34681 case "(($ac_try" in
34682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34683 *) ac_try_echo=$ac_try;;
34685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34686 (eval "$ac_link") 2>conftest.er1
34688 grep -v '^ *+' conftest.er1 >conftest.err
34690 cat conftest.err >&5
34691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692 (exit $ac_status); } &&
34693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34694 { (case "(($ac_try" in
34695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34696 *) ac_try_echo=$ac_try;;
34698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34699 (eval "$ac_try") 2>&5
34701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702 (exit $ac_status); }; } &&
34703 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
34711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712 (exit $ac_status); }; }; then
34713 { echo "$as_me:$LINENO: result: yes" >&5
34714 echo "${ECHO_T}yes" >&6; }
34716 cat >>confdefs.h <<\_ACEOF
34717 #define LLVM_MULTITHREADED 1
34721 echo "$as_me: failed program was:" >&5
34722 sed 's/^/| /' conftest.$ac_ext >&5
34724 { echo "$as_me:$LINENO: result: no" >&5
34725 echo "${ECHO_T}no" >&6; }
34727 cat >>confdefs.h <<\_ACEOF
34728 #define LLVM_MULTITHREADED 0
34731 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34732 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34735 rm -f core conftest.err conftest.$ac_objext \
34736 conftest$ac_exeext conftest.$ac_ext
34740 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34741 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34742 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34743 if test "${llvm_cv_linux_mixed+set}" = set; then
34744 echo $ECHO_N "(cached) $ECHO_C" >&6
34747 ac_cpp='$CPP $CPPFLAGS'
34748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34752 cat >conftest.$ac_ext <<_ACEOF
34755 cat confdefs.h >>conftest.$ac_ext
34756 cat >>conftest.$ac_ext <<_ACEOF
34757 /* end confdefs.h. */
34759 error: Not x86-64 even if uname says so!
34770 rm -f conftest.$ac_objext
34771 if { (ac_try="$ac_compile"
34772 case "(($ac_try" in
34773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34774 *) ac_try_echo=$ac_try;;
34776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34777 (eval "$ac_compile") 2>conftest.er1
34779 grep -v '^ *+' conftest.er1 >conftest.err
34781 cat conftest.err >&5
34782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34783 (exit $ac_status); } &&
34784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34785 { (case "(($ac_try" in
34786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34787 *) ac_try_echo=$ac_try;;
34789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34790 (eval "$ac_try") 2>&5
34792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793 (exit $ac_status); }; } &&
34794 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
34802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34803 (exit $ac_status); }; }; then
34804 llvm_cv_linux_mixed=no
34806 echo "$as_me: failed program was:" >&5
34807 sed 's/^/| /' conftest.$ac_ext >&5
34809 llvm_cv_linux_mixed=yes
34812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34814 ac_cpp='$CPP $CPPFLAGS'
34815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34821 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34822 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34824 if test "$llvm_cv_linux_mixed" = "yes"; then
34825 llvm_cv_target_arch="x86"
34831 for ac_func in __dso_handle
34833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34837 echo $ECHO_N "(cached) $ECHO_C" >&6
34839 cat >conftest.$ac_ext <<_ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h. */
34845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34847 #define $ac_func innocuous_$ac_func
34849 /* System header to define __stub macros and hopefully few prototypes,
34850 which can conflict with char $ac_func (); below.
34851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34852 <limits.h> exists even on freestanding compilers. */
34855 # include <limits.h>
34857 # include <assert.h>
34862 /* Override any GCC internal prototype to avoid an error.
34863 Use char because int might match the return type of a GCC
34864 builtin and then its argument prototype would still apply. */
34869 /* The GNU C library defines this for functions which it implements
34870 to always fail with ENOSYS. Some functions are actually named
34871 something starting with __ and the normal name is an alias. */
34872 #if defined __stub_$ac_func || defined __stub___$ac_func
34879 return $ac_func ();
34884 rm -f conftest.$ac_objext conftest$ac_exeext
34885 if { (ac_try="$ac_link"
34886 case "(($ac_try" in
34887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34888 *) ac_try_echo=$ac_try;;
34890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34891 (eval "$ac_link") 2>conftest.er1
34893 grep -v '^ *+' conftest.er1 >conftest.err
34895 cat conftest.err >&5
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); } &&
34898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34899 { (case "(($ac_try" in
34900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34901 *) ac_try_echo=$ac_try;;
34903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34904 (eval "$ac_try") 2>&5
34906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907 (exit $ac_status); }; } &&
34908 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
34916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917 (exit $ac_status); }; }; then
34918 eval "$as_ac_var=yes"
34920 echo "$as_me: failed program was:" >&5
34921 sed 's/^/| /' conftest.$ac_ext >&5
34923 eval "$as_ac_var=no"
34926 rm -f core conftest.err conftest.$ac_objext \
34927 conftest$ac_exeext conftest.$ac_ext
34929 ac_res=`eval echo '${'$as_ac_var'}'`
34930 { echo "$as_me:$LINENO: result: $ac_res" >&5
34931 echo "${ECHO_T}$ac_res" >&6; }
34932 if test `eval echo '${'$as_ac_var'}'` = yes; then
34933 cat >>confdefs.h <<_ACEOF
34934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34941 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34942 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34943 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34944 echo $ECHO_N "(cached) $ECHO_C" >&6
34946 llvm_cv_llvmgcc_sanity="no"
34947 if test -x "$LLVMGCC" ; then
34948 cp /dev/null conftest.c
34949 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34950 grep 'target datalayout =' > /dev/null 2>&1
34951 if test $? -eq 0 ; then
34952 llvm_cv_llvmgcc_sanity="yes"
34957 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34958 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34960 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34961 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34962 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34963 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34964 LLVMCC1=$llvmcc1path
34966 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34967 LLVMCC1PLUS=$llvmcc1pluspath
34969 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34970 LLVMGCCDIR=$llvmgccdir
34972 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34973 LLVMGCCLIBEXEC=$llvmgcclibexec
34975 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34976 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34977 LLVMGCC_VERSION=$llvmgccversion
34979 LLVMGCC_MAJVERS=$llvmgccmajvers
34981 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34982 LLVMGCC_LANGS=$llvmgcclangs
34984 { echo "$as_me:$LINENO: result: ok" >&5
34985 echo "${ECHO_T}ok" >&6; }
34988 SHLIBEXT=$libltdl_cv_shlibext
34991 # Translate the various configuration directories and other basic
34992 # information into substitutions that will end up in Makefile.config.in
34993 # that these configured values can be used by the makefiles
34994 if test "${prefix}" = "NONE" ; then
34995 prefix="/usr/local"
34997 eval LLVM_PREFIX="${prefix}";
34998 eval LLVM_BINDIR="${prefix}/bin";
34999 eval LLVM_LIBDIR="${prefix}/lib";
35000 eval LLVM_DATADIR="${prefix}/share/llvm";
35001 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35002 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35003 eval LLVM_INCLUDEDIR="${prefix}/include";
35004 eval LLVM_INFODIR="${prefix}/info";
35005 eval LLVM_MANDIR="${prefix}/man";
35006 LLVM_CONFIGTIME=`date`
35018 # Place the various directores into the config.h file as #defines so that we
35019 # can know about the installation paths within LLVM.
35021 cat >>confdefs.h <<_ACEOF
35022 #define LLVM_PREFIX "$LLVM_PREFIX"
35026 cat >>confdefs.h <<_ACEOF
35027 #define LLVM_BINDIR "$LLVM_BINDIR"
35031 cat >>confdefs.h <<_ACEOF
35032 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35036 cat >>confdefs.h <<_ACEOF
35037 #define LLVM_DATADIR "$LLVM_DATADIR"
35041 cat >>confdefs.h <<_ACEOF
35042 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35046 cat >>confdefs.h <<_ACEOF
35047 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35051 cat >>confdefs.h <<_ACEOF
35052 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35056 cat >>confdefs.h <<_ACEOF
35057 #define LLVM_INFODIR "$LLVM_INFODIR"
35061 cat >>confdefs.h <<_ACEOF
35062 #define LLVM_MANDIR "$LLVM_MANDIR"
35066 cat >>confdefs.h <<_ACEOF
35067 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35071 cat >>confdefs.h <<_ACEOF
35072 #define LLVM_HOSTTRIPLE "$host"
35076 # Determine which bindings to build.
35077 if test "$BINDINGS_TO_BUILD" = auto ; then
35078 BINDINGS_TO_BUILD=""
35079 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35080 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35083 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35086 # This isn't really configurey, but it avoids having to repeat the list in
35091 # Do any work necessary to ensure that bindings have what they need.
35092 binding_prereqs_failed=0
35093 for a_binding in $BINDINGS_TO_BUILD ; do
35094 case "$a_binding" in
35096 if test "x$OCAMLC" = x ; then
35097 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35098 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35099 binding_prereqs_failed=1
35101 if test "x$OCAMLDEP" = x ; then
35102 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35103 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35104 binding_prereqs_failed=1
35106 if test "x$OCAMLOPT" = x ; then
35107 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35108 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35110 if test "x$with_ocaml_libdir" != xauto ; then
35111 OCAML_LIBDIR=$with_ocaml_libdir
35114 ocaml_stdlib="`"$OCAMLC" -where`"
35115 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35117 # ocaml stdlib is beneath our prefix; use stdlib
35118 OCAML_LIBDIR=$ocaml_stdlib
35121 # ocaml stdlib is outside our prefix; use libdir/ocaml
35122 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35129 if test "$binding_prereqs_failed" = 1 ; then
35130 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35131 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35132 { (exit 1); exit 1; }; }
35135 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35136 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35137 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35138 echo $ECHO_N "(cached) $ECHO_C" >&6
35141 ac_cpp='$CXXCPP $CPPFLAGS'
35142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35146 oldcxxflags="$CXXFLAGS"
35147 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35148 cat >conftest.$ac_ext <<_ACEOF
35151 cat confdefs.h >>conftest.$ac_ext
35152 cat >>conftest.$ac_ext <<_ACEOF
35153 /* end confdefs.h. */
35163 rm -f conftest.$ac_objext
35164 if { (ac_try="$ac_compile"
35165 case "(($ac_try" in
35166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35167 *) ac_try_echo=$ac_try;;
35169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35170 (eval "$ac_compile") 2>conftest.er1
35172 grep -v '^ *+' conftest.er1 >conftest.err
35174 cat conftest.err >&5
35175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176 (exit $ac_status); } &&
35177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35178 { (case "(($ac_try" in
35179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35180 *) ac_try_echo=$ac_try;;
35182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35183 (eval "$ac_try") 2>&5
35185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); }; } &&
35187 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); }; }; then
35197 llvm_cv_cxx_visibility_inlines_hidden=yes
35199 echo "$as_me: failed program was:" >&5
35200 sed 's/^/| /' conftest.$ac_ext >&5
35202 llvm_cv_cxx_visibility_inlines_hidden=no
35205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35206 CXXFLAGS="$oldcxxflags"
35208 ac_cpp='$CPP $CPPFLAGS'
35209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35215 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35216 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35217 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35218 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35221 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35226 if test "$llvm_cv_link_use_r" = "yes" ; then
35233 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35234 RDYNAMIC="-Wl,-export-dynamic"
35241 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35243 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35245 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35247 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35249 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35252 ac_config_files="$ac_config_files Makefile.config"
35255 ac_config_files="$ac_config_files llvm.spec"
35258 ac_config_files="$ac_config_files docs/doxygen.cfg"
35261 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35264 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35267 ac_config_commands="$ac_config_commands setup"
35269 ac_config_commands="$ac_config_commands Makefile"
35272 ac_config_commands="$ac_config_commands Makefile.common"
35275 ac_config_commands="$ac_config_commands examples/Makefile"
35278 ac_config_commands="$ac_config_commands lib/Makefile"
35281 ac_config_commands="$ac_config_commands runtime/Makefile"
35284 ac_config_commands="$ac_config_commands test/Makefile"
35287 ac_config_commands="$ac_config_commands test/Makefile.tests"
35290 ac_config_commands="$ac_config_commands unittests/Makefile"
35293 ac_config_commands="$ac_config_commands tools/Makefile"
35296 ac_config_commands="$ac_config_commands utils/Makefile"
35299 ac_config_commands="$ac_config_commands projects/Makefile"
35302 ac_config_commands="$ac_config_commands bindings/Makefile"
35305 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35309 cat >confcache <<\_ACEOF
35310 # This file is a shell script that caches the results of configure
35311 # tests run on this system so they can be shared between configure
35312 # scripts and configure runs, see configure's option --config-cache.
35313 # It is not useful on other systems. If it contains results you don't
35314 # want to keep, you may remove or edit it.
35316 # config.status only pays attention to the cache file if you give it
35317 # the --recheck option to rerun configure.
35319 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35320 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35321 # following values.
35325 # The following way of writing the cache mishandles newlines in values,
35326 # but we know of no workaround that is simple, portable, and efficient.
35327 # So, we kill variables containing newlines.
35328 # Ultrix sh set writes to stderr and can't be redirected directly,
35329 # and sets the high bit in the cache file unless we assign to the vars.
35331 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35332 eval ac_val=\$$ac_var
35336 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35337 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35340 _ | IFS | as_nl) ;; #(
35341 *) $as_unset $ac_var ;;
35347 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35348 *${as_nl}ac_space=\ *)
35349 # `set' does not quote correctly, so add quotes (double-quote
35350 # substitution turns \\\\ into \\, and sed turns \\ into \).
35353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35356 # `set' quotes correctly as required by POSIX, so do not add quotes.
35357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35368 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35370 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35371 if test -w "$cache_file"; then
35372 test "x$cache_file" != "x/dev/null" &&
35373 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35374 echo "$as_me: updating cache $cache_file" >&6;}
35375 cat confcache >$cache_file
35377 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35378 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35384 # Let make expand exec_prefix.
35385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35387 DEFS=-DHAVE_CONFIG_H
35391 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35392 # 1. Remove the extension, and $U if already installed.
35393 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35394 ac_i=`echo "$ac_i" | sed "$ac_script"`
35395 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35396 # will be set to the directory where LIBOBJS objects are built.
35397 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35398 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35400 LIBOBJS=$ac_libobjs
35402 LTLIBOBJS=$ac_ltlibobjs
35405 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35406 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35407 Usually this means the macro was only invoked conditionally." >&5
35408 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35409 Usually this means the macro was only invoked conditionally." >&2;}
35410 { (exit 1); exit 1; }; }
35412 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35413 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35414 Usually this means the macro was only invoked conditionally." >&5
35415 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35416 Usually this means the macro was only invoked conditionally." >&2;}
35417 { (exit 1); exit 1; }; }
35420 : ${CONFIG_STATUS=./config.status}
35421 ac_clean_files_save=$ac_clean_files
35422 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35423 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35424 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35425 cat >$CONFIG_STATUS <<_ACEOF
35427 # Generated by $as_me.
35428 # Run this file to recreate the current configuration.
35429 # Compiler output produced by configure, useful for debugging
35430 # configure, is in config.log if it exists.
35433 ac_cs_recheck=false
35435 SHELL=\${CONFIG_SHELL-$SHELL}
35438 cat >>$CONFIG_STATUS <<\_ACEOF
35439 ## --------------------- ##
35440 ## M4sh Initialization. ##
35441 ## --------------------- ##
35443 # Be Bourne compatible
35444 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35447 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35448 # is contrary to our usage. Disable this feature.
35449 alias -g '${1+"$@"}'='"$@"'
35450 setopt NO_GLOB_SUBST
35452 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35454 BIN_SH=xpg4; export BIN_SH # for Tru64
35455 DUALCASE=1; export DUALCASE # for MKS sh
35459 # Avoid depending upon Character Ranges.
35460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35463 as_cr_digits='0123456789'
35464 as_cr_alnum=$as_cr_Letters$as_cr_digits
35466 # The user is always right.
35467 if test "${PATH_SEPARATOR+set}" != set; then
35468 echo "#! /bin/sh" >conf$$.sh
35469 echo "exit 0" >>conf$$.sh
35471 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35479 # Support unset when possible.
35480 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35488 # We need space, tab and new line, in precisely that order. Quoting is
35489 # there to prevent editors from complaining about space-tab.
35490 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35491 # splitting by setting IFS to empty value.)
35496 # Find who we are. Look in the path if we contain no directory separator.
35498 *[\\/]* ) as_myself=$0 ;;
35499 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35500 for as_dir in $PATH
35503 test -z "$as_dir" && as_dir=.
35504 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35510 # We did not find ourselves, most probably we were run as `sh COMMAND'
35511 # in which case we are not to be found in the path.
35512 if test "x$as_myself" = x; then
35515 if test ! -f "$as_myself"; then
35516 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35517 { (exit 1); exit 1; }
35520 # Work around bugs in pre-3.0 UWIN ksh.
35521 for as_var in ENV MAIL MAILPATH
35522 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35530 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35531 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35532 LC_TELEPHONE LC_TIME
35534 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35535 eval $as_var=C; export $as_var
35537 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35541 # Required to use basename.
35542 if expr a : '\(a\)' >/dev/null 2>&1 &&
35543 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35549 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35550 as_basename=basename
35556 # Name of the executable.
35557 as_me=`$as_basename -- "$0" ||
35558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35559 X"$0" : 'X\(//\)$' \| \
35560 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35562 sed '/^.*\/\([^/][^/]*\)\/*$/{
35581 as_lineno_1=$LINENO
35582 as_lineno_2=$LINENO
35583 test "x$as_lineno_1" != "x$as_lineno_2" &&
35584 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35586 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35587 # uniformly replaced by the line number. The first 'sed' inserts a
35588 # line-number line after each line using $LINENO; the second 'sed'
35589 # does the real work. The second script uses 'N' to pair each
35590 # line-number line with the line containing $LINENO, and appends
35591 # trailing '-' during substitution so that $LINENO is not a special
35592 # case at line end.
35593 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35594 # scripts with optimization help from Paolo Bonzini. Blame Lee
35595 # E. McMahon (1931-1989) for sed's syntax. :-)
35607 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35610 ' >$as_me.lineno &&
35611 chmod +x "$as_me.lineno" ||
35612 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35613 { (exit 1); exit 1; }; }
35615 # Don't try to exec as it changes $[0], causing all sort of problems
35616 # (the dirname of $[0] is not the place where we might find the
35617 # original and so on. Autoconf is especially sensitive to this).
35618 . "./$as_me.lineno"
35619 # Exit status is that of the last command.
35624 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35630 ECHO_C= ECHO_N= ECHO_T=
35631 case `echo -n x` in
35633 case `echo 'x\c'` in
35634 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35641 if expr a : '\(a\)' >/dev/null 2>&1 &&
35642 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35648 rm -f conf$$ conf$$.exe conf$$.file
35649 if test -d conf$$.dir; then
35650 rm -f conf$$.dir/conf$$.file
35656 if ln -s conf$$.file conf$$ 2>/dev/null; then
35658 # ... but there are two gotchas:
35659 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35660 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35661 # In both cases, we have to default to `cp -p'.
35662 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35664 elif ln conf$$.file conf$$ 2>/dev/null; then
35669 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35670 rmdir conf$$.dir 2>/dev/null
35672 if mkdir -p . 2>/dev/null; then
35675 test -d ./-p && rmdir ./-p
35679 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35680 # systems may use methods other than mode bits to determine executability.
35681 cat >conf$$.file <<_ASEOF
35685 chmod +x conf$$.file
35686 if test -x conf$$.file >/dev/null 2>&1; then
35687 as_executable_p="test -x"
35693 # Sed expression to map a string onto a valid CPP name.
35694 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35696 # Sed expression to map a string onto a valid variable name.
35697 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35702 # Save the log message, to keep $[0] and so on meaningful, and to
35703 # report actual input values of CONFIG_FILES etc. instead of their
35704 # values after options handling.
35706 This file was extended by llvm $as_me 2.7svn, which was
35707 generated by GNU Autoconf 2.60. Invocation command line was
35709 CONFIG_FILES = $CONFIG_FILES
35710 CONFIG_HEADERS = $CONFIG_HEADERS
35711 CONFIG_LINKS = $CONFIG_LINKS
35712 CONFIG_COMMANDS = $CONFIG_COMMANDS
35715 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35720 cat >>$CONFIG_STATUS <<_ACEOF
35721 # Files that config.status was made for.
35722 config_files="$ac_config_files"
35723 config_headers="$ac_config_headers"
35724 config_commands="$ac_config_commands"
35728 cat >>$CONFIG_STATUS <<\_ACEOF
35730 \`$as_me' instantiates files from templates according to the
35731 current configuration.
35733 Usage: $0 [OPTIONS] [FILE]...
35735 -h, --help print this help, then exit
35736 -V, --version print version number, then exit
35737 -q, --quiet do not print progress messages
35738 -d, --debug don't remove temporary files
35739 --recheck update $as_me by reconfiguring in the same conditions
35740 --file=FILE[:TEMPLATE]
35741 instantiate the configuration file FILE
35742 --header=FILE[:TEMPLATE]
35743 instantiate the configuration header FILE
35745 Configuration files:
35748 Configuration headers:
35751 Configuration commands:
35754 Report bugs to <bug-autoconf@gnu.org>."
35757 cat >>$CONFIG_STATUS <<_ACEOF
35759 llvm config.status 2.7svn
35760 configured by $0, generated by GNU Autoconf 2.60,
35761 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35763 Copyright (C) 2006 Free Software Foundation, Inc.
35764 This config.status script is free software; the Free Software Foundation
35765 gives unlimited permission to copy, distribute and modify it."
35772 cat >>$CONFIG_STATUS <<\_ACEOF
35773 # If no file are specified by the user, then we need to provide default
35774 # value. By we need to know if files were specified by the user.
35780 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35781 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35792 # Handling of the options.
35793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35795 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35796 echo "$ac_cs_version"; exit ;;
35797 --debug | --debu | --deb | --de | --d | -d )
35799 --file | --fil | --fi | --f )
35801 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35802 ac_need_defaults=false;;
35803 --header | --heade | --head | --hea )
35805 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35806 ac_need_defaults=false;;
35808 # Conflict between --help and --header
35809 { echo "$as_me: error: ambiguous option: $1
35810 Try \`$0 --help' for more information." >&2
35811 { (exit 1); exit 1; }; };;
35812 --help | --hel | -h )
35813 echo "$ac_cs_usage"; exit ;;
35814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35815 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35818 # This is an error.
35819 -*) { echo "$as_me: error: unrecognized option: $1
35820 Try \`$0 --help' for more information." >&2
35821 { (exit 1); exit 1; }; } ;;
35823 *) ac_config_targets="$ac_config_targets $1"
35824 ac_need_defaults=false ;;
35830 ac_configure_extra_args=
35832 if $ac_cs_silent; then
35834 ac_configure_extra_args="$ac_configure_extra_args --silent"
35838 cat >>$CONFIG_STATUS <<_ACEOF
35839 if \$ac_cs_recheck; then
35840 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35841 CONFIG_SHELL=$SHELL
35842 export CONFIG_SHELL
35843 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35847 cat >>$CONFIG_STATUS <<\_ACEOF
35851 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35852 ## Running $as_me. ##
35858 cat >>$CONFIG_STATUS <<_ACEOF
35862 llvm_src="${srcdir}"
35866 cat >>$CONFIG_STATUS <<\_ACEOF
35868 # Handling of arguments.
35869 for ac_config_target in $ac_config_targets
35871 case $ac_config_target in
35872 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35873 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35874 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35875 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35876 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35877 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35878 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35879 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35880 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35881 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35882 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35883 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35884 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35885 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35886 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35887 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35888 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35889 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35890 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35891 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35892 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35893 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35894 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35895 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35897 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35898 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35899 { (exit 1); exit 1; }; };;
35904 # If the user did not use the arguments to specify the items to instantiate,
35905 # then the envvar interface is used. Set only those that are not.
35906 # We use the long form for the default assignment because of an extremely
35907 # bizarre bug on SunOS 4.1.3.
35908 if $ac_need_defaults; then
35909 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35910 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35911 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35914 # Have a temporary directory for convenience. Make it in the build tree
35915 # simply because there is no reason against having it here, and in addition,
35916 # creating and moving files from /tmp can sometimes cause problems.
35917 # Hook for its removal unless debugging.
35918 # Note that there is a small window in which the directory will not be cleaned:
35919 # after its creation but before its name has been assigned to `$tmp'.
35923 trap 'exit_status=$?
35924 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35926 trap '{ (exit 1); exit 1; }' 1 2 13 15
35928 # Create a (secure) tmp directory for tmp files.
35931 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35932 test -n "$tmp" && test -d "$tmp"
35935 tmp=./conf$$-$RANDOM
35936 (umask 077 && mkdir "$tmp")
35939 echo "$me: cannot create a temporary directory in ." >&2
35940 { (exit 1); exit 1; }
35944 # Set up the sed scripts for CONFIG_FILES section.
35947 # No need to generate the scripts if there are no CONFIG_FILES.
35948 # This happens for instance when ./config.status config.h
35949 if test -n "$CONFIG_FILES"; then
35956 for ac_last_try in false false false false false :; do
35957 cat >conf$$subs.sed <<_ACEOF
35958 SHELL!$SHELL$ac_delim
35959 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35960 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35961 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35962 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35963 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35964 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35965 exec_prefix!$exec_prefix$ac_delim
35966 prefix!$prefix$ac_delim
35967 program_transform_name!$program_transform_name$ac_delim
35968 bindir!$bindir$ac_delim
35969 sbindir!$sbindir$ac_delim
35970 libexecdir!$libexecdir$ac_delim
35971 datarootdir!$datarootdir$ac_delim
35972 datadir!$datadir$ac_delim
35973 sysconfdir!$sysconfdir$ac_delim
35974 sharedstatedir!$sharedstatedir$ac_delim
35975 localstatedir!$localstatedir$ac_delim
35976 includedir!$includedir$ac_delim
35977 oldincludedir!$oldincludedir$ac_delim
35978 docdir!$docdir$ac_delim
35979 infodir!$infodir$ac_delim
35980 htmldir!$htmldir$ac_delim
35981 dvidir!$dvidir$ac_delim
35982 pdfdir!$pdfdir$ac_delim
35983 psdir!$psdir$ac_delim
35984 libdir!$libdir$ac_delim
35985 localedir!$localedir$ac_delim
35986 mandir!$mandir$ac_delim
35987 DEFS!$DEFS$ac_delim
35988 ECHO_C!$ECHO_C$ac_delim
35989 ECHO_N!$ECHO_N$ac_delim
35990 ECHO_T!$ECHO_T$ac_delim
35991 LIBS!$LIBS$ac_delim
35992 build_alias!$build_alias$ac_delim
35993 host_alias!$host_alias$ac_delim
35994 target_alias!$target_alias$ac_delim
35995 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35996 subdirs!$subdirs$ac_delim
35997 build!$build$ac_delim
35998 build_cpu!$build_cpu$ac_delim
35999 build_vendor!$build_vendor$ac_delim
36000 build_os!$build_os$ac_delim
36001 host!$host$ac_delim
36002 host_cpu!$host_cpu$ac_delim
36003 host_vendor!$host_vendor$ac_delim
36004 host_os!$host_os$ac_delim
36005 target!$target$ac_delim
36006 target_cpu!$target_cpu$ac_delim
36007 target_vendor!$target_vendor$ac_delim
36008 target_os!$target_os$ac_delim
36010 HOST_OS!$HOST_OS$ac_delim
36011 TARGET_OS!$TARGET_OS$ac_delim
36012 LINKALL!$LINKALL$ac_delim
36013 NOLINKALL!$NOLINKALL$ac_delim
36014 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36015 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36016 ARCH!$ARCH$ac_delim
36017 ENDIAN!$ENDIAN$ac_delim
36019 CFLAGS!$CFLAGS$ac_delim
36020 LDFLAGS!$LDFLAGS$ac_delim
36021 CPPFLAGS!$CPPFLAGS$ac_delim
36022 ac_ct_CC!$ac_ct_CC$ac_delim
36023 EXEEXT!$EXEEXT$ac_delim
36024 OBJEXT!$OBJEXT$ac_delim
36026 GREP!$GREP$ac_delim
36027 EGREP!$EGREP$ac_delim
36028 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36029 BUILD_CC!$BUILD_CC$ac_delim
36030 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36031 BUILD_CXX!$BUILD_CXX$ac_delim
36032 CVSBUILD!$CVSBUILD$ac_delim
36033 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36034 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36035 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36036 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36037 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36038 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36039 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36041 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36042 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36043 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36044 ENABLE_PIC!$ENABLE_PIC$ac_delim
36045 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36046 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36047 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36048 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36049 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36050 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36051 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36052 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36053 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36057 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36059 elif $ac_last_try; then
36060 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36061 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36062 { (exit 1); exit 1; }; }
36064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36068 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36069 if test -n "$ac_eof"; then
36070 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36071 ac_eof=`expr $ac_eof + 1`
36074 cat >>$CONFIG_STATUS <<_ACEOF
36075 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36079 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36080 s/^/s,@/; s/!/@,|#_!!_#|/
36083 s/'"$ac_delim"'$/,g/; t
36085 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36086 ' >>$CONFIG_STATUS <conf$$subs.sed
36087 rm -f conf$$subs.sed
36088 cat >>$CONFIG_STATUS <<_ACEOF
36094 for ac_last_try in false false false false false :; do
36095 cat >conf$$subs.sed <<_ACEOF
36096 CXXFLAGS!$CXXFLAGS$ac_delim
36097 ac_ct_CXX!$ac_ct_CXX$ac_delim
36099 ifGNUmake!$ifGNUmake$ac_delim
36100 LN_S!$LN_S$ac_delim
36103 DATE!$DATE$ac_delim
36104 FIND!$FIND$ac_delim
36105 MKDIR!$MKDIR$ac_delim
36107 RANLIB!$RANLIB$ac_delim
36111 BINPWD!$BINPWD$ac_delim
36112 GRAPHVIZ!$GRAPHVIZ$ac_delim
36115 NEATO!$NEATO$ac_delim
36116 TWOPI!$TWOPI$ac_delim
36117 CIRCO!$CIRCO$ac_delim
36119 DOTTY!$DOTTY$ac_delim
36120 PERL!$PERL$ac_delim
36121 HAVE_PERL!$HAVE_PERL$ac_delim
36122 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36123 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36124 INSTALL_DATA!$INSTALL_DATA$ac_delim
36125 BZIP2!$BZIP2$ac_delim
36126 DOXYGEN!$DOXYGEN$ac_delim
36127 GROFF!$GROFF$ac_delim
36128 GZIP!$GZIP$ac_delim
36129 POD2HTML!$POD2HTML$ac_delim
36130 POD2MAN!$POD2MAN$ac_delim
36131 RUNTEST!$RUNTEST$ac_delim
36132 TCLSH!$TCLSH$ac_delim
36134 OCAMLC!$OCAMLC$ac_delim
36135 OCAMLOPT!$OCAMLOPT$ac_delim
36136 OCAMLDEP!$OCAMLDEP$ac_delim
36137 OCAMLDOC!$OCAMLDOC$ac_delim
36139 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36140 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36141 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36142 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36143 LIBADD_DL!$LIBADD_DL$ac_delim
36144 ECHO!$ECHO$ac_delim
36146 STRIP!$STRIP$ac_delim
36147 CXXCPP!$CXXCPP$ac_delim
36149 FFLAGS!$FFLAGS$ac_delim
36150 ac_ct_F77!$ac_ct_F77$ac_delim
36151 LIBTOOL!$LIBTOOL$ac_delim
36152 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36153 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36154 LLVMGCC!$LLVMGCC$ac_delim
36155 LLVMGXX!$LLVMGXX$ac_delim
36156 USE_UDIS86!$USE_UDIS86$ac_delim
36157 USE_OPROFILE!$USE_OPROFILE$ac_delim
36158 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36159 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36160 ALLOCA!$ALLOCA$ac_delim
36161 MMAP_FILE!$MMAP_FILE$ac_delim
36162 LLVMCC1!$LLVMCC1$ac_delim
36163 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36164 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36165 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36166 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36167 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36168 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36169 SHLIBEXT!$SHLIBEXT$ac_delim
36170 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36171 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36172 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36173 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36174 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36175 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36176 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36177 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36178 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36179 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36180 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36181 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36182 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36183 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36184 RPATH!$RPATH$ac_delim
36185 RDYNAMIC!$RDYNAMIC$ac_delim
36186 LIBOBJS!$LIBOBJS$ac_delim
36187 LTLIBOBJS!$LTLIBOBJS$ac_delim
36190 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
36192 elif $ac_last_try; then
36193 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36194 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36195 { (exit 1); exit 1; }; }
36197 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36201 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36202 if test -n "$ac_eof"; then
36203 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36204 ac_eof=`expr $ac_eof + 1`
36207 cat >>$CONFIG_STATUS <<_ACEOF
36208 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36212 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36213 s/^/s,@/; s/!/@,|#_!!_#|/
36216 s/'"$ac_delim"'$/,g/; t
36218 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36219 ' >>$CONFIG_STATUS <conf$$subs.sed
36220 rm -f conf$$subs.sed
36221 cat >>$CONFIG_STATUS <<_ACEOF
36228 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36229 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36230 # trailing colons and then remove the whole line if VPATH becomes empty
36231 # (actually we leave an empty line to preserve line numbers).
36232 if test "x$srcdir" = x.; then
36233 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36234 s/:*\$(srcdir):*/:/
36235 s/:*\${srcdir}:*/:/
36237 s/^\([^=]*=[ ]*\):*/\1/
36243 cat >>$CONFIG_STATUS <<\_ACEOF
36244 fi # test -n "$CONFIG_FILES"
36247 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36250 :[FHLC]) ac_mode=$ac_tag; continue;;
36252 case $ac_mode$ac_tag in
36254 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36255 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36256 { (exit 1); exit 1; }; };;
36257 :[FH]-) ac_tag=-:-;;
36258 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36275 -) ac_f="$tmp/stdin";;
36276 *) # Look for the file first in the build tree, then in the source tree
36277 # (if the path is not absolute). The absolute path cannot be DOS-style,
36278 # because $ac_f cannot contain `:'.
36282 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36284 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36285 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36286 { (exit 1); exit 1; }; };;
36288 ac_file_inputs="$ac_file_inputs $ac_f"
36291 # Let's still pretend it is `configure' which instantiates (i.e., don't
36292 # use $as_me), people would be surprised to read:
36293 # /* config.h. Generated by config.status. */
36294 configure_input="Generated from "`IFS=:
36295 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36296 if test x"$ac_file" != x-; then
36297 configure_input="$ac_file. $configure_input"
36298 { echo "$as_me:$LINENO: creating $ac_file" >&5
36299 echo "$as_me: creating $ac_file" >&6;}
36303 *:-:* | *:-) cat >"$tmp/stdin";;
36308 ac_dir=`$as_dirname -- "$ac_file" ||
36309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36310 X"$ac_file" : 'X\(//\)[^/]' \| \
36311 X"$ac_file" : 'X\(//\)$' \| \
36312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36318 /^X\(\/\/\)[^/].*/{
36333 -*) as_dir=./$as_dir;;
36335 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36339 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36340 *) as_qdir=$as_dir;;
36342 as_dirs="'$as_qdir' $as_dirs"
36343 as_dir=`$as_dirname -- "$as_dir" ||
36344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36345 X"$as_dir" : 'X\(//\)[^/]' \| \
36346 X"$as_dir" : 'X\(//\)$' \| \
36347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36353 /^X\(\/\/\)[^/].*/{
36366 test -d "$as_dir" && break
36368 test -z "$as_dirs" || eval "mkdir $as_dirs"
36369 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36370 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36371 { (exit 1); exit 1; }; }; }
36375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36377 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36378 # A ".." for each directory in $ac_dir_suffix.
36379 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36380 case $ac_top_builddir_sub in
36381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36385 ac_abs_top_builddir=$ac_pwd
36386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36387 # for backward compatibility:
36388 ac_top_builddir=$ac_top_build_prefix
36391 .) # We are building in place.
36393 ac_top_srcdir=$ac_top_builddir_sub
36394 ac_abs_top_srcdir=$ac_pwd ;;
36395 [\\/]* | ?:[\\/]* ) # Absolute name.
36396 ac_srcdir=$srcdir$ac_dir_suffix;
36397 ac_top_srcdir=$srcdir
36398 ac_abs_top_srcdir=$srcdir ;;
36399 *) # Relative name.
36400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36401 ac_top_srcdir=$ac_top_build_prefix$srcdir
36402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36414 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36415 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36419 cat >>$CONFIG_STATUS <<\_ACEOF
36420 # If the template does not know about datarootdir, expand it.
36421 # FIXME: This hack should be removed a few years after 2.60.
36422 ac_datarootdir_hack=; ac_datarootdir_seen=
36424 case `sed -n '/datarootdir/ {
36433 ' $ac_file_inputs` in
36434 *datarootdir*) ac_datarootdir_seen=yes;;
36435 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36436 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36437 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36439 cat >>$CONFIG_STATUS <<_ACEOF
36440 ac_datarootdir_hack='
36441 s&@datadir@&$datadir&g
36442 s&@docdir@&$docdir&g
36443 s&@infodir@&$infodir&g
36444 s&@localedir@&$localedir&g
36445 s&@mandir@&$mandir&g
36446 s&\\\${datarootdir}&$datarootdir&g' ;;
36450 # Neutralize VPATH when `$srcdir' = `.'.
36451 # Shell code in configure.ac might set extrasub.
36452 # FIXME: do we really want to maintain this feature?
36453 cat >>$CONFIG_STATUS <<_ACEOF
36457 cat >>$CONFIG_STATUS <<\_ACEOF
36459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36460 s&@configure_input@&$configure_input&;t t
36461 s&@top_builddir@&$ac_top_builddir_sub&;t t
36462 s&@srcdir@&$ac_srcdir&;t t
36463 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36464 s&@top_srcdir@&$ac_top_srcdir&;t t
36465 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36466 s&@builddir@&$ac_builddir&;t t
36467 s&@abs_builddir@&$ac_abs_builddir&;t t
36468 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36469 s&@INSTALL@&$ac_INSTALL&;t t
36470 $ac_datarootdir_hack
36471 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36473 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36474 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36475 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36476 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36477 which seems to be undefined. Please make sure it is defined." >&5
36478 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36479 which seems to be undefined. Please make sure it is defined." >&2;}
36483 -) cat "$tmp/out"; rm -f "$tmp/out";;
36484 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36493 # Transform confdefs.h into a sed script `conftest.defines', that
36494 # substitutes the proper values into config.h.in to produce config.h.
36495 rm -f conftest.defines conftest.tail
36496 # First, append a space to every undef/define line, to ease matching.
36497 echo 's/$/ /' >conftest.defines
36498 # Then, protect against being on the right side of a sed subst, or in
36499 # an unquoted here document, in config.status. If some macros were
36500 # called several times there might be several #defines for the same
36501 # symbol, which is useless. But do not sort them, since the last
36502 # AC_DEFINE must be honored.
36503 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36504 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36505 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36506 # PARAMS is the parameter list in the macro definition--in most cases, it's
36507 # just an empty string.
36508 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36509 ac_dB='\\)[ (].*,\\1define\\2'
36517 s/^[ ]*#[ ]*define[ ][ ]*//
36522 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36523 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36524 ' >>conftest.defines
36526 # Remove the space that was appended to ease matching.
36527 # Then replace #undef with comments. This is necessary, for
36528 # example, in the case of _POSIX_SOURCE, which is predefined and required
36529 # on some systems where configure will not decide to define it.
36530 # (The regexp can be short, since the line contains either #define or #undef.)
36532 s,^[ #]*u.*,/* & */,' >>conftest.defines
36534 # Break up conftest.defines:
36535 ac_max_sed_lines=50
36537 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36538 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36539 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36541 ac_in='$ac_file_inputs'
36542 ac_out='"$tmp/out1"'
36543 ac_nxt='"$tmp/out2"'
36547 # Write a here document:
36548 cat >>$CONFIG_STATUS <<_ACEOF
36549 # First, check the format of the line:
36550 cat >"\$tmp/defines.sed" <<\\CEOF
36551 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36552 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36556 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36558 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36559 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36560 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36561 grep . conftest.tail >/dev/null || break
36562 rm -f conftest.defines
36563 mv conftest.tail conftest.defines
36565 rm -f conftest.defines conftest.tail
36567 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36568 cat >>$CONFIG_STATUS <<\_ACEOF
36569 if test x"$ac_file" != x-; then
36570 echo "/* $configure_input */" >"$tmp/config.h"
36571 cat "$ac_result" >>"$tmp/config.h"
36572 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36573 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36574 echo "$as_me: $ac_file is unchanged" >&6;}
36577 mv "$tmp/config.h" $ac_file
36580 echo "/* $configure_input */"
36586 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36587 echo "$as_me: executing $ac_file commands" >&6;}
36592 case $ac_file$ac_mode in
36593 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36594 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36595 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36596 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36597 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36598 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36599 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36600 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36601 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36602 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36603 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36604 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36605 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36606 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36607 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36608 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36609 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36610 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36611 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36612 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36613 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36614 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36615 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36616 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36617 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36618 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36624 { (exit 0); exit 0; }
36626 chmod +x $CONFIG_STATUS
36627 ac_clean_files=$ac_clean_files_save
36630 # configure is writing to config.log, and then calls config.status.
36631 # config.status does its own redirection, appending to config.log.
36632 # Unfortunately, on DOS this fails, as config.log is still kept open
36633 # by configure, so config.status won't be able to write to it; its
36634 # output is simply discarded. So we exec the FD to /dev/null,
36635 # effectively closing config.log, so it can be properly (re)opened and
36636 # appended to by config.status. When coming back to configure, we
36637 # need to make the FD available again.
36638 if test "$no_create" != yes; then
36640 ac_config_status_args=
36641 test "$silent" = yes &&
36642 ac_config_status_args="$ac_config_status_args --quiet"
36644 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36646 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36647 # would make configure fail if this is the last instruction.
36648 $ac_cs_success || { (exit 1); exit 1; }
36652 # CONFIG_SUBDIRS section.
36654 if test "$no_recursion" != yes; then
36656 # Remove --cache-file and --srcdir arguments so they do not pile up.
36657 ac_sub_configure_args=
36659 eval "set x $ac_configure_args"
36663 if test -n "$ac_prev"; then
36668 -cache-file | --cache-file | --cache-fil | --cache-fi \
36669 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36670 ac_prev=cache_file ;;
36671 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36672 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36675 --config-cache | -C)
36677 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36679 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36681 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36683 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36687 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36689 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36693 # Always prepend --prefix to ensure using the same prefix
36694 # in subdir configurations.
36695 ac_arg="--prefix=$prefix"
36697 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36699 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36702 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36704 # Do not complain, so a configure script can configure whichever
36705 # parts of a large source tree are present.
36706 test -d "$srcdir/$ac_dir" || continue
36708 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36709 echo "$as_me:$LINENO: $ac_msg" >&5
36713 -*) as_dir=./$as_dir;;
36715 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36719 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36720 *) as_qdir=$as_dir;;
36722 as_dirs="'$as_qdir' $as_dirs"
36723 as_dir=`$as_dirname -- "$as_dir" ||
36724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36725 X"$as_dir" : 'X\(//\)[^/]' \| \
36726 X"$as_dir" : 'X\(//\)$' \| \
36727 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36733 /^X\(\/\/\)[^/].*/{
36746 test -d "$as_dir" && break
36748 test -z "$as_dirs" || eval "mkdir $as_dirs"
36749 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36750 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36751 { (exit 1); exit 1; }; }; }
36755 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36757 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36758 # A ".." for each directory in $ac_dir_suffix.
36759 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36760 case $ac_top_builddir_sub in
36761 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36762 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36765 ac_abs_top_builddir=$ac_pwd
36766 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36767 # for backward compatibility:
36768 ac_top_builddir=$ac_top_build_prefix
36771 .) # We are building in place.
36773 ac_top_srcdir=$ac_top_builddir_sub
36774 ac_abs_top_srcdir=$ac_pwd ;;
36775 [\\/]* | ?:[\\/]* ) # Absolute name.
36776 ac_srcdir=$srcdir$ac_dir_suffix;
36777 ac_top_srcdir=$srcdir
36778 ac_abs_top_srcdir=$srcdir ;;
36779 *) # Relative name.
36780 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36781 ac_top_srcdir=$ac_top_build_prefix$srcdir
36782 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36784 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36789 # Check for guested configure; otherwise get Cygnus style configure.
36790 if test -f "$ac_srcdir/configure.gnu"; then
36791 ac_sub_configure=$ac_srcdir/configure.gnu
36792 elif test -f "$ac_srcdir/configure"; then
36793 ac_sub_configure=$ac_srcdir/configure
36794 elif test -f "$ac_srcdir/configure.in"; then
36795 # This should be Cygnus configure.
36796 ac_sub_configure=$ac_aux_dir/configure
36798 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36799 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36803 # The recursion is here.
36804 if test -n "$ac_sub_configure"; then
36805 # Make the cache file name correct relative to the subdirectory.
36806 case $cache_file in
36807 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36808 *) # Relative name.
36809 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36812 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36813 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36814 # The eval makes quoting arguments work.
36815 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36816 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36817 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36818 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36819 { (exit 1); exit 1; }; }