2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.0cvs.
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-2005 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.0cvs'
719 PACKAGE_STRING='llvm 2.0cvs'
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
886 CONVENIENCE_LTDL_TRUE
887 CONVENIENCE_LTDL_FALSE
924 ac_precious_vars='build_alias
940 ac_subdirs_all='projects/sample
948 projects/llvm-poolalloc
949 projects/llvm-kernel'
951 # Initialize some variables set by options.
953 ac_init_version=false
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
963 program_transform_name=s,x,x,
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1058 eval enable_$ac_feature=no ;;
1060 -docdir | --docdir | --docdi | --doc | --do)
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1070 -enable-* | --enable-*)
1071 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1077 eval enable_$ac_feature=\$ac_optarg ;;
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 htmldir=$ac_optarg ;;
1110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1122 -libdir | --libdir | --libdi | --libd)
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1139 -localstatedir | --localstatedir | --localstatedi | --localstated \
1140 | --localstate | --localstat | --localsta | --localst | --locals)
1141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144 localstatedir=$ac_optarg ;;
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1213 -psdir | --psdir | --psdi | --psd | --ps)
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 sbindir=$ac_optarg ;;
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 sharedstatedir=$ac_optarg ;;
1239 -site | --site | --sit)
1241 -site=* | --site=* | --sit=*)
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247 srcdir=$ac_optarg ;;
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254 sysconfdir=$ac_optarg ;;
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
1257 ac_prev=target_alias ;;
1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259 target_alias=$ac_optarg ;;
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
1268 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1271 { echo "$as_me: error: invalid package name: $ac_package" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_package=`echo $ac_package| sed 's/-/_/g'`
1274 eval with_$ac_package=\$ac_optarg ;;
1276 -without-* | --without-*)
1277 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1280 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_package=`echo $ac_package | sed 's/-/_/g'`
1283 eval with_$ac_package=no ;;
1286 # Obsolete; use --with-x.
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1303 -*) { echo "$as_me: error: unrecognized option: $ac_option
1304 Try \`$0 --help' for more information." >&2
1305 { (exit 1); exit 1; }; }
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1312 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1313 { (exit 1); exit 1; }; }
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 { echo "$as_me: error: missing argument to $ac_option" >&2
1331 { (exit 1); exit 1; }; }
1334 # Be sure to have absolute directory names.
1335 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336 datadir sysconfdir sharedstatedir localstatedir includedir \
1337 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338 libdir localedir mandir
1340 eval ac_val=\$$ac_var
1342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1346 { (exit 1); exit 1; }; }
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1354 target=$target_alias
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358 if test "x$build_alias" = x; then
1359 cross_compiling=maybe
1360 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1361 If a cross compiler is detected then cross compile mode will be used." >&2
1362 elif test "x$build_alias" != "x$host_alias"; then
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370 test "$silent" = yes && exec 6>/dev/null
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376 { echo "$as_me: error: Working directory cannot be determined" >&2
1377 { (exit 1); exit 1; }; }
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 { echo "$as_me: error: pwd does not report name of working directory" >&2
1380 { (exit 1); exit 1; }; }
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir=`$as_dirname -- "$0" ||
1388 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$0" : 'X\(//\)[^/]' \| \
1390 X"$0" : 'X\(//\)$' \| \
1391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1415 ac_srcdir_defaulted=no
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1420 { (exit 1); exit 1; }; }
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1425 { (exit 1); exit 1; }; }
1427 # When building in place, set srcdir=.
1428 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 # Remove unnecessary trailing slashes from srcdir.
1432 # Double slashes in file names in object file debugging info
1433 # mess up M-x gdb in Emacs.
1435 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 for ac_var in $ac_precious_vars; do
1438 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_env_${ac_var}_value=\$${ac_var}
1440 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 # Report the --help message.
1447 if test "$ac_init_help" = "long"; then
1448 # Omit some internal or obsolete options to make the list less imposing.
1449 # This message is too long to be a string in the A/UX 3.1 sh.
1451 \`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE. See below for descriptions of some of the useful variables.
1458 Defaults for the options are specified in brackets.
1461 -h, --help display this help and exit
1462 --help=short display options specific to this package
1463 --help=recursive display the short help of all the included packages
1464 -V, --version display version information and exit
1465 -q, --quiet, --silent do not print \`checking...' messages
1466 --cache-file=FILE cache test results in FILE [disabled]
1467 -C, --config-cache alias for \`--cache-file=config.cache'
1468 -n, --no-create do not create output files
1469 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471 Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
1473 [$ac_default_prefix]
1474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1482 For better control, use the options below.
1484 Fine tuning of the installation directories:
1485 --bindir=DIR user executables [EPREFIX/bin]
1486 --sbindir=DIR system admin executables [EPREFIX/sbin]
1487 --libexecdir=DIR program executables [EPREFIX/libexec]
1488 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 --target=TARGET configure for building compilers for TARGET [HOST]
1515 if test -n "$ac_init_help"; then
1516 case $ac_init_help in
1517 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
1522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1526 --enable-debug-runtime
1527 --enable-jit Enable Just In Time Compiling (default is YES)
1528 --enable-doxygen Build doxygen documentation (default is NO)
1529 --enable-threads Use threads if available (default is YES)
1530 --enable-pic Build LLVM with Position Independent Code (default
1532 --enable-targets Build specific host targets:
1533 all,host-only,{target-name} (default=all)
1534 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1536 --enable-ltdl-install install libltdl
1537 --enable-shared[=PKGS] build shared libraries
1538 [default=enable_shared_default]
1539 --enable-static[=PKGS] build static libraries
1540 [default=enable_static_default]
1541 --enable-fast-install[=PKGS]
1542 optimize for fast installation
1543 [default=enable_Fast_install_default]
1544 --disable-libtool-lock avoid locking (might break parallel builds)
1547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1549 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1551 --with-extra-options Specify addtional options to compile LLVM with
1552 --with-tclinclude directory where tcl headers are
1553 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1554 --with-pic try to use only PIC/non-PIC objects [default=use
1556 --with-tags[=TAGS] include additional configurations [automatic]
1558 Some influential environment variables:
1559 CC C compiler command
1560 CFLAGS C compiler flags
1561 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1562 nonstandard directory <lib dir>
1563 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564 you have headers in a nonstandard directory <include dir>
1566 CXX C++ compiler command
1567 CXXFLAGS C++ compiler flags
1568 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1569 the first program found out of: `bison -y', `byacc', `yacc'.
1570 YFLAGS The list of arguments that will be passed by default to $YACC.
1571 This script will default YFLAGS to the empty string to avoid a
1572 default value of `-d' given by some make applications.
1573 CXXCPP C++ preprocessor
1574 F77 Fortran 77 compiler command
1575 FFLAGS Fortran 77 compiler flags
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1580 Report bugs to <llvmbugs@cs.uiuc.edu>.
1585 if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588 test -d "$ac_dir" || continue
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1608 .) # We are building in place.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1632 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1641 llvm configure 2.0cvs
1642 generated by GNU Autoconf 2.60
1644 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1645 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1649 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1653 cat >config.log <<_ACEOF
1654 This file contains any messages produced by compilers while
1655 running configure, to aid debugging if configure makes a mistake.
1657 It was created by llvm $as_me 2.0cvs, which was
1658 generated by GNU Autoconf 2.60. Invocation command line was
1670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1671 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1672 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1673 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1674 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1676 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1677 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1679 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1680 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1681 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1682 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1683 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1684 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1685 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir=.
1694 echo "PATH: $as_dir"
1710 # Keep a trace of the command line.
1711 # Strip out --no-create and --no-recursion so they do not pile up.
1712 # Strip out --silent because we don't want to record it for future runs.
1713 # Also quote any args containing shell meta-characters.
1714 # Make two passes to allow for proper duplicate-argument suppression.
1718 ac_must_keep_next=false
1724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1726 | -silent | --silent | --silen | --sile | --sil)
1729 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1732 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1734 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1735 if test $ac_must_keep_next = true; then
1736 ac_must_keep_next=false # Got value, back to normal.
1739 *=* | --config-cache | -C | -disable-* | --disable-* \
1740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1742 | -with-* | --with-* | -without-* | --without-* | --x)
1743 case "$ac_configure_args0 " in
1744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1747 -* ) ac_must_keep_next=true ;;
1750 ac_configure_args="$ac_configure_args '$ac_arg'"
1755 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1756 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1758 # When interrupted or exit'd, cleanup temporary files, and complete
1759 # config.log. We remove comments because anyway the quotes in there
1760 # would cause problems or look ugly.
1761 # WARNING: Use '\'' to represent an apostrophe within the trap.
1762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1763 trap 'exit_status=$?
1764 # Save into config.log some information that might help in debugging.
1769 ## ---------------- ##
1770 ## Cache variables. ##
1771 ## ---------------- ##
1774 # The following way of writing the cache mishandles newlines in values,
1776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1777 eval ac_val=\$$ac_var
1781 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1782 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1785 _ | IFS | as_nl) ;; #(
1786 *) $as_unset $ac_var ;;
1791 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1792 *${as_nl}ac_space=\ *)
1794 "s/'\''/'\''\\\\'\'''\''/g;
1795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1806 ## ----------------- ##
1807 ## Output variables. ##
1808 ## ----------------- ##
1811 for ac_var in $ac_subst_vars
1813 eval ac_val=\$$ac_var
1815 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817 echo "$ac_var='\''$ac_val'\''"
1821 if test -n "$ac_subst_files"; then
1823 ## ------------------- ##
1824 ## File substitutions. ##
1825 ## ------------------- ##
1828 for ac_var in $ac_subst_files
1830 eval ac_val=\$$ac_var
1832 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 echo "$ac_var='\''$ac_val'\''"
1839 if test -s confdefs.h; then
1849 test "$ac_signal" != 0 &&
1850 echo "$as_me: caught signal $ac_signal"
1851 echo "$as_me: exit $exit_status"
1853 rm -f core *.core core.conftest.* &&
1854 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1857 for ac_signal in 1 2 13 15; do
1858 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1862 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1863 rm -f -r conftest* confdefs.h
1865 # Predefined preprocessor variables.
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_NAME "$PACKAGE_NAME"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_STRING "$PACKAGE_STRING"
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1892 # Let the site file select an alternate cache file if it wants to.
1893 # Prefer explicitly selected file to automatically selected ones.
1894 if test -n "$CONFIG_SITE"; then
1895 set x "$CONFIG_SITE"
1896 elif test "x$prefix" != xNONE; then
1897 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1899 set x "$ac_default_prefix/share/config.site" \
1900 "$ac_default_prefix/etc/config.site"
1905 if test -r "$ac_site_file"; then
1906 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1907 echo "$as_me: loading site script $ac_site_file" >&6;}
1908 sed 's/^/| /' "$ac_site_file" >&5
1913 if test -r "$cache_file"; then
1914 # Some versions of bash will fail to source /dev/null (special
1915 # files actually), so we avoid doing that.
1916 if test -f "$cache_file"; then
1917 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1918 echo "$as_me: loading cache $cache_file" >&6;}
1920 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1921 *) . "./$cache_file";;
1925 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1926 echo "$as_me: creating cache $cache_file" >&6;}
1930 # Check that the precious variables saved in the cache have kept the same
1932 ac_cache_corrupted=false
1933 for ac_var in $ac_precious_vars; do
1934 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1935 eval ac_new_set=\$ac_env_${ac_var}_set
1936 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1937 eval ac_new_val=\$ac_env_${ac_var}_value
1938 case $ac_old_set,$ac_new_set in
1940 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1941 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1942 ac_cache_corrupted=: ;;
1944 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1945 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1946 ac_cache_corrupted=: ;;
1949 if test "x$ac_old_val" != "x$ac_new_val"; then
1950 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1951 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1952 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1953 echo "$as_me: former value: $ac_old_val" >&2;}
1954 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1955 echo "$as_me: current value: $ac_new_val" >&2;}
1956 ac_cache_corrupted=:
1959 # Pass precious variables to config.status.
1960 if test "$ac_new_set" = set; then
1962 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1963 *) ac_arg=$ac_var=$ac_new_val ;;
1965 case " $ac_configure_args " in
1966 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1967 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1971 if $ac_cache_corrupted; then
1972 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1973 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1974 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1975 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1976 { (exit 1); exit 1; }; }
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2020 for ac_dir in autoconf "$srcdir"/autoconf; do
2021 if test -f "$ac_dir/install-sh"; then
2023 ac_install_sh="$ac_aux_dir/install-sh -c"
2025 elif test -f "$ac_dir/install.sh"; then
2027 ac_install_sh="$ac_aux_dir/install.sh -c"
2029 elif test -f "$ac_dir/shtool"; then
2031 ac_install_sh="$ac_aux_dir/shtool install -c"
2035 if test -z "$ac_aux_dir"; then
2036 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2037 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2038 { (exit 1); exit 1; }; }
2041 # These three variables are undocumented and unsupported,
2042 # and are intended to be withdrawn in a future Autoconf release.
2043 # They can cause serious problems if a builder's source tree is in a directory
2044 # whose full name contains unusual characters.
2045 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2046 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2047 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2051 if test ${srcdir} != "." ; then
2052 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2053 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2054 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2055 { (exit 1); exit 1; }; }
2059 for i in `ls ${srcdir}/projects`
2061 if test -d ${srcdir}/projects/${i} ; then
2064 "sample") subdirs="$subdirs projects/sample"
2066 "Stacker") subdirs="$subdirs projects/Stacker"
2068 "privbracket") subdirs="$subdirs projects/privbracket"
2070 "llvm-test") subdirs="$subdirs projects/llvm-test"
2072 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
2074 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
2076 "llvm-java") subdirs="$subdirs projects/llvm-java"
2078 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
2080 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2082 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
2085 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2086 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2093 # Make sure we can run config.sub.
2094 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2095 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2096 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2097 { (exit 1); exit 1; }; }
2099 { echo "$as_me:$LINENO: checking build system type" >&5
2100 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_build+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 ac_build_alias=$build_alias
2105 test "x$ac_build_alias" = x &&
2106 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2107 test "x$ac_build_alias" = x &&
2108 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2109 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2110 { (exit 1); exit 1; }; }
2111 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2112 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2113 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2114 { (exit 1); exit 1; }; }
2117 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2118 echo "${ECHO_T}$ac_cv_build" >&6; }
2119 case $ac_cv_build in
2121 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2122 echo "$as_me: error: invalid value of canonical build" >&2;}
2123 { (exit 1); exit 1; }; };;
2126 ac_save_IFS=$IFS; IFS='-'
2132 # Remember, the first character of IFS is used to create $*,
2133 # except with old shells:
2136 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2139 { echo "$as_me:$LINENO: checking host system type" >&5
2140 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2141 if test "${ac_cv_host+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 if test "x$host_alias" = x; then
2145 ac_cv_host=$ac_cv_build
2147 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2148 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2149 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2150 { (exit 1); exit 1; }; }
2154 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2155 echo "${ECHO_T}$ac_cv_host" >&6; }
2158 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2159 echo "$as_me: error: invalid value of canonical host" >&2;}
2160 { (exit 1); exit 1; }; };;
2163 ac_save_IFS=$IFS; IFS='-'
2169 # Remember, the first character of IFS is used to create $*,
2170 # except with old shells:
2173 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2176 { echo "$as_me:$LINENO: checking target system type" >&5
2177 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2178 if test "${ac_cv_target+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 if test "x$target_alias" = x; then
2182 ac_cv_target=$ac_cv_host
2184 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2185 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2186 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2187 { (exit 1); exit 1; }; }
2191 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2192 echo "${ECHO_T}$ac_cv_target" >&6; }
2193 case $ac_cv_target in
2195 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2196 echo "$as_me: error: invalid value of canonical target" >&2;}
2197 { (exit 1); exit 1; }; };;
2199 target=$ac_cv_target
2200 ac_save_IFS=$IFS; IFS='-'
2206 # Remember, the first character of IFS is used to create $*,
2207 # except with old shells:
2210 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2213 # The aliases save the names the user supplied, while $host etc.
2214 # will get canonicalized.
2215 test -n "$target_alias" &&
2216 test "$program_prefix$program_suffix$program_transform_name" = \
2218 program_prefix=${target_alias}-
2220 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2221 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2222 if test "${llvm_cv_os_type+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 llvm_cv_link_all_option="-Wl,--whole-archive"
2228 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2229 llvm_cv_os_type="AIX"
2230 llvm_cv_platform_type="Unix" ;;
2232 llvm_cv_link_all_option="-Wl,--whole-archive"
2233 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2234 llvm_cv_os_type="IRIX"
2235 llvm_cv_platform_type="Unix" ;;
2237 llvm_cv_link_all_option="-Wl,--whole-archive"
2238 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2239 llvm_cv_os_type="Cygwin"
2240 llvm_cv_platform_type="Unix" ;;
2242 llvm_cv_link_all_option="-Wl,-all_load"
2243 llvm_cv_link_all_option="-Wl,-noall_load"
2244 llvm_cv_os_type="Darwin"
2245 llvm_cv_platform_type="Unix" ;;
2247 llvm_cv_link_all_option="-Wl,--whole-archive"
2248 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2249 llvm_cv_os_type="FreeBSD"
2250 llvm_cv_platform_type="Unix" ;;
2252 llvm_cv_link_all_option="-Wl,--whole-archive"
2253 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2254 llvm_cv_os_type="OpenBSD"
2255 llvm_cv_platform_type="Unix" ;;
2257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259 llvm_cv_os_type="HP-UX"
2260 llvm_cv_platform_type="Unix" ;;
2262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264 llvm_cv_os_type="Interix"
2265 llvm_cv_platform_type="Unix" ;;
2267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269 llvm_cv_os_type="Linux"
2270 llvm_cv_platform_type="Unix" ;;
2272 llvm_cv_link_all_option="-Wl,-z,allextract"
2273 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2274 llvm_cv_os_type="SunOS"
2275 llvm_cv_platform_type="Unix" ;;
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="Win32"
2280 llvm_cv_platform_type="Win32" ;;
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="MingW"
2285 llvm_cv_platform_type="Win32" ;;
2287 llvm_cv_link_all_option=""
2288 llvm_cv_no_link_all_option=""
2289 llvm_cv_os_type="Unknown"
2290 llvm_cv_platform_type="Unknown" ;;
2293 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2294 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2296 if test "$llvm_cv_os_type" = "Unknown" ; then
2297 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2298 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2299 { (exit 1); exit 1; }; }
2305 LINKALL=$llvm_cv_link_all_option
2307 NOLINKALL=$llvm_cv_no_link_all_option
2310 case $llvm_cv_platform_type in
2313 cat >>confdefs.h <<\_ACEOF
2314 #define LLVM_ON_UNIX 1
2324 cat >>confdefs.h <<\_ACEOF
2325 #define LLVM_ON_WIN32 1
2335 { echo "$as_me:$LINENO: checking target architecture" >&5
2336 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2337 if test "${llvm_cv_target_arch+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 i?86-*) llvm_cv_target_arch="x86" ;;
2342 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2343 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2344 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2345 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2346 ia64-*) llvm_cv_target_arch="IA64" ;;
2347 *) llvm_cv_target_arch="Unknown" ;;
2350 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2351 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2353 if test "$llvm_cv_target_arch" = "Unknown" ; then
2354 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2355 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2358 ARCH=$llvm_cv_target_arch
2362 ac_cpp='$CPP $CPPFLAGS'
2363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366 if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2368 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_CC+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 if test -n "$CC"; then
2375 ac_cv_prog_CC="$CC" # Let the user override the test.
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2384 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 if test -n "$CC"; then
2396 { echo "$as_me:$LINENO: result: $CC" >&5
2397 echo "${ECHO_T}$CC" >&6; }
2399 { echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6; }
2405 if test -z "$ac_cv_prog_CC"; then
2407 # Extract the first word of "gcc", so it can be a program name with args.
2408 set dummy gcc; ac_word=$2
2409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 if test -n "$ac_ct_CC"; then
2415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2424 ac_cv_prog_ac_ct_CC="gcc"
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2435 if test -n "$ac_ct_CC"; then
2436 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2437 echo "${ECHO_T}$ac_ct_CC" >&6; }
2439 { echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6; }
2443 if test "x$ac_ct_CC" = x; then
2446 case $cross_compiling:$ac_tool_warned in
2448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2449 whose name does not start with the host triplet. If you think this
2450 configuration is useful to you, please write to autoconf@gnu.org." >&5
2451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2452 whose name does not start with the host triplet. If you think this
2453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2454 ac_tool_warned=yes ;;
2462 if test -z "$CC"; then
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}cc; ac_word=$2
2466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_CC+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_CC="${ac_tool_prefix}cc"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 if test -n "$CC"; then
2493 { echo "$as_me:$LINENO: result: $CC" >&5
2494 echo "${ECHO_T}$CC" >&6; }
2496 { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2503 if test -z "$CC"; then
2504 # Extract the first word of "cc", so it can be a program name with args.
2505 set dummy cc; ac_word=$2
2506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2508 if test "${ac_cv_prog_CC+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC="$CC" # Let the user override the test.
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2523 ac_prog_rejected=yes
2527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 if test $ac_prog_rejected = yes; then
2535 # We found a bogon in the path, so make sure we never use it.
2536 set dummy $ac_cv_prog_CC
2538 if test $# != 0; then
2539 # We chose a different compiler from the bogus one.
2540 # However, it has the same basename, so the bogon will be chosen
2541 # first if we set CC to just the basename; use the full file name.
2543 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2549 if test -n "$CC"; then
2550 { echo "$as_me:$LINENO: result: $CC" >&5
2551 echo "${ECHO_T}$CC" >&6; }
2553 { echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6; }
2559 if test -z "$CC"; then
2560 if test -n "$ac_tool_prefix"; then
2561 for ac_prog in cl.exe
2563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 if test -n "$CC"; then
2592 { echo "$as_me:$LINENO: result: $CC" >&5
2593 echo "${ECHO_T}$CC" >&6; }
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$CC" && break
2603 if test -z "$CC"; then
2605 for ac_prog in cl.exe
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2611 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 if test -n "$ac_ct_CC"; then
2615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_ac_ct_CC="$ac_prog"
2625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2635 if test -n "$ac_ct_CC"; then
2636 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2637 echo "${ECHO_T}$ac_ct_CC" >&6; }
2639 { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2644 test -n "$ac_ct_CC" && break
2647 if test "x$ac_ct_CC" = x; then
2650 case $cross_compiling:$ac_tool_warned in
2652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2653 whose name does not start with the host triplet. If you think this
2654 configuration is useful to you, please write to autoconf@gnu.org." >&5
2655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2656 whose name does not start with the host triplet. If you think this
2657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2658 ac_tool_warned=yes ;;
2667 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: no acceptable C compiler found in \$PATH
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }
2673 # Provide some information about the compiler.
2674 echo "$as_me:$LINENO: checking for C compiler version" >&5
2675 ac_compiler=`set X $ac_compile; echo $2`
2676 { (ac_try="$ac_compiler --version >&5"
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682 (eval "$ac_compiler --version >&5") 2>&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2686 { (ac_try="$ac_compiler -v >&5"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compiler -v >&5") 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
2696 { (ac_try="$ac_compiler -V >&5"
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compiler -V >&5") 2>&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }
2707 cat >conftest.$ac_ext <<_ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2722 ac_clean_files_save=$ac_clean_files
2723 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2724 # Try to create an executable without -o first, disregard a.out.
2725 # It will help us diagnose broken compilers, and finding out an intuition
2727 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2728 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2729 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2731 # List of possible output files, starting from the most likely.
2732 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2733 # only as a last resort. b.out is created by i960 compilers.
2734 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2736 # The IRIX 6 linker writes into existing files which may not be
2737 # executable, retaining their permissions. Remove them first so a
2738 # subsequent execution test works.
2740 for ac_file in $ac_files
2743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2744 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2749 if { (ac_try="$ac_link_default"
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_link_default") 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; then
2759 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2760 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2761 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2762 # so that the user can short-circuit this test for compilers unknown to
2764 for ac_file in $ac_files
2766 test -f "$ac_file" || continue
2768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2771 # We found the default executable, but exeext='' is most
2775 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2777 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2779 # We set ac_cv_exeext here because the later test for it is not
2780 # safe: cross compilers may not add the suffix if given an `-o'
2781 # argument, so we may need to know it at that point already.
2782 # Even if this section looks crufty: it has the advantage of
2789 test "$ac_cv_exeext" = no && ac_cv_exeext=
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2795 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2796 See \`config.log' for more details." >&5
2797 echo "$as_me: error: C compiler cannot create executables
2798 See \`config.log' for more details." >&2;}
2799 { (exit 77); exit 77; }; }
2802 ac_exeext=$ac_cv_exeext
2803 { echo "$as_me:$LINENO: result: $ac_file" >&5
2804 echo "${ECHO_T}$ac_file" >&6; }
2806 # Check that the compiler produces executables we can run. If not, either
2807 # the compiler is broken, or we cross compile.
2808 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2809 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2810 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2811 # If not cross compiling, check that we can run a simple program.
2812 if test "$cross_compiling" != yes; then
2813 if { ac_try='./$ac_file'
2814 { (case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_try") 2>&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
2825 if test "$cross_compiling" = maybe; then
2828 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2829 If you meant to cross compile, use \`--host'.
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: cannot run C compiled programs.
2832 If you meant to cross compile, use \`--host'.
2833 See \`config.log' for more details." >&2;}
2834 { (exit 1); exit 1; }; }
2838 { echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6; }
2841 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2842 ac_clean_files=$ac_clean_files_save
2843 # Check that the compiler produces executables we can run. If not, either
2844 # the compiler is broken, or we cross compile.
2845 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2846 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2847 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2848 echo "${ECHO_T}$cross_compiling" >&6; }
2850 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2851 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2852 if { (ac_try="$ac_link"
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_link") 2>&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; then
2862 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2863 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2864 # work properly (i.e., refer to `conftest.exe'), while it won't with
2866 for ac_file in conftest.exe conftest conftest.*; do
2867 test -f "$ac_file" || continue
2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2870 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2876 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2877 See \`config.log' for more details." >&5
2878 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2879 See \`config.log' for more details." >&2;}
2880 { (exit 1); exit 1; }; }
2883 rm -f conftest$ac_cv_exeext
2884 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2885 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2887 rm -f conftest.$ac_ext
2888 EXEEXT=$ac_cv_exeext
2890 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2891 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2892 if test "${ac_cv_objext+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 cat >conftest.$ac_ext <<_ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2910 rm -f conftest.o conftest.obj
2911 if { (ac_try="$ac_compile"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compile") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; then
2921 for ac_file in conftest.o conftest.obj conftest.*; do
2922 test -f "$ac_file" || continue;
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2925 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2936 See \`config.log' for more details." >&2;}
2937 { (exit 1); exit 1; }; }
2940 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2942 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2943 echo "${ECHO_T}$ac_cv_objext" >&6; }
2944 OBJEXT=$ac_cv_objext
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2984 { (case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_try") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3015 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3017 GCC=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CFLAGS=${CFLAGS+set}
3019 ac_save_CFLAGS=$CFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3021 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cc_g+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 ac_save_c_werror_flag=$ac_c_werror_flag
3026 ac_c_werror_flag=yes
3029 cat >conftest.$ac_ext <<_ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 ac_c_werror_flag=$ac_save_c_werror_flag
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3164 grep -v '^ *+' conftest.er1 >conftest.err
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3208 if test "$ac_test_CFLAGS" = set; then
3209 CFLAGS=$ac_save_CFLAGS
3210 elif test $ac_cv_prog_cc_g = yes; then
3211 if test "$GCC" = yes; then
3217 if test "$GCC" = yes; then
3223 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3224 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_cc_c89+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 ac_cv_prog_cc_c89=no
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3238 #include <sys/types.h>
3239 #include <sys/stat.h>
3240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3241 struct buf { int x; };
3242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3243 static char *e (p, i)
3249 static char *f (char * (*g) (char **, int), char **p, ...)
3254 s = g (p, va_arg (v,int));
3259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3260 function prototypes and stuff, but not '\xHH' hex character constants.
3261 These don't provoke an error unfortunately, instead are silently treated
3262 as 'x'. The following induces an error, until -std is added to get
3263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3264 array size at least. It's necessary to write '\x00'==0 to get something
3265 that's true only with -std. */
3266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3269 inside strings and character constants. */
3271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3273 int test (int i, double x);
3274 struct s1 {int (*f) (int a);};
3275 struct s2 {int (*f) (double a);};
3276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3282 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3290 CC="$ac_save_CC $ac_arg"
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_compile") 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } &&
3305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3306 { (case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_try") 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; } &&
3315 { ac_try='test -s conftest.$ac_objext'
3316 { (case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_try") 2>&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 ac_cv_prog_cc_c89=$ac_arg
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3333 rm -f core conftest.err conftest.$ac_objext
3334 test "x$ac_cv_prog_cc_c89" != "xno" && break
3336 rm -f conftest.$ac_ext
3341 case "x$ac_cv_prog_cc_c89" in
3343 { echo "$as_me:$LINENO: result: none needed" >&5
3344 echo "${ECHO_T}none needed" >&6; } ;;
3346 { echo "$as_me:$LINENO: result: unsupported" >&5
3347 echo "${ECHO_T}unsupported" >&6; } ;;
3349 CC="$CC $ac_cv_prog_cc_c89"
3350 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3351 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363 ac_cpp='$CPP $CPPFLAGS'
3364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3368 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3369 # On Suns, sometimes $CPP names a directory.
3370 if test -n "$CPP" && test -d "$CPP"; then
3373 if test -z "$CPP"; then
3374 if test "${ac_cv_prog_CPP+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 # Double quotes because CPP needs to be expanded
3378 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3381 for ac_c_preproc_warn_flag in '' yes
3383 # Use a header file that comes with gcc, so configuring glibc
3384 # with a fresh cross-compiler works.
3385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3386 # <limits.h> exists even on freestanding compilers.
3387 # On the NeXT, cc -E runs the code through the compiler's parser,
3388 # not just through cpp. "Syntax error" is here to catch this case.
3389 cat >conftest.$ac_ext <<_ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3396 # include <limits.h>
3398 # include <assert.h>
3402 if { (ac_try="$ac_cpp conftest.$ac_ext"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev/null; then
3415 if test -s conftest.err; then
3416 ac_cpp_err=$ac_c_preproc_warn_flag
3417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424 if test -z "$ac_cpp_err"; then
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 # Broken: fails on valid input.
3434 rm -f conftest.err conftest.$ac_ext
3436 # OK, works on sane cases. Now check whether nonexistent headers
3437 # can be detected and how.
3438 cat >conftest.$ac_ext <<_ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3444 #include <ac_nonexistent.h>
3446 if { (ac_try="$ac_cpp conftest.$ac_ext"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1 >conftest.err
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } >/dev/null; then
3459 if test -s conftest.err; then
3460 ac_cpp_err=$ac_c_preproc_warn_flag
3461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3468 if test -z "$ac_cpp_err"; then
3469 # Broken: success on invalid input.
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3475 # Passes both tests.
3480 rm -f conftest.err conftest.$ac_ext
3483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3484 rm -f conftest.err conftest.$ac_ext
3485 if $ac_preproc_ok; then
3497 { echo "$as_me:$LINENO: result: $CPP" >&5
3498 echo "${ECHO_T}$CPP" >&6; }
3500 for ac_c_preproc_warn_flag in '' yes
3502 # Use a header file that comes with gcc, so configuring glibc
3503 # with a fresh cross-compiler works.
3504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3505 # <limits.h> exists even on freestanding compilers.
3506 # On the NeXT, cc -E runs the code through the compiler's parser,
3507 # not just through cpp. "Syntax error" is here to catch this case.
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3515 # include <limits.h>
3517 # include <assert.h>
3521 if { (ac_try="$ac_cpp conftest.$ac_ext"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } >/dev/null; then
3534 if test -s conftest.err; then
3535 ac_cpp_err=$ac_c_preproc_warn_flag
3536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3543 if test -z "$ac_cpp_err"; then
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3549 # Broken: fails on valid input.
3553 rm -f conftest.err conftest.$ac_ext
3555 # OK, works on sane cases. Now check whether nonexistent headers
3556 # can be detected and how.
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3563 #include <ac_nonexistent.h>
3565 if { (ac_try="$ac_cpp conftest.$ac_ext"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } >/dev/null; then
3578 if test -s conftest.err; then
3579 ac_cpp_err=$ac_c_preproc_warn_flag
3580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3587 if test -z "$ac_cpp_err"; then
3588 # Broken: success on invalid input.
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 # Passes both tests.
3599 rm -f conftest.err conftest.$ac_ext
3602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603 rm -f conftest.err conftest.$ac_ext
3604 if $ac_preproc_ok; then
3607 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3608 See \`config.log' for more details." >&5
3609 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3610 See \`config.log' for more details." >&2;}
3611 { (exit 1); exit 1; }; }
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3622 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3623 if test "${ac_cv_path_GREP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 # Extract the first word of "grep ggrep" to use in msg output
3627 if test -z "$GREP"; then
3628 set dummy grep ggrep; ac_prog_name=$2
3629 if test "${ac_cv_path_GREP+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 ac_path_GREP_found=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3638 test -z "$as_dir" && as_dir=.
3639 for ac_prog in grep ggrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3642 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3643 # Check for GNU ac_path_GREP and select it if it is found.
3644 # Check for GNU $ac_path_GREP
3645 case `"$ac_path_GREP" --version 2>&1` in
3647 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 echo 'GREP' >> "conftest.nl"
3657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 ac_count=`expr $ac_count + 1`
3660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_GREP="$ac_path_GREP"
3663 ac_path_GREP_max=$ac_count
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3672 $ac_path_GREP_found && break 3
3682 GREP="$ac_cv_path_GREP"
3683 if test -z "$GREP"; then
3684 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3685 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3686 { (exit 1); exit 1; }; }
3690 ac_cv_path_GREP=$GREP
3695 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3696 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3697 GREP="$ac_cv_path_GREP"
3700 { echo "$as_me:$LINENO: checking for egrep" >&5
3701 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3702 if test "${ac_cv_path_EGREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3706 then ac_cv_path_EGREP="$GREP -E"
3708 # Extract the first word of "egrep" to use in msg output
3709 if test -z "$EGREP"; then
3710 set dummy egrep; ac_prog_name=$2
3711 if test "${ac_cv_path_EGREP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 ac_path_EGREP_found=false
3715 # Loop through the user's path and test for each of PROGNAME-LIST
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3720 test -z "$as_dir" && as_dir=.
3721 for ac_prog in egrep; do
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3724 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3725 # Check for GNU ac_path_EGREP and select it if it is found.
3726 # Check for GNU $ac_path_EGREP
3727 case `"$ac_path_EGREP" --version 2>&1` in
3729 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3732 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3735 cat "conftest.in" "conftest.in" >"conftest.tmp"
3736 mv "conftest.tmp" "conftest.in"
3737 cp "conftest.in" "conftest.nl"
3738 echo 'EGREP' >> "conftest.nl"
3739 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3741 ac_count=`expr $ac_count + 1`
3742 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3743 # Best one so far, save it but keep looking for a better one
3744 ac_cv_path_EGREP="$ac_path_EGREP"
3745 ac_path_EGREP_max=$ac_count
3747 # 10*(2^10) chars as input seems more than enough
3748 test $ac_count -gt 10 && break
3750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3754 $ac_path_EGREP_found && break 3
3764 EGREP="$ac_cv_path_EGREP"
3765 if test -z "$EGREP"; then
3766 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3767 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3768 { (exit 1); exit 1; }; }
3772 ac_cv_path_EGREP=$EGREP
3778 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3779 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3780 EGREP="$ac_cv_path_EGREP"
3783 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3784 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3785 if test "${ac_cv_header_stdc+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 cat >conftest.$ac_ext <<_ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3807 rm -f conftest.$ac_objext
3808 if { (ac_try="$ac_compile"
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_compile") 2>conftest.er1
3816 grep -v '^ *+' conftest.er1 >conftest.err
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
3821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3822 { (case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_try") 2>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; } &&
3831 { ac_try='test -s conftest.$ac_objext'
3832 { (case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_try") 2>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 ac_cv_header_stdc=yes
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 ac_cv_header_stdc=no
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 if test $ac_cv_header_stdc = yes; then
3852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3853 cat >conftest.$ac_ext <<_ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3863 $EGREP "memchr" >/dev/null 2>&1; then
3866 ac_cv_header_stdc=no
3872 if test $ac_cv_header_stdc = yes; then
3873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3874 cat >conftest.$ac_ext <<_ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3884 $EGREP "free" >/dev/null 2>&1; then
3887 ac_cv_header_stdc=no
3893 if test $ac_cv_header_stdc = yes; then
3894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3895 if test "$cross_compiling" = yes; then
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3906 #if ((' ' & 0x0FF) == 0x020)
3907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3910 # define ISLOWER(c) \
3911 (('a' <= (c) && (c) <= 'i') \
3912 || ('j' <= (c) && (c) <= 'r') \
3913 || ('s' <= (c) && (c) <= 'z'))
3914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3922 for (i = 0; i < 256; i++)
3923 if (XOR (islower (i), ISLOWER (i))
3924 || toupper (i) != TOUPPER (i))
3929 rm -f conftest$ac_exeext
3930 if { (ac_try="$ac_link"
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_link") 2>&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3940 { (case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_try") 2>&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3951 echo "$as_me: program exited with status $ac_status" >&5
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3956 ac_cv_header_stdc=no
3958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3964 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3965 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3966 if test $ac_cv_header_stdc = yes; then
3968 cat >>confdefs.h <<\_ACEOF
3969 #define STDC_HEADERS 1
3974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3985 inttypes.h stdint.h unistd.h
3987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 cat >conftest.$ac_ext <<_ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 $ac_includes_default
4001 #include <$ac_header>
4003 rm -f conftest.$ac_objext
4004 if { (ac_try="$ac_compile"
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_compile") 2>conftest.er1
4012 grep -v '^ *+' conftest.er1 >conftest.err
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } &&
4017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4018 { (case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023 (eval "$ac_try") 2>&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try='test -s conftest.$ac_objext'
4028 { (case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_try") 2>&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 eval "$as_ac_Header=yes"
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 eval "$as_ac_Header=no"
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 ac_res=`eval echo '${'$as_ac_Header'}'`
4048 { echo "$as_me:$LINENO: result: $ac_res" >&5
4049 echo "${ECHO_T}$ac_res" >&6; }
4050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4051 cat >>confdefs.h <<_ACEOF
4052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4060 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4061 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4062 if test "${ac_cv_c_bigendian+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 # See if sys/param.h defines the BYTE_ORDER macro.
4066 cat >conftest.$ac_ext <<_ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 #include <sys/types.h>
4073 #include <sys/param.h>
4078 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4086 rm -f conftest.$ac_objext
4087 if { (ac_try="$ac_compile"
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_compile") 2>conftest.er1
4095 grep -v '^ *+' conftest.er1 >conftest.err
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } &&
4100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4101 { (case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_try") 2>&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; } &&
4110 { ac_try='test -s conftest.$ac_objext'
4111 { (case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_try") 2>&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 # It does; now see whether it defined to BIG_ENDIAN or not.
4121 cat >conftest.$ac_ext <<_ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 #include <sys/types.h>
4128 #include <sys/param.h>
4133 #if BYTE_ORDER != BIG_ENDIAN
4141 rm -f conftest.$ac_objext
4142 if { (ac_try="$ac_compile"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_compile") 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_try") 2>&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 ac_cv_c_bigendian=yes
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 ac_cv_c_bigendian=no
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 # It does not; compile a test program.
4189 if test "$cross_compiling" = yes; then
4190 # try to guess the endianness by grepping values into an object file
4191 ac_cv_c_bigendian=unknown
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4199 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4200 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4201 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4202 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4203 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4207 _ascii (); _ebcdic ();
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1 >conftest.err
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4247 ac_cv_c_bigendian=yes
4249 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4250 if test "$ac_cv_c_bigendian" = unknown; then
4251 ac_cv_c_bigendian=no
4253 # finding both strings is unlikely to happen, but who knows?
4254 ac_cv_c_bigendian=unknown
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 cat >conftest.$ac_ext <<_ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 $ac_includes_default
4277 /* Are we little or big endian? From Harbison&Steele. */
4281 char c[sizeof (long int)];
4284 return u.c[sizeof (long int) - 1] == 1;
4290 rm -f conftest$ac_exeext
4291 if { (ac_try="$ac_link"
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_link") 2>&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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=no
4312 echo "$as_me: program exited with status $ac_status" >&5
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4317 ac_cv_c_bigendian=yes
4319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4328 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4329 case $ac_cv_c_bigendian in
4337 { { echo "$as_me:$LINENO: error: unknown endianness
4338 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4339 echo "$as_me: error: unknown endianness
4340 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4341 { (exit 1); exit 1; }; } ;;
4345 if test "$cross_compiling" = yes; then
4346 LLVM_CROSS_COMPILING=1
4349 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4350 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4351 if test "${ac_cv_build_exeext+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4355 ac_cv_build_exeext=.exe
4357 ac_build_prefix=${build_alias}-
4359 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4360 set dummy ${ac_build_prefix}gcc; ac_word=$2
4361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4363 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 if test -n "$BUILD_CC"; then
4367 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 BUILD_CC=$ac_cv_prog_BUILD_CC
4387 if test -n "$BUILD_CC"; then
4388 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4389 echo "${ECHO_T}$BUILD_CC" >&6; }
4391 { echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6; }
4396 if test -z "$BUILD_CC"; then
4397 # Extract the first word of "gcc", so it can be a program name with args.
4398 set dummy gcc; ac_word=$2
4399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 if test -n "$BUILD_CC"; then
4405 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_BUILD_CC="gcc"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 BUILD_CC=$ac_cv_prog_BUILD_CC
4425 if test -n "$BUILD_CC"; then
4426 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4427 echo "${ECHO_T}$BUILD_CC" >&6; }
4429 { echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6; }
4434 if test -z "$BUILD_CC"; then
4435 # Extract the first word of "cc", so it can be a program name with args.
4436 set dummy cc; ac_word=$2
4437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 if test -n "$BUILD_CC"; then
4443 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4454 ac_prog_rejected=yes
4457 ac_cv_prog_BUILD_CC="cc"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 if test $ac_prog_rejected = yes; then
4466 # We found a bogon in the path, so make sure we never use it.
4467 set dummy $ac_cv_prog_BUILD_CC
4469 if test $# != 0; then
4470 # We chose a different compiler from the bogus one.
4471 # However, it has the same basename, so the bogon will be chosen
4472 # first if we set BUILD_CC to just the basename; use the full file name.
4474 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4479 BUILD_CC=$ac_cv_prog_BUILD_CC
4480 if test -n "$BUILD_CC"; then
4481 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4482 echo "${ECHO_T}$BUILD_CC" >&6; }
4484 { echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6; }
4491 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4492 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4493 { (exit 1); exit 1; }; }
4494 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4496 echo 'int main () { return 0; }' > conftest.$ac_ext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4499 (eval $ac_build_link) 2>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; then
4503 for file in conftest.*; do
4505 *.c | *.o | *.obj) ;;
4506 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4510 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4511 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4512 { (exit 1); exit 1; }; }
4515 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4520 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4521 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4522 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4523 ac_build_exeext=$BUILD_EXEEXT
4526 LLVM_CROSS_COMPILING=0
4530 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4541 # Check whether --enable-optimized was given.
4542 if test "${enable_optimized+set}" = set; then
4543 enableval=$enable_optimized;
4548 if test ${enableval} = "no" ; then
4552 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4556 # Check whether --enable-assertions was given.
4557 if test "${enable_assertions+set}" = set; then
4558 enableval=$enable_assertions;
4563 if test ${enableval} = "yes" ; then
4567 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4571 # Check whether --enable-debug-runtime was given.
4572 if test "${enable_debug_runtime+set}" = set; then
4573 enableval=$enable_debug_runtime;
4578 if test ${enableval} = "no" ; then
4582 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4586 # Check whether --enable-jit was given.
4587 if test "${enable_jit+set}" = set; then
4588 enableval=$enable_jit;
4593 if test ${enableval} = "no"
4598 case "$llvm_cv_target_arch" in
4599 x86) TARGET_HAS_JIT=1
4601 Sparc) TARGET_HAS_JIT=1
4603 PowerPC) TARGET_HAS_JIT=1
4605 x86_64) TARGET_HAS_JIT=0
4607 Alpha) TARGET_HAS_JIT=1
4609 IA64) TARGET_HAS_JIT=0
4616 # Check whether --enable-doxygen was given.
4617 if test "${enable_doxygen+set}" = set; then
4618 enableval=$enable_doxygen;
4623 case "$enableval" in
4624 yes) ENABLE_DOXYGEN=1
4626 no) ENABLE_DOXYGEN=0
4628 default) ENABLE_DOXYGEN=0
4630 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4631 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4632 { (exit 1); exit 1; }; } ;;
4635 # Check whether --enable-threads was given.
4636 if test "${enable_threads+set}" = set; then
4637 enableval=$enable_threads;
4642 case "$enableval" in
4643 yes) ENABLE_THREADS=1
4645 no) ENABLE_THREADS=0
4647 default) ENABLE_THREADS=1
4649 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4650 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4651 { (exit 1); exit 1; }; } ;;
4654 cat >>confdefs.h <<_ACEOF
4655 #define ENABLE_THREADS $ENABLE_THREADS
4659 # Check whether --enable-pic was given.
4660 if test "${enable_pic+set}" = set; then
4661 enableval=$enable_pic;
4666 case "$enableval" in
4671 default) ENABLE_PIC=0
4673 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4674 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4675 { (exit 1); exit 1; }; } ;;
4678 cat >>confdefs.h <<_ACEOF
4679 #define ENABLE_PIC $ENABLE_PIC
4684 # Check whether --enable-targets was given.
4685 if test "${enable_targets+set}" = set; then
4686 enableval=$enable_targets;
4691 case "$enableval" in
4692 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4694 case "$llvm_cv_target_arch" in
4695 x86) TARGETS_TO_BUILD="X86" ;;
4696 x86_64) TARGETS_TO_BUILD="X86" ;;
4697 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4698 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4699 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4700 IA64) TARGETS_TO_BUILD="IA64" ;;
4701 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4702 echo "$as_me: error: Can not set target to build" >&2;}
4703 { (exit 1); exit 1; }; } ;;
4706 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4708 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4709 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4710 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4711 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4712 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4713 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4714 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4715 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4716 { (exit 1); exit 1; }; } ;;
4721 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4722 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4725 # Check whether --enable-cbe-printf-a was given.
4726 if test "${enable_cbe_printf_a+set}" = set; then
4727 enableval=$enable_cbe_printf_a;
4732 case "$enableval" in
4733 yes) ENABLE_CBE_PRINTF_A=1
4735 no) ENABLE_CBE_PRINTF_A=0
4737 default) ENABLE_CBE_PRINTF_A=1
4739 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4740 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4741 { (exit 1); exit 1; }; } ;;
4744 cat >>confdefs.h <<_ACEOF
4745 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4750 # Check whether --with-llvmgccdir was given.
4751 if test "${with_llvmgccdir+set}" = set; then
4752 withval=$with_llvmgccdir;
4758 default) WITH_LLVMGCCDIR=default ;;
4759 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4760 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4761 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4762 { (exit 1); exit 1; }; } ;;
4766 # Check whether --with-extra-options was given.
4767 if test "${with_extra_options+set}" = set; then
4768 withval=$with_extra_options;
4774 default) EXTRA_OPTIONS= ;;
4775 *) EXTRA_OPTIONS=$withval ;;
4777 EXTRA_OPTIONS=$EXTRA_OPTIONS
4782 ac_cpp='$CPP $CPPFLAGS'
4783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4787 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4788 # On Suns, sometimes $CPP names a directory.
4789 if test -n "$CPP" && test -d "$CPP"; then
4792 if test -z "$CPP"; then
4793 if test "${ac_cv_prog_CPP+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 # Double quotes because CPP needs to be expanded
4797 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4800 for ac_c_preproc_warn_flag in '' yes
4802 # Use a header file that comes with gcc, so configuring glibc
4803 # with a fresh cross-compiler works.
4804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4805 # <limits.h> exists even on freestanding compilers.
4806 # On the NeXT, cc -E runs the code through the compiler's parser,
4807 # not just through cpp. "Syntax error" is here to catch this case.
4808 cat >conftest.$ac_ext <<_ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4815 # include <limits.h>
4817 # include <assert.h>
4821 if { (ac_try="$ac_cpp conftest.$ac_ext"
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4829 grep -v '^ *+' conftest.er1 >conftest.err
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } >/dev/null; then
4834 if test -s conftest.err; then
4835 ac_cpp_err=$ac_c_preproc_warn_flag
4836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4843 if test -z "$ac_cpp_err"; then
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 # Broken: fails on valid input.
4853 rm -f conftest.err conftest.$ac_ext
4855 # OK, works on sane cases. Now check whether nonexistent headers
4856 # can be detected and how.
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 #include <ac_nonexistent.h>
4865 if { (ac_try="$ac_cpp conftest.$ac_ext"
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4873 grep -v '^ *+' conftest.er1 >conftest.err
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } >/dev/null; then
4878 if test -s conftest.err; then
4879 ac_cpp_err=$ac_c_preproc_warn_flag
4880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4887 if test -z "$ac_cpp_err"; then
4888 # Broken: success on invalid input.
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4894 # Passes both tests.
4899 rm -f conftest.err conftest.$ac_ext
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.err conftest.$ac_ext
4904 if $ac_preproc_ok; then
4916 { echo "$as_me:$LINENO: result: $CPP" >&5
4917 echo "${ECHO_T}$CPP" >&6; }
4919 for ac_c_preproc_warn_flag in '' yes
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4934 # include <limits.h>
4936 # include <assert.h>
4940 if { (ac_try="$ac_cpp conftest.$ac_ext"
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4948 grep -v '^ *+' conftest.er1 >conftest.err
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } >/dev/null; then
4953 if test -s conftest.err; then
4954 ac_cpp_err=$ac_c_preproc_warn_flag
4955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4962 if test -z "$ac_cpp_err"; then
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4968 # Broken: fails on valid input.
4972 rm -f conftest.err conftest.$ac_ext
4974 # OK, works on sane cases. Now check whether nonexistent headers
4975 # can be detected and how.
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 #include <ac_nonexistent.h>
4984 if { (ac_try="$ac_cpp conftest.$ac_ext"
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4992 grep -v '^ *+' conftest.er1 >conftest.err
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev/null; then
4997 if test -s conftest.err; then
4998 ac_cpp_err=$ac_c_preproc_warn_flag
4999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5006 if test -z "$ac_cpp_err"; then
5007 # Broken: success on invalid input.
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 # Passes both tests.
5018 rm -f conftest.err conftest.$ac_ext
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.err conftest.$ac_ext
5023 if $ac_preproc_ok; then
5026 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5027 See \`config.log' for more details." >&5
5028 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5029 See \`config.log' for more details." >&2;}
5030 { (exit 1); exit 1; }; }
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040 ac_cpp='$CPP $CPPFLAGS'
5041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044 if test -n "$ac_tool_prefix"; then
5047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_prog_CC+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 if test -n "$CC"; then
5055 ac_cv_prog_CC="$CC" # Let the user override the test.
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 if test -n "$CC"; then
5076 { echo "$as_me:$LINENO: result: $CC" >&5
5077 echo "${ECHO_T}$CC" >&6; }
5079 { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5084 test -n "$CC" && break
5087 if test -z "$CC"; then
5091 # Extract the first word of "$ac_prog", so it can be a program name with args.
5092 set dummy $ac_prog; ac_word=$2
5093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 if test -n "$ac_ct_CC"; then
5099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_ac_ct_CC="$ac_prog"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5119 if test -n "$ac_ct_CC"; then
5120 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5121 echo "${ECHO_T}$ac_ct_CC" >&6; }
5123 { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5128 test -n "$ac_ct_CC" && break
5131 if test "x$ac_ct_CC" = x; then
5134 case $cross_compiling:$ac_tool_warned in
5136 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5137 whose name does not start with the host triplet. If you think this
5138 configuration is useful to you, please write to autoconf@gnu.org." >&5
5139 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5140 whose name does not start with the host triplet. If you think this
5141 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5142 ac_tool_warned=yes ;;
5149 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5150 See \`config.log' for more details." >&5
5151 echo "$as_me: error: no acceptable C compiler found in \$PATH
5152 See \`config.log' for more details." >&2;}
5153 { (exit 1); exit 1; }; }
5155 # Provide some information about the compiler.
5156 echo "$as_me:$LINENO: checking for C compiler version" >&5
5157 ac_compiler=`set X $ac_compile; echo $2`
5158 { (ac_try="$ac_compiler --version >&5"
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164 (eval "$ac_compiler --version >&5") 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }
5168 { (ac_try="$ac_compiler -v >&5"
5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174 (eval "$ac_compiler -v >&5") 2>&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }
5178 { (ac_try="$ac_compiler -V >&5"
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184 (eval "$ac_compiler -V >&5") 2>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }
5189 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5190 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5191 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 cat >conftest.$ac_ext <<_ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5212 rm -f conftest.$ac_objext
5213 if { (ac_try="$ac_compile"
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_compile") 2>conftest.er1
5221 grep -v '^ *+' conftest.er1 >conftest.err
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5227 { (case "(($ac_try" in
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_try") 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_try") 2>&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5258 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5259 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5260 GCC=`test $ac_compiler_gnu = yes && echo yes`
5261 ac_test_CFLAGS=${CFLAGS+set}
5262 ac_save_CFLAGS=$CFLAGS
5263 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5264 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5265 if test "${ac_cv_prog_cc_g+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 ac_save_c_werror_flag=$ac_c_werror_flag
5269 ac_c_werror_flag=yes
5272 cat >conftest.$ac_ext <<_ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5287 rm -f conftest.$ac_objext
5288 if { (ac_try="$ac_compile"
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_compile") 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5302 { (case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_try") 2>&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; } &&
5311 { ac_try='test -s conftest.$ac_objext'
5312 { (case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_try") 2>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5327 cat >conftest.$ac_ext <<_ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5342 rm -f conftest.$ac_objext
5343 if { (ac_try="$ac_compile"
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5351 grep -v '^ *+' conftest.er1 >conftest.err
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5357 { (case "(($ac_try" in
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_try") 2>&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; } &&
5366 { ac_try='test -s conftest.$ac_objext'
5367 { (case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_try") 2>&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5381 ac_c_werror_flag=$ac_save_c_werror_flag
5383 cat >conftest.$ac_ext <<_ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5398 rm -f conftest.$ac_objext
5399 if { (ac_try="$ac_compile"
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compile") 2>conftest.er1
5407 grep -v '^ *+' conftest.er1 >conftest.err
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5413 { (case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_try") 2>&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; } &&
5422 { ac_try='test -s conftest.$ac_objext'
5423 { (case "(($ac_try" in
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_try") 2>&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 ac_c_werror_flag=$ac_save_c_werror_flag
5449 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5450 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5451 if test "$ac_test_CFLAGS" = set; then
5452 CFLAGS=$ac_save_CFLAGS
5453 elif test $ac_cv_prog_cc_g = yes; then
5454 if test "$GCC" = yes; then
5460 if test "$GCC" = yes; then
5466 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5467 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5468 if test "${ac_cv_prog_cc_c89+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 ac_cv_prog_cc_c89=no
5473 cat >conftest.$ac_ext <<_ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5481 #include <sys/types.h>
5482 #include <sys/stat.h>
5483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5484 struct buf { int x; };
5485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5486 static char *e (p, i)
5492 static char *f (char * (*g) (char **, int), char **p, ...)
5497 s = g (p, va_arg (v,int));
5502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5503 function prototypes and stuff, but not '\xHH' hex character constants.
5504 These don't provoke an error unfortunately, instead are silently treated
5505 as 'x'. The following induces an error, until -std is added to get
5506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5507 array size at least. It's necessary to write '\x00'==0 to get something
5508 that's true only with -std. */
5509 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5511 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5512 inside strings and character constants. */
5514 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5516 int test (int i, double x);
5517 struct s1 {int (*f) (int a);};
5518 struct s2 {int (*f) (double a);};
5519 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5525 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5530 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5531 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5533 CC="$ac_save_CC $ac_arg"
5534 rm -f conftest.$ac_objext
5535 if { (ac_try="$ac_compile"
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_compile") 2>conftest.er1
5543 grep -v '^ *+' conftest.er1 >conftest.err
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5549 { (case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_try") 2>&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; } &&
5558 { ac_try='test -s conftest.$ac_objext'
5559 { (case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_try") 2>&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
5568 ac_cv_prog_cc_c89=$ac_arg
5570 echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5576 rm -f core conftest.err conftest.$ac_objext
5577 test "x$ac_cv_prog_cc_c89" != "xno" && break
5579 rm -f conftest.$ac_ext
5584 case "x$ac_cv_prog_cc_c89" in
5586 { echo "$as_me:$LINENO: result: none needed" >&5
5587 echo "${ECHO_T}none needed" >&6; } ;;
5589 { echo "$as_me:$LINENO: result: unsupported" >&5
5590 echo "${ECHO_T}unsupported" >&6; } ;;
5592 CC="$CC $ac_cv_prog_cc_c89"
5593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5594 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5599 ac_cpp='$CPP $CPPFLAGS'
5600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5605 ac_cpp='$CXXCPP $CPPFLAGS'
5606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5609 if test -z "$CXX"; then
5610 if test -n "$CCC"; then
5613 if test -n "$ac_tool_prefix"; then
5616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5620 if test "${ac_cv_prog_CXX+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 if test -n "$CXX"; then
5624 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5633 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 if test -n "$CXX"; then
5645 { echo "$as_me:$LINENO: result: $CXX" >&5
5646 echo "${ECHO_T}$CXX" >&6; }
5648 { echo "$as_me:$LINENO: result: no" >&5
5649 echo "${ECHO_T}no" >&6; }
5653 test -n "$CXX" && break
5656 if test -z "$CXX"; then
5660 # Extract the first word of "$ac_prog", so it can be a program name with args.
5661 set dummy $ac_prog; ac_word=$2
5662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5664 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 if test -n "$ac_ct_CXX"; then
5668 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_prog_ac_ct_CXX="$ac_prog"
5678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5688 if test -n "$ac_ct_CXX"; then
5689 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5690 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5692 { echo "$as_me:$LINENO: result: no" >&5
5693 echo "${ECHO_T}no" >&6; }
5697 test -n "$ac_ct_CXX" && break
5700 if test "x$ac_ct_CXX" = x; then
5703 case $cross_compiling:$ac_tool_warned in
5705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5706 whose name does not start with the host triplet. If you think this
5707 configuration is useful to you, please write to autoconf@gnu.org." >&5
5708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5709 whose name does not start with the host triplet. If you think this
5710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5711 ac_tool_warned=yes ;;
5719 # Provide some information about the compiler.
5720 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5721 ac_compiler=`set X $ac_compile; echo $2`
5722 { (ac_try="$ac_compiler --version >&5"
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compiler --version >&5") 2>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }
5732 { (ac_try="$ac_compiler -v >&5"
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_compiler -v >&5") 2>&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }
5742 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }
5753 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5754 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5755 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 cat >conftest.$ac_ext <<_ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5785 grep -v '^ *+' conftest.er1 >conftest.err
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5791 { (case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_try") 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_try") 2>&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5822 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5823 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5824 GXX=`test $ac_compiler_gnu = yes && echo yes`
5825 ac_test_CXXFLAGS=${CXXFLAGS+set}
5826 ac_save_CXXFLAGS=$CXXFLAGS
5827 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5828 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5829 if test "${ac_cv_prog_cxx_g+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5833 ac_cxx_werror_flag=yes
5836 cat >conftest.$ac_ext <<_ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5851 rm -f conftest.$ac_objext
5852 if { (ac_try="$ac_compile"
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_compile") 2>conftest.er1
5860 grep -v '^ *+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5866 { (case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_try") 2>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; } &&
5875 { ac_try='test -s conftest.$ac_objext'
5876 { (case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_try") 2>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_cv_prog_cxx_g=yes
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5906 rm -f conftest.$ac_objext
5907 if { (ac_try="$ac_compile"
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compile") 2>conftest.er1
5915 grep -v '^ *+' conftest.er1 >conftest.err
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5921 { (case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_try") 2>&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; } &&
5930 { ac_try='test -s conftest.$ac_objext'
5931 { (case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_try") 2>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5947 cat >conftest.$ac_ext <<_ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_compile") 2>conftest.er1
5971 grep -v '^ *+' conftest.er1 >conftest.err
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } &&
5976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5977 { (case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_try") 2>&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try='test -s conftest.$ac_objext'
5987 { (case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_try") 2>&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_cv_prog_cxx_g=yes
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6013 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6014 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6015 if test "$ac_test_CXXFLAGS" = set; then
6016 CXXFLAGS=$ac_save_CXXFLAGS
6017 elif test $ac_cv_prog_cxx_g = yes; then
6018 if test "$GXX" = yes; then
6024 if test "$GXX" = yes; then
6031 ac_cpp='$CPP $CPPFLAGS'
6032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6036 { echo "$as_me:$LINENO: checking " >&5
6037 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6038 if test "${ac_cv_has_flex+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 for ac_prog in flex lex
6043 # Extract the first word of "$ac_prog", so it can be a program name with args.
6044 set dummy $ac_prog; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_prog_LEX+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 if test -n "$LEX"; then
6051 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_LEX="$ac_prog"
6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 if test -n "$LEX"; then
6072 { echo "$as_me:$LINENO: result: $LEX" >&5
6073 echo "${ECHO_T}$LEX" >&6; }
6075 { echo "$as_me:$LINENO: result: no" >&5
6076 echo "${ECHO_T}no" >&6; }
6080 test -n "$LEX" && break
6082 test -n "$LEX" || LEX=":"
6084 if test -z "$LEXLIB"
6086 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6087 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6088 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 ac_check_lib_save_LIBS=$LIBS
6093 cat >conftest.$ac_ext <<_ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6100 /* Override any GCC internal prototype to avoid an error.
6101 Use char because int might match the return type of a GCC
6102 builtin and then its argument prototype would still apply. */
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (ac_try="$ac_link"
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_link") 2>conftest.er1
6124 grep -v '^ *+' conftest.er1 >conftest.err
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try='test -s conftest$ac_exeext'
6140 { (case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_try") 2>&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 ac_cv_lib_fl_yywrap=yes
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6154 ac_cv_lib_fl_yywrap=no
6157 rm -f core conftest.err conftest.$ac_objext \
6158 conftest$ac_exeext conftest.$ac_ext
6159 LIBS=$ac_check_lib_save_LIBS
6161 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6162 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6163 if test $ac_cv_lib_fl_yywrap = yes; then
6166 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6167 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6168 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 ac_check_lib_save_LIBS=$LIBS
6173 cat >conftest.$ac_ext <<_ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6180 /* Override any GCC internal prototype to avoid an error.
6181 Use char because int might match the return type of a GCC
6182 builtin and then its argument prototype would still apply. */
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (ac_try="$ac_link"
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_link") 2>conftest.er1
6204 grep -v '^ *+' conftest.er1 >conftest.err
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } &&
6209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6210 { (case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_try") 2>&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest$ac_exeext'
6220 { (case "(($ac_try" in
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225 (eval "$ac_try") 2>&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 ac_cv_lib_l_yywrap=yes
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 ac_cv_lib_l_yywrap=no
6237 rm -f core conftest.err conftest.$ac_objext \
6238 conftest$ac_exeext conftest.$ac_ext
6239 LIBS=$ac_check_lib_save_LIBS
6241 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6242 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6243 if test $ac_cv_lib_l_yywrap = yes; then
6251 if test "x$LEX" != "x:"; then
6252 { echo "$as_me:$LINENO: checking lex output file root" >&5
6253 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_lex_root+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 # The minimal lex program is just a single line: %%. But some broken lexes
6258 # (Solaris, I think it was) want two %% lines, so accommodate them.
6259 cat >conftest.l <<_ACEOF
6263 { (ac_try="$LEX conftest.l"
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$LEX conftest.l") 2>&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }
6273 if test -f lex.yy.c; then
6274 ac_cv_prog_lex_root=lex.yy
6275 elif test -f lexyy.c; then
6276 ac_cv_prog_lex_root=lexyy
6278 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6279 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6280 { (exit 1); exit 1; }; }
6283 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6284 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6286 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6288 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6289 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6290 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 # POSIX says lex can declare yytext either as a pointer or an array; the
6294 # default is implementation-dependent. Figure out which it is, since
6295 # not all implementations provide the %pointer and %array declarations.
6296 ac_cv_prog_lex_yytext_pointer=no
6297 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6299 LIBS="$LIBS $LEXLIB"
6300 cat >conftest.$ac_ext <<_ACEOF
6301 `cat $LEX_OUTPUT_ROOT.c`
6303 rm -f conftest.$ac_objext conftest$ac_exeext
6304 if { (ac_try="$ac_link"
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_link") 2>conftest.er1
6312 grep -v '^ *+' conftest.er1 >conftest.err
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6318 { (case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_try") 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; } &&
6327 { ac_try='test -s conftest$ac_exeext'
6328 { (case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_try") 2>&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 ac_cv_prog_lex_yytext_pointer=yes
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6345 rm -f core conftest.err conftest.$ac_objext \
6346 conftest$ac_exeext conftest.$ac_ext
6348 rm -f "${LEX_OUTPUT_ROOT}.c"
6351 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6352 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6353 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6355 cat >>confdefs.h <<\_ACEOF
6356 #define YYTEXT_POINTER 1
6364 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6365 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6366 if test "$LEX" != "flex"; then
6367 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6368 echo "$as_me: error: flex not found but required" >&2;}
6369 { (exit 1); exit 1; }; }
6375 { echo "$as_me:$LINENO: checking " >&5
6376 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6377 if test "${llvm_cv_has_bison+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 for ac_prog in 'bison -y' byacc
6382 # Extract the first word of "$ac_prog", so it can be a program name with args.
6383 set dummy $ac_prog; ac_word=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_prog_YACC+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 if test -n "$YACC"; then
6390 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399 ac_cv_prog_YACC="$ac_prog"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 YACC=$ac_cv_prog_YACC
6410 if test -n "$YACC"; then
6411 { echo "$as_me:$LINENO: result: $YACC" >&5
6412 echo "${ECHO_T}$YACC" >&6; }
6414 { echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6; }
6419 test -n "$YACC" && break
6421 test -n "$YACC" || YACC="yacc"
6424 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6425 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6426 if test "$YACC" != "bison -y"; then
6428 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6429 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6435 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6436 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6437 if test "${lt_cv_path_NM+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 if test -n "$NM"; then
6441 # Let the user override the test.
6444 lt_nm_to_check="${ac_tool_prefix}nm"
6445 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6446 lt_nm_to_check="$lt_nm_to_check nm"
6448 for lt_tmp_nm in $lt_nm_to_check; do
6449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6450 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6452 test -z "$ac_dir" && ac_dir=.
6453 tmp_nm="$ac_dir/$lt_tmp_nm"
6454 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6455 # Check to see if the nm accepts a BSD-compat flag.
6456 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6457 # nm: unknown option "B" ignored
6458 # Tru64's nm complains that /dev/null is an invalid object file
6459 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6460 */dev/null* | *'Invalid file or object type'*)
6461 lt_cv_path_NM="$tmp_nm -B"
6465 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6467 lt_cv_path_NM="$tmp_nm -p"
6471 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6472 continue # so that we can try to find one that supports BSD flags
6481 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6484 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6485 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6490 { echo "$as_me:$LINENO: checking for GNU make" >&5
6491 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6492 if test "${llvm_cv_gnu_make_command+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 llvm_cv_gnu_make_command=''
6496 for a in "$MAKE" make gmake gnumake ; do
6497 if test -z "$a" ; then continue ; fi ;
6498 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6500 llvm_cv_gnu_make_command=$a ;
6505 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6506 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6507 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6511 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6512 echo "${ECHO_T}\"Not found\"" >&6; };
6516 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6517 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6519 if test "$LN_S" = "ln -s"; then
6520 { echo "$as_me:$LINENO: result: yes" >&5
6521 echo "${ECHO_T}yes" >&6; }
6523 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6524 echo "${ECHO_T}no, using $LN_S" >&6; }
6527 # Extract the first word of "cmp", so it can be a program name with args.
6528 set dummy cmp; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_path_CMP+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6546 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6559 if test -n "$CMP"; then
6560 { echo "$as_me:$LINENO: result: $CMP" >&5
6561 echo "${ECHO_T}$CMP" >&6; }
6563 { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6568 # Extract the first word of "cp", so it can be a program name with args.
6569 set dummy cp; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_path_CP+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6600 if test -n "$CP"; then
6601 { echo "$as_me:$LINENO: result: $CP" >&5
6602 echo "${ECHO_T}$CP" >&6; }
6604 { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6609 # Extract the first word of "date", so it can be a program name with args.
6610 set dummy date; ac_word=$2
6611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6613 if test "${ac_cv_path_DATE+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6628 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6640 DATE=$ac_cv_path_DATE
6641 if test -n "$DATE"; then
6642 { echo "$as_me:$LINENO: result: $DATE" >&5
6643 echo "${ECHO_T}$DATE" >&6; }
6645 { echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6; }
6650 # Extract the first word of "find", so it can be a program name with args.
6651 set dummy find; ac_word=$2
6652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6654 if test "${ac_cv_path_FIND+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6669 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6681 FIND=$ac_cv_path_FIND
6682 if test -n "$FIND"; then
6683 { echo "$as_me:$LINENO: result: $FIND" >&5
6684 echo "${ECHO_T}$FIND" >&6; }
6686 { echo "$as_me:$LINENO: result: no" >&5
6687 echo "${ECHO_T}no" >&6; }
6691 # Extract the first word of "grep", so it can be a program name with args.
6692 set dummy grep; ac_word=$2
6693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695 if test "${ac_cv_path_GREP+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6722 GREP=$ac_cv_path_GREP
6723 if test -n "$GREP"; then
6724 { echo "$as_me:$LINENO: result: $GREP" >&5
6725 echo "${ECHO_T}$GREP" >&6; }
6727 { echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6; }
6732 # Extract the first word of "mkdir", so it can be a program name with args.
6733 set dummy mkdir; ac_word=$2
6734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736 if test "${ac_cv_path_MKDIR+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6763 MKDIR=$ac_cv_path_MKDIR
6764 if test -n "$MKDIR"; then
6765 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6766 echo "${ECHO_T}$MKDIR" >&6; }
6768 { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6773 # Extract the first word of "mv", so it can be a program name with args.
6774 set dummy mv; ac_word=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_path_MV+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6805 if test -n "$MV"; then
6806 { echo "$as_me:$LINENO: result: $MV" >&5
6807 echo "${ECHO_T}$MV" >&6; }
6809 { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_prog_RANLIB+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 if test -n "$RANLIB"; then
6823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 RANLIB=$ac_cv_prog_RANLIB
6843 if test -n "$RANLIB"; then
6844 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6845 echo "${ECHO_T}$RANLIB" >&6; }
6847 { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6853 if test -z "$ac_cv_prog_RANLIB"; then
6854 ac_ct_RANLIB=$RANLIB
6855 # Extract the first word of "ranlib", so it can be a program name with args.
6856 set dummy ranlib; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 if test -n "$ac_ct_RANLIB"; then
6863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_RANLIB="ranlib"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6883 if test -n "$ac_ct_RANLIB"; then
6884 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6885 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6891 if test "x$ac_ct_RANLIB" = x; then
6894 case $cross_compiling:$ac_tool_warned in
6896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet. If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&5
6899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6900 whose name does not start with the host triplet. If you think this
6901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6902 ac_tool_warned=yes ;;
6904 RANLIB=$ac_ct_RANLIB
6907 RANLIB="$ac_cv_prog_RANLIB"
6910 # Extract the first word of "rm", so it can be a program name with args.
6911 set dummy rm; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_path_RM+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6942 if test -n "$RM"; then
6943 { echo "$as_me:$LINENO: result: $RM" >&5
6944 echo "${ECHO_T}$RM" >&6; }
6946 { echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6; }
6951 # Extract the first word of "sed", so it can be a program name with args.
6952 set dummy sed; ac_word=$2
6953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955 if test "${ac_cv_path_SED+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6970 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6983 if test -n "$SED"; then
6984 { echo "$as_me:$LINENO: result: $SED" >&5
6985 echo "${ECHO_T}$SED" >&6; }
6987 { echo "$as_me:$LINENO: result: no" >&5
6988 echo "${ECHO_T}no" >&6; }
6992 # Extract the first word of "tar", so it can be a program name with args.
6993 set dummy tar; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_path_TAR+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7024 if test -n "$TAR"; then
7025 { echo "$as_me:$LINENO: result: $TAR" >&5
7026 echo "${ECHO_T}$TAR" >&6; }
7028 { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7033 # Extract the first word of "pwd", so it can be a program name with args.
7034 set dummy pwd; ac_word=$2
7035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7037 if test "${ac_cv_path_BINPWD+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7052 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7064 BINPWD=$ac_cv_path_BINPWD
7065 if test -n "$BINPWD"; then
7066 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7067 echo "${ECHO_T}$BINPWD" >&6; }
7069 { echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6; }
7075 # Extract the first word of "Graphviz", so it can be a program name with args.
7076 set dummy Graphviz; ac_word=$2
7077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7106 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7107 if test -n "$GRAPHVIZ"; then
7108 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7109 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7111 { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7116 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7118 cat >>confdefs.h <<\_ACEOF
7119 #define HAVE_GRAPHVIZ 1
7122 if test "$llvm_cv_os_type" == "MingW" ; then
7123 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7126 cat >>confdefs.h <<_ACEOF
7127 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7131 # Extract the first word of "dot", so it can be a program name with args.
7132 set dummy dot; ac_word=$2
7133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135 if test "${ac_cv_path_DOT+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7163 if test -n "$DOT"; then
7164 { echo "$as_me:$LINENO: result: $DOT" >&5
7165 echo "${ECHO_T}$DOT" >&6; }
7167 { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7172 if test "$DOT" != "echo dot" ; then
7174 cat >>confdefs.h <<\_ACEOF
7178 if test "$llvm_cv_os_type" == "MingW" ; then
7179 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7182 cat >>confdefs.h <<_ACEOF
7183 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7187 for ac_prog in gv gsview32
7189 # Extract the first word of "$ac_prog", so it can be a program name with args.
7190 set dummy $ac_prog; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_GV+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 if test -n "$GV"; then
7221 { echo "$as_me:$LINENO: result: $GV" >&5
7222 echo "${ECHO_T}$GV" >&6; }
7224 { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7229 test -n "$GV" && break
7231 test -n "$GV" || GV="echo gv"
7233 if test "$GV" != "echo gv" ; then
7235 cat >>confdefs.h <<\_ACEOF
7239 if test "$llvm_cv_os_type" == "MingW" ; then
7240 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7243 cat >>confdefs.h <<_ACEOF
7244 #define LLVM_PATH_GV "$GV${EXEEXT}"
7248 # Extract the first word of "dotty", so it can be a program name with args.
7249 set dummy dotty; ac_word=$2
7250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7252 if test "${ac_cv_path_DOTTY+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7279 DOTTY=$ac_cv_path_DOTTY
7280 if test -n "$DOTTY"; then
7281 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7282 echo "${ECHO_T}$DOTTY" >&6; }
7284 { echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6; }
7289 if test "$DOTTY" != "echo dotty" ; then
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_DOTTY 1
7295 if test "$llvm_cv_os_type" == "MingW" ; then
7296 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7299 cat >>confdefs.h <<_ACEOF
7300 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7306 # Extract the first word of "perl", so it can be a program name with args.
7307 set dummy perl; ac_word=$2
7308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7310 if test "${ac_cv_path_PERL+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7325 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7337 PERL=$ac_cv_path_PERL
7338 if test -n "$PERL"; then
7339 { echo "$as_me:$LINENO: result: $PERL" >&5
7340 echo "${ECHO_T}$PERL" >&6; }
7342 { echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6; }
7347 if test "$PERL" != "none"; then
7348 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7349 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7350 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7351 { echo "$as_me:$LINENO: result: yes" >&5
7352 echo "${ECHO_T}yes" >&6; }
7355 { echo "$as_me:$LINENO: result: not found" >&5
7356 echo "${ECHO_T}not found" >&6; }
7361 if test x"$PERL" = xnone; then
7369 # Find a good install program. We prefer a C program (faster),
7370 # so one script is as good as another. But avoid the broken or
7371 # incompatible versions:
7372 # SysV /etc/install, /usr/sbin/install
7373 # SunOS /usr/etc/install
7374 # IRIX /sbin/install
7376 # AmigaOS /C/install, which installs bootblocks on floppy discs
7377 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7378 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7379 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7380 # OS/2's system install, which has a completely different semantic
7381 # ./install, which can be erroneously created by make from ./install.sh.
7382 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7383 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7384 if test -z "$INSTALL"; then
7385 if test "${ac_cv_path_install+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 test -z "$as_dir" && as_dir=.
7393 # Account for people who put trailing slashes in PATH elements.
7395 ./ | .// | /cC/* | \
7396 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7397 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7400 # OSF1 and SCO ODT 3.0 have their own names for install.
7401 # Don't use installbsd from OSF since it installs stuff as root
7403 for ac_prog in ginstall scoinst install; do
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7406 if test $ac_prog = install &&
7407 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7408 # AIX install. It has an incompatible calling convention.
7410 elif test $ac_prog = install &&
7411 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7412 # program-specific install script used by HP pwplus--don't use.
7415 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7428 if test "${ac_cv_path_install+set}" = set; then
7429 INSTALL=$ac_cv_path_install
7431 # As a last resort, use the slow shell script. Don't cache a
7432 # value for INSTALL within a source directory, because that will
7433 # break other packages using the cache if that directory is
7434 # removed, or if the value is a relative name.
7435 INSTALL=$ac_install_sh
7438 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7439 echo "${ECHO_T}$INSTALL" >&6; }
7441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7442 # It thinks the first close brace ends the variable substitution.
7443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7450 # Extract the first word of "bzip2", so it can be a program name with args.
7451 set dummy bzip2; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_BZIP2+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7481 BZIP2=$ac_cv_path_BZIP2
7482 if test -n "$BZIP2"; then
7483 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7484 echo "${ECHO_T}$BZIP2" >&6; }
7486 { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7491 # Extract the first word of "doxygen", so it can be a program name with args.
7492 set dummy doxygen; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7522 DOXYGEN=$ac_cv_path_DOXYGEN
7523 if test -n "$DOXYGEN"; then
7524 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7525 echo "${ECHO_T}$DOXYGEN" >&6; }
7527 { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7532 # Extract the first word of "groff", so it can be a program name with args.
7533 set dummy groff; ac_word=$2
7534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7536 if test "${ac_cv_path_GROFF+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7563 GROFF=$ac_cv_path_GROFF
7564 if test -n "$GROFF"; then
7565 { echo "$as_me:$LINENO: result: $GROFF" >&5
7566 echo "${ECHO_T}$GROFF" >&6; }
7568 { echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6; }
7573 # Extract the first word of "gzip", so it can be a program name with args.
7574 set dummy gzip; ac_word=$2
7575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577 if test "${ac_cv_path_GZIP+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7604 GZIP=$ac_cv_path_GZIP
7605 if test -n "$GZIP"; then
7606 { echo "$as_me:$LINENO: result: $GZIP" >&5
7607 echo "${ECHO_T}$GZIP" >&6; }
7609 { echo "$as_me:$LINENO: result: no" >&5
7610 echo "${ECHO_T}no" >&6; }
7614 # Extract the first word of "pod2html", so it can be a program name with args.
7615 set dummy pod2html; ac_word=$2
7616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_POD2HTML+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7645 POD2HTML=$ac_cv_path_POD2HTML
7646 if test -n "$POD2HTML"; then
7647 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7648 echo "${ECHO_T}$POD2HTML" >&6; }
7650 { echo "$as_me:$LINENO: result: no" >&5
7651 echo "${ECHO_T}no" >&6; }
7655 # Extract the first word of "pod2man", so it can be a program name with args.
7656 set dummy pod2man; ac_word=$2
7657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659 if test "${ac_cv_path_POD2MAN+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7686 POD2MAN=$ac_cv_path_POD2MAN
7687 if test -n "$POD2MAN"; then
7688 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7689 echo "${ECHO_T}$POD2MAN" >&6; }
7691 { echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6; }
7696 # Extract the first word of "runtest", so it can be a program name with args.
7697 set dummy runtest; ac_word=$2
7698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7700 if test "${ac_cv_path_RUNTEST+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7727 RUNTEST=$ac_cv_path_RUNTEST
7728 if test -n "$RUNTEST"; then
7729 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7730 echo "${ECHO_T}$RUNTEST" >&6; }
7732 { echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6; }
7739 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7740 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7742 # Check whether --with-tclinclude was given.
7743 if test "${with_tclinclude+set}" = set; then
7744 withval=$with_tclinclude; with_tclinclude=${withval}
7749 if test "${ac_cv_path_tclsh+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 if test x"${with_tclinclude}" != x ; then
7754 if test -f ${with_tclinclude}/tclsh ; then
7755 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7756 elif test -f ${with_tclinclude}/src/tclsh ; then
7757 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7759 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7760 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7761 { (exit 1); exit 1; }; }
7765 if test x"${ac_cv_path_tclsh}" = x ; then
7766 { echo "$as_me:$LINENO: result: none" >&5
7767 echo "${ECHO_T}none" >&6; }
7768 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
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774 if test "${ac_cv_path_TCLSH+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 TCLSH=$ac_cv_path_TCLSH
7801 if test -n "$TCLSH"; then
7802 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7803 echo "${ECHO_T}$TCLSH" >&6; }
7805 { echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6; }
7810 test -n "$TCLSH" && break
7813 if test x"${TCLSH}" = x ; then
7814 ac_cv_path_tclsh='';
7816 ac_cv_path_tclsh="${TCLSH}";
7819 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7820 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7821 TCLSH="${ac_cv_path_tclsh}"
7827 # Extract the first word of "zip", so it can be a program name with args.
7828 set dummy zip; ac_word=$2
7829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7831 if test "${ac_cv_path_ZIP+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7846 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7859 if test -n "$ZIP"; then
7860 { echo "$as_me:$LINENO: result: $ZIP" >&5
7861 echo "${ECHO_T}$ZIP" >&6; }
7863 { echo "$as_me:$LINENO: result: no" >&5
7864 echo "${ECHO_T}no" >&6; }
7869 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7870 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7871 if test "${llvm_cv_link_use_r+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7881 CFLAGS="$CFLAGS -Wl,-R."
7882 cat >conftest.$ac_ext <<_ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7892 int main() { return 0; }
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (ac_try="$ac_link"
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_link") 2>conftest.er1
7906 grep -v '^ *+' conftest.er1 >conftest.err
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7912 { (case "(($ac_try" in
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_try") 2>&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_try") 2>&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 llvm_cv_link_use_r=yes
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 llvm_cv_link_use_r=no
7939 rm -f core conftest.err conftest.$ac_objext \
7940 conftest$ac_exeext conftest.$ac_ext
7943 ac_cpp='$CPP $CPPFLAGS'
7944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7950 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7951 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7952 if test "$llvm_cv_link_use_r" = yes ; then
7954 cat >>confdefs.h <<\_ACEOF
7955 #define HAVE_LINK_R 1
7963 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7964 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7965 if test "${ac_cv_c_const+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 cat >conftest.$ac_ext <<_ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7978 /* FIXME: Include the comments suggested by Paul. */
7980 /* Ultrix mips cc rejects this. */
7981 typedef int charset[2];
7983 /* SunOS 4.1.1 cc rejects this. */
7984 char const *const *ccp;
7986 /* NEC SVR4.0.2 mips cc rejects this. */
7987 struct point {int x, y;};
7988 static struct point const zero = {0,0};
7989 /* AIX XL C 1.02.0.0 rejects this.
7990 It does not let you subtract one const X* pointer from another in
7991 an arm of an if-expression whose if-part is not a constant
7993 const char *g = "string";
7994 ccp = &g + (g ? g-g : 0);
7995 /* HPUX 7.0 cc rejects these. */
7998 ccp = (char const *const *) p;
7999 { /* SCO 3.2v4 cc rejects this. */
8001 char const *s = 0 ? (char *) 0 : (char const *) 0;
8006 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8008 const int *foo = &x[0];
8011 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8012 typedef const int *iptr;
8016 { /* AIX XL C 1.02.0.0 rejects this saying
8017 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8018 struct s { int j; const int *ap[3]; };
8019 struct s *b; b->j = 5;
8021 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8025 return !x[0] && !zero.x;
8032 rm -f conftest.$ac_objext
8033 if { (ac_try="$ac_compile"
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8047 { (case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_try") 2>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_try") 2>&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8077 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8078 if test $ac_cv_c_const = no; then
8080 cat >>confdefs.h <<\_ACEOF
8092 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8093 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8094 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8095 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8105 #include <sys/types.h>
8117 rm -f conftest.$ac_objext
8118 if { (ac_try="$ac_compile"
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
8126 grep -v '^ *+' conftest.er1 >conftest.err
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest.$ac_objext'
8142 { (case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_try") 2>&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; }; then
8151 eval "$as_ac_Header=yes"
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 eval "$as_ac_Header=no"
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 ac_res=`eval echo '${'$as_ac_Header'}'`
8162 { echo "$as_me:$LINENO: result: $ac_res" >&5
8163 echo "${ECHO_T}$ac_res" >&6; }
8164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8165 cat >>confdefs.h <<_ACEOF
8166 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8169 ac_header_dirent=$ac_hdr; break
8173 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8174 if test $ac_header_dirent = dirent.h; then
8175 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8176 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8177 if test "${ac_cv_search_opendir+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 ac_func_search_save_LIBS=$LIBS
8181 cat >conftest.$ac_ext <<_ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8188 /* Override any GCC internal prototype to avoid an error.
8189 Use char because int might match the return type of a GCC
8190 builtin and then its argument prototype would still apply. */
8203 for ac_lib in '' dir; do
8204 if test -z "$ac_lib"; then
8205 ac_res="none required"
8208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8210 rm -f conftest.$ac_objext conftest$ac_exeext
8211 if { (ac_try="$ac_link"
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_link") 2>conftest.er1
8219 grep -v '^ *+' conftest.er1 >conftest.err
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest$ac_exeext'
8235 { (case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_try") 2>&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 ac_cv_search_opendir=$ac_res
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8252 rm -f core conftest.err conftest.$ac_objext \
8254 if test "${ac_cv_search_opendir+set}" = set; then
8258 if test "${ac_cv_search_opendir+set}" = set; then
8261 ac_cv_search_opendir=no
8264 LIBS=$ac_func_search_save_LIBS
8266 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8267 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8268 ac_res=$ac_cv_search_opendir
8269 if test "$ac_res" != no; then
8270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8275 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8276 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8277 if test "${ac_cv_search_opendir+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 ac_func_search_save_LIBS=$LIBS
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8288 /* Override any GCC internal prototype to avoid an error.
8289 Use char because int might match the return type of a GCC
8290 builtin and then its argument prototype would still apply. */
8303 for ac_lib in '' x; do
8304 if test -z "$ac_lib"; then
8305 ac_res="none required"
8308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (ac_try="$ac_link"
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_link") 2>conftest.er1
8319 grep -v '^ *+' conftest.er1 >conftest.err
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8325 { (case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_try") 2>&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest$ac_exeext'
8335 { (case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_try") 2>&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_search_opendir=$ac_res
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8352 rm -f core conftest.err conftest.$ac_objext \
8354 if test "${ac_cv_search_opendir+set}" = set; then
8358 if test "${ac_cv_search_opendir+set}" = set; then
8361 ac_cv_search_opendir=no
8364 LIBS=$ac_func_search_save_LIBS
8366 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8367 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8368 ac_res=$ac_cv_search_opendir
8369 if test "$ac_res" != no; then
8370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8377 for ac_header in dlfcn.h
8379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 ac_res=`eval echo '${'$as_ac_Header'}'`
8387 { echo "$as_me:$LINENO: result: $ac_res" >&5
8388 echo "${ECHO_T}$ac_res" >&6; }
8390 # Is the header compilable?
8391 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8393 cat >conftest.$ac_ext <<_ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8399 $ac_includes_default
8400 #include <$ac_header>
8402 rm -f conftest.$ac_objext
8403 if { (ac_try="$ac_compile"
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_compile") 2>conftest.er1
8411 grep -v '^ *+' conftest.er1 >conftest.err
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } &&
8416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8417 { (case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_try") 2>&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest.$ac_objext'
8427 { (case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_try") 2>&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_header_compiler=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_header_compiler=no
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8446 echo "${ECHO_T}$ac_header_compiler" >&6; }
8448 # Is the header present?
8449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 #include <$ac_header>
8459 if { (ac_try="$ac_cpp conftest.$ac_ext"
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } >/dev/null; then
8472 if test -s conftest.err; then
8473 ac_cpp_err=$ac_c_preproc_warn_flag
8474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8481 if test -z "$ac_cpp_err"; then
8482 ac_header_preproc=yes
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8487 ac_header_preproc=no
8490 rm -f conftest.err conftest.$ac_ext
8491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8492 echo "${ECHO_T}$ac_header_preproc" >&6; }
8494 # So? What about this header?
8495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8501 ac_header_preproc=yes
8504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8517 ## ----------------------------------- ##
8518 ## Report this to llvmbugs@cs.uiuc.edu ##
8519 ## ----------------------------------- ##
8521 ) | sed "s/^/$as_me: WARNING: /" >&2
8524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 eval "$as_ac_Header=\$ac_header_preproc"
8531 ac_res=`eval echo '${'$as_ac_Header'}'`
8532 { echo "$as_me:$LINENO: result: $ac_res" >&5
8533 echo "${ECHO_T}$ac_res" >&6; }
8536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8537 cat >>confdefs.h <<_ACEOF
8538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8545 # Check whether --enable-ltdl-install was given.
8546 if test "${enable_ltdl_install+set}" = set; then
8547 enableval=$enable_ltdl_install;
8553 if test x"${enable_ltdl_install-no}" != xno; then
8555 INSTALL_LTDL_FALSE='#'
8557 INSTALL_LTDL_TRUE='#'
8563 if test x"${enable_ltdl_convenience-no}" != xno; then
8564 CONVENIENCE_LTDL_TRUE=
8565 CONVENIENCE_LTDL_FALSE='#'
8567 CONVENIENCE_LTDL_TRUE='#'
8568 CONVENIENCE_LTDL_FALSE=
8572 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8573 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8575 libname_spec='lib$name'
8583 shlibpath_overrides_runpath=unknown
8585 dynamic_linker="$host_os ld.so"
8586 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8587 if test "$GCC" = yes; then
8588 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8589 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8590 # if the path contains ";" then we assume it to be the separator
8591 # otherwise default to the standard path separator (i.e. ":") - it is
8592 # assumed that no part of a normal pathname contains ";" but that should
8593 # okay in the real world where ";" in dirpaths is itself problematic.
8594 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8599 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8601 need_lib_prefix=unknown
8602 hardcode_into_libs=no
8604 # when you set need_version to no, make sure it does not cause -set_version
8605 # flags to be left without arguments
8606 need_version=unknown
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8612 shlibpath_var=LIBPATH
8614 # AIX 3 has no versioning support, so we append a major version to the name.
8615 soname_spec='${libname}${release}${shared_ext}$major'
8622 hardcode_into_libs=yes
8623 if test "$host_cpu" = ia64; then
8624 # AIX 5 supports IA64
8625 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8626 shlibpath_var=LD_LIBRARY_PATH
8628 # With GCC up to 2.95.x, collect2 would create an import file
8629 # for dependence libraries. The import file would start with
8630 # the line `#! .'. This would cause the generated library to
8631 # depend on `.', always an invalid library. This was fixed in
8632 # development snapshots of GCC prior to 3.0.
8634 aix4 | aix4.[01] | aix4.[01].*)
8635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8637 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8645 # soname into executable. Probably we can add versioning support to
8646 # collect2, so additional links can be useful in future.
8647 if test "$aix_use_runtimelinking" = yes; then
8648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8649 # instead of lib<name>.a to let people know that these are not
8650 # typical AIX shared libraries.
8651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8653 # We preserve .a as extension for shared libraries through AIX4.2
8654 # and later when we are not doing run time linking.
8655 library_names_spec='${libname}${release}.a $libname.a'
8656 soname_spec='${libname}${release}${shared_ext}$major'
8658 shlibpath_var=LIBPATH
8663 library_names_spec='$libname.ixlibrary $libname.a'
8664 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8665 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'
8669 library_names_spec='${libname}${shared_ext}'
8670 dynamic_linker="$host_os ld.so"
8671 shlibpath_var=LIBRARY_PATH
8677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8678 soname_spec='${libname}${release}${shared_ext}$major'
8679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8680 shlibpath_var=LD_LIBRARY_PATH
8681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8683 # the default ld.so.conf also contains /usr/contrib/lib and
8684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8685 # libtool to hard-code these into programs
8688 cygwin* | mingw* | pw32*)
8689 version_type=windows
8694 case $GCC,$host_os in
8695 yes,cygwin* | yes,mingw* | yes,pw32*)
8696 library_names_spec='$libname.dll.a'
8697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8698 postinstall_cmds='base_file=`basename \${file}`~
8699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8700 dldir=$destdir/`dirname \$dlpath`~
8701 test -d \$dldir || mkdir -p \$dldir~
8702 $install_prog $dir/$dlname \$dldir/$dlname~
8703 chmod a+x \$dldir/$dlname'
8704 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8705 dlpath=$dir/\$dldll~
8707 shlibpath_overrides_runpath=yes
8711 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8712 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8713 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8716 # MinGW DLLs use traditional 'lib' prefix
8717 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8719 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8720 # It is most probably a Windows format PATH printed by
8721 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8722 # path with ; separators, and with drive letters. We can handle the
8723 # drive letters (cygwin fileutils understands them), so leave them,
8724 # especially as we might pass files found there to a mingw objdump,
8725 # which wouldn't understand a cygwinified path. Ahh.
8726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8732 # pw32 DLLs use 'pw' prefix rather than 'lib'
8733 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8742 dynamic_linker='Win32 ld.exe'
8743 # FIXME: first we should search . and the directory the executable is in
8747 darwin* | rhapsody*)
8748 dynamic_linker="$host_os dyld"
8752 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8753 soname_spec='${libname}${release}${major}$shared_ext'
8754 shlibpath_overrides_runpath=yes
8755 shlibpath_var=DYLD_LIBRARY_PATH
8756 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8757 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8758 if test "$GCC" = yes; then
8759 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"`
8761 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8771 soname_spec='${libname}${release}${shared_ext}$major'
8772 shlibpath_var=LD_LIBRARY_PATH
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 shlibpath_var=LD_LIBRARY_PATH
8786 shlibpath_overrides_runpath=no
8787 hardcode_into_libs=yes
8788 dynamic_linker='GNU ld.so'
8791 freebsd* | dragonfly*)
8792 # DragonFly does not have aout. When/if they implement a new
8793 # versioning mechanism, adjust this.
8794 if test -x /usr/bin/objformat; then
8795 objformat=`/usr/bin/objformat`
8798 freebsd[123]*) objformat=aout ;;
8802 version_type=freebsd-$objformat
8803 case $version_type in
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8814 shlibpath_var=LD_LIBRARY_PATH
8817 shlibpath_overrides_runpath=yes
8819 freebsd3.[01]* | freebsdelf3.[01]*)
8820 shlibpath_overrides_runpath=yes
8821 hardcode_into_libs=yes
8823 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8824 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8825 shlibpath_overrides_runpath=no
8826 hardcode_into_libs=yes
8828 freebsd*) # from 4.6 on
8829 shlibpath_overrides_runpath=yes
8830 hardcode_into_libs=yes
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 shlibpath_var=LD_LIBRARY_PATH
8842 hardcode_into_libs=yes
8845 hpux9* | hpux10* | hpux11*)
8846 # Give a soname corresponding to the major version so that dld.sl refuses to
8847 # link against other versions.
8854 hardcode_into_libs=yes
8855 dynamic_linker="$host_os dld.so"
8856 shlibpath_var=LD_LIBRARY_PATH
8857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 if test "X$HPUX_IA64_MODE" = X32; then
8861 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8863 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8869 hardcode_into_libs=yes
8870 dynamic_linker="$host_os dld.sl"
8871 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8880 dynamic_linker="$host_os dld.sl"
8881 shlibpath_var=SHLIB_PATH
8882 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8884 soname_spec='${libname}${release}${shared_ext}$major'
8887 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8888 postinstall_cmds='chmod 555 $lib'
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8898 shlibpath_var=LD_LIBRARY_PATH
8899 shlibpath_overrides_runpath=no
8900 hardcode_into_libs=yes
8903 irix5* | irix6* | nonstopux*)
8905 nonstopux*) version_type=nonstopux ;;
8907 if test "$lt_cv_prog_gnu_ld" = yes; then
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8918 irix5* | nonstopux*)
8922 case $LD in # libtool.m4 will add one of these switches to LD
8923 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8924 libsuff= shlibsuff= libmagic=32-bit;;
8925 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8926 libsuff=32 shlibsuff=N32 libmagic=N32;;
8927 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8928 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8929 *) libsuff= shlibsuff= libmagic=never-match;;
8933 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8934 shlibpath_overrides_runpath=no
8935 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8936 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8937 hardcode_into_libs=yes
8940 # No shared lib support for Linux oldld, aout, or coff.
8941 linux*oldld* | linux*aout* | linux*coff*)
8945 # This must be Linux ELF.
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=no
8955 # This implies no fast_install, which is unacceptable.
8956 # Some rework will be needed to allow for fast_install
8957 # before this can be enabled.
8958 hardcode_into_libs=yes
8960 # Append ld.so.conf contents to the search path
8961 if test -f /etc/ld.so.conf; then
8962 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' ' '`
8963 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8966 # We used to test for /lib/ld.so.1 and disable shared libraries on
8967 # powerpc, because MkLinux only supported shared libraries with the
8968 # GNU dynamic linker. Since this was broken with cross compilers,
8969 # most powerpc-linux boxes support dynamic linking these days and
8970 # people can always --disable-shared, the test was removed, and we
8971 # assume the GNU/Linux dynamic linker is in use.
8972 dynamic_linker='GNU/Linux ld.so'
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=no
8983 hardcode_into_libs=yes
8984 dynamic_linker='GNU ld.so'
8991 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8994 dynamic_linker='NetBSD (a.out) ld.so'
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 dynamic_linker='NetBSD ld.elf_so'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 shlibpath_overrides_runpath=yes
9002 hardcode_into_libs=yes
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 shlibpath_overrides_runpath=yes
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes
9024 sys_lib_dlsearch_path_spec="/usr/lib"
9026 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9028 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9029 *) need_version=no ;;
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9036 openbsd2.[89] | openbsd2.[89].*)
9037 shlibpath_overrides_runpath=no
9040 shlibpath_overrides_runpath=yes
9044 shlibpath_overrides_runpath=yes
9049 libname_spec='$name'
9052 library_names_spec='$libname${shared_ext} $libname.a'
9053 dynamic_linker='OS/2 ld.exe'
9054 shlibpath_var=LIBPATH
9057 osf3* | osf4* | osf5*)
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063 shlibpath_var=LD_LIBRARY_PATH
9064 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9065 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9076 hardcode_into_libs=yes
9077 # ldd complains unless libraries are executable
9078 postinstall_cmds='chmod +x $lib'
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9084 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 shlibpath_overrides_runpath=yes
9087 if test "$with_gnu_ld" = yes; then
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 case $host_vendor in
9100 shlibpath_overrides_runpath=no
9102 export_dynamic_flag_spec='${wl}-Blargedynsym'
9103 runpath_var=LD_RUN_PATH
9111 shlibpath_overrides_runpath=no
9112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9118 if test -d /usr/nec ;then
9120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9121 soname_spec='$libname${shared_ext}.$major'
9122 shlibpath_var=LD_LIBRARY_PATH
9126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9127 version_type=freebsd-elf
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 hardcode_into_libs=yes
9134 if test "$with_gnu_ld" = yes; then
9135 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9136 shlibpath_overrides_runpath=no
9138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9139 shlibpath_overrides_runpath=yes
9142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9146 sys_lib_dlsearch_path_spec='/usr/lib'
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9160 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9161 echo "${ECHO_T}$dynamic_linker" >&6; }
9162 test "$dynamic_linker" = no && can_build_shared=no
9164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9165 if test "$GCC" = yes; then
9166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9170 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9171 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9172 if test "${libltdl_cv_shlibext+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 eval libltdl_cv_shlibext=$shrext_cmds
9180 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9181 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9182 if test -n "$libltdl_cv_shlibext"; then
9184 cat >>confdefs.h <<_ACEOF
9185 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9191 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9192 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9193 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 libltdl_cv_shlibpath_var="$shlibpath_var"
9198 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9199 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9200 if test -n "$libltdl_cv_shlibpath_var"; then
9202 cat >>confdefs.h <<_ACEOF
9203 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9209 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9210 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9211 if test "${libltdl_cv_sys_search_path+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9216 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9217 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9218 if test -n "$libltdl_cv_sys_search_path"; then
9220 for dir in $libltdl_cv_sys_search_path; do
9221 if test -z "$sys_search_path"; then
9222 sys_search_path="$dir"
9224 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9228 cat >>confdefs.h <<_ACEOF
9229 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9234 { echo "$as_me:$LINENO: checking for objdir" >&5
9235 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9236 if test "${libltdl_cv_objdir+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 libltdl_cv_objdir="$objdir"
9240 if test -n "$objdir"; then
9243 rm -f .libs 2>/dev/null
9244 mkdir .libs 2>/dev/null
9245 if test -d .libs; then
9246 libltdl_cv_objdir=.libs
9248 # MS-DOS does not allow filenames that begin with a dot.
9249 libltdl_cv_objdir=_libs
9251 rmdir .libs 2>/dev/null
9255 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9256 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9258 cat >>confdefs.h <<_ACEOF
9259 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9267 # Check for command to grab the raw symbol name followed by C symbol from nm.
9268 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9269 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9270 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 # These are sane defaults that work on at least a few old systems.
9275 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9277 # Character class describing NM global symbol codes.
9278 symcode='[BCDEGRST]'
9280 # Regexp to match symbols that can be accessed directly from C.
9281 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9283 # Transform an extracted symbol line into a proper C declaration
9284 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9286 # Transform an extracted symbol line into symbol name and symbol address
9287 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'"
9289 # Define system-specific variables.
9294 cygwin* | mingw* | pw32*)
9295 symcode='[ABCDGISTW]'
9297 hpux*) # Its linker distinguishes data from code symbols
9298 if test "$host_cpu" = ia64; then
9299 symcode='[ABCDEGRST]'
9301 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9302 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'"
9305 if test "$host_cpu" = ia64; then
9306 symcode='[ABCDGIRSTW]'
9307 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9308 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'"
9312 symcode='[BCDEGRST]'
9315 symcode='[BCDEGQRST]'
9326 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9334 # Handle CRLF in mingw tool chain
9338 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9342 # If we're using GNU nm, then use its standard symbol codes.
9343 case `$NM -V 2>&1` in
9344 *GNU* | *'with BFD'*)
9345 symcode='[ABCDGIRSTW]' ;;
9348 # Try without a prefix undercore, then with it.
9349 for ac_symprfx in "" "_"; do
9351 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9352 symxfrm="\\1 $ac_symprfx\\2 \\2"
9354 # Write the raw and C identifiers.
9355 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9357 # Check to see that the pipe works correctly.
9361 cat > conftest.$ac_ext <<EOF
9366 void nm_test_func(){}
9370 int main(){nm_test_var='a';nm_test_func();return(0);}
9373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9374 (eval $ac_compile) 2>&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; then
9378 # Now try to grab the symbols.
9380 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9381 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && test -s "$nlist"; then
9385 # Try sorting and uniquifying the output.
9386 if sort "$nlist" | uniq > "$nlist"T; then
9387 mv -f "$nlist"T "$nlist"
9392 # Make sure that we snagged all the symbols we need.
9393 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9394 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9395 cat <<EOF > conftest.$ac_ext
9401 # Now generate the symbol file.
9402 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9404 cat <<EOF >> conftest.$ac_ext
9405 #if defined (__STDC__) && __STDC__
9406 # define lt_ptr_t void *
9408 # define lt_ptr_t char *
9412 /* The mapping between symbol names and symbols. */
9417 lt_preloaded_symbols[] =
9420 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9421 cat <<\EOF >> conftest.$ac_ext
9429 # Now try linking the two files.
9430 mv conftest.$ac_objext conftstm.$ac_objext
9431 lt_save_LIBS="$LIBS"
9432 lt_save_CFLAGS="$CFLAGS"
9433 LIBS="conftstm.$ac_objext"
9434 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9442 LIBS="$lt_save_LIBS"
9443 CFLAGS="$lt_save_CFLAGS"
9445 echo "cannot find nm_test_func in $nlist" >&5
9448 echo "cannot find nm_test_var in $nlist" >&5
9451 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9454 echo "$progname: failed program was:" >&5
9455 cat conftest.$ac_ext >&5
9457 rm -f conftest* conftst*
9459 # Do not use the global_symbol_pipe unless it works.
9460 if test "$pipe_works" = yes; then
9463 lt_cv_sys_global_symbol_pipe=
9469 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9470 lt_cv_sys_global_symbol_to_cdecl=
9472 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9473 { echo "$as_me:$LINENO: result: failed" >&5
9474 echo "${ECHO_T}failed" >&6; }
9476 { echo "$as_me:$LINENO: result: ok" >&5
9477 echo "${ECHO_T}ok" >&6; }
9481 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9482 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9483 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9487 libltdl_cv_preloaded_symbols=yes
9489 libltdl_cv_preloaded_symbols=no
9493 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9494 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9495 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9497 cat >>confdefs.h <<\_ACEOF
9498 #define HAVE_PRELOADED_SYMBOLS 1
9506 ac_cpp='$CPP $CPPFLAGS'
9507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9512 { echo "$as_me:$LINENO: checking for shl_load" >&5
9513 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9514 if test "${ac_cv_func_shl_load+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 cat >conftest.$ac_ext <<_ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9525 #define shl_load innocuous_shl_load
9527 /* System header to define __stub macros and hopefully few prototypes,
9528 which can conflict with char shl_load (); below.
9529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9530 <limits.h> exists even on freestanding compilers. */
9533 # include <limits.h>
9535 # include <assert.h>
9540 /* Override any GCC internal prototype to avoid an error.
9541 Use char because int might match the return type of a GCC
9542 builtin and then its argument prototype would still apply. */
9547 /* The GNU C library defines this for functions which it implements
9548 to always fail with ENOSYS. Some functions are actually named
9549 something starting with __ and the normal name is an alias. */
9550 #if defined __stub_shl_load || defined __stub___shl_load
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (ac_try="$ac_link"
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_link") 2>conftest.er1
9571 grep -v '^ *+' conftest.er1 >conftest.err
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } &&
9576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9577 { (case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_try") 2>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; } &&
9586 { ac_try='test -s conftest$ac_exeext'
9587 { (case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_try") 2>&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; }; then
9596 ac_cv_func_shl_load=yes
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9601 ac_cv_func_shl_load=no
9604 rm -f core conftest.err conftest.$ac_objext \
9605 conftest$ac_exeext conftest.$ac_ext
9607 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9608 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9609 if test $ac_cv_func_shl_load = yes; then
9611 cat >>confdefs.h <<\_ACEOF
9612 #define HAVE_SHL_LOAD 1
9616 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9617 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9618 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 ac_check_lib_save_LIBS=$LIBS
9623 cat >conftest.$ac_ext <<_ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9630 /* Override any GCC internal prototype to avoid an error.
9631 Use char because int might match the return type of a GCC
9632 builtin and then its argument prototype would still apply. */
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (ac_try="$ac_link"
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_link") 2>conftest.er1
9654 grep -v '^ *+' conftest.er1 >conftest.err
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9660 { (case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_try") 2>&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try='test -s conftest$ac_exeext'
9670 { (case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_try") 2>&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_cv_lib_dld_shl_load=yes
9681 echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9684 ac_cv_lib_dld_shl_load=no
9687 rm -f core conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9689 LIBS=$ac_check_lib_save_LIBS
9691 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9692 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9693 if test $ac_cv_lib_dld_shl_load = yes; then
9695 cat >>confdefs.h <<\_ACEOF
9696 #define HAVE_SHL_LOAD 1
9699 LIBADD_DL="$LIBADD_DL -ldld"
9701 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9702 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9703 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 ac_check_lib_save_LIBS=$LIBS
9708 cat >conftest.$ac_ext <<_ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9715 /* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (ac_try="$ac_link"
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_link") 2>conftest.er1
9739 grep -v '^ *+' conftest.er1 >conftest.err
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9745 { (case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_try") 2>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; } &&
9754 { ac_try='test -s conftest$ac_exeext'
9755 { (case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_try") 2>&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_cv_lib_dl_dlopen=yes
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9769 ac_cv_lib_dl_dlopen=no
9772 rm -f core conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9774 LIBS=$ac_check_lib_save_LIBS
9776 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9777 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9778 if test $ac_cv_lib_dl_dlopen = yes; then
9780 cat >>confdefs.h <<\_ACEOF
9781 #define HAVE_LIBDL 1
9784 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (ac_try="$ac_link"
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_link") 2>conftest.er1
9813 grep -v '^ *+' conftest.er1 >conftest.err
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9819 { (case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_try") 2>&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest$ac_exeext'
9829 { (case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_try") 2>&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9839 cat >>confdefs.h <<\_ACEOF
9840 #define HAVE_LIBDL 1
9842 libltdl_cv_func_dlopen="yes"
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9848 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9849 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 ac_check_lib_save_LIBS=$LIBS
9854 cat >conftest.$ac_ext <<_ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9861 /* Override any GCC internal prototype to avoid an error.
9862 Use char because int might match the return type of a GCC
9863 builtin and then its argument prototype would still apply. */
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_link") 2>conftest.er1
9885 grep -v '^ *+' conftest.er1 >conftest.err
9887 cat conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } &&
9890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9891 { (case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_try") 2>&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest$ac_exeext'
9901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_try") 2>&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; }; then
9910 ac_cv_lib_svld_dlopen=yes
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9915 ac_cv_lib_svld_dlopen=no
9918 rm -f core conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 LIBS=$ac_check_lib_save_LIBS
9922 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9923 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9924 if test $ac_cv_lib_svld_dlopen = yes; then
9926 cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_LIBDL 1
9930 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9932 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9933 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9934 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 ac_check_lib_save_LIBS=$LIBS
9939 cat >conftest.$ac_ext <<_ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9946 /* Override any GCC internal prototype to avoid an error.
9947 Use char because int might match the return type of a GCC
9948 builtin and then its argument prototype would still apply. */
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (ac_try="$ac_link"
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_link") 2>conftest.er1
9970 grep -v '^ *+' conftest.er1 >conftest.err
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; } &&
9985 { ac_try='test -s conftest$ac_exeext'
9986 { (case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_try") 2>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_cv_lib_dld_dld_link=yes
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_cv_lib_dld_dld_link=no
10003 rm -f core conftest.err conftest.$ac_objext \
10004 conftest$ac_exeext conftest.$ac_ext
10005 LIBS=$ac_check_lib_save_LIBS
10007 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10008 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10009 if test $ac_cv_lib_dld_dld_link = yes; then
10011 cat >>confdefs.h <<\_ACEOF
10015 LIBADD_DL="$LIBADD_DL -ldld"
10017 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10018 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10019 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10030 #define _dyld_func_lookup innocuous__dyld_func_lookup
10032 /* System header to define __stub macros and hopefully few prototypes,
10033 which can conflict with char _dyld_func_lookup (); below.
10034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10035 <limits.h> exists even on freestanding compilers. */
10038 # include <limits.h>
10040 # include <assert.h>
10043 #undef _dyld_func_lookup
10045 /* Override any GCC internal prototype to avoid an error.
10046 Use char because int might match the return type of a GCC
10047 builtin and then its argument prototype would still apply. */
10051 char _dyld_func_lookup ();
10052 /* The GNU C library defines this for functions which it implements
10053 to always fail with ENOSYS. Some functions are actually named
10054 something starting with __ and the normal name is an alias. */
10055 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10062 return _dyld_func_lookup ();
10067 rm -f conftest.$ac_objext conftest$ac_exeext
10068 if { (ac_try="$ac_link"
10069 case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_link") 2>conftest.er1
10076 grep -v '^ *+' conftest.er1 >conftest.err
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10082 { (case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_try") 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_try") 2>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 ac_cv_func__dyld_func_lookup=yes
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 ac_cv_func__dyld_func_lookup=no
10109 rm -f core conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10112 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10113 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10114 if test $ac_cv_func__dyld_func_lookup = yes; then
10116 cat >>confdefs.h <<\_ACEOF
10117 #define HAVE_DYLD 1
10131 rm -f core conftest.err conftest.$ac_objext \
10132 conftest$ac_exeext conftest.$ac_ext
10143 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10145 lt_save_LIBS="$LIBS"
10146 LIBS="$LIBS $LIBADD_DL"
10148 for ac_func in dlerror
10150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 cat >conftest.$ac_ext <<_ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10164 #define $ac_func innocuous_$ac_func
10166 /* System header to define __stub macros and hopefully few prototypes,
10167 which can conflict with char $ac_func (); below.
10168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10169 <limits.h> exists even on freestanding compilers. */
10172 # include <limits.h>
10174 # include <assert.h>
10179 /* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10186 /* The GNU C library defines this for functions which it implements
10187 to always fail with ENOSYS. Some functions are actually named
10188 something starting with __ and the normal name is an alias. */
10189 #if defined __stub_$ac_func || defined __stub___$ac_func
10196 return $ac_func ();
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (ac_try="$ac_link"
10203 case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_link") 2>conftest.er1
10210 grep -v '^ *+' conftest.er1 >conftest.err
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
10226 { (case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_try") 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10235 eval "$as_ac_var=yes"
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10240 eval "$as_ac_var=no"
10243 rm -f core conftest.err conftest.$ac_objext \
10244 conftest$ac_exeext conftest.$ac_ext
10246 ac_res=`eval echo '${'$as_ac_var'}'`
10247 { echo "$as_me:$LINENO: result: $ac_res" >&5
10248 echo "${ECHO_T}$ac_res" >&6; }
10249 if test `eval echo '${'$as_ac_var'}'` = yes; then
10250 cat >>confdefs.h <<_ACEOF
10251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10257 LIBS="$lt_save_LIBS"
10260 ac_cpp='$CPP $CPPFLAGS'
10261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10267 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10268 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10269 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 ac_cv_sys_symbol_underscore=no
10273 cat > conftest.$ac_ext <<EOF
10274 void nm_test_func(){}
10275 int main(){nm_test_func;return 0;}
10277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278 (eval $ac_compile) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; then
10282 # Now try to grab the symbols.
10283 ac_nlist=conftest.nm
10284 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10285 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && test -s "$ac_nlist"; then
10289 # See whether the symbols have a leading underscore.
10290 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10291 ac_cv_sys_symbol_underscore=yes
10293 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10296 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10300 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10303 echo "configure: failed program was:" >&5
10309 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10310 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10313 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10314 if test x"$libltdl_cv_func_dlopen" = xyes ||
10315 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10316 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10317 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10318 if test "${libltdl_cv_need_uscore+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 libltdl_cv_need_uscore=unknown
10323 LIBS="$LIBS $LIBADD_DL"
10324 if test "$cross_compiling" = yes; then :
10325 libltdl_cv_need_uscore=cross
10327 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10328 lt_status=$lt_dlunknown
10329 cat > conftest.$ac_ext <<EOF
10330 #line 10330 "configure"
10331 #include "confdefs.h"
10340 # define LT_DLGLOBAL RTLD_GLOBAL
10343 # define LT_DLGLOBAL DL_GLOBAL
10345 # define LT_DLGLOBAL 0
10349 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10350 find out it does not work in some platform. */
10351 #ifndef LT_DLLAZY_OR_NOW
10353 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10356 # define LT_DLLAZY_OR_NOW DL_LAZY
10359 # define LT_DLLAZY_OR_NOW RTLD_NOW
10362 # define LT_DLLAZY_OR_NOW DL_NOW
10364 # define LT_DLLAZY_OR_NOW 0
10372 extern "C" void exit (int);
10375 void fnord() { int i=42;}
10378 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10379 int status = $lt_dlunknown;
10383 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10384 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10385 /* dlclose (self); */
10393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10394 (eval $ac_link) 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10398 (./conftest; exit; ) >&5 2>/dev/null
10400 case x$lt_status in
10401 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10402 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10403 x$lt_dlunknown|x*) ;;
10406 # compilation failed
10415 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10416 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10420 if test x"$libltdl_cv_need_uscore" = xyes; then
10422 cat >>confdefs.h <<\_ACEOF
10423 #define NEED_USCORE 1
10429 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10430 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10431 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 # PORTME does your system automatically load deplibs for dlopen?
10435 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10436 # For now, we just catch OSes we know something about -- in the
10437 # future, we'll try test this programmatically.
10438 libltdl_cv_sys_dlopen_deplibs=unknown
10440 aix3*|aix4.1.*|aix4.2.*)
10441 # Unknown whether this is true for these versions of AIX, but
10442 # we want this `case' here to explicitly catch those versions.
10443 libltdl_cv_sys_dlopen_deplibs=unknown
10446 libltdl_cv_sys_dlopen_deplibs=yes
10449 # Assuming the user has installed a libdl from somewhere, this is true
10450 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10451 libltdl_cv_sys_dlopen_deplibs=yes
10453 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10454 # GNU and its variants, using gnu ld.so (Glibc)
10455 libltdl_cv_sys_dlopen_deplibs=yes
10458 libltdl_cv_sys_dlopen_deplibs=yes
10461 libltdl_cv_sys_dlopen_deplibs=yes
10463 irix[12345]*|irix6.[01]*)
10464 # Catch all versions of IRIX before 6.2, and indicate that we don't
10465 # know how it worked for any of those versions.
10466 libltdl_cv_sys_dlopen_deplibs=unknown
10469 # The case above catches anything before 6.2, and it's known that
10470 # at 6.2 and later dlopen does load deplibs.
10471 libltdl_cv_sys_dlopen_deplibs=yes
10474 libltdl_cv_sys_dlopen_deplibs=yes
10477 libltdl_cv_sys_dlopen_deplibs=yes
10480 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10481 # it did *not* use an RPATH in a shared library to find objects the
10482 # library depends on, so we explictly say `no'.
10483 libltdl_cv_sys_dlopen_deplibs=no
10485 osf5.0|osf5.0a|osf5.1)
10486 # dlopen *does* load deplibs and with the right loader patch applied
10487 # it even uses RPATH in a shared library to search for shared objects
10488 # that the library depends on, but there's no easy way to know if that
10489 # patch is installed. Since this is the case, all we can really
10490 # say is unknown -- it depends on the patch being installed. If
10491 # it is, this changes to `yes'. Without it, it would be `no'.
10492 libltdl_cv_sys_dlopen_deplibs=unknown
10495 # the two cases above should catch all versions of osf <= 5.1. Read
10496 # the comments above for what we know about them.
10497 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10498 # is used to find them so we can finally say `yes'.
10499 libltdl_cv_sys_dlopen_deplibs=yes
10502 libltdl_cv_sys_dlopen_deplibs=yes
10504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10505 libltdl_cv_sys_dlopen_deplibs=yes
10510 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10511 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10512 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10514 cat >>confdefs.h <<\_ACEOF
10515 #define LTDL_DLOPEN_DEPLIBS 1
10521 for ac_header in argz.h
10523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 ac_res=`eval echo '${'$as_ac_Header'}'`
10531 { echo "$as_me:$LINENO: result: $ac_res" >&5
10532 echo "${ECHO_T}$ac_res" >&6; }
10534 # Is the header compilable?
10535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10537 cat >conftest.$ac_ext <<_ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10543 $ac_includes_default
10544 #include <$ac_header>
10546 rm -f conftest.$ac_objext
10547 if { (ac_try="$ac_compile"
10548 case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_compile") 2>conftest.er1
10555 grep -v '^ *+' conftest.er1 >conftest.err
10557 cat conftest.err >&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } &&
10560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10561 { (case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_try") 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; } &&
10570 { ac_try='test -s conftest.$ac_objext'
10571 { (case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576 (eval "$ac_try") 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; }; then
10580 ac_header_compiler=yes
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 ac_header_compiler=no
10588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10590 echo "${ECHO_T}$ac_header_compiler" >&6; }
10592 # Is the header present?
10593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 #include <$ac_header>
10603 if { (ac_try="$ac_cpp conftest.$ac_ext"
10604 case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10611 grep -v '^ *+' conftest.er1 >conftest.err
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } >/dev/null; then
10616 if test -s conftest.err; then
10617 ac_cpp_err=$ac_c_preproc_warn_flag
10618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10625 if test -z "$ac_cpp_err"; then
10626 ac_header_preproc=yes
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_header_preproc=no
10634 rm -f conftest.err conftest.$ac_ext
10635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10636 echo "${ECHO_T}$ac_header_preproc" >&6; }
10638 # So? What about this header?
10639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10645 ac_header_preproc=yes
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10655 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10661 ## ----------------------------------- ##
10662 ## Report this to llvmbugs@cs.uiuc.edu ##
10663 ## ----------------------------------- ##
10665 ) | sed "s/^/$as_me: WARNING: /" >&2
10668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 eval "$as_ac_Header=\$ac_header_preproc"
10675 ac_res=`eval echo '${'$as_ac_Header'}'`
10676 { echo "$as_me:$LINENO: result: $ac_res" >&5
10677 echo "${ECHO_T}$ac_res" >&6; }
10680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10690 { echo "$as_me:$LINENO: checking for error_t" >&5
10691 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10692 if test "${ac_cv_type_error_t+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 cat >conftest.$ac_ext <<_ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10705 typedef error_t ac__type_new_;
10709 if ((ac__type_new_ *) 0)
10711 if (sizeof (ac__type_new_))
10717 rm -f conftest.$ac_objext
10718 if { (ac_try="$ac_compile"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_compile") 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10732 { (case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_try") 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try='test -s conftest.$ac_objext'
10742 { (case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 (eval "$ac_try") 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 ac_cv_type_error_t=yes
10753 echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10756 ac_cv_type_error_t=no
10759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10762 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10763 if test $ac_cv_type_error_t = yes; then
10765 cat >>confdefs.h <<_ACEOF
10766 #define HAVE_ERROR_T 1
10772 cat >>confdefs.h <<\_ACEOF
10773 #define error_t int
10784 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 cat >conftest.$ac_ext <<_ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10800 #define $ac_func innocuous_$ac_func
10802 /* System header to define __stub macros and hopefully few prototypes,
10803 which can conflict with char $ac_func (); below.
10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805 <limits.h> exists even on freestanding compilers. */
10808 # include <limits.h>
10810 # include <assert.h>
10815 /* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10822 /* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
10825 #if defined __stub_$ac_func || defined __stub___$ac_func
10832 return $ac_func ();
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (ac_try="$ac_link"
10839 case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_link") 2>conftest.er1
10846 grep -v '^ *+' conftest.er1 >conftest.err
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10852 { (case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_try") 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; } &&
10861 { ac_try='test -s conftest$ac_exeext'
10862 { (case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_try") 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 eval "$as_ac_var=yes"
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 eval "$as_ac_var=no"
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10882 ac_res=`eval echo '${'$as_ac_var'}'`
10883 { echo "$as_me:$LINENO: result: $ac_res" >&5
10884 echo "${ECHO_T}$ac_res" >&6; }
10885 if test `eval echo '${'$as_ac_var'}'` = yes; then
10886 cat >>confdefs.h <<_ACEOF
10887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10920 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 ac_res=`eval echo '${'$as_ac_Header'}'`
10931 { echo "$as_me:$LINENO: result: $ac_res" >&5
10932 echo "${ECHO_T}$ac_res" >&6; }
10934 # Is the header compilable?
10935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10937 cat >conftest.$ac_ext <<_ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 $ac_includes_default
10944 #include <$ac_header>
10946 rm -f conftest.$ac_objext
10947 if { (ac_try="$ac_compile"
10948 case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_compile") 2>conftest.er1
10955 grep -v '^ *+' conftest.er1 >conftest.err
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest.$ac_objext'
10971 { (case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 *) ac_try_echo=$ac_try;;
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 (eval "$ac_try") 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 ac_header_compiler=yes
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10985 ac_header_compiler=no
10988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10990 echo "${ECHO_T}$ac_header_compiler" >&6; }
10992 # Is the header present?
10993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10995 cat >conftest.$ac_ext <<_ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 #include <$ac_header>
11003 if { (ac_try="$ac_cpp conftest.$ac_ext"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11011 grep -v '^ *+' conftest.er1 >conftest.err
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } >/dev/null; then
11016 if test -s conftest.err; then
11017 ac_cpp_err=$ac_c_preproc_warn_flag
11018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11025 if test -z "$ac_cpp_err"; then
11026 ac_header_preproc=yes
11028 echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11031 ac_header_preproc=no
11034 rm -f conftest.err conftest.$ac_ext
11035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11036 echo "${ECHO_T}$ac_header_preproc" >&6; }
11038 # So? What about this header?
11039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11045 ac_header_preproc=yes
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11061 ## ----------------------------------- ##
11062 ## Report this to llvmbugs@cs.uiuc.edu ##
11063 ## ----------------------------------- ##
11065 ) | sed "s/^/$as_me: WARNING: /" >&2
11068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 eval "$as_ac_Header=\$ac_header_preproc"
11075 ac_res=`eval echo '${'$as_ac_Header'}'`
11076 { echo "$as_me:$LINENO: result: $ac_res" >&5
11077 echo "${ECHO_T}$ac_res" >&6; }
11080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11081 cat >>confdefs.h <<_ACEOF
11082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11093 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 ac_res=`eval echo '${'$as_ac_Header'}'`
11103 { echo "$as_me:$LINENO: result: $ac_res" >&5
11104 echo "${ECHO_T}$ac_res" >&6; }
11106 # Is the header compilable?
11107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11109 cat >conftest.$ac_ext <<_ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 $ac_includes_default
11116 #include <$ac_header>
11118 rm -f conftest.$ac_objext
11119 if { (ac_try="$ac_compile"
11120 case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_compile") 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest.$ac_objext'
11143 { (case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_try") 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_header_compiler=yes
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_header_compiler=no
11160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11162 echo "${ECHO_T}$ac_header_compiler" >&6; }
11164 # Is the header present?
11165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11167 cat >conftest.$ac_ext <<_ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 #include <$ac_header>
11175 if { (ac_try="$ac_cpp conftest.$ac_ext"
11176 case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11183 grep -v '^ *+' conftest.er1 >conftest.err
11185 cat conftest.err >&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } >/dev/null; then
11188 if test -s conftest.err; then
11189 ac_cpp_err=$ac_c_preproc_warn_flag
11190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11197 if test -z "$ac_cpp_err"; then
11198 ac_header_preproc=yes
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_header_preproc=no
11206 rm -f conftest.err conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208 echo "${ECHO_T}$ac_header_preproc" >&6; }
11210 # So? What about this header?
11211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217 ac_header_preproc=yes
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11233 ## ----------------------------------- ##
11234 ## Report this to llvmbugs@cs.uiuc.edu ##
11235 ## ----------------------------------- ##
11237 ) | sed "s/^/$as_me: WARNING: /" >&2
11240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 eval "$as_ac_Header=\$ac_header_preproc"
11247 ac_res=`eval echo '${'$as_ac_Header'}'`
11248 { echo "$as_me:$LINENO: result: $ac_res" >&5
11249 echo "${ECHO_T}$ac_res" >&6; }
11252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11263 for ac_header in string.h strings.h
11265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 ac_res=`eval echo '${'$as_ac_Header'}'`
11273 { echo "$as_me:$LINENO: result: $ac_res" >&5
11274 echo "${ECHO_T}$ac_res" >&6; }
11276 # Is the header compilable?
11277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 $ac_includes_default
11286 #include <$ac_header>
11288 rm -f conftest.$ac_objext
11289 if { (ac_try="$ac_compile"
11290 case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_compile") 2>conftest.er1
11297 grep -v '^ *+' conftest.er1 >conftest.err
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
11302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11303 { (case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_try") 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_try") 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_header_compiler=yes
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_header_compiler=no
11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11332 echo "${ECHO_T}$ac_header_compiler" >&6; }
11334 # Is the header present?
11335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11337 cat >conftest.$ac_ext <<_ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 #include <$ac_header>
11345 if { (ac_try="$ac_cpp conftest.$ac_ext"
11346 case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11353 grep -v '^ *+' conftest.er1 >conftest.err
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } >/dev/null; then
11358 if test -s conftest.err; then
11359 ac_cpp_err=$ac_c_preproc_warn_flag
11360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11367 if test -z "$ac_cpp_err"; then
11368 ac_header_preproc=yes
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 ac_header_preproc=no
11376 rm -f conftest.err conftest.$ac_ext
11377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 echo "${ECHO_T}$ac_header_preproc" >&6; }
11380 # So? What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc=yes
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11403 ## ----------------------------------- ##
11404 ## Report this to llvmbugs@cs.uiuc.edu ##
11405 ## ----------------------------------- ##
11407 ) | sed "s/^/$as_me: WARNING: /" >&2
11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 eval "$as_ac_Header=\$ac_header_preproc"
11417 ac_res=`eval echo '${'$as_ac_Header'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423 cat >>confdefs.h <<_ACEOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11434 for ac_func in strchr index
11436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 cat >conftest.$ac_ext <<_ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11450 #define $ac_func innocuous_$ac_func
11452 /* System header to define __stub macros and hopefully few prototypes,
11453 which can conflict with char $ac_func (); below.
11454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11455 <limits.h> exists even on freestanding compilers. */
11458 # include <limits.h>
11460 # include <assert.h>
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11472 /* The GNU C library defines this for functions which it implements
11473 to always fail with ENOSYS. Some functions are actually named
11474 something starting with __ and the normal name is an alias. */
11475 #if defined __stub_$ac_func || defined __stub___$ac_func
11482 return $ac_func ();
11487 rm -f conftest.$ac_objext conftest$ac_exeext
11488 if { (ac_try="$ac_link"
11489 case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_link") 2>conftest.er1
11496 grep -v '^ *+' conftest.er1 >conftest.err
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest$ac_exeext'
11512 { (case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_try") 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 eval "$as_ac_var=yes"
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 eval "$as_ac_var=no"
11529 rm -f core conftest.err conftest.$ac_objext \
11530 conftest$ac_exeext conftest.$ac_ext
11532 ac_res=`eval echo '${'$as_ac_var'}'`
11533 { echo "$as_me:$LINENO: result: $ac_res" >&5
11534 echo "${ECHO_T}$ac_res" >&6; }
11535 if test `eval echo '${'$as_ac_var'}'` = yes; then
11536 cat >>confdefs.h <<_ACEOF
11537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11545 for ac_func in strrchr rindex
11547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 cat >conftest.$ac_ext <<_ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11561 #define $ac_func innocuous_$ac_func
11563 /* System header to define __stub macros and hopefully few prototypes,
11564 which can conflict with char $ac_func (); below.
11565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11566 <limits.h> exists even on freestanding compilers. */
11569 # include <limits.h>
11571 # include <assert.h>
11576 /* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11583 /* The GNU C library defines this for functions which it implements
11584 to always fail with ENOSYS. Some functions are actually named
11585 something starting with __ and the normal name is an alias. */
11586 #if defined __stub_$ac_func || defined __stub___$ac_func
11593 return $ac_func ();
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (ac_try="$ac_link"
11600 case "(($ac_try" in
11601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605 (eval "$ac_link") 2>conftest.er1
11607 grep -v '^ *+' conftest.er1 >conftest.err
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11613 { (case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_try") 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; } &&
11622 { ac_try='test -s conftest$ac_exeext'
11623 { (case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_try") 2>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 eval "$as_ac_var=yes"
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 eval "$as_ac_var=no"
11640 rm -f core conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11643 ac_res=`eval echo '${'$as_ac_var'}'`
11644 { echo "$as_me:$LINENO: result: $ac_res" >&5
11645 echo "${ECHO_T}$ac_res" >&6; }
11646 if test `eval echo '${'$as_ac_var'}'` = yes; then
11647 cat >>confdefs.h <<_ACEOF
11648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11656 for ac_func in memcpy bcopy
11658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 cat >conftest.$ac_ext <<_ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11672 #define $ac_func innocuous_$ac_func
11674 /* System header to define __stub macros and hopefully few prototypes,
11675 which can conflict with char $ac_func (); below.
11676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11677 <limits.h> exists even on freestanding compilers. */
11680 # include <limits.h>
11682 # include <assert.h>
11687 /* Override any GCC internal prototype to avoid an error.
11688 Use char because int might match the return type of a GCC
11689 builtin and then its argument prototype would still apply. */
11694 /* The GNU C library defines this for functions which it implements
11695 to always fail with ENOSYS. Some functions are actually named
11696 something starting with __ and the normal name is an alias. */
11697 #if defined __stub_$ac_func || defined __stub___$ac_func
11704 return $ac_func ();
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (ac_try="$ac_link"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_link") 2>conftest.er1
11718 grep -v '^ *+' conftest.er1 >conftest.err
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11724 { (case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_try") 2>&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; } &&
11733 { ac_try='test -s conftest$ac_exeext'
11734 { (case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_try") 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 eval "$as_ac_var=yes"
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11748 eval "$as_ac_var=no"
11751 rm -f core conftest.err conftest.$ac_objext \
11752 conftest$ac_exeext conftest.$ac_ext
11754 ac_res=`eval echo '${'$as_ac_var'}'`
11755 { echo "$as_me:$LINENO: result: $ac_res" >&5
11756 echo "${ECHO_T}$ac_res" >&6; }
11757 if test `eval echo '${'$as_ac_var'}'` = yes; then
11758 cat >>confdefs.h <<_ACEOF
11759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11767 for ac_func in memmove strcmp
11769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 cat >conftest.$ac_ext <<_ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11783 #define $ac_func innocuous_$ac_func
11785 /* System header to define __stub macros and hopefully few prototypes,
11786 which can conflict with char $ac_func (); below.
11787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11788 <limits.h> exists even on freestanding compilers. */
11791 # include <limits.h>
11793 # include <assert.h>
11798 /* Override any GCC internal prototype to avoid an error.
11799 Use char because int might match the return type of a GCC
11800 builtin and then its argument prototype would still apply. */
11805 /* The GNU C library defines this for functions which it implements
11806 to always fail with ENOSYS. Some functions are actually named
11807 something starting with __ and the normal name is an alias. */
11808 #if defined __stub_$ac_func || defined __stub___$ac_func
11815 return $ac_func ();
11820 rm -f conftest.$ac_objext conftest$ac_exeext
11821 if { (ac_try="$ac_link"
11822 case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_link") 2>conftest.er1
11829 grep -v '^ *+' conftest.er1 >conftest.err
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11835 { (case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_try") 2>&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; } &&
11844 { ac_try='test -s conftest$ac_exeext'
11845 { (case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_try") 2>&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 eval "$as_ac_var=yes"
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11859 eval "$as_ac_var=no"
11862 rm -f core conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
11865 ac_res=`eval echo '${'$as_ac_var'}'`
11866 { echo "$as_me:$LINENO: result: $ac_res" >&5
11867 echo "${ECHO_T}$ac_res" >&6; }
11868 if test `eval echo '${'$as_ac_var'}'` = yes; then
11869 cat >>confdefs.h <<_ACEOF
11870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11879 for ac_func in closedir opendir readdir
11881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11882 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 cat >conftest.$ac_ext <<_ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11895 #define $ac_func innocuous_$ac_func
11897 /* System header to define __stub macros and hopefully few prototypes,
11898 which can conflict with char $ac_func (); below.
11899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11900 <limits.h> exists even on freestanding compilers. */
11903 # include <limits.h>
11905 # include <assert.h>
11910 /* Override any GCC internal prototype to avoid an error.
11911 Use char because int might match the return type of a GCC
11912 builtin and then its argument prototype would still apply. */
11917 /* The GNU C library defines this for functions which it implements
11918 to always fail with ENOSYS. Some functions are actually named
11919 something starting with __ and the normal name is an alias. */
11920 #if defined __stub_$ac_func || defined __stub___$ac_func
11927 return $ac_func ();
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (ac_try="$ac_link"
11934 case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_link") 2>conftest.er1
11941 grep -v '^ *+' conftest.er1 >conftest.err
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11947 { (case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_try") 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; } &&
11956 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 eval "$as_ac_var=yes"
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 eval "$as_ac_var=no"
11974 rm -f core conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11977 ac_res=`eval echo '${'$as_ac_var'}'`
11978 { echo "$as_me:$LINENO: result: $ac_res" >&5
11979 echo "${ECHO_T}$ac_res" >&6; }
11980 if test `eval echo '${'$as_ac_var'}'` = yes; then
11981 cat >>confdefs.h <<_ACEOF
11982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11989 # Check whether --enable-shared was given.
11990 if test "${enable_shared+set}" = set; then
11991 enableval=$enable_shared; p=${PACKAGE-default}
11993 yes) enable_shared=yes ;;
11994 no) enable_shared=no ;;
11997 # Look at the argument we got. We use all the common list separators.
11998 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11999 for pkg in $enableval; do
12001 if test "X$pkg" = "X$p"; then
12013 # Check whether --enable-static was given.
12014 if test "${enable_static+set}" = set; then
12015 enableval=$enable_static; p=${PACKAGE-default}
12017 yes) enable_static=yes ;;
12018 no) enable_static=no ;;
12021 # Look at the argument we got. We use all the common list separators.
12022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12023 for pkg in $enableval; do
12025 if test "X$pkg" = "X$p"; then
12037 # Check whether --enable-fast-install was given.
12038 if test "${enable_fast_install+set}" = set; then
12039 enableval=$enable_fast_install; p=${PACKAGE-default}
12041 yes) enable_fast_install=yes ;;
12042 no) enable_fast_install=no ;;
12044 enable_fast_install=no
12045 # Look at the argument we got. We use all the common list separators.
12046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12047 for pkg in $enableval; do
12049 if test "X$pkg" = "X$p"; then
12050 enable_fast_install=yes
12057 enable_fast_install=yes
12061 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12062 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12063 if test "${lt_cv_path_SED+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 # Loop through the user's path and test for sed and gsed.
12067 # Then use that list of sed's as ones to test for truncation.
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12072 test -z "$as_dir" && as_dir=.
12073 for lt_ac_prog in sed gsed; do
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12076 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12083 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12084 # along with /bin/sed that truncates output.
12085 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12086 test ! -f $lt_ac_sed && continue
12087 cat /dev/null > conftest.in
12089 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12090 # Check for GNU sed and select it if it is found.
12091 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12092 lt_cv_path_SED=$lt_ac_sed
12096 cat conftest.in conftest.in >conftest.tmp
12097 mv conftest.tmp conftest.in
12098 cp conftest.in conftest.nl
12100 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12101 cmp -s conftest.out conftest.nl || break
12102 # 10000 chars as input seems more than enough
12103 test $lt_ac_count -gt 10 && break
12104 lt_ac_count=`expr $lt_ac_count + 1`
12105 if test $lt_ac_count -gt $lt_ac_max; then
12106 lt_ac_max=$lt_ac_count
12107 lt_cv_path_SED=$lt_ac_sed
12114 SED=$lt_cv_path_SED
12115 { echo "$as_me:$LINENO: result: $SED" >&5
12116 echo "${ECHO_T}$SED" >&6; }
12119 # Check whether --with-gnu-ld was given.
12120 if test "${with_gnu_ld+set}" = set; then
12121 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12127 if test "$GCC" = yes; then
12128 # Check if gcc -print-prog-name=ld gives a path.
12129 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12130 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12133 # gcc leaves a trailing carriage return which upsets mingw
12134 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12136 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12139 # Accept absolute paths.
12141 re_direlt='/[^/][^/]*/\.\./'
12142 # Canonicalize the pathname of ld
12143 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12144 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12145 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12147 test -z "$LD" && LD="$ac_prog"
12150 # If it fails, then pretend we aren't using GCC.
12154 # If it is relative, then search for the first ld in PATH.
12155 with_gnu_ld=unknown
12158 elif test "$with_gnu_ld" = yes; then
12159 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12160 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12162 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12163 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12165 if test "${lt_cv_path_LD+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 if test -z "$LD"; then
12169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12170 for ac_dir in $PATH; do
12172 test -z "$ac_dir" && ac_dir=.
12173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12174 lt_cv_path_LD="$ac_dir/$ac_prog"
12175 # Check to see if the program is GNU ld. I'd rather use --version,
12176 # but apparently some variants of GNU ld only accept -v.
12177 # Break only if it was the GNU/non-GNU ld that we prefer.
12178 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12179 *GNU* | *'with BFD'*)
12180 test "$with_gnu_ld" != no && break
12183 test "$with_gnu_ld" != yes && break
12190 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12194 LD="$lt_cv_path_LD"
12195 if test -n "$LD"; then
12196 { echo "$as_me:$LINENO: result: $LD" >&5
12197 echo "${ECHO_T}$LD" >&6; }
12199 { echo "$as_me:$LINENO: result: no" >&5
12200 echo "${ECHO_T}no" >&6; }
12202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12204 { (exit 1); exit 1; }; }
12205 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12211 case `$LD -v 2>&1 </dev/null` in
12212 *GNU* | *'with BFD'*)
12213 lt_cv_prog_gnu_ld=yes
12216 lt_cv_prog_gnu_ld=no
12220 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12221 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12222 with_gnu_ld=$lt_cv_prog_gnu_ld
12225 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12226 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12227 if test "${lt_cv_ld_reload_flag+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 lt_cv_ld_reload_flag='-r'
12232 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12233 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12234 reload_flag=$lt_cv_ld_reload_flag
12235 case $reload_flag in
12237 *) reload_flag=" $reload_flag" ;;
12239 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12242 if test "$GCC" = yes; then
12243 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12250 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12251 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12252 if test "${lt_cv_deplibs_check_method+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 lt_cv_file_magic_cmd='$MAGIC_CMD'
12256 lt_cv_file_magic_test_file=
12257 lt_cv_deplibs_check_method='unknown'
12258 # Need to set the preceding variable on all platforms that support
12259 # interlibrary dependencies.
12260 # 'none' -- dependencies not supported.
12261 # `unknown' -- same as none, but documents that we really don't know.
12262 # 'pass_all' -- all dependencies passed with no checks.
12263 # 'test_compile' -- check by making test program.
12264 # 'file_magic [[regex]]' -- check by looking for files in library path
12265 # which responds to the $file_magic_cmd with a given extended regex.
12266 # If you have `file' or equivalent on your system and you're not sure
12267 # whether `pass_all' will *always* work, you probably want this one.
12271 lt_cv_deplibs_check_method=pass_all
12275 lt_cv_deplibs_check_method=pass_all
12279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12280 lt_cv_file_magic_cmd='/usr/bin/file -L'
12281 lt_cv_file_magic_test_file=/shlib/libc.so
12285 # func_win32_libid is a shell function defined in ltmain.sh
12286 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12287 lt_cv_file_magic_cmd='func_win32_libid'
12291 # Base MSYS/MinGW do not provide the 'file' command needed by
12292 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12293 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12294 lt_cv_file_magic_cmd='$OBJDUMP -f'
12297 darwin* | rhapsody*)
12298 lt_cv_deplibs_check_method=pass_all
12301 freebsd* | kfreebsd*-gnu | dragonfly*)
12302 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12305 # Not sure whether the presence of OpenBSD here was a mistake.
12306 # Let's accept both of them until this is cleared up.
12307 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12308 lt_cv_file_magic_cmd=/usr/bin/file
12309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12313 lt_cv_deplibs_check_method=pass_all
12318 lt_cv_deplibs_check_method=pass_all
12321 hpux10.20* | hpux11*)
12322 lt_cv_file_magic_cmd=/usr/bin/file
12325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12326 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12329 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]'
12330 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12334 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12340 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12344 irix5* | irix6* | nonstopux*)
12346 *-32|*"-32 ") libmagic=32-bit;;
12347 *-n32|*"-n32 ") libmagic=N32;;
12348 *-64|*"-64 ") libmagic=64-bit;;
12349 *) libmagic=never-match;;
12351 lt_cv_deplibs_check_method=pass_all
12354 # This must be Linux ELF.
12356 lt_cv_deplibs_check_method=pass_all
12360 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12369 lt_cv_file_magic_cmd=/usr/bin/file
12370 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12374 lt_cv_deplibs_check_method=unknown
12378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12385 osf3* | osf4* | osf5*)
12386 lt_cv_deplibs_check_method=pass_all
12390 lt_cv_deplibs_check_method=pass_all
12394 case $host_vendor in
12396 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]'
12397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12400 lt_cv_deplibs_check_method=pass_all
12403 lt_cv_file_magic_cmd='/bin/file'
12404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12407 lt_cv_file_magic_cmd='/bin/file'
12408 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12409 lt_cv_file_magic_test_file=/lib/libc.so
12412 lt_cv_deplibs_check_method=pass_all
12415 lt_cv_deplibs_check_method=pass_all
12420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12421 lt_cv_deplibs_check_method=pass_all
12426 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12427 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12428 file_magic_cmd=$lt_cv_file_magic_cmd
12429 deplibs_check_method=$lt_cv_deplibs_check_method
12430 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12434 # If no C compiler was specified, use CC.
12437 # If no C compiler flags were specified, use CFLAGS.
12438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12440 # Allow CC to be a program name with arguments.
12443 # Check whether --enable-libtool-lock was given.
12444 if test "${enable_libtool_lock+set}" = set; then
12445 enableval=$enable_libtool_lock;
12448 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12450 # Some flags need to be propagated to the compiler or linker for good
12454 # Find out which ABI we are using.
12455 echo 'int i;' > conftest.$ac_ext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12457 (eval $ac_compile) 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; then
12461 case `/usr/bin/file conftest.$ac_objext` in
12463 HPUX_IA64_MODE="32"
12466 HPUX_IA64_MODE="64"
12473 # Find out which ABI we are using.
12474 echo '#line 12474 "configure"' > conftest.$ac_ext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; then
12480 if test "$lt_cv_prog_gnu_ld" = yes; then
12481 case `/usr/bin/file conftest.$ac_objext` in
12483 LD="${LD-ld} -melf32bsmip"
12486 LD="${LD-ld} -melf32bmipn32"
12489 LD="${LD-ld} -melf64bmip"
12493 case `/usr/bin/file conftest.$ac_objext` in
12509 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12510 # Find out which ABI we are using.
12511 echo 'int i;' > conftest.$ac_ext
12512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12513 (eval $ac_compile) 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; then
12517 case `/usr/bin/file conftest.o` in
12521 LD="${LD-ld} -m elf_i386"
12523 ppc64-*linux*|powerpc64-*linux*)
12524 LD="${LD-ld} -m elf32ppclinux"
12527 LD="${LD-ld} -m elf_s390"
12530 LD="${LD-ld} -m elf32_sparc"
12537 LD="${LD-ld} -m elf_x86_64"
12539 ppc*-*linux*|powerpc*-*linux*)
12540 LD="${LD-ld} -m elf64ppc"
12543 LD="${LD-ld} -m elf64_s390"
12546 LD="${LD-ld} -m elf64_sparc"
12556 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12557 SAVE_CFLAGS="$CFLAGS"
12558 CFLAGS="$CFLAGS -belf"
12559 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12560 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12561 if test "${lt_cv_cc_needs_belf+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 ac_cpp='$CPP $CPPFLAGS'
12566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12570 cat >conftest.$ac_ext <<_ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_link") 2>conftest.er1
12594 grep -v '^ *+' conftest.er1 >conftest.err
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600 { (case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_try") 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest$ac_exeext'
12610 { (case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_try") 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 lt_cv_cc_needs_belf=yes
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12624 lt_cv_cc_needs_belf=no
12627 rm -f core conftest.err conftest.$ac_objext \
12628 conftest$ac_exeext conftest.$ac_ext
12630 ac_cpp='$CPP $CPPFLAGS'
12631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12636 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12637 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12638 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12640 CFLAGS="$SAVE_CFLAGS"
12644 # Find out which ABI we are using.
12645 echo 'int i;' > conftest.$ac_ext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647 (eval $ac_compile) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; then
12651 case `/usr/bin/file conftest.o` in
12653 case $lt_cv_prog_gnu_ld in
12654 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12655 *) LD="${LD-ld} -64" ;;
12666 need_locks="$enable_libtool_lock"
12671 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12672 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12673 (test "X$CXX" != "Xg++"))) ; then
12675 ac_cpp='$CXXCPP $CPPFLAGS'
12676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12679 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12680 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12681 if test -z "$CXXCPP"; then
12682 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 # Double quotes because CXXCPP needs to be expanded
12686 for CXXCPP in "$CXX -E" "/lib/cpp"
12688 ac_preproc_ok=false
12689 for ac_cxx_preproc_warn_flag in '' yes
12691 # Use a header file that comes with gcc, so configuring glibc
12692 # with a fresh cross-compiler works.
12693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12694 # <limits.h> exists even on freestanding compilers.
12695 # On the NeXT, cc -E runs the code through the compiler's parser,
12696 # not just through cpp. "Syntax error" is here to catch this case.
12697 cat >conftest.$ac_ext <<_ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12704 # include <limits.h>
12706 # include <assert.h>
12710 if { (ac_try="$ac_cpp conftest.$ac_ext"
12711 case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12718 grep -v '^ *+' conftest.er1 >conftest.err
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } >/dev/null; then
12723 if test -s conftest.err; then
12724 ac_cpp_err=$ac_cxx_preproc_warn_flag
12725 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12732 if test -z "$ac_cpp_err"; then
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 # Broken: fails on valid input.
12742 rm -f conftest.err conftest.$ac_ext
12744 # OK, works on sane cases. Now check whether nonexistent headers
12745 # can be detected and how.
12746 cat >conftest.$ac_ext <<_ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 #include <ac_nonexistent.h>
12754 if { (ac_try="$ac_cpp conftest.$ac_ext"
12755 case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12762 grep -v '^ *+' conftest.er1 >conftest.err
12764 cat conftest.err >&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); } >/dev/null; then
12767 if test -s conftest.err; then
12768 ac_cpp_err=$ac_cxx_preproc_warn_flag
12769 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12776 if test -z "$ac_cpp_err"; then
12777 # Broken: success on invalid input.
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12783 # Passes both tests.
12788 rm -f conftest.err conftest.$ac_ext
12791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12792 rm -f conftest.err conftest.$ac_ext
12793 if $ac_preproc_ok; then
12798 ac_cv_prog_CXXCPP=$CXXCPP
12801 CXXCPP=$ac_cv_prog_CXXCPP
12803 ac_cv_prog_CXXCPP=$CXXCPP
12805 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12806 echo "${ECHO_T}$CXXCPP" >&6; }
12807 ac_preproc_ok=false
12808 for ac_cxx_preproc_warn_flag in '' yes
12810 # Use a header file that comes with gcc, so configuring glibc
12811 # with a fresh cross-compiler works.
12812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12813 # <limits.h> exists even on freestanding compilers.
12814 # On the NeXT, cc -E runs the code through the compiler's parser,
12815 # not just through cpp. "Syntax error" is here to catch this case.
12816 cat >conftest.$ac_ext <<_ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12823 # include <limits.h>
12825 # include <assert.h>
12829 if { (ac_try="$ac_cpp conftest.$ac_ext"
12830 case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12837 grep -v '^ *+' conftest.er1 >conftest.err
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } >/dev/null; then
12842 if test -s conftest.err; then
12843 ac_cpp_err=$ac_cxx_preproc_warn_flag
12844 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12851 if test -z "$ac_cpp_err"; then
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 # Broken: fails on valid input.
12861 rm -f conftest.err conftest.$ac_ext
12863 # OK, works on sane cases. Now check whether nonexistent headers
12864 # can be detected and how.
12865 cat >conftest.$ac_ext <<_ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12871 #include <ac_nonexistent.h>
12873 if { (ac_try="$ac_cpp conftest.$ac_ext"
12874 case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12881 grep -v '^ *+' conftest.er1 >conftest.err
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } >/dev/null; then
12886 if test -s conftest.err; then
12887 ac_cpp_err=$ac_cxx_preproc_warn_flag
12888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12895 if test -z "$ac_cpp_err"; then
12896 # Broken: success on invalid input.
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12902 # Passes both tests.
12907 rm -f conftest.err conftest.$ac_ext
12910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12911 rm -f conftest.err conftest.$ac_ext
12912 if $ac_preproc_ok; then
12915 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12916 See \`config.log' for more details." >&5
12917 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12918 See \`config.log' for more details." >&2;}
12919 { (exit 1); exit 1; }; }
12923 ac_cpp='$CXXCPP $CPPFLAGS'
12924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12932 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12933 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12935 if test -n "$ac_tool_prefix"; then
12936 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
12938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12942 if test "${ac_cv_prog_F77+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 if test -n "$F77"; then
12946 ac_cv_prog_F77="$F77" # Let the user override the test.
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12955 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12965 F77=$ac_cv_prog_F77
12966 if test -n "$F77"; then
12967 { echo "$as_me:$LINENO: result: $F77" >&5
12968 echo "${ECHO_T}$F77" >&6; }
12970 { echo "$as_me:$LINENO: result: no" >&5
12971 echo "${ECHO_T}no" >&6; }
12975 test -n "$F77" && break
12978 if test -z "$F77"; then
12980 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
12982 # Extract the first word of "$ac_prog", so it can be a program name with args.
12983 set dummy $ac_prog; ac_word=$2
12984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12986 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 if test -n "$ac_ct_F77"; then
12990 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993 for as_dir in $PATH
12996 test -z "$as_dir" && as_dir=.
12997 for ac_exec_ext in '' $ac_executable_extensions; do
12998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12999 ac_cv_prog_ac_ct_F77="$ac_prog"
13000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13009 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13010 if test -n "$ac_ct_F77"; then
13011 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13012 echo "${ECHO_T}$ac_ct_F77" >&6; }
13014 { echo "$as_me:$LINENO: result: no" >&5
13015 echo "${ECHO_T}no" >&6; }
13019 test -n "$ac_ct_F77" && break
13022 if test "x$ac_ct_F77" = x; then
13025 case $cross_compiling:$ac_tool_warned in
13027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13028 whose name does not start with the host triplet. If you think this
13029 configuration is useful to you, please write to autoconf@gnu.org." >&5
13030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13031 whose name does not start with the host triplet. If you think this
13032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13033 ac_tool_warned=yes ;;
13040 # Provide some information about the compiler.
13041 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13042 ac_compiler=`set X $ac_compile; echo $2`
13043 { (ac_try="$ac_compiler --version >&5"
13044 case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_compiler --version >&5") 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }
13053 { (ac_try="$ac_compiler -v >&5"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_compiler -v >&5") 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }
13063 { (ac_try="$ac_compiler -V >&5"
13064 case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_compiler -V >&5") 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }
13075 # If we don't use `.F' as extension, the preprocessor is not run on the
13076 # input file. (Note that this only needs to work for GNU compilers.)
13077 ac_save_ext=$ac_ext
13079 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13080 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13081 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 cat >conftest.$ac_ext <<_ACEOF
13092 rm -f conftest.$ac_objext
13093 if { (ac_try="$ac_compile"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_compile") 2>conftest.er1
13101 grep -v '^ *+' conftest.er1 >conftest.err
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13107 { (case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_try") 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest.$ac_objext'
13117 { (case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_try") 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_compiler_gnu=yes
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13138 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13139 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13140 ac_ext=$ac_save_ext
13141 ac_test_FFLAGS=${FFLAGS+set}
13142 ac_save_FFLAGS=$FFLAGS
13144 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13145 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13146 if test "${ac_cv_prog_f77_g+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 cat >conftest.$ac_ext <<_ACEOF
13155 rm -f conftest.$ac_objext
13156 if { (ac_try="$ac_compile"
13157 case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_compile") 2>conftest.er1
13164 grep -v '^ *+' conftest.er1 >conftest.err
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } &&
13169 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13170 { (case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_try") 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; } &&
13179 { ac_try='test -s conftest.$ac_objext'
13180 { (case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_try") 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189 ac_cv_prog_f77_g=yes
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13194 ac_cv_prog_f77_g=no
13197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13200 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13201 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13202 if test "$ac_test_FFLAGS" = set; then
13203 FFLAGS=$ac_save_FFLAGS
13204 elif test $ac_cv_prog_f77_g = yes; then
13205 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13211 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13218 G77=`test $ac_compiler_gnu = yes && echo yes`
13220 ac_cpp='$CPP $CPPFLAGS'
13221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13227 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13229 # find the maximum length of command line arguments
13230 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13231 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13232 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 # On DJGPP, this test can blow up pretty badly due to problems in libc
13241 # (any single argument exceeding 2000 bytes causes a buffer overrun
13242 # during glob expansion). Even if it were fixed, the result of this
13243 # check would be larger than it should be.
13244 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13248 # Under GNU Hurd, this test is not required because there is
13249 # no limit to the length of command line arguments.
13250 # Libtool will interpret -1 as no limit whatsoever
13251 lt_cv_sys_max_cmd_len=-1;
13255 # On Win9x/ME, this test blows up -- it succeeds, but takes
13256 # about 5 minutes as the teststring grows exponentially.
13257 # Worse, since 9x/ME are not pre-emptively multitasking,
13258 # you end up with a "frozen" computer, even though with patience
13259 # the test eventually succeeds (with a max line length of 256k).
13260 # Instead, let's just punt: use the minimum linelength reported by
13261 # all of the supported platforms: 8192 (on NT/2K/XP).
13262 lt_cv_sys_max_cmd_len=8192;
13266 # On AmigaOS with pdksh, this test takes hours, literally.
13267 # So we just punt and use a minimum line length of 8192.
13268 lt_cv_sys_max_cmd_len=8192;
13271 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13272 # This has been around since 386BSD, at least. Likely further.
13273 if test -x /sbin/sysctl; then
13274 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13275 elif test -x /usr/sbin/sysctl; then
13276 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13278 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13280 # And add a safety zone
13281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13282 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13286 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13287 lt_cv_sys_max_cmd_len=196608
13291 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13292 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13293 # nice to cause kernel panics so lets avoid the loop below.
13294 # First set a reasonable default.
13295 lt_cv_sys_max_cmd_len=16384
13297 if test -x /sbin/sysconfig; then
13298 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13299 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13304 lt_cv_sys_max_cmd_len=102400
13306 sysv5* | sco5v6* | sysv4.2uw2*)
13307 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13308 if test -n "$kargmax"; then
13309 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13311 lt_cv_sys_max_cmd_len=32768
13315 # If test is not a shell built-in, we'll probably end up computing a
13316 # maximum length that is only half of the actual maximum length, but
13318 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13319 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13320 = "XX$teststring") >/dev/null 2>&1 &&
13321 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13322 lt_cv_sys_max_cmd_len=$new_result &&
13323 test $i != 17 # 1/2 MB should be enough
13326 teststring=$teststring$teststring
13329 # Add a significant safety factor because C++ compilers can tack on massive
13330 # amounts of additional arguments before passing them to the linker.
13331 # It appears as though 1/2 is a usable value.
13332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13338 if test -n $lt_cv_sys_max_cmd_len ; then
13339 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13340 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13342 { echo "$as_me:$LINENO: result: none" >&5
13343 echo "${ECHO_T}none" >&6; }
13349 # Check for command to grab the raw symbol name followed by C symbol from nm.
13350 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13351 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13352 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 # These are sane defaults that work on at least a few old systems.
13357 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13359 # Character class describing NM global symbol codes.
13360 symcode='[BCDEGRST]'
13362 # Regexp to match symbols that can be accessed directly from C.
13363 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13365 # Transform an extracted symbol line into a proper C declaration
13366 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13368 # Transform an extracted symbol line into symbol name and symbol address
13369 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'"
13371 # Define system-specific variables.
13376 cygwin* | mingw* | pw32*)
13377 symcode='[ABCDGISTW]'
13379 hpux*) # Its linker distinguishes data from code symbols
13380 if test "$host_cpu" = ia64; then
13381 symcode='[ABCDEGRST]'
13383 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13384 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'"
13387 if test "$host_cpu" = ia64; then
13388 symcode='[ABCDGIRSTW]'
13389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13390 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'"
13393 irix* | nonstopux*)
13394 symcode='[BCDEGRST]'
13397 symcode='[BCDEGQRST]'
13408 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13416 # Handle CRLF in mingw tool chain
13420 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13424 # If we're using GNU nm, then use its standard symbol codes.
13425 case `$NM -V 2>&1` in
13426 *GNU* | *'with BFD'*)
13427 symcode='[ABCDGIRSTW]' ;;
13430 # Try without a prefix undercore, then with it.
13431 for ac_symprfx in "" "_"; do
13433 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13434 symxfrm="\\1 $ac_symprfx\\2 \\2"
13436 # Write the raw and C identifiers.
13437 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13439 # Check to see that the pipe works correctly.
13443 cat > conftest.$ac_ext <<EOF
13448 void nm_test_func(){}
13452 int main(){nm_test_var='a';nm_test_func();return(0);}
13455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13456 (eval $ac_compile) 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; then
13460 # Now try to grab the symbols.
13462 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13463 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } && test -s "$nlist"; then
13467 # Try sorting and uniquifying the output.
13468 if sort "$nlist" | uniq > "$nlist"T; then
13469 mv -f "$nlist"T "$nlist"
13474 # Make sure that we snagged all the symbols we need.
13475 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13476 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13477 cat <<EOF > conftest.$ac_ext
13483 # Now generate the symbol file.
13484 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13486 cat <<EOF >> conftest.$ac_ext
13487 #if defined (__STDC__) && __STDC__
13488 # define lt_ptr_t void *
13490 # define lt_ptr_t char *
13494 /* The mapping between symbol names and symbols. */
13499 lt_preloaded_symbols[] =
13502 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13503 cat <<\EOF >> conftest.$ac_ext
13511 # Now try linking the two files.
13512 mv conftest.$ac_objext conftstm.$ac_objext
13513 lt_save_LIBS="$LIBS"
13514 lt_save_CFLAGS="$CFLAGS"
13515 LIBS="conftstm.$ac_objext"
13516 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13518 (eval $ac_link) 2>&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13524 LIBS="$lt_save_LIBS"
13525 CFLAGS="$lt_save_CFLAGS"
13527 echo "cannot find nm_test_func in $nlist" >&5
13530 echo "cannot find nm_test_var in $nlist" >&5
13533 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13536 echo "$progname: failed program was:" >&5
13537 cat conftest.$ac_ext >&5
13539 rm -f conftest* conftst*
13541 # Do not use the global_symbol_pipe unless it works.
13542 if test "$pipe_works" = yes; then
13545 lt_cv_sys_global_symbol_pipe=
13551 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13552 lt_cv_sys_global_symbol_to_cdecl=
13554 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13555 { echo "$as_me:$LINENO: result: failed" >&5
13556 echo "${ECHO_T}failed" >&6; }
13558 { echo "$as_me:$LINENO: result: ok" >&5
13559 echo "${ECHO_T}ok" >&6; }
13562 { echo "$as_me:$LINENO: checking for objdir" >&5
13563 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13564 if test "${lt_cv_objdir+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 rm -f .libs 2>/dev/null
13568 mkdir .libs 2>/dev/null
13569 if test -d .libs; then
13572 # MS-DOS does not allow filenames that begin with a dot.
13575 rmdir .libs 2>/dev/null
13577 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13578 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13579 objdir=$lt_cv_objdir
13587 # AIX sometimes has problems with the GCC collect2 program. For some
13588 # reason, if we set the COLLECT_NAMES environment variable, the problems
13589 # vanish in a puff of smoke.
13590 if test "X${COLLECT_NAMES+set}" != Xset; then
13592 export COLLECT_NAMES
13597 # Sed substitution that helps us do robust quoting. It backslashifies
13598 # metacharacters that are still active within double-quoted strings.
13599 Xsed='sed -e 1s/^X//'
13600 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13602 # Same as above, but do not quote variable references.
13603 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13605 # Sed substitution to delay expansion of an escaped shell variable in a
13606 # double_quote_subst'ed string.
13607 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13609 # Sed substitution to avoid accidental globbing in evaled expressions
13610 no_glob_subst='s/\*/\\\*/g'
13615 # Global variables:
13616 default_ofile=mklib
13617 can_build_shared=yes
13619 # All known linkers require a `.a' archive for static linking (except MSVC,
13620 # which needs '.lib').
13622 ltmain="$ac_aux_dir/ltmain.sh"
13623 ofile="$default_ofile"
13624 with_gnu_ld="$lt_cv_prog_gnu_ld"
13626 if test -n "$ac_tool_prefix"; then
13627 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13628 set dummy ${ac_tool_prefix}ar; ac_word=$2
13629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13631 if test "${ac_cv_prog_AR+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 if test -n "$AR"; then
13635 ac_cv_prog_AR="$AR" # Let the user override the test.
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638 for as_dir in $PATH
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
13643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13644 ac_cv_prog_AR="${ac_tool_prefix}ar"
13645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13655 if test -n "$AR"; then
13656 { echo "$as_me:$LINENO: result: $AR" >&5
13657 echo "${ECHO_T}$AR" >&6; }
13659 { echo "$as_me:$LINENO: result: no" >&5
13660 echo "${ECHO_T}no" >&6; }
13665 if test -z "$ac_cv_prog_AR"; then
13667 # Extract the first word of "ar", so it can be a program name with args.
13668 set dummy ar; ac_word=$2
13669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13671 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 if test -n "$ac_ct_AR"; then
13675 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678 for as_dir in $PATH
13681 test -z "$as_dir" && as_dir=.
13682 for ac_exec_ext in '' $ac_executable_extensions; do
13683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13684 ac_cv_prog_ac_ct_AR="ar"
13685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13694 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13695 if test -n "$ac_ct_AR"; then
13696 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13697 echo "${ECHO_T}$ac_ct_AR" >&6; }
13699 { echo "$as_me:$LINENO: result: no" >&5
13700 echo "${ECHO_T}no" >&6; }
13703 if test "x$ac_ct_AR" = x; then
13706 case $cross_compiling:$ac_tool_warned in
13708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13709 whose name does not start with the host triplet. If you think this
13710 configuration is useful to you, please write to autoconf@gnu.org." >&5
13711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13712 whose name does not start with the host triplet. If you think this
13713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13714 ac_tool_warned=yes ;;
13719 AR="$ac_cv_prog_AR"
13722 if test -n "$ac_tool_prefix"; then
13723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13727 if test "${ac_cv_prog_RANLIB+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 if test -n "$RANLIB"; then
13731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13737 test -z "$as_dir" && as_dir=.
13738 for ac_exec_ext in '' $ac_executable_extensions; do
13739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13750 RANLIB=$ac_cv_prog_RANLIB
13751 if test -n "$RANLIB"; then
13752 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13753 echo "${ECHO_T}$RANLIB" >&6; }
13755 { echo "$as_me:$LINENO: result: no" >&5
13756 echo "${ECHO_T}no" >&6; }
13761 if test -z "$ac_cv_prog_RANLIB"; then
13762 ac_ct_RANLIB=$RANLIB
13763 # Extract the first word of "ranlib", so it can be a program name with args.
13764 set dummy ranlib; ac_word=$2
13765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 if test -n "$ac_ct_RANLIB"; then
13771 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13774 for as_dir in $PATH
13777 test -z "$as_dir" && as_dir=.
13778 for ac_exec_ext in '' $ac_executable_extensions; do
13779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13780 ac_cv_prog_ac_ct_RANLIB="ranlib"
13781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13791 if test -n "$ac_ct_RANLIB"; then
13792 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13793 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13795 { echo "$as_me:$LINENO: result: no" >&5
13796 echo "${ECHO_T}no" >&6; }
13799 if test "x$ac_ct_RANLIB" = x; then
13802 case $cross_compiling:$ac_tool_warned in
13804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13805 whose name does not start with the host triplet. If you think this
13806 configuration is useful to you, please write to autoconf@gnu.org." >&5
13807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13808 whose name does not start with the host triplet. If you think this
13809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13810 ac_tool_warned=yes ;;
13812 RANLIB=$ac_ct_RANLIB
13815 RANLIB="$ac_cv_prog_RANLIB"
13818 if test -n "$ac_tool_prefix"; then
13819 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13820 set dummy ${ac_tool_prefix}strip; ac_word=$2
13821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13823 if test "${ac_cv_prog_STRIP+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 if test -n "$STRIP"; then
13827 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13833 test -z "$as_dir" && as_dir=.
13834 for ac_exec_ext in '' $ac_executable_extensions; do
13835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13836 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13846 STRIP=$ac_cv_prog_STRIP
13847 if test -n "$STRIP"; then
13848 { echo "$as_me:$LINENO: result: $STRIP" >&5
13849 echo "${ECHO_T}$STRIP" >&6; }
13851 { echo "$as_me:$LINENO: result: no" >&5
13852 echo "${ECHO_T}no" >&6; }
13857 if test -z "$ac_cv_prog_STRIP"; then
13859 # Extract the first word of "strip", so it can be a program name with args.
13860 set dummy strip; ac_word=$2
13861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13863 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 if test -n "$ac_ct_STRIP"; then
13867 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870 for as_dir in $PATH
13873 test -z "$as_dir" && as_dir=.
13874 for ac_exec_ext in '' $ac_executable_extensions; do
13875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13876 ac_cv_prog_ac_ct_STRIP="strip"
13877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13886 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13887 if test -n "$ac_ct_STRIP"; then
13888 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13889 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13891 { echo "$as_me:$LINENO: result: no" >&5
13892 echo "${ECHO_T}no" >&6; }
13895 if test "x$ac_ct_STRIP" = x; then
13898 case $cross_compiling:$ac_tool_warned in
13900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13901 whose name does not start with the host triplet. If you think this
13902 configuration is useful to you, please write to autoconf@gnu.org." >&5
13903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13904 whose name does not start with the host triplet. If you think this
13905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13906 ac_tool_warned=yes ;;
13911 STRIP="$ac_cv_prog_STRIP"
13916 old_CFLAGS="$CFLAGS"
13918 # Set sane defaults for various variables
13919 test -z "$AR" && AR=ar
13920 test -z "$AR_FLAGS" && AR_FLAGS=cru
13921 test -z "$AS" && AS=as
13922 test -z "$CC" && CC=cc
13923 test -z "$LTCC" && LTCC=$CC
13924 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13925 test -z "$DLLTOOL" && DLLTOOL=dlltool
13926 test -z "$LD" && LD=ld
13927 test -z "$LN_S" && LN_S="ln -s"
13928 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13929 test -z "$NM" && NM=nm
13930 test -z "$SED" && SED=sed
13931 test -z "$OBJDUMP" && OBJDUMP=objdump
13932 test -z "$RANLIB" && RANLIB=:
13933 test -z "$STRIP" && STRIP=:
13934 test -z "$ac_objext" && ac_objext=o
13936 # Determine commands to create old-style static archives.
13937 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13938 old_postinstall_cmds='chmod 644 $oldlib'
13939 old_postuninstall_cmds=
13941 if test -n "$RANLIB"; then
13944 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13947 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13950 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13953 for cc_temp in $compiler""; do
13955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13961 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13964 # Only perform the check for file, if the check method requires it
13965 case $deplibs_check_method in
13967 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13968 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13969 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13970 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13978 lt_save_MAGIC_CMD="$MAGIC_CMD"
13979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13980 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13981 for ac_dir in $ac_dummy; do
13983 test -z "$ac_dir" && ac_dir=.
13984 if test -f $ac_dir/${ac_tool_prefix}file; then
13985 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13986 if test -n "$file_magic_test_file"; then
13987 case $deplibs_check_method in
13989 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13992 $EGREP "$file_magic_regex" > /dev/null; then
13997 *** Warning: the command libtool uses to detect shared libraries,
13998 *** $file_magic_cmd, produces output that libtool cannot recognize.
13999 *** The result is that libtool may fail to recognize shared libraries
14000 *** as such. This will affect the creation of libtool libraries that
14001 *** depend on shared libraries, but programs linked with such libtool
14002 *** libraries will work regardless of this problem. Nevertheless, you
14003 *** may want to report the problem to your system manager and/or to
14004 *** bug-libtool@gnu.org
14014 MAGIC_CMD="$lt_save_MAGIC_CMD"
14019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14020 if test -n "$MAGIC_CMD"; then
14021 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14022 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14024 { echo "$as_me:$LINENO: result: no" >&5
14025 echo "${ECHO_T}no" >&6; }
14028 if test -z "$lt_cv_path_MAGIC_CMD"; then
14029 if test -n "$ac_tool_prefix"; then
14030 { echo "$as_me:$LINENO: checking for file" >&5
14031 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14032 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14040 lt_save_MAGIC_CMD="$MAGIC_CMD"
14041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14042 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14043 for ac_dir in $ac_dummy; do
14045 test -z "$ac_dir" && ac_dir=.
14046 if test -f $ac_dir/file; then
14047 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14048 if test -n "$file_magic_test_file"; then
14049 case $deplibs_check_method in
14051 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14053 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14054 $EGREP "$file_magic_regex" > /dev/null; then
14059 *** Warning: the command libtool uses to detect shared libraries,
14060 *** $file_magic_cmd, produces output that libtool cannot recognize.
14061 *** The result is that libtool may fail to recognize shared libraries
14062 *** as such. This will affect the creation of libtool libraries that
14063 *** depend on shared libraries, but programs linked with such libtool
14064 *** libraries will work regardless of this problem. Nevertheless, you
14065 *** may want to report the problem to your system manager and/or to
14066 *** bug-libtool@gnu.org
14076 MAGIC_CMD="$lt_save_MAGIC_CMD"
14081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14082 if test -n "$MAGIC_CMD"; then
14083 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14084 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14086 { echo "$as_me:$LINENO: result: no" >&5
14087 echo "${ECHO_T}no" >&6; }
14100 enable_win32_dll=no
14102 # Check whether --enable-libtool-lock was given.
14103 if test "${enable_libtool_lock+set}" = set; then
14104 enableval=$enable_libtool_lock;
14107 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14110 # Check whether --with-pic was given.
14111 if test "${with_pic+set}" = set; then
14112 withval=$with_pic; pic_mode="$withval"
14117 test -z "$pic_mode" && pic_mode=default
14119 # Use C for the default configuration in the libtool script
14123 ac_cpp='$CPP $CPPFLAGS'
14124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14129 # Source file extension for C test sources.
14132 # Object file extension for compiled C test sources.
14136 # Code to be used in simple compile tests
14137 lt_simple_compile_test_code="int some_variable = 0;\n"
14139 # Code to be used in simple link tests
14140 lt_simple_link_test_code='int main(){return(0);}\n'
14143 # If no C compiler was specified, use CC.
14146 # If no C compiler flags were specified, use CFLAGS.
14147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14149 # Allow CC to be a program name with arguments.
14153 # save warnings/boilerplate of simple test code
14154 ac_outfile=conftest.$ac_objext
14155 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14156 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14157 _lt_compiler_boilerplate=`cat conftest.err`
14160 ac_outfile=conftest.$ac_objext
14161 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14162 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14163 _lt_linker_boilerplate=`cat conftest.err`
14168 lt_prog_compiler_no_builtin_flag=
14170 if test "$GCC" = yes; then
14171 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14174 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14175 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14176 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 lt_cv_prog_compiler_rtti_exceptions=no
14180 ac_outfile=conftest.$ac_objext
14181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14182 lt_compiler_flag="-fno-rtti -fno-exceptions"
14183 # Insert the option either (1) after the last *FLAGS variable, or
14184 # (2) before a word containing "conftest.", or (3) at the end.
14185 # Note that $ac_compile itself does not contain backslashes and begins
14186 # with a dollar sign (not a hyphen), so the echo should work correctly.
14187 # The option is referenced via a variable to avoid confusing sed.
14188 lt_compile=`echo "$ac_compile" | $SED \
14189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14191 -e 's:$: $lt_compiler_flag:'`
14192 (eval echo "\"\$as_me:14192: $lt_compile\"" >&5)
14193 (eval "$lt_compile" 2>conftest.err)
14195 cat conftest.err >&5
14196 echo "$as_me:14196: \$? = $ac_status" >&5
14197 if (exit $ac_status) && test -s "$ac_outfile"; then
14198 # The compiler can only warn and ignore the option if not recognized
14199 # So say no if there are warnings other than the usual output.
14200 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14203 lt_cv_prog_compiler_rtti_exceptions=yes
14209 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14210 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14212 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14213 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14220 lt_prog_compiler_wl=
14221 lt_prog_compiler_pic=
14222 lt_prog_compiler_static=
14224 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14225 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14227 if test "$GCC" = yes; then
14228 lt_prog_compiler_wl='-Wl,'
14229 lt_prog_compiler_static='-static'
14233 # All AIX code is PIC.
14234 if test "$host_cpu" = ia64; then
14235 # AIX 5 now supports IA64 processor
14236 lt_prog_compiler_static='-Bstatic'
14241 # FIXME: we need at least 68020 code to build shared libraries, but
14242 # adding the `-m68020' flag to GCC prevents building anything better,
14244 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14247 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14248 # PIC is the default for these OSes.
14251 mingw* | pw32* | os2*)
14252 # This hack is so that the source file can tell whether it is being
14253 # built for inclusion in a dll (and should export symbols for example).
14254 lt_prog_compiler_pic='-DDLL_EXPORT'
14257 darwin* | rhapsody*)
14258 # PIC is the default on this platform
14259 # Common symbols not allowed in MH_DYLIB files
14260 lt_prog_compiler_pic='-fno-common'
14264 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14265 # Instead, we relocate shared libraries at runtime.
14269 # Just because we use GCC doesn't mean we suddenly get shared libraries
14270 # on systems that don't support them.
14271 lt_prog_compiler_can_build_shared=no
14276 if test -d /usr/nec; then
14277 lt_prog_compiler_pic=-Kconform_pic
14282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14283 # not for PA HP-UX.
14289 lt_prog_compiler_pic='-fPIC'
14295 lt_prog_compiler_pic='-fPIC'
14299 # PORTME Check for flag to pass linker flags through the system compiler.
14302 lt_prog_compiler_wl='-Wl,'
14303 if test "$host_cpu" = ia64; then
14304 # AIX 5 now supports IA64 processor
14305 lt_prog_compiler_static='-Bstatic'
14307 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14311 # PIC is the default on this platform
14312 # Common symbols not allowed in MH_DYLIB files
14313 case $cc_basename in
14315 lt_prog_compiler_pic='-qnocommon'
14316 lt_prog_compiler_wl='-Wl,'
14321 mingw* | pw32* | os2*)
14322 # This hack is so that the source file can tell whether it is being
14323 # built for inclusion in a dll (and should export symbols for example).
14324 lt_prog_compiler_pic='-DDLL_EXPORT'
14327 hpux9* | hpux10* | hpux11*)
14328 lt_prog_compiler_wl='-Wl,'
14329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14330 # not for PA HP-UX.
14336 lt_prog_compiler_pic='+Z'
14339 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14340 lt_prog_compiler_static='${wl}-a ${wl}archive'
14343 irix5* | irix6* | nonstopux*)
14344 lt_prog_compiler_wl='-Wl,'
14345 # PIC (with -KPIC) is the default.
14346 lt_prog_compiler_static='-non_shared'
14350 lt_prog_compiler_pic='-KPIC'
14351 lt_prog_compiler_static='-Bstatic'
14355 case $cc_basename in
14357 lt_prog_compiler_wl='-Wl,'
14358 lt_prog_compiler_pic='-KPIC'
14359 lt_prog_compiler_static='-static'
14361 pgcc* | pgf77* | pgf90* | pgf95*)
14362 # Portland Group compilers (*not* the Pentium gcc compiler,
14363 # which looks to be a dead project)
14364 lt_prog_compiler_wl='-Wl,'
14365 lt_prog_compiler_pic='-fpic'
14366 lt_prog_compiler_static='-Bstatic'
14369 lt_prog_compiler_wl='-Wl,'
14370 # All Alpha code is PIC.
14371 lt_prog_compiler_static='-non_shared'
14376 osf3* | osf4* | osf5*)
14377 lt_prog_compiler_wl='-Wl,'
14378 # All OSF/1 code is PIC.
14379 lt_prog_compiler_static='-non_shared'
14383 lt_prog_compiler_pic='-KPIC'
14384 lt_prog_compiler_static='-Bstatic'
14385 case $cc_basename in
14386 f77* | f90* | f95*)
14387 lt_prog_compiler_wl='-Qoption ld ';;
14389 lt_prog_compiler_wl='-Wl,';;
14394 lt_prog_compiler_wl='-Qoption ld '
14395 lt_prog_compiler_pic='-PIC'
14396 lt_prog_compiler_static='-Bstatic'
14399 sysv4 | sysv4.2uw2* | sysv4.3*)
14400 lt_prog_compiler_wl='-Wl,'
14401 lt_prog_compiler_pic='-KPIC'
14402 lt_prog_compiler_static='-Bstatic'
14406 if test -d /usr/nec ;then
14407 lt_prog_compiler_pic='-Kconform_pic'
14408 lt_prog_compiler_static='-Bstatic'
14412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14413 lt_prog_compiler_wl='-Wl,'
14414 lt_prog_compiler_pic='-KPIC'
14415 lt_prog_compiler_static='-Bstatic'
14419 lt_prog_compiler_wl='-Wl,'
14420 lt_prog_compiler_can_build_shared=no
14424 lt_prog_compiler_pic='-pic'
14425 lt_prog_compiler_static='-Bstatic'
14429 lt_prog_compiler_can_build_shared=no
14434 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14435 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14438 # Check to make sure the PIC flag actually works.
14440 if test -n "$lt_prog_compiler_pic"; then
14442 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14443 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14444 if test "${lt_prog_compiler_pic_works+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14447 lt_prog_compiler_pic_works=no
14448 ac_outfile=conftest.$ac_objext
14449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14450 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14451 # Insert the option either (1) after the last *FLAGS variable, or
14452 # (2) before a word containing "conftest.", or (3) at the end.
14453 # Note that $ac_compile itself does not contain backslashes and begins
14454 # with a dollar sign (not a hyphen), so the echo should work correctly.
14455 # The option is referenced via a variable to avoid confusing sed.
14456 lt_compile=`echo "$ac_compile" | $SED \
14457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14459 -e 's:$: $lt_compiler_flag:'`
14460 (eval echo "\"\$as_me:14460: $lt_compile\"" >&5)
14461 (eval "$lt_compile" 2>conftest.err)
14463 cat conftest.err >&5
14464 echo "$as_me:14464: \$? = $ac_status" >&5
14465 if (exit $ac_status) && test -s "$ac_outfile"; then
14466 # The compiler can only warn and ignore the option if not recognized
14467 # So say no if there are warnings other than the usual output.
14468 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14471 lt_prog_compiler_pic_works=yes
14477 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14478 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14480 if test x"$lt_prog_compiler_pic_works" = xyes; then
14481 case $lt_prog_compiler_pic in
14483 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14486 lt_prog_compiler_pic=
14487 lt_prog_compiler_can_build_shared=no
14492 # For platforms which do not support PIC, -DPIC is meaningless:
14494 lt_prog_compiler_pic=
14497 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14502 # Check to make sure the static flag actually works.
14504 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14505 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14506 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14507 if test "${lt_prog_compiler_static_works+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 lt_prog_compiler_static_works=no
14511 save_LDFLAGS="$LDFLAGS"
14512 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14513 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14515 # The linker can only warn and ignore the option if not recognized
14516 # So say no if there are warnings
14517 if test -s conftest.err; then
14518 # Append any errors to the config.log.
14519 cat conftest.err 1>&5
14520 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14522 if diff conftest.exp conftest.er2 >/dev/null; then
14523 lt_prog_compiler_static_works=yes
14526 lt_prog_compiler_static_works=yes
14530 LDFLAGS="$save_LDFLAGS"
14533 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14534 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14536 if test x"$lt_prog_compiler_static_works" = xyes; then
14539 lt_prog_compiler_static=
14543 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14544 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14545 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 lt_cv_prog_compiler_c_o=no
14549 $rm -r conftest 2>/dev/null
14553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14555 lt_compiler_flag="-o out/conftest2.$ac_objext"
14556 # Insert the option either (1) after the last *FLAGS variable, or
14557 # (2) before a word containing "conftest.", or (3) at the end.
14558 # Note that $ac_compile itself does not contain backslashes and begins
14559 # with a dollar sign (not a hyphen), so the echo should work correctly.
14560 lt_compile=`echo "$ac_compile" | $SED \
14561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14563 -e 's:$: $lt_compiler_flag:'`
14564 (eval echo "\"\$as_me:14564: $lt_compile\"" >&5)
14565 (eval "$lt_compile" 2>out/conftest.err)
14567 cat out/conftest.err >&5
14568 echo "$as_me:14568: \$? = $ac_status" >&5
14569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14571 # The compiler can only warn and ignore the option if not recognized
14572 # So say no if there are warnings
14573 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14576 lt_cv_prog_compiler_c_o=yes
14581 # SGI C++ compiler will create directory out/ii_files/ for
14582 # template instantiation
14583 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14584 $rm out/* && rmdir out
14590 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14591 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14594 hard_links="nottested"
14595 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14596 # do not overwrite the value of need_locks provided by the user
14597 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14598 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14603 ln conftest.a conftest.b 2>&5 || hard_links=no
14604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14605 { echo "$as_me:$LINENO: result: $hard_links" >&5
14606 echo "${ECHO_T}$hard_links" >&6; }
14607 if test "$hard_links" = no; then
14608 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14609 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14616 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14617 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14620 allow_undefined_flag=
14621 enable_shared_with_static_runtimes=no
14623 archive_expsym_cmds=
14624 old_archive_From_new_cmds=
14625 old_archive_from_expsyms_cmds=
14626 export_dynamic_flag_spec=
14627 whole_archive_flag_spec=
14628 thread_safe_flag_spec=
14629 hardcode_libdir_flag_spec=
14630 hardcode_libdir_flag_spec_ld=
14631 hardcode_libdir_separator=
14633 hardcode_minus_L=no
14634 hardcode_shlibpath_var=unsupported
14635 link_all_deplibs=unknown
14636 hardcode_automatic=no
14638 module_expsym_cmds=
14639 always_export_symbols=no
14640 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14641 # include_expsyms should be a list of space-separated symbols to be *always*
14642 # included in the symbol list
14644 # exclude_expsyms can be an extended regexp of symbols to exclude
14645 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14646 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14647 # as well as any symbol that contains `d'.
14648 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14649 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14650 # platforms (ab)use it in PIC code, but their linkers get confused if
14651 # the symbol is explicitly referenced. Since portable code cannot
14652 # rely on this symbol name, it's probably fine to never include it in
14653 # preloaded symbol tables.
14654 extract_expsyms_cmds=
14655 # Just being paranoid about ensuring that cc_basename is set.
14656 for cc_temp in $compiler""; do
14658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14664 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14667 cygwin* | mingw* | pw32*)
14668 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14669 # When not using gcc, we currently assume that we are using
14670 # Microsoft Visual C++.
14671 if test "$GCC" != yes; then
14676 # we just hope/assume this is gcc and not c89 (= MSVC++)
14685 if test "$with_gnu_ld" = yes; then
14686 # If archive_cmds runs LD, not CC, wlarc should be empty
14689 # Set some defaults for GNU ld with shared library support. These
14690 # are reset later if shared libraries are not supported. Putting them
14691 # here allows them to be overridden if necessary.
14692 runpath_var=LD_RUN_PATH
14693 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14694 export_dynamic_flag_spec='${wl}--export-dynamic'
14695 # ancient GNU ld didn't support --whole-archive et. al.
14696 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14697 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14699 whole_archive_flag_spec=
14701 supports_anon_versioning=no
14702 case `$LD -v 2>/dev/null` in
14703 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14704 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14705 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14706 *\ 2.11.*) ;; # other 2.11 versions
14707 *) supports_anon_versioning=yes ;;
14710 # See if GNU ld supports shared libraries.
14712 aix3* | aix4* | aix5*)
14713 # On AIX/PPC, the GNU linker is very broken
14714 if test "$host_cpu" != ia64; then
14718 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14719 *** to be unable to reliably create shared libraries on AIX.
14720 *** Therefore, libtool is disabling shared libraries support. If you
14721 *** really care for shared libraries, you may want to modify your PATH
14722 *** so that a non-GNU linker is found, and then restart.
14729 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)'
14730 hardcode_libdir_flag_spec='-L$libdir'
14731 hardcode_minus_L=yes
14733 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14734 # that the semantics of dynamic libraries on AmigaOS, at least up
14735 # to version 4, is to share data among multiple programs linked
14736 # with the same dynamic library. Since this doesn't match the
14737 # behavior of shared libraries on other platforms, we can't use
14743 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14744 allow_undefined_flag=unsupported
14745 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14746 # support --undefined. This deserves some investigation. FIXME
14747 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14753 cygwin* | mingw* | pw32*)
14754 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14755 # as there is no search path for DLLs.
14756 hardcode_libdir_flag_spec='-L$libdir'
14757 allow_undefined_flag=unsupported
14758 always_export_symbols=no
14759 enable_shared_with_static_runtimes=yes
14760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14762 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14764 # If the export-symbols file already is a .def file (1st line
14765 # is EXPORTS), use it as is; otherwise, prepend...
14766 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14767 cp $export_symbols $output_objdir/$soname.def;
14769 echo EXPORTS > $output_objdir/$soname.def;
14770 cat $export_symbols >> $output_objdir/$soname.def;
14772 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14780 hardcode_shlibpath_var=no
14781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14782 export_dynamic_flag_spec='${wl}-E'
14783 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14784 # Instead, shared libraries are loaded at an image base (0x10000000 by
14785 # default) and relocated if they conflict, which is a slow very memory
14786 # consuming and fragmenting process. To avoid this, we pick a random,
14787 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14788 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14790 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'
14794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14796 case $cc_basename,$host_cpu in
14797 pgcc*) # Portland Group C compiler
14798 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'
14799 tmp_addflag=' $pic_flag'
14801 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14802 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'
14803 tmp_addflag=' $pic_flag -Mnomain' ;;
14804 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14805 tmp_addflag=' -i_dynamic' ;;
14806 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14807 tmp_addflag=' -i_dynamic -nofor_main' ;;
14808 ifc* | ifort*) # Intel Fortran compiler
14809 tmp_addflag=' -nofor_main' ;;
14811 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14813 if test $supports_anon_versioning = yes; then
14814 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14815 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14816 $echo "local: *; };" >> $output_objdir/$libname.ver~
14817 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14826 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14835 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14839 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14840 *** create shared libraries on Solaris systems. Therefore, libtool
14841 *** is disabling shared libraries support. We urge you to upgrade GNU
14842 *** binutils to release 2.9.1 or newer. Another option is to modify
14843 *** your PATH or compiler configuration so that the native linker is
14844 *** used, and then restart.
14847 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14856 case `$LD -v 2>&1` in
14857 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14861 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14862 *** reliably create shared libraries on SCO systems. Therefore, libtool
14863 *** is disabling shared libraries support. We urge you to upgrade GNU
14864 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14865 *** your PATH or compiler configuration so that the native linker is
14866 *** used, and then restart.
14871 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14872 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14883 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14885 hardcode_direct=yes
14886 hardcode_shlibpath_var=no
14890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14892 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14899 if test "$ld_shlibs" = no; then
14901 hardcode_libdir_flag_spec=
14902 export_dynamic_flag_spec=
14903 whole_archive_flag_spec=
14906 # PORTME fill in a description of your system's linker (not GNU ld)
14909 allow_undefined_flag=unsupported
14910 always_export_symbols=yes
14911 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'
14912 # Note: this linker hardcodes the directories in LIBPATH if there
14913 # are no directories specified by -L.
14914 hardcode_minus_L=yes
14915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14916 # Neither direct hardcoding nor static linking is supported with a
14918 hardcode_direct=unsupported
14923 if test "$host_cpu" = ia64; then
14924 # On IA64, the linker does run time linking by default, so we don't
14925 # have to do anything special.
14926 aix_use_runtimelinking=no
14927 exp_sym_flag='-Bexport'
14930 # If we're using GNU nm, then we don't want the "-C" option.
14931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14932 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14933 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'
14935 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'
14937 aix_use_runtimelinking=no
14939 # Test if we are trying to use run time linking or normal
14940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14941 # need to do runtime linking.
14942 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14943 for ld_flag in $LDFLAGS; do
14944 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14945 aix_use_runtimelinking=yes
14952 exp_sym_flag='-bexport'
14953 no_entry_flag='-bnoentry'
14956 # When large executables or shared objects are built, AIX ld can
14957 # have problems creating the table of contents. If linking a library
14958 # or program results in "error TOC overflow" add -mminimal-toc to
14959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14963 hardcode_direct=yes
14964 hardcode_libdir_separator=':'
14965 link_all_deplibs=yes
14967 if test "$GCC" = yes; then
14968 case $host_os in aix4.[012]|aix4.[012].*)
14969 # We only want to do this on AIX 4.2 and lower, the check
14970 # below for broken collect2 doesn't work under 4.3+
14971 collect2name=`${CC} -print-prog-name=collect2`
14972 if test -f "$collect2name" && \
14973 strings "$collect2name" | grep resolve_lib_name >/dev/null
14975 # We have reworked collect2
14976 hardcode_direct=yes
14978 # We have old collect2
14979 hardcode_direct=unsupported
14980 # It fails to find uninstalled libraries when the uninstalled
14981 # path is not listed in the libpath. Setting hardcode_minus_L
14982 # to unsupported forces relinking
14983 hardcode_minus_L=yes
14984 hardcode_libdir_flag_spec='-L$libdir'
14985 hardcode_libdir_separator=
14989 shared_flag='-shared'
14990 if test "$aix_use_runtimelinking" = yes; then
14991 shared_flag="$shared_flag "'${wl}-G'
14995 if test "$host_cpu" = ia64; then
14996 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14997 # chokes on -Wl,-G. The following line is correct:
15000 if test "$aix_use_runtimelinking" = yes; then
15001 shared_flag='${wl}-G'
15003 shared_flag='${wl}-bM:SRE'
15008 # It seems that -bexpall does not export symbols beginning with
15009 # underscore (_), so it is better to generate a list of symbols to export.
15010 always_export_symbols=yes
15011 if test "$aix_use_runtimelinking" = yes; then
15012 # Warning - without using the other runtime loading flags (-brtl),
15013 # -berok will link without error, but may produce a broken library.
15014 allow_undefined_flag='-berok'
15015 # Determine the default libpath from the value encoded in an empty executable.
15016 cat >conftest.$ac_ext <<_ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (ac_try="$ac_link"
15033 case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_link") 2>conftest.er1
15040 grep -v '^ *+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046 { (case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_try") 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try='test -s conftest$ac_exeext'
15056 { (case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_try") 2>&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; }; then
15066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15068 # Check for a 64-bit object if we didn't find anything.
15069 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; }
15072 echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15078 rm -f core conftest.err conftest.$ac_objext \
15079 conftest$ac_exeext conftest.$ac_ext
15080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15082 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15083 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"
15085 if test "$host_cpu" = ia64; then
15086 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15087 allow_undefined_flag="-z nodefs"
15088 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"
15090 # Determine the default libpath from the value encoded in an empty executable.
15091 cat >conftest.$ac_ext <<_ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15106 rm -f conftest.$ac_objext conftest$ac_exeext
15107 if { (ac_try="$ac_link"
15108 case "(($ac_try" in
15109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110 *) ac_try_echo=$ac_try;;
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_link") 2>conftest.er1
15115 grep -v '^ *+' conftest.er1 >conftest.err
15117 cat conftest.err >&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } &&
15120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15121 { (case "(($ac_try" in
15122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_try") 2>&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; } &&
15130 { ac_try='test -s conftest$ac_exeext'
15131 { (case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_try") 2>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15143 # Check for a 64-bit object if we didn't find anything.
15144 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; }
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15153 rm -f core conftest.err conftest.$ac_objext \
15154 conftest$ac_exeext conftest.$ac_ext
15155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15157 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15158 # Warning - without using the other run time loading flags,
15159 # -berok will link without error, but may produce a broken library.
15160 no_undefined_flag=' ${wl}-bernotok'
15161 allow_undefined_flag=' ${wl}-berok'
15162 # Exported symbols can be pulled into shared objects from archives
15163 whole_archive_flag_spec='$convenience'
15164 archive_cmds_need_lc=yes
15165 # This is similar to how AIX traditionally builds its shared libraries.
15166 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'
15172 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)'
15173 hardcode_libdir_flag_spec='-L$libdir'
15174 hardcode_minus_L=yes
15175 # see comment about different semantics on the GNU ld section
15180 export_dynamic_flag_spec=-rdynamic
15183 cygwin* | mingw* | pw32*)
15184 # When not using gcc, we currently assume that we are using
15185 # Microsoft Visual C++.
15186 # hardcode_libdir_flag_spec is actually meaningless, as there is
15187 # no search path for DLLs.
15188 hardcode_libdir_flag_spec=' '
15189 allow_undefined_flag=unsupported
15190 # Tell ltmain to make .lib files, not .a files.
15192 # Tell ltmain to make .dll files, not .so files.
15194 # FIXME: Setting linknames here is a bad hack.
15195 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15196 # The linker will automatically build a .lib file if we build a DLL.
15197 old_archive_From_new_cmds='true'
15198 # FIXME: Should let the user specify the lib program.
15199 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15200 fix_srcfile_path='`cygpath -w "$srcfile"`'
15201 enable_shared_with_static_runtimes=yes
15204 darwin* | rhapsody*)
15206 rhapsody* | darwin1.[012])
15207 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15210 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15211 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15213 case ${MACOSX_DEPLOYMENT_TARGET} in
15215 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15218 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15224 archive_cmds_need_lc=no
15226 hardcode_automatic=yes
15227 hardcode_shlibpath_var=unsupported
15228 whole_archive_flag_spec=''
15229 link_all_deplibs=yes
15230 if test "$GCC" = yes ; then
15231 output_verbose_link_cmd='echo'
15232 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15233 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15234 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15235 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}'
15236 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}'
15238 case $cc_basename in
15240 output_verbose_link_cmd='echo'
15241 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15242 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15243 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15244 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}'
15245 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}'
15255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15256 hardcode_libdir_flag_spec='-L$libdir'
15257 hardcode_shlibpath_var=no
15264 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15265 # support. Future versions do this automatically, but an explicit c++rt0.o
15266 # does not break anything, and helps significantly (at the cost of a little
15269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15270 hardcode_libdir_flag_spec='-R$libdir'
15271 hardcode_direct=yes
15272 hardcode_shlibpath_var=no
15275 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15278 hardcode_direct=yes
15279 hardcode_minus_L=yes
15280 hardcode_shlibpath_var=no
15283 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15284 freebsd* | kfreebsd*-gnu | dragonfly*)
15285 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15286 hardcode_libdir_flag_spec='-R$libdir'
15287 hardcode_direct=yes
15288 hardcode_shlibpath_var=no
15292 if test "$GCC" = yes; then
15293 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'
15295 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'
15297 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15298 hardcode_libdir_separator=:
15299 hardcode_direct=yes
15301 # hardcode_minus_L: Not really in the search PATH,
15302 # but as the default location of the library.
15303 hardcode_minus_L=yes
15304 export_dynamic_flag_spec='${wl}-E'
15308 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15309 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15311 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15313 if test "$with_gnu_ld" = no; then
15314 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15315 hardcode_libdir_separator=:
15317 hardcode_direct=yes
15318 export_dynamic_flag_spec='${wl}-E'
15320 # hardcode_minus_L: Not really in the search PATH,
15321 # but as the default location of the library.
15322 hardcode_minus_L=yes
15327 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15330 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15333 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15336 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15342 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15345 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15348 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15352 if test "$with_gnu_ld" = no; then
15353 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15354 hardcode_libdir_separator=:
15358 hardcode_libdir_flag_spec_ld='+b $libdir'
15360 hardcode_shlibpath_var=no
15363 hardcode_direct=yes
15364 export_dynamic_flag_spec='${wl}-E'
15366 # hardcode_minus_L: Not really in the search PATH,
15367 # but as the default location of the library.
15368 hardcode_minus_L=yes
15374 irix5* | irix6* | nonstopux*)
15375 if test "$GCC" = yes; then
15376 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'
15378 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'
15379 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15382 hardcode_libdir_separator=:
15383 link_all_deplibs=yes
15387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15390 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15392 hardcode_libdir_flag_spec='-R$libdir'
15393 hardcode_direct=yes
15394 hardcode_shlibpath_var=no
15398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15399 hardcode_direct=yes
15400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15401 hardcode_libdir_separator=:
15402 hardcode_shlibpath_var=no
15406 hardcode_direct=yes
15407 hardcode_shlibpath_var=no
15408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15409 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15410 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15411 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15412 export_dynamic_flag_spec='${wl}-E'
15415 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15417 hardcode_libdir_flag_spec='-R$libdir'
15420 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15421 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15428 hardcode_libdir_flag_spec='-L$libdir'
15429 hardcode_minus_L=yes
15430 allow_undefined_flag=unsupported
15431 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'
15432 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15436 if test "$GCC" = yes; then
15437 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15438 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'
15440 allow_undefined_flag=' -expect_unresolved \*'
15441 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'
15443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15444 hardcode_libdir_separator=:
15447 osf4* | osf5*) # as osf3* with the addition of -msym flag
15448 if test "$GCC" = yes; then
15449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15450 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'
15451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15453 allow_undefined_flag=' -expect_unresolved \*'
15454 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'
15455 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15456 $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'
15458 # Both c and cxx compiler support -rpath directly
15459 hardcode_libdir_flag_spec='-rpath $libdir'
15461 hardcode_libdir_separator=:
15465 no_undefined_flag=' -z text'
15466 if test "$GCC" = yes; then
15468 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15469 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15470 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15474 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15477 hardcode_libdir_flag_spec='-R$libdir'
15478 hardcode_shlibpath_var=no
15480 solaris2.[0-5] | solaris2.[0-5].*) ;;
15482 # The compiler driver will combine linker options so we
15483 # cannot just pass the convience library names through
15484 # without $wl, iff we do not link with $LD.
15485 # Luckily, gcc supports the same syntax we need for Sun Studio.
15486 # Supported since Solaris 2.6 (maybe 2.5.1?)
15489 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15491 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' ;;
15494 link_all_deplibs=yes
15498 if test "x$host_vendor" = xsequent; then
15499 # Use $CC to link under sequent, because it throws in some extra .o
15500 # files that make .init and .fini sections work.
15501 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15503 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15505 hardcode_libdir_flag_spec='-L$libdir'
15506 hardcode_direct=yes
15507 hardcode_minus_L=yes
15508 hardcode_shlibpath_var=no
15512 case $host_vendor in
15514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15515 hardcode_direct=yes # is this really true???
15518 ## LD is ld it makes a PLAMLIB
15519 ## CC just makes a GrossModule.
15520 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15521 reload_cmds='$CC -r -o $output$reload_objs'
15525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15529 runpath_var='LD_RUN_PATH'
15530 hardcode_shlibpath_var=no
15534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15535 hardcode_shlibpath_var=no
15536 export_dynamic_flag_spec='-Bexport'
15540 if test -d /usr/nec; then
15541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542 hardcode_shlibpath_var=no
15543 runpath_var=LD_RUN_PATH
15544 hardcode_runpath_var=yes
15549 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15550 no_undefined_flag='${wl}-z,text'
15551 archive_cmds_need_lc=no
15552 hardcode_shlibpath_var=no
15553 runpath_var='LD_RUN_PATH'
15555 if test "$GCC" = yes; then
15556 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15557 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15559 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15560 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15564 sysv5* | sco3.2v5* | sco5v6*)
15565 # Note: We can NOT use -z defs as we might desire, because we do not
15566 # link with -lc, and that would cause any symbols used from libc to
15567 # always be unresolved, which means just about no library would
15568 # ever link correctly. If we're not using GNU ld we use -z text
15569 # though, which does catch some bad symbols but isn't as heavy-handed
15571 no_undefined_flag='${wl}-z,text'
15572 allow_undefined_flag='${wl}-z,nodefs'
15573 archive_cmds_need_lc=no
15574 hardcode_shlibpath_var=no
15575 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15576 hardcode_libdir_separator=':'
15577 link_all_deplibs=yes
15578 export_dynamic_flag_spec='${wl}-Bexport'
15579 runpath_var='LD_RUN_PATH'
15581 if test "$GCC" = yes; then
15582 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15583 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15585 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15592 hardcode_libdir_flag_spec='-L$libdir'
15593 hardcode_shlibpath_var=no
15602 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15603 echo "${ECHO_T}$ld_shlibs" >&6; }
15604 test "$ld_shlibs" = no && can_build_shared=no
15607 # Do we need to explicitly link libc?
15609 case "x$archive_cmds_need_lc" in
15611 # Assume -lc should be added
15612 archive_cmds_need_lc=yes
15614 if test "$enable_shared" = yes && test "$GCC" = yes; then
15615 case $archive_cmds in
15617 # FIXME: we may have to deal with multi-command sequences.
15620 # Test whether the compiler implicitly links with -lc since on some
15621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15622 # to ld, don't add -lc before -lgcc.
15623 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15624 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } 2>conftest.err; then
15635 libobjs=conftest.$ac_objext
15637 wl=$lt_prog_compiler_wl
15638 pic_flag=$lt_prog_compiler_pic
15644 lt_save_allow_undefined_flag=$allow_undefined_flag
15645 allow_undefined_flag=
15646 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15647 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }
15652 archive_cmds_need_lc=no
15654 archive_cmds_need_lc=yes
15656 allow_undefined_flag=$lt_save_allow_undefined_flag
15658 cat conftest.err 1>&5
15661 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15662 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15669 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15670 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15671 library_names_spec=
15672 libname_spec='lib$name'
15676 postuninstall_cmds=
15680 shlibpath_overrides_runpath=unknown
15682 dynamic_linker="$host_os ld.so"
15683 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15684 if test "$GCC" = yes; then
15685 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15686 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15687 # if the path contains ";" then we assume it to be the separator
15688 # otherwise default to the standard path separator (i.e. ":") - it is
15689 # assumed that no part of a normal pathname contains ";" but that should
15690 # okay in the real world where ";" in dirpaths is itself problematic.
15691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15696 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15698 need_lib_prefix=unknown
15699 hardcode_into_libs=no
15701 # when you set need_version to no, make sure it does not cause -set_version
15702 # flags to be left without arguments
15703 need_version=unknown
15708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15709 shlibpath_var=LIBPATH
15711 # AIX 3 has no versioning support, so we append a major version to the name.
15712 soname_spec='${libname}${release}${shared_ext}$major'
15719 hardcode_into_libs=yes
15720 if test "$host_cpu" = ia64; then
15721 # AIX 5 supports IA64
15722 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15723 shlibpath_var=LD_LIBRARY_PATH
15725 # With GCC up to 2.95.x, collect2 would create an import file
15726 # for dependence libraries. The import file would start with
15727 # the line `#! .'. This would cause the generated library to
15728 # depend on `.', always an invalid library. This was fixed in
15729 # development snapshots of GCC prior to 3.0.
15731 aix4 | aix4.[01] | aix4.[01].*)
15732 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15734 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15737 can_build_shared=no
15741 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15742 # soname into executable. Probably we can add versioning support to
15743 # collect2, so additional links can be useful in future.
15744 if test "$aix_use_runtimelinking" = yes; then
15745 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15746 # instead of lib<name>.a to let people know that these are not
15747 # typical AIX shared libraries.
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15750 # We preserve .a as extension for shared libraries through AIX4.2
15751 # and later when we are not doing run time linking.
15752 library_names_spec='${libname}${release}.a $libname.a'
15753 soname_spec='${libname}${release}${shared_ext}$major'
15755 shlibpath_var=LIBPATH
15760 library_names_spec='$libname.ixlibrary $libname.a'
15761 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15762 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'
15766 library_names_spec='${libname}${shared_ext}'
15767 dynamic_linker="$host_os ld.so"
15768 shlibpath_var=LIBRARY_PATH
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775 soname_spec='${libname}${release}${shared_ext}$major'
15776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15777 shlibpath_var=LD_LIBRARY_PATH
15778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15780 # the default ld.so.conf also contains /usr/contrib/lib and
15781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15782 # libtool to hard-code these into programs
15785 cygwin* | mingw* | pw32*)
15786 version_type=windows
15791 case $GCC,$host_os in
15792 yes,cygwin* | yes,mingw* | yes,pw32*)
15793 library_names_spec='$libname.dll.a'
15794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15795 postinstall_cmds='base_file=`basename \${file}`~
15796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15797 dldir=$destdir/`dirname \$dlpath`~
15798 test -d \$dldir || mkdir -p \$dldir~
15799 $install_prog $dir/$dlname \$dldir/$dlname~
15800 chmod a+x \$dldir/$dlname'
15801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15802 dlpath=$dir/\$dldll~
15804 shlibpath_overrides_runpath=yes
15808 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15809 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15810 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15813 # MinGW DLLs use traditional 'lib' prefix
15814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15816 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15817 # It is most probably a Windows format PATH printed by
15818 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15819 # path with ; separators, and with drive letters. We can handle the
15820 # drive letters (cygwin fileutils understands them), so leave them,
15821 # especially as we might pass files found there to a mingw objdump,
15822 # which wouldn't understand a cygwinified path. Ahh.
15823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15829 # pw32 DLLs use 'pw' prefix rather than 'lib'
15830 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15836 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15839 dynamic_linker='Win32 ld.exe'
15840 # FIXME: first we should search . and the directory the executable is in
15844 darwin* | rhapsody*)
15845 dynamic_linker="$host_os dyld"
15846 version_type=darwin
15849 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15850 soname_spec='${libname}${release}${major}$shared_ext'
15851 shlibpath_overrides_runpath=yes
15852 shlibpath_var=DYLD_LIBRARY_PATH
15853 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15854 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15855 if test "$GCC" = yes; then
15856 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"`
15858 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15860 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15868 soname_spec='${libname}${release}${shared_ext}$major'
15869 shlibpath_var=LD_LIBRARY_PATH
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15881 soname_spec='${libname}${release}${shared_ext}$major'
15882 shlibpath_var=LD_LIBRARY_PATH
15883 shlibpath_overrides_runpath=no
15884 hardcode_into_libs=yes
15885 dynamic_linker='GNU ld.so'
15888 freebsd* | dragonfly*)
15889 # DragonFly does not have aout. When/if they implement a new
15890 # versioning mechanism, adjust this.
15891 if test -x /usr/bin/objformat; then
15892 objformat=`/usr/bin/objformat`
15895 freebsd[123]*) objformat=aout ;;
15896 *) objformat=elf ;;
15899 version_type=freebsd-$objformat
15900 case $version_type in
15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15911 shlibpath_var=LD_LIBRARY_PATH
15914 shlibpath_overrides_runpath=yes
15916 freebsd3.[01]* | freebsdelf3.[01]*)
15917 shlibpath_overrides_runpath=yes
15918 hardcode_into_libs=yes
15920 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15921 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15922 shlibpath_overrides_runpath=no
15923 hardcode_into_libs=yes
15925 freebsd*) # from 4.6 on
15926 shlibpath_overrides_runpath=yes
15927 hardcode_into_libs=yes
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15938 shlibpath_var=LD_LIBRARY_PATH
15939 hardcode_into_libs=yes
15942 hpux9* | hpux10* | hpux11*)
15943 # Give a soname corresponding to the major version so that dld.sl refuses to
15944 # link against other versions.
15951 hardcode_into_libs=yes
15952 dynamic_linker="$host_os dld.so"
15953 shlibpath_var=LD_LIBRARY_PATH
15954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956 soname_spec='${libname}${release}${shared_ext}$major'
15957 if test "X$HPUX_IA64_MODE" = X32; then
15958 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15960 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15966 hardcode_into_libs=yes
15967 dynamic_linker="$host_os dld.sl"
15968 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15977 dynamic_linker="$host_os dld.sl"
15978 shlibpath_var=SHLIB_PATH
15979 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15981 soname_spec='${libname}${release}${shared_ext}$major'
15984 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15985 postinstall_cmds='chmod 555 $lib'
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 shlibpath_overrides_runpath=no
15997 hardcode_into_libs=yes
16000 irix5* | irix6* | nonstopux*)
16002 nonstopux*) version_type=nonstopux ;;
16004 if test "$lt_cv_prog_gnu_ld" = yes; then
16012 soname_spec='${libname}${release}${shared_ext}$major'
16013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16015 irix5* | nonstopux*)
16016 libsuff= shlibsuff=
16019 case $LD in # libtool.m4 will add one of these switches to LD
16020 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16021 libsuff= shlibsuff= libmagic=32-bit;;
16022 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16023 libsuff=32 shlibsuff=N32 libmagic=N32;;
16024 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16025 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16026 *) libsuff= shlibsuff= libmagic=never-match;;
16030 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16031 shlibpath_overrides_runpath=no
16032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16034 hardcode_into_libs=yes
16037 # No shared lib support for Linux oldld, aout, or coff.
16038 linux*oldld* | linux*aout* | linux*coff*)
16042 # This must be Linux ELF.
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16048 soname_spec='${libname}${release}${shared_ext}$major'
16049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 shlibpath_overrides_runpath=no
16052 # This implies no fast_install, which is unacceptable.
16053 # Some rework will be needed to allow for fast_install
16054 # before this can be enabled.
16055 hardcode_into_libs=yes
16057 # Append ld.so.conf contents to the search path
16058 if test -f /etc/ld.so.conf; then
16059 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' ' '`
16060 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16063 # We used to test for /lib/ld.so.1 and disable shared libraries on
16064 # powerpc, because MkLinux only supported shared libraries with the
16065 # GNU dynamic linker. Since this was broken with cross compilers,
16066 # most powerpc-linux boxes support dynamic linking these days and
16067 # people can always --disable-shared, the test was removed, and we
16068 # assume the GNU/Linux dynamic linker is in use.
16069 dynamic_linker='GNU/Linux ld.so'
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 shlibpath_overrides_runpath=no
16080 hardcode_into_libs=yes
16081 dynamic_linker='GNU ld.so'
16088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16091 dynamic_linker='NetBSD (a.out) ld.so'
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 dynamic_linker='NetBSD ld.elf_so'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 shlibpath_overrides_runpath=yes
16099 hardcode_into_libs=yes
16104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105 shlibpath_var=LD_LIBRARY_PATH
16106 shlibpath_overrides_runpath=yes
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 shlibpath_overrides_runpath=yes
16121 sys_lib_dlsearch_path_spec="/usr/lib"
16123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16125 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16126 *) need_version=no ;;
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16130 shlibpath_var=LD_LIBRARY_PATH
16131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16133 openbsd2.[89] | openbsd2.[89].*)
16134 shlibpath_overrides_runpath=no
16137 shlibpath_overrides_runpath=yes
16141 shlibpath_overrides_runpath=yes
16146 libname_spec='$name'
16149 library_names_spec='$libname${shared_ext} $libname.a'
16150 dynamic_linker='OS/2 ld.exe'
16151 shlibpath_var=LIBPATH
16154 osf3* | osf4* | osf5*)
16158 soname_spec='${libname}${release}${shared_ext}$major'
16159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160 shlibpath_var=LD_LIBRARY_PATH
16161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=yes
16173 hardcode_into_libs=yes
16174 # ldd complains unless libraries are executable
16175 postinstall_cmds='chmod +x $lib'
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16182 shlibpath_var=LD_LIBRARY_PATH
16183 shlibpath_overrides_runpath=yes
16184 if test "$with_gnu_ld" = yes; then
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 case $host_vendor in
16197 shlibpath_overrides_runpath=no
16199 export_dynamic_flag_spec='${wl}-Blargedynsym'
16200 runpath_var=LD_RUN_PATH
16208 shlibpath_overrides_runpath=no
16209 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16215 if test -d /usr/nec ;then
16217 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16218 soname_spec='$libname${shared_ext}.$major'
16219 shlibpath_var=LD_LIBRARY_PATH
16223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16224 version_type=freebsd-elf
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 hardcode_into_libs=yes
16231 if test "$with_gnu_ld" = yes; then
16232 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16233 shlibpath_overrides_runpath=no
16235 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16236 shlibpath_overrides_runpath=yes
16239 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16243 sys_lib_dlsearch_path_spec='/usr/lib'
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 shlibpath_var=LD_LIBRARY_PATH
16257 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16258 echo "${ECHO_T}$dynamic_linker" >&6; }
16259 test "$dynamic_linker" = no && can_build_shared=no
16261 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16262 if test "$GCC" = yes; then
16263 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16266 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16267 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16269 if test -n "$hardcode_libdir_flag_spec" || \
16270 test -n "$runpath_var" || \
16271 test "X$hardcode_automatic" = "Xyes" ; then
16273 # We can hardcode non-existant directories.
16274 if test "$hardcode_direct" != no &&
16275 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16276 # have to relink, otherwise we might link with an installed library
16277 # when we should be linking with a yet-to-be-installed one
16278 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16279 test "$hardcode_minus_L" != no; then
16280 # Linking always hardcodes the temporary library directory.
16281 hardcode_action=relink
16283 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16284 hardcode_action=immediate
16287 # We cannot hardcode anything, or else we can only hardcode existing
16289 hardcode_action=unsupported
16291 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16292 echo "${ECHO_T}$hardcode_action" >&6; }
16294 if test "$hardcode_action" = relink; then
16295 # Fast installation is not supported
16296 enable_fast_install=no
16297 elif test "$shlibpath_overrides_runpath" = yes ||
16298 test "$enable_shared" = no; then
16299 # Fast installation is not necessary
16300 enable_fast_install=needless
16305 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16306 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16307 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16308 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16309 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16310 { echo "$as_me:$LINENO: result: yes" >&5
16311 echo "${ECHO_T}yes" >&6; }
16313 # FIXME - insert some real tests, host_os isn't really good enough
16316 if test -n "$STRIP" ; then
16317 striplib="$STRIP -x"
16318 { echo "$as_me:$LINENO: result: yes" >&5
16319 echo "${ECHO_T}yes" >&6; }
16321 { echo "$as_me:$LINENO: result: no" >&5
16322 echo "${ECHO_T}no" >&6; }
16326 { echo "$as_me:$LINENO: result: no" >&5
16327 echo "${ECHO_T}no" >&6; }
16332 if test "x$enable_dlopen" != xyes; then
16333 enable_dlopen=unknown
16334 enable_dlopen_self=unknown
16335 enable_dlopen_self_static=unknown
16342 lt_cv_dlopen="load_add_on"
16344 lt_cv_dlopen_self=yes
16348 lt_cv_dlopen="LoadLibrary"
16353 lt_cv_dlopen="dlopen"
16358 # if libdl is installed we need to link against it
16359 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16360 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16361 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 ac_check_lib_save_LIBS=$LIBS
16366 cat >conftest.$ac_ext <<_ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16373 /* Override any GCC internal prototype to avoid an error.
16374 Use char because int might match the return type of a GCC
16375 builtin and then its argument prototype would still apply. */
16388 rm -f conftest.$ac_objext conftest$ac_exeext
16389 if { (ac_try="$ac_link"
16390 case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395 (eval "$ac_link") 2>conftest.er1
16397 grep -v '^ *+' conftest.er1 >conftest.err
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16403 { (case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_try") 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; } &&
16412 { ac_try='test -s conftest$ac_exeext'
16413 { (case "(($ac_try" in
16414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415 *) ac_try_echo=$ac_try;;
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418 (eval "$ac_try") 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_cv_lib_dl_dlopen=yes
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16427 ac_cv_lib_dl_dlopen=no
16430 rm -f core conftest.err conftest.$ac_objext \
16431 conftest$ac_exeext conftest.$ac_ext
16432 LIBS=$ac_check_lib_save_LIBS
16434 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16435 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16436 if test $ac_cv_lib_dl_dlopen = yes; then
16437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16440 lt_cv_dlopen="dyld"
16442 lt_cv_dlopen_self=yes
16449 { echo "$as_me:$LINENO: checking for shl_load" >&5
16450 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16451 if test "${ac_cv_func_shl_load+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 cat >conftest.$ac_ext <<_ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h. */
16460 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16462 #define shl_load innocuous_shl_load
16464 /* System header to define __stub macros and hopefully few prototypes,
16465 which can conflict with char shl_load (); below.
16466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16467 <limits.h> exists even on freestanding compilers. */
16470 # include <limits.h>
16472 # include <assert.h>
16477 /* Override any GCC internal prototype to avoid an error.
16478 Use char because int might match the return type of a GCC
16479 builtin and then its argument prototype would still apply. */
16484 /* The GNU C library defines this for functions which it implements
16485 to always fail with ENOSYS. Some functions are actually named
16486 something starting with __ and the normal name is an alias. */
16487 #if defined __stub_shl_load || defined __stub___shl_load
16494 return shl_load ();
16499 rm -f conftest.$ac_objext conftest$ac_exeext
16500 if { (ac_try="$ac_link"
16501 case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_link") 2>conftest.er1
16508 grep -v '^ *+' conftest.er1 >conftest.err
16510 cat conftest.err >&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
16513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16514 { (case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_try") 2>&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; } &&
16523 { ac_try='test -s conftest$ac_exeext'
16524 { (case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529 (eval "$ac_try") 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; }; then
16533 ac_cv_func_shl_load=yes
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ac_cv_func_shl_load=no
16541 rm -f core conftest.err conftest.$ac_objext \
16542 conftest$ac_exeext conftest.$ac_ext
16544 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16545 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16546 if test $ac_cv_func_shl_load = yes; then
16547 lt_cv_dlopen="shl_load"
16549 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16550 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16551 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 ac_check_lib_save_LIBS=$LIBS
16556 cat >conftest.$ac_ext <<_ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16563 /* Override any GCC internal prototype to avoid an error.
16564 Use char because int might match the return type of a GCC
16565 builtin and then its argument prototype would still apply. */
16573 return shl_load ();
16578 rm -f conftest.$ac_objext conftest$ac_exeext
16579 if { (ac_try="$ac_link"
16580 case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_link") 2>conftest.er1
16587 grep -v '^ *+' conftest.er1 >conftest.err
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593 { (case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_try") 2>&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest$ac_exeext'
16603 { (case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_try") 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_lib_dld_shl_load=yes
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ac_cv_lib_dld_shl_load=no
16620 rm -f core conftest.err conftest.$ac_objext \
16621 conftest$ac_exeext conftest.$ac_ext
16622 LIBS=$ac_check_lib_save_LIBS
16624 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16625 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16626 if test $ac_cv_lib_dld_shl_load = yes; then
16627 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16629 { echo "$as_me:$LINENO: checking for dlopen" >&5
16630 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16631 if test "${ac_cv_func_dlopen+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 cat >conftest.$ac_ext <<_ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16642 #define dlopen innocuous_dlopen
16644 /* System header to define __stub macros and hopefully few prototypes,
16645 which can conflict with char dlopen (); below.
16646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16647 <limits.h> exists even on freestanding compilers. */
16650 # include <limits.h>
16652 # include <assert.h>
16657 /* Override any GCC internal prototype to avoid an error.
16658 Use char because int might match the return type of a GCC
16659 builtin and then its argument prototype would still apply. */
16664 /* The GNU C library defines this for functions which it implements
16665 to always fail with ENOSYS. Some functions are actually named
16666 something starting with __ and the normal name is an alias. */
16667 #if defined __stub_dlopen || defined __stub___dlopen
16679 rm -f conftest.$ac_objext conftest$ac_exeext
16680 if { (ac_try="$ac_link"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_link") 2>conftest.er1
16688 grep -v '^ *+' conftest.er1 >conftest.err
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
16693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16694 { (case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_try") 2>&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest$ac_exeext'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; }; then
16713 ac_cv_func_dlopen=yes
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16718 ac_cv_func_dlopen=no
16721 rm -f core conftest.err conftest.$ac_objext \
16722 conftest$ac_exeext conftest.$ac_ext
16724 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16725 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16726 if test $ac_cv_func_dlopen = yes; then
16727 lt_cv_dlopen="dlopen"
16729 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 ac_check_lib_save_LIBS=$LIBS
16736 cat >conftest.$ac_ext <<_ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16743 /* Override any GCC internal prototype to avoid an error.
16744 Use char because int might match the return type of a GCC
16745 builtin and then its argument prototype would still apply. */
16758 rm -f conftest.$ac_objext conftest$ac_exeext
16759 if { (ac_try="$ac_link"
16760 case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_link") 2>conftest.er1
16767 grep -v '^ *+' conftest.er1 >conftest.err
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773 { (case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_try") 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; } &&
16782 { ac_try='test -s conftest$ac_exeext'
16783 { (case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_try") 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 ac_cv_lib_dl_dlopen=yes
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 ac_cv_lib_dl_dlopen=no
16800 rm -f core conftest.err conftest.$ac_objext \
16801 conftest$ac_exeext conftest.$ac_ext
16802 LIBS=$ac_check_lib_save_LIBS
16804 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16805 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16806 if test $ac_cv_lib_dl_dlopen = yes; then
16807 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16809 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16810 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16811 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 ac_check_lib_save_LIBS=$LIBS
16815 LIBS="-lsvld $LIBS"
16816 cat >conftest.$ac_ext <<_ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16823 /* Override any GCC internal prototype to avoid an error.
16824 Use char because int might match the return type of a GCC
16825 builtin and then its argument prototype would still apply. */
16838 rm -f conftest.$ac_objext conftest$ac_exeext
16839 if { (ac_try="$ac_link"
16840 case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_link") 2>conftest.er1
16847 grep -v '^ *+' conftest.er1 >conftest.err
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
16852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16853 { (case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; } &&
16862 { ac_try='test -s conftest$ac_exeext'
16863 { (case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_try") 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 ac_cv_lib_svld_dlopen=yes
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 ac_cv_lib_svld_dlopen=no
16880 rm -f core conftest.err conftest.$ac_objext \
16881 conftest$ac_exeext conftest.$ac_ext
16882 LIBS=$ac_check_lib_save_LIBS
16884 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16885 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16886 if test $ac_cv_lib_svld_dlopen = yes; then
16887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16889 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16890 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16891 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 ac_check_lib_save_LIBS=$LIBS
16896 cat >conftest.$ac_ext <<_ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h. */
16903 /* Override any GCC internal prototype to avoid an error.
16904 Use char because int might match the return type of a GCC
16905 builtin and then its argument prototype would still apply. */
16913 return dld_link ();
16918 rm -f conftest.$ac_objext conftest$ac_exeext
16919 if { (ac_try="$ac_link"
16920 case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_link") 2>conftest.er1
16927 grep -v '^ *+' conftest.er1 >conftest.err
16929 cat conftest.err >&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); } &&
16932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16933 { (case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_try") 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; } &&
16942 { ac_try='test -s conftest$ac_exeext'
16943 { (case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_try") 2>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; }; then
16952 ac_cv_lib_dld_dld_link=yes
16954 echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16957 ac_cv_lib_dld_dld_link=no
16960 rm -f core conftest.err conftest.$ac_objext \
16961 conftest$ac_exeext conftest.$ac_ext
16962 LIBS=$ac_check_lib_save_LIBS
16964 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16965 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16966 if test $ac_cv_lib_dld_dld_link = yes; then
16967 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16988 if test "x$lt_cv_dlopen" != xno; then
16994 case $lt_cv_dlopen in
16996 save_CPPFLAGS="$CPPFLAGS"
16997 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16999 save_LDFLAGS="$LDFLAGS"
17000 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17003 LIBS="$lt_cv_dlopen_libs $LIBS"
17005 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17006 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17007 if test "${lt_cv_dlopen_self+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 if test "$cross_compiling" = yes; then :
17011 lt_cv_dlopen_self=cross
17013 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17014 lt_status=$lt_dlunknown
17015 cat > conftest.$ac_ext <<EOF
17016 #line 17016 "configure"
17017 #include "confdefs.h"
17026 # define LT_DLGLOBAL RTLD_GLOBAL
17029 # define LT_DLGLOBAL DL_GLOBAL
17031 # define LT_DLGLOBAL 0
17035 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17036 find out it does not work in some platform. */
17037 #ifndef LT_DLLAZY_OR_NOW
17039 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17042 # define LT_DLLAZY_OR_NOW DL_LAZY
17045 # define LT_DLLAZY_OR_NOW RTLD_NOW
17048 # define LT_DLLAZY_OR_NOW DL_NOW
17050 # define LT_DLLAZY_OR_NOW 0
17058 extern "C" void exit (int);
17061 void fnord() { int i=42;}
17064 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17065 int status = $lt_dlunknown;
17069 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17070 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17071 /* dlclose (self); */
17079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17080 (eval $ac_link) 2>&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17084 (./conftest; exit; ) >&5 2>/dev/null
17086 case x$lt_status in
17087 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17088 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17089 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17092 # compilation failed
17093 lt_cv_dlopen_self=no
17100 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17101 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17103 if test "x$lt_cv_dlopen_self" = xyes; then
17104 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17105 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17106 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17107 if test "${lt_cv_dlopen_self_static+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 if test "$cross_compiling" = yes; then :
17111 lt_cv_dlopen_self_static=cross
17113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17114 lt_status=$lt_dlunknown
17115 cat > conftest.$ac_ext <<EOF
17116 #line 17116 "configure"
17117 #include "confdefs.h"
17126 # define LT_DLGLOBAL RTLD_GLOBAL
17129 # define LT_DLGLOBAL DL_GLOBAL
17131 # define LT_DLGLOBAL 0
17135 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17136 find out it does not work in some platform. */
17137 #ifndef LT_DLLAZY_OR_NOW
17139 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17142 # define LT_DLLAZY_OR_NOW DL_LAZY
17145 # define LT_DLLAZY_OR_NOW RTLD_NOW
17148 # define LT_DLLAZY_OR_NOW DL_NOW
17150 # define LT_DLLAZY_OR_NOW 0
17158 extern "C" void exit (int);
17161 void fnord() { int i=42;}
17164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17165 int status = $lt_dlunknown;
17169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17170 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17171 /* dlclose (self); */
17179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17180 (eval $ac_link) 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17184 (./conftest; exit; ) >&5 2>/dev/null
17186 case x$lt_status in
17187 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17188 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17189 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17192 # compilation failed
17193 lt_cv_dlopen_self_static=no
17200 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17201 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17204 CPPFLAGS="$save_CPPFLAGS"
17205 LDFLAGS="$save_LDFLAGS"
17210 case $lt_cv_dlopen_self in
17211 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17212 *) enable_dlopen_self=unknown ;;
17215 case $lt_cv_dlopen_self_static in
17216 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17217 *) enable_dlopen_self_static=unknown ;;
17222 # Report which library types will actually be built
17223 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17224 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17225 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17226 echo "${ECHO_T}$can_build_shared" >&6; }
17228 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17229 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17230 test "$can_build_shared" = "no" && enable_shared=no
17232 # On AIX, shared libraries and static libraries use the same namespace, and
17233 # are all built from PIC.
17236 test "$enable_shared" = yes && enable_static=no
17237 if test -n "$RANLIB"; then
17238 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17239 postinstall_cmds='$RANLIB $lib'
17244 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17245 test "$enable_shared" = yes && enable_static=no
17249 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17250 echo "${ECHO_T}$enable_shared" >&6; }
17252 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17253 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17254 # Make sure either enable_shared or enable_static is yes.
17255 test "$enable_shared" = yes || enable_static=yes
17256 { echo "$as_me:$LINENO: result: $enable_static" >&5
17257 echo "${ECHO_T}$enable_static" >&6; }
17259 # The else clause should only fire when bootstrapping the
17260 # libtool distribution, otherwise you forgot to ship ltmain.sh
17261 # with your package, and you will get complaints that there are
17262 # no rules to generate ltmain.sh.
17263 if test -f "$ltmain"; then
17264 # See if we are running on zsh, and set the options which allow our commands through
17265 # without removal of \ escapes.
17266 if test -n "${ZSH_VERSION+set}" ; then
17267 setopt NO_GLOB_SUBST
17269 # Now quote all the things that may contain metacharacters while being
17270 # careful not to overquote the AC_SUBSTed values. We take copies of the
17271 # variables and quote the copies for generation of the libtool script.
17272 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17274 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17275 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17276 deplibs_check_method reload_flag reload_cmds need_locks \
17277 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17278 lt_cv_sys_global_symbol_to_c_name_address \
17279 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17280 old_postinstall_cmds old_postuninstall_cmds \
17284 lt_prog_compiler_wl \
17285 lt_prog_compiler_pic \
17286 lt_prog_compiler_static \
17287 lt_prog_compiler_no_builtin_flag \
17288 export_dynamic_flag_spec \
17289 thread_safe_flag_spec \
17290 whole_archive_flag_spec \
17291 enable_shared_with_static_runtimes \
17293 old_archive_from_new_cmds \
17298 compiler_lib_search_path \
17300 archive_expsym_cmds \
17302 postuninstall_cmds \
17303 old_archive_from_expsyms_cmds \
17304 allow_undefined_flag \
17305 no_undefined_flag \
17306 export_symbols_cmds \
17307 hardcode_libdir_flag_spec \
17308 hardcode_libdir_flag_spec_ld \
17309 hardcode_libdir_separator \
17310 hardcode_automatic \
17312 module_expsym_cmds \
17313 lt_cv_prog_compiler_c_o \
17315 include_expsyms; do
17318 old_archive_cmds | \
17319 old_archive_from_new_cmds | \
17321 archive_expsym_cmds | \
17323 module_expsym_cmds | \
17324 old_archive_from_expsyms_cmds | \
17325 export_symbols_cmds | \
17326 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17327 postinstall_cmds | postuninstall_cmds | \
17328 old_postinstall_cmds | old_postuninstall_cmds | \
17329 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17330 # Double-quote double-evaled strings.
17331 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17340 *'\$0 --fallback-echo"')
17341 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17345 cfgfile="${ofile}T"
17346 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17348 { echo "$as_me:$LINENO: creating $ofile" >&5
17349 echo "$as_me: creating $ofile" >&6;}
17351 cat <<__EOF__ >> "$cfgfile"
17354 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17355 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17356 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17358 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17359 # Free Software Foundation, Inc.
17361 # This file is part of GNU Libtool:
17362 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17364 # This program is free software; you can redistribute it and/or modify
17365 # it under the terms of the GNU General Public License as published by
17366 # the Free Software Foundation; either version 2 of the License, or
17367 # (at your option) any later version.
17369 # This program is distributed in the hope that it will be useful, but
17370 # WITHOUT ANY WARRANTY; without even the implied warranty of
17371 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17372 # General Public License for more details.
17374 # You should have received a copy of the GNU General Public License
17375 # along with this program; if not, write to the Free Software
17376 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17378 # As a special exception to the GNU General Public License, if you
17379 # distribute this file as part of a program that contains a
17380 # configuration script generated by Autoconf, you may include it under
17381 # the same distribution terms that you use for the rest of that program.
17383 # A sed program that does not truncate output.
17386 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17387 Xsed="$SED -e 1s/^X//"
17389 # The HP-UX ksh and POSIX shell print the target directory to stdout
17390 # if CDPATH is set.
17391 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17393 # The names of the tagged configurations supported by this script.
17396 # ### BEGIN LIBTOOL CONFIG
17398 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17400 # Shell to use when invoking shell scripts.
17403 # Whether or not to build shared libraries.
17404 build_libtool_libs=$enable_shared
17406 # Whether or not to build static libraries.
17407 build_old_libs=$enable_static
17409 # Whether or not to add -lc for building shared libraries.
17410 build_libtool_need_lc=$archive_cmds_need_lc
17412 # Whether or not to disallow shared libs when runtime libs are static
17413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17415 # Whether or not to optimize for fast installation.
17416 fast_install=$enable_fast_install
17419 host_alias=$host_alias
17423 # The build system.
17424 build_alias=$build_alias
17428 # An echo program that does not interpret backslashes.
17433 AR_FLAGS=$lt_AR_FLAGS
17438 # LTCC compiler flags.
17439 LTCFLAGS=$lt_LTCFLAGS
17441 # A language-specific compiler.
17444 # Is the compiler the GNU C compiler?
17450 # The linker used to build libraries.
17453 # Whether we need hard or soft links.
17456 # A BSD-compatible nm program.
17459 # A symbol stripping program
17462 # Used to examine libraries when file_magic_cmd begins "file"
17463 MAGIC_CMD=$MAGIC_CMD
17465 # Used on cygwin: DLL creation program.
17468 # Used on cygwin: object dumper.
17471 # Used on cygwin: assembler.
17474 # The name of the directory that contains temporary libtool files.
17477 # How to create reloadable object files.
17478 reload_flag=$lt_reload_flag
17479 reload_cmds=$lt_reload_cmds
17481 # How to pass a linker flag through the compiler.
17482 wl=$lt_lt_prog_compiler_wl
17484 # Object file suffix (normally "o").
17485 objext="$ac_objext"
17487 # Old archive suffix (normally "a").
17490 # Shared library suffix (normally ".so").
17491 shrext_cmds='$shrext_cmds'
17493 # Executable file suffix (normally "").
17496 # Additional compiler flags for building library objects.
17497 pic_flag=$lt_lt_prog_compiler_pic
17500 # What is the maximum length of a command?
17501 max_cmd_len=$lt_cv_sys_max_cmd_len
17503 # Does compiler simultaneously support -c and -o options?
17504 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17506 # Must we lock files when doing compilation?
17507 need_locks=$lt_need_locks
17509 # Do we need the lib prefix for modules?
17510 need_lib_prefix=$need_lib_prefix
17512 # Do we need a version for libraries?
17513 need_version=$need_version
17515 # Whether dlopen is supported.
17516 dlopen_support=$enable_dlopen
17518 # Whether dlopen of programs is supported.
17519 dlopen_self=$enable_dlopen_self
17521 # Whether dlopen of statically linked programs is supported.
17522 dlopen_self_static=$enable_dlopen_self_static
17524 # Compiler flag to prevent dynamic linking.
17525 link_static_flag=$lt_lt_prog_compiler_static
17527 # Compiler flag to turn off builtin functions.
17528 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17530 # Compiler flag to allow reflexive dlopens.
17531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17533 # Compiler flag to generate shared objects directly from archives.
17534 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17536 # Compiler flag to generate thread-safe objects.
17537 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17539 # Library versioning type.
17540 version_type=$version_type
17542 # Format of library name prefix.
17543 libname_spec=$lt_libname_spec
17545 # List of archive names. First name is the real one, the rest are links.
17546 # The last name is the one that the linker finds with -lNAME.
17547 library_names_spec=$lt_library_names_spec
17549 # The coded name of the library, if different from the real name.
17550 soname_spec=$lt_soname_spec
17552 # Commands used to build and install an old-style archive.
17554 old_archive_cmds=$lt_old_archive_cmds
17555 old_postinstall_cmds=$lt_old_postinstall_cmds
17556 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17558 # Create an old-style archive from a shared archive.
17559 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17561 # Create a temporary old-style archive to link instead of a shared archive.
17562 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17564 # Commands used to build and install a shared archive.
17565 archive_cmds=$lt_archive_cmds
17566 archive_expsym_cmds=$lt_archive_expsym_cmds
17567 postinstall_cmds=$lt_postinstall_cmds
17568 postuninstall_cmds=$lt_postuninstall_cmds
17570 # Commands used to build a loadable module (assumed same as above if empty)
17571 module_cmds=$lt_module_cmds
17572 module_expsym_cmds=$lt_module_expsym_cmds
17574 # Commands to strip libraries.
17575 old_striplib=$lt_old_striplib
17576 striplib=$lt_striplib
17578 # Dependencies to place before the objects being linked to create a
17580 predep_objects=$lt_predep_objects
17582 # Dependencies to place after the objects being linked to create a
17584 postdep_objects=$lt_postdep_objects
17586 # Dependencies to place before the objects being linked to create a
17588 predeps=$lt_predeps
17590 # Dependencies to place after the objects being linked to create a
17592 postdeps=$lt_postdeps
17594 # The library search path used internally by the compiler when linking
17595 # a shared library.
17596 compiler_lib_search_path=$lt_compiler_lib_search_path
17598 # Method to check whether dependent libraries are shared objects.
17599 deplibs_check_method=$lt_deplibs_check_method
17601 # Command to use when deplibs_check_method == file_magic.
17602 file_magic_cmd=$lt_file_magic_cmd
17604 # Flag that allows shared libraries with undefined symbols to be built.
17605 allow_undefined_flag=$lt_allow_undefined_flag
17607 # Flag that forces no undefined symbols.
17608 no_undefined_flag=$lt_no_undefined_flag
17610 # Commands used to finish a libtool library installation in a directory.
17611 finish_cmds=$lt_finish_cmds
17613 # Same as above, but a single script fragment to be evaled but not shown.
17614 finish_eval=$lt_finish_eval
17616 # Take the output of nm and produce a listing of raw symbols and C names.
17617 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17619 # Transform the output of nm in a proper C declaration
17620 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17622 # Transform the output of nm in a C name address pair
17623 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17625 # This is the shared library runtime path variable.
17626 runpath_var=$runpath_var
17628 # This is the shared library path variable.
17629 shlibpath_var=$shlibpath_var
17631 # Is shlibpath searched before the hard-coded library search path?
17632 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17634 # How to hardcode a shared library path into an executable.
17635 hardcode_action=$hardcode_action
17637 # Whether we should hardcode library paths into libraries.
17638 hardcode_into_libs=$hardcode_into_libs
17640 # Flag to hardcode \$libdir into a binary during linking.
17641 # This must work even if \$libdir does not exist.
17642 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17644 # If ld is used when linking, flag to hardcode \$libdir into
17645 # a binary during linking. This must work even if \$libdir does
17647 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17649 # Whether we need a single -rpath flag with a separated argument.
17650 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17652 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17653 # resulting binary.
17654 hardcode_direct=$hardcode_direct
17656 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17657 # resulting binary.
17658 hardcode_minus_L=$hardcode_minus_L
17660 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17661 # the resulting binary.
17662 hardcode_shlibpath_var=$hardcode_shlibpath_var
17664 # Set to yes if building a shared library automatically hardcodes DIR into the library
17665 # and all subsequent libraries and executables linked against it.
17666 hardcode_automatic=$hardcode_automatic
17668 # Variables whose values should be saved in libtool wrapper scripts and
17669 # restored at relink time.
17670 variables_saved_for_relink="$variables_saved_for_relink"
17672 # Whether libtool must link a program against all its dependency libraries.
17673 link_all_deplibs=$link_all_deplibs
17675 # Compile-time system search path for libraries
17676 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17678 # Run-time system search path for libraries
17679 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17681 # Fix the shell variable \$srcfile for the compiler.
17682 fix_srcfile_path="$fix_srcfile_path"
17684 # Set to yes if exported symbols are required.
17685 always_export_symbols=$always_export_symbols
17687 # The commands to list exported symbols.
17688 export_symbols_cmds=$lt_export_symbols_cmds
17690 # The commands to extract the exported symbol list from a shared archive.
17691 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17693 # Symbols that should not be listed in the preloaded symbols.
17694 exclude_expsyms=$lt_exclude_expsyms
17696 # Symbols that must always be exported.
17697 include_expsyms=$lt_include_expsyms
17699 # ### END LIBTOOL CONFIG
17706 cat <<\EOF >> "$cfgfile"
17708 # AIX sometimes has problems with the GCC collect2 program. For some
17709 # reason, if we set the COLLECT_NAMES environment variable, the problems
17710 # vanish in a puff of smoke.
17711 if test "X${COLLECT_NAMES+set}" != Xset; then
17713 export COLLECT_NAMES
17719 # We use sed instead of cat because bash on DJGPP gets confused if
17720 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17721 # text mode, it properly converts lines to CR/LF. This bash problem
17722 # is reportedly fixed, but why not run on old versions too?
17723 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17725 mv -f "$cfgfile" "$ofile" || \
17726 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17730 # If there is no Makefile yet, we rely on a make rule to execute
17731 # `config.status --recheck' to rerun these tests and create the
17732 # libtool script then.
17733 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17734 if test -f "$ltmain_in"; then
17735 test -f Makefile && make "$ltmain"
17741 ac_cpp='$CPP $CPPFLAGS'
17742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17749 # Check whether --with-tags was given.
17750 if test "${with_tags+set}" = set; then
17751 withval=$with_tags; tagnames="$withval"
17755 if test -f "$ltmain" && test -n "$tagnames"; then
17756 if test ! -f "${ofile}"; then
17757 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17758 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17761 if test -z "$LTCC"; then
17762 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17763 if test -z "$LTCC"; then
17764 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17765 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17767 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17768 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17771 if test -z "$LTCFLAGS"; then
17772 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17775 # Extract list of available tagged configurations in $ofile.
17776 # Note that this assumes the entire list is on one line.
17777 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17780 for tagname in $tagnames; do
17782 # Check whether tagname contains only valid characters
17783 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17785 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17786 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17787 { (exit 1); exit 1; }; }
17791 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17793 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17794 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17795 { (exit 1); exit 1; }; }
17798 # Update the list of available tags.
17799 if test -n "$tagname"; then
17800 echo appending configuration tag \"$tagname\" to $ofile
17804 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17805 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17806 (test "X$CXX" != "Xg++"))) ; then
17808 ac_cpp='$CXXCPP $CPPFLAGS'
17809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17816 archive_cmds_need_lc_CXX=no
17817 allow_undefined_flag_CXX=
17818 always_export_symbols_CXX=no
17819 archive_expsym_cmds_CXX=
17820 export_dynamic_flag_spec_CXX=
17821 hardcode_direct_CXX=no
17822 hardcode_libdir_flag_spec_CXX=
17823 hardcode_libdir_flag_spec_ld_CXX=
17824 hardcode_libdir_separator_CXX=
17825 hardcode_minus_L_CXX=no
17826 hardcode_shlibpath_var_CXX=unsupported
17827 hardcode_automatic_CXX=no
17829 module_expsym_cmds_CXX=
17830 link_all_deplibs_CXX=unknown
17831 old_archive_cmds_CXX=$old_archive_cmds
17832 no_undefined_flag_CXX=
17833 whole_archive_flag_spec_CXX=
17834 enable_shared_with_static_runtimes_CXX=no
17836 # Dependencies to place before and after the object being linked:
17837 predep_objects_CXX=
17838 postdep_objects_CXX=
17841 compiler_lib_search_path_CXX=
17843 # Source file extension for C++ test sources.
17846 # Object file extension for compiled C++ test sources.
17850 # Code to be used in simple compile tests
17851 lt_simple_compile_test_code="int some_variable = 0;\n"
17853 # Code to be used in simple link tests
17854 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17858 # If no C compiler was specified, use CC.
17861 # If no C compiler flags were specified, use CFLAGS.
17862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17864 # Allow CC to be a program name with arguments.
17868 # save warnings/boilerplate of simple test code
17869 ac_outfile=conftest.$ac_objext
17870 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17872 _lt_compiler_boilerplate=`cat conftest.err`
17875 ac_outfile=conftest.$ac_objext
17876 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17878 _lt_linker_boilerplate=`cat conftest.err`
17882 # Allow CC to be a program name with arguments.
17887 lt_save_with_gnu_ld=$with_gnu_ld
17888 lt_save_path_LD=$lt_cv_path_LD
17889 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17890 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17892 $as_unset lt_cv_prog_gnu_ld
17894 if test -n "${lt_cv_path_LDCXX+set}"; then
17895 lt_cv_path_LD=$lt_cv_path_LDCXX
17897 $as_unset lt_cv_path_LD
17899 test -z "${LDCXX+set}" || LD=$LDCXX
17903 for cc_temp in $compiler""; do
17905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17911 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17914 # We don't want -fno-exception wen compiling C++ code, so set the
17915 # no_builtin_flag separately
17916 if test "$GXX" = yes; then
17917 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17919 lt_prog_compiler_no_builtin_flag_CXX=
17922 if test "$GXX" = yes; then
17923 # Set up default GNU C++ configuration
17926 # Check whether --with-gnu-ld was given.
17927 if test "${with_gnu_ld+set}" = set; then
17928 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17934 if test "$GCC" = yes; then
17935 # Check if gcc -print-prog-name=ld gives a path.
17936 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17937 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17940 # gcc leaves a trailing carriage return which upsets mingw
17941 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17943 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17946 # Accept absolute paths.
17948 re_direlt='/[^/][^/]*/\.\./'
17949 # Canonicalize the pathname of ld
17950 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17951 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17952 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17954 test -z "$LD" && LD="$ac_prog"
17957 # If it fails, then pretend we aren't using GCC.
17961 # If it is relative, then search for the first ld in PATH.
17962 with_gnu_ld=unknown
17965 elif test "$with_gnu_ld" = yes; then
17966 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17967 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17969 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17970 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17972 if test "${lt_cv_path_LD+set}" = set; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 if test -z "$LD"; then
17976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17977 for ac_dir in $PATH; do
17979 test -z "$ac_dir" && ac_dir=.
17980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17981 lt_cv_path_LD="$ac_dir/$ac_prog"
17982 # Check to see if the program is GNU ld. I'd rather use --version,
17983 # but apparently some variants of GNU ld only accept -v.
17984 # Break only if it was the GNU/non-GNU ld that we prefer.
17985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17986 *GNU* | *'with BFD'*)
17987 test "$with_gnu_ld" != no && break
17990 test "$with_gnu_ld" != yes && break
17997 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18001 LD="$lt_cv_path_LD"
18002 if test -n "$LD"; then
18003 { echo "$as_me:$LINENO: result: $LD" >&5
18004 echo "${ECHO_T}$LD" >&6; }
18006 { echo "$as_me:$LINENO: result: no" >&5
18007 echo "${ECHO_T}no" >&6; }
18009 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18010 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18011 { (exit 1); exit 1; }; }
18012 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18013 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18014 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18017 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18018 case `$LD -v 2>&1 </dev/null` in
18019 *GNU* | *'with BFD'*)
18020 lt_cv_prog_gnu_ld=yes
18023 lt_cv_prog_gnu_ld=no
18027 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18028 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18029 with_gnu_ld=$lt_cv_prog_gnu_ld
18033 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18034 # archiving commands below assume that GNU ld is being used.
18035 if test "$with_gnu_ld" = yes; then
18036 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18037 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'
18039 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18040 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18042 # If archive_cmds runs LD, not CC, wlarc should be empty
18043 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18044 # investigate it a little bit more. (MM)
18047 # ancient GNU ld didn't support --whole-archive et. al.
18048 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18049 grep 'no-whole-archive' > /dev/null; then
18050 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18052 whole_archive_flag_spec_CXX=
18058 # A generic and very simple default shared library creation
18059 # command for GNU C++ for the case where it uses the native
18060 # linker, instead of GNU ld. If possible, this setting should
18061 # overridden to take advantage of the native linker features on
18062 # the platform it is being used on.
18063 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18066 # Commands to make compiler produce verbose output that lists
18067 # what "hidden" libraries, object files and flags are used when
18068 # linking a shared library.
18069 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18077 # PORTME: fill in a description of your system's C++ link characteristics
18078 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18079 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18083 # FIXME: insert proper C++ library support
18087 if test "$host_cpu" = ia64; then
18088 # On IA64, the linker does run time linking by default, so we don't
18089 # have to do anything special.
18090 aix_use_runtimelinking=no
18091 exp_sym_flag='-Bexport'
18094 aix_use_runtimelinking=no
18096 # Test if we are trying to use run time linking or normal
18097 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18098 # need to do runtime linking.
18099 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18100 for ld_flag in $LDFLAGS; do
18103 aix_use_runtimelinking=yes
18111 exp_sym_flag='-bexport'
18112 no_entry_flag='-bnoentry'
18115 # When large executables or shared objects are built, AIX ld can
18116 # have problems creating the table of contents. If linking a library
18117 # or program results in "error TOC overflow" add -mminimal-toc to
18118 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18119 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18121 archive_cmds_CXX=''
18122 hardcode_direct_CXX=yes
18123 hardcode_libdir_separator_CXX=':'
18124 link_all_deplibs_CXX=yes
18126 if test "$GXX" = yes; then
18127 case $host_os in aix4.[012]|aix4.[012].*)
18128 # We only want to do this on AIX 4.2 and lower, the check
18129 # below for broken collect2 doesn't work under 4.3+
18130 collect2name=`${CC} -print-prog-name=collect2`
18131 if test -f "$collect2name" && \
18132 strings "$collect2name" | grep resolve_lib_name >/dev/null
18134 # We have reworked collect2
18135 hardcode_direct_CXX=yes
18137 # We have old collect2
18138 hardcode_direct_CXX=unsupported
18139 # It fails to find uninstalled libraries when the uninstalled
18140 # path is not listed in the libpath. Setting hardcode_minus_L
18141 # to unsupported forces relinking
18142 hardcode_minus_L_CXX=yes
18143 hardcode_libdir_flag_spec_CXX='-L$libdir'
18144 hardcode_libdir_separator_CXX=
18148 shared_flag='-shared'
18149 if test "$aix_use_runtimelinking" = yes; then
18150 shared_flag="$shared_flag "'${wl}-G'
18154 if test "$host_cpu" = ia64; then
18155 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18156 # chokes on -Wl,-G. The following line is correct:
18159 if test "$aix_use_runtimelinking" = yes; then
18160 shared_flag='${wl}-G'
18162 shared_flag='${wl}-bM:SRE'
18167 # It seems that -bexpall does not export symbols beginning with
18168 # underscore (_), so it is better to generate a list of symbols to export.
18169 always_export_symbols_CXX=yes
18170 if test "$aix_use_runtimelinking" = yes; then
18171 # Warning - without using the other runtime loading flags (-brtl),
18172 # -berok will link without error, but may produce a broken library.
18173 allow_undefined_flag_CXX='-berok'
18174 # Determine the default libpath from the value encoded in an empty executable.
18175 cat >conftest.$ac_ext <<_ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>conftest.er1
18199 grep -v '^ *+' conftest.er1 >conftest.err
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest$ac_exeext'
18215 { (case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_try") 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18227 # Check for a 64-bit object if we didn't find anything.
18228 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; }
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18237 rm -f core conftest.err conftest.$ac_objext \
18238 conftest$ac_exeext conftest.$ac_ext
18239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18241 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18243 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"
18245 if test "$host_cpu" = ia64; then
18246 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18247 allow_undefined_flag_CXX="-z nodefs"
18248 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"
18250 # Determine the default libpath from the value encoded in an empty executable.
18251 cat >conftest.$ac_ext <<_ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (ac_try="$ac_link"
18268 case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_link") 2>conftest.er1
18275 grep -v '^ *+' conftest.er1 >conftest.err
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18281 { (case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_try") 2>&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; } &&
18290 { ac_try='test -s conftest$ac_exeext'
18291 { (case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_try") 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18301 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18303 # Check for a 64-bit object if we didn't find anything.
18304 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; }
18307 echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18313 rm -f core conftest.err conftest.$ac_objext \
18314 conftest$ac_exeext conftest.$ac_ext
18315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18317 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18318 # Warning - without using the other run time loading flags,
18319 # -berok will link without error, but may produce a broken library.
18320 no_undefined_flag_CXX=' ${wl}-bernotok'
18321 allow_undefined_flag_CXX=' ${wl}-berok'
18322 # Exported symbols can be pulled into shared objects from archives
18323 whole_archive_flag_spec_CXX='$convenience'
18324 archive_cmds_need_lc_CXX=yes
18325 # This is similar to how AIX traditionally builds its shared libraries.
18326 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'
18332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18333 allow_undefined_flag_CXX=unsupported
18334 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18335 # support --undefined. This deserves some investigation. FIXME
18336 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18343 case $cc_basename in
18345 # FIXME: insert proper C++ library support
18351 cygwin* | mingw* | pw32*)
18352 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18353 # as there is no search path for DLLs.
18354 hardcode_libdir_flag_spec_CXX='-L$libdir'
18355 allow_undefined_flag_CXX=unsupported
18356 always_export_symbols_CXX=no
18357 enable_shared_with_static_runtimes_CXX=yes
18359 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18360 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'
18361 # If the export-symbols file already is a .def file (1st line
18362 # is EXPORTS), use it as is; otherwise, prepend...
18363 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18364 cp $export_symbols $output_objdir/$soname.def;
18366 echo EXPORTS > $output_objdir/$soname.def;
18367 cat $export_symbols >> $output_objdir/$soname.def;
18369 $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'
18374 darwin* | rhapsody*)
18376 rhapsody* | darwin1.[012])
18377 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18380 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18381 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18383 case ${MACOSX_DEPLOYMENT_TARGET} in
18385 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18388 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18394 archive_cmds_need_lc_CXX=no
18395 hardcode_direct_CXX=no
18396 hardcode_automatic_CXX=yes
18397 hardcode_shlibpath_var_CXX=unsupported
18398 whole_archive_flag_spec_CXX=''
18399 link_all_deplibs_CXX=yes
18401 if test "$GXX" = yes ; then
18402 lt_int_apple_cc_single_mod=no
18403 output_verbose_link_cmd='echo'
18404 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18405 lt_int_apple_cc_single_mod=yes
18407 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18408 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18410 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'
18412 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18413 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18414 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18415 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}'
18417 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}'
18419 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}'
18421 case $cc_basename in
18423 output_verbose_link_cmd='echo'
18424 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'
18425 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18426 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18427 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}'
18428 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}'
18438 case $cc_basename in
18440 # FIXME: insert proper C++ library support
18444 # Green Hills C++ Compiler
18445 # FIXME: insert proper C++ library support
18449 # FIXME: insert proper C++ library support
18455 # C++ shared libraries reported to be fairly broken before switch to ELF
18459 archive_cmds_need_lc_CXX=no
18461 freebsd* | kfreebsd*-gnu | dragonfly*)
18462 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18469 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18470 hardcode_libdir_separator_CXX=:
18471 export_dynamic_flag_spec_CXX='${wl}-E'
18472 hardcode_direct_CXX=yes
18473 hardcode_minus_L_CXX=yes # Not in the search PATH,
18474 # but as the default
18475 # location of the library.
18477 case $cc_basename in
18479 # FIXME: insert proper C++ library support
18483 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'
18484 # Commands to make compiler produce verbose output that lists
18485 # what "hidden" libraries, object files and flags are used when
18486 # linking a shared library.
18488 # There doesn't appear to be a way to prevent this compiler from
18489 # explicitly linking system object files so we need to strip them
18490 # from the output so that they don't get included in the library
18492 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'
18495 if test "$GXX" = yes; then
18496 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'
18498 # FIXME: insert proper C++ library support
18505 if test $with_gnu_ld = no; then
18506 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18507 hardcode_libdir_separator_CXX=:
18511 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18514 export_dynamic_flag_spec_CXX='${wl}-E'
18520 hardcode_direct_CXX=no
18521 hardcode_shlibpath_var_CXX=no
18524 hardcode_direct_CXX=yes
18525 hardcode_minus_L_CXX=yes # Not in the search PATH,
18526 # but as the default
18527 # location of the library.
18531 case $cc_basename in
18533 # FIXME: insert proper C++ library support
18539 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18542 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18545 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18548 # Commands to make compiler produce verbose output that lists
18549 # what "hidden" libraries, object files and flags are used when
18550 # linking a shared library.
18552 # There doesn't appear to be a way to prevent this compiler from
18553 # explicitly linking system object files so we need to strip them
18554 # from the output so that they don't get included in the library
18556 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'
18559 if test "$GXX" = yes; then
18560 if test $with_gnu_ld = no; then
18563 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18566 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18569 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'
18574 # FIXME: insert proper C++ library support
18581 hardcode_direct_CXX=no
18582 hardcode_shlibpath_var_CXX=no
18583 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18584 export_dynamic_flag_spec_CXX='${wl}-E'
18585 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18586 # Instead, shared libraries are loaded at an image base (0x10000000 by
18587 # default) and relocated if they conflict, which is a slow very memory
18588 # consuming and fragmenting process. To avoid this, we pick a random,
18589 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18590 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18591 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'
18592 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'
18595 case $cc_basename in
18598 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'
18600 # Archives containing C++ object files must be created using
18601 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18602 # necessary to make sure instantiated templates are included
18604 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18607 if test "$GXX" = yes; then
18608 if test "$with_gnu_ld" = no; then
18609 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'
18611 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'
18614 link_all_deplibs_CXX=yes
18617 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18618 hardcode_libdir_separator_CXX=:
18621 case $cc_basename in
18623 # Kuck and Associates, Inc. (KAI) C++ Compiler
18625 # KCC will only create a shared library if the output file
18626 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18627 # to its proper name (with version) after linking.
18628 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'
18629 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'
18630 # Commands to make compiler produce verbose output that lists
18631 # what "hidden" libraries, object files and flags are used when
18632 # linking a shared library.
18634 # There doesn't appear to be a way to prevent this compiler from
18635 # explicitly linking system object files so we need to strip them
18636 # from the output so that they don't get included in the library
18638 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'
18640 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18641 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18643 # Archives containing C++ object files must be created using
18644 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18645 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18650 # version 8.0 and above of icpc choke on multiply defined symbols
18651 # if we add $predep_objects and $postdep_objects, however 7.1 and
18652 # earlier do not add the objects themselves.
18653 case `$CC -V 2>&1` in
18655 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18656 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'
18658 *) # Version 8.0 or newer
18661 ia64*) tmp_idyn=' -i_dynamic';;
18663 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18664 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'
18667 archive_cmds_need_lc_CXX=no
18668 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18669 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18670 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18673 # Portland Group C++ compiler
18674 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18675 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'
18677 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18679 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'
18683 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18684 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'
18686 runpath_var=LD_RUN_PATH
18687 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18688 hardcode_libdir_separator_CXX=:
18690 # Commands to make compiler produce verbose output that lists
18691 # what "hidden" libraries, object files and flags are used when
18692 # linking a shared library.
18694 # There doesn't appear to be a way to prevent this compiler from
18695 # explicitly linking system object files so we need to strip them
18696 # from the output so that they don't get included in the library
18698 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'
18703 # FIXME: insert proper C++ library support
18707 # FIXME: insert proper C++ library support
18711 case $cc_basename in
18713 # FIXME: insert proper C++ library support
18717 # FIXME: insert proper C++ library support
18723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18724 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18726 hardcode_libdir_flag_spec_CXX='-R$libdir'
18727 hardcode_direct_CXX=yes
18728 hardcode_shlibpath_var_CXX=no
18730 # Workaround some broken pre-1.5 toolchains
18731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18734 # C++ shared libraries are fairly broken
18738 hardcode_direct_CXX=yes
18739 hardcode_shlibpath_var_CXX=no
18740 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18743 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18744 export_dynamic_flag_spec_CXX='${wl}-E'
18745 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18747 output_verbose_link_cmd='echo'
18750 case $cc_basename in
18752 # Kuck and Associates, Inc. (KAI) C++ Compiler
18754 # KCC will only create a shared library if the output file
18755 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18756 # to its proper name (with version) after linking.
18757 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'
18759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18760 hardcode_libdir_separator_CXX=:
18762 # Archives containing C++ object files must be created using
18763 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18764 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18768 # Rational C++ 2.4.1
18769 # FIXME: insert proper C++ library support
18773 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18774 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'
18776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18777 hardcode_libdir_separator_CXX=:
18779 # Commands to make compiler produce verbose output that lists
18780 # what "hidden" libraries, object files and flags are used when
18781 # linking a shared library.
18783 # There doesn't appear to be a way to prevent this compiler from
18784 # explicitly linking system object files so we need to strip them
18785 # from the output so that they don't get included in the library
18787 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'
18790 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18791 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18792 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'
18794 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18795 hardcode_libdir_separator_CXX=:
18797 # Commands to make compiler produce verbose output that lists
18798 # what "hidden" libraries, object files and flags are used when
18799 # linking a shared library.
18800 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18803 # FIXME: insert proper C++ library support
18810 case $cc_basename in
18812 # Kuck and Associates, Inc. (KAI) C++ Compiler
18814 # KCC will only create a shared library if the output file
18815 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18816 # to its proper name (with version) after linking.
18817 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'
18819 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18820 hardcode_libdir_separator_CXX=:
18822 # Archives containing C++ object files must be created using
18823 # the KAI C++ compiler.
18824 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18827 # Rational C++ 2.4.1
18828 # FIXME: insert proper C++ library support
18832 allow_undefined_flag_CXX=' -expect_unresolved \*'
18833 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'
18834 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18835 echo "-hidden">> $lib.exp~
18836 $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~
18839 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18840 hardcode_libdir_separator_CXX=:
18842 # Commands to make compiler produce verbose output that lists
18843 # what "hidden" libraries, object files and flags are used when
18844 # linking a shared library.
18846 # There doesn't appear to be a way to prevent this compiler from
18847 # explicitly linking system object files so we need to strip them
18848 # from the output so that they don't get included in the library
18850 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'
18853 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18854 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18855 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'
18857 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18858 hardcode_libdir_separator_CXX=:
18860 # Commands to make compiler produce verbose output that lists
18861 # what "hidden" libraries, object files and flags are used when
18862 # linking a shared library.
18863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18866 # FIXME: insert proper C++ library support
18873 # FIXME: insert proper C++ library support
18877 case $cc_basename in
18880 # FIXME: insert proper C++ library support
18885 # FIXME: insert proper C++ library support
18889 # FIXME: insert proper C++ library support
18895 case $cc_basename in
18897 # Sun C++ 4.2, 5.x and Centerline C++
18898 archive_cmds_need_lc_CXX=yes
18899 no_undefined_flag_CXX=' -zdefs'
18900 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18901 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18902 $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'
18904 hardcode_libdir_flag_spec_CXX='-R$libdir'
18905 hardcode_shlibpath_var_CXX=no
18907 solaris2.[0-5] | solaris2.[0-5].*) ;;
18909 # The C++ compiler is used as linker so we must use $wl
18910 # flag to pass the commands to the underlying system
18911 # linker. We must also pass each convience library through
18912 # to the system linker between allextract/defaultextract.
18913 # The C++ compiler will combine linker options so we
18914 # cannot just pass the convience library names through
18916 # Supported since Solaris 2.6 (maybe 2.5.1?)
18917 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'
18920 link_all_deplibs_CXX=yes
18922 output_verbose_link_cmd='echo'
18924 # Archives containing C++ object files must be created using
18925 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18926 # necessary to make sure instantiated templates are included
18928 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18931 # Green Hills C++ Compiler
18932 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18934 # The C++ compiler must be used to create the archive.
18935 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18938 # GNU C++ compiler with Solaris linker
18939 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18940 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18941 if $CC --version | grep -v '^2\.7' > /dev/null; then
18942 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18943 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18944 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18946 # Commands to make compiler produce verbose output that lists
18947 # what "hidden" libraries, object files and flags are used when
18948 # linking a shared library.
18949 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18951 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18953 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18954 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18955 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18957 # Commands to make compiler produce verbose output that lists
18958 # what "hidden" libraries, object files and flags are used when
18959 # linking a shared library.
18960 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18963 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18968 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18969 no_undefined_flag_CXX='${wl}-z,text'
18970 archive_cmds_need_lc_CXX=no
18971 hardcode_shlibpath_var_CXX=no
18972 runpath_var='LD_RUN_PATH'
18974 case $cc_basename in
18976 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18977 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18980 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18981 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18985 sysv5* | sco3.2v5* | sco5v6*)
18986 # Note: We can NOT use -z defs as we might desire, because we do not
18987 # link with -lc, and that would cause any symbols used from libc to
18988 # always be unresolved, which means just about no library would
18989 # ever link correctly. If we're not using GNU ld we use -z text
18990 # though, which does catch some bad symbols but isn't as heavy-handed
18992 # For security reasons, it is highly recommended that you always
18993 # use absolute paths for naming shared libraries, and exclude the
18994 # DT_RUNPATH tag from executables and libraries. But doing so
18995 # requires that you compile everything twice, which is a pain.
18996 # So that behaviour is only enabled if SCOABSPATH is set to a
18997 # non-empty value in the environment. Most likely only useful for
18998 # creating official distributions of packages.
18999 # This is a hack until libtool officially supports absolute path
19000 # names for shared libraries.
19001 no_undefined_flag_CXX='${wl}-z,text'
19002 allow_undefined_flag_CXX='${wl}-z,nodefs'
19003 archive_cmds_need_lc_CXX=no
19004 hardcode_shlibpath_var_CXX=no
19005 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19006 hardcode_libdir_separator_CXX=':'
19007 link_all_deplibs_CXX=yes
19008 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19009 runpath_var='LD_RUN_PATH'
19011 case $cc_basename in
19013 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19014 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19017 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19018 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19023 case $cc_basename in
19025 # NonStop-UX NCC 3.20
19026 # FIXME: insert proper C++ library support
19030 # FIXME: insert proper C++ library support
19036 # FIXME: insert proper C++ library support
19040 # FIXME: insert proper C++ library support
19044 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19045 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19046 test "$ld_shlibs_CXX" = no && can_build_shared=no
19052 cat > conftest.$ac_ext <<EOF
19056 Foo (void) { a = 0; }
19062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19063 (eval $ac_compile) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; then
19067 # Parse the compiler output and extract the necessary
19068 # objects, libraries and library flags.
19070 # Sentinel used to keep track of whether or not we are before
19071 # the conftest object file.
19072 pre_test_object_deps_done=no
19074 # The `*' in the case matches for architectures that use `case' in
19075 # $output_verbose_cmd can trigger glob expansion during the loop
19076 # eval without this substitution.
19077 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19079 for p in `eval $output_verbose_link_cmd`; do
19083 # Some compilers place space between "-{L,R}" and the path.
19084 # Remove the space.
19085 if test $p = "-L" \
19086 || test $p = "-R"; then
19093 if test "$pre_test_object_deps_done" = no; then
19096 # Internal compiler library paths should come after those
19097 # provided the user. The postdeps already come after the
19098 # user supplied libs so there is no need to process them.
19099 if test -z "$compiler_lib_search_path_CXX"; then
19100 compiler_lib_search_path_CXX="${prev}${p}"
19102 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19105 # The "-l" case would never come before the object being
19106 # linked, so don't bother handling this case.
19109 if test -z "$postdeps_CXX"; then
19110 postdeps_CXX="${prev}${p}"
19112 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19118 # This assumes that the test object file only shows up
19119 # once in the compiler output.
19120 if test "$p" = "conftest.$objext"; then
19121 pre_test_object_deps_done=yes
19125 if test "$pre_test_object_deps_done" = no; then
19126 if test -z "$predep_objects_CXX"; then
19127 predep_objects_CXX="$p"
19129 predep_objects_CXX="$predep_objects_CXX $p"
19132 if test -z "$postdep_objects_CXX"; then
19133 postdep_objects_CXX="$p"
19135 postdep_objects_CXX="$postdep_objects_CXX $p"
19140 *) ;; # Ignore the rest.
19148 echo "libtool.m4: error: problem compiling CXX test program"
19151 $rm -f confest.$objext
19153 # PORTME: override above test on systems where it is broken
19156 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19157 # hack all around it, let's just trust "g++" to DTRT.
19158 predep_objects_CXX=
19159 postdep_objects_CXX=
19164 case $cc_basename in
19166 # Adding this requires a known-good setup of shared libraries for
19167 # Sun compiler versions before 5.6, else PIC objects from an old
19168 # archive will be linked into the output, leading to subtle bugs.
19169 postdeps_CXX='-lCstd -lCrun'
19176 case " $postdeps_CXX " in
19177 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19180 lt_prog_compiler_wl_CXX=
19181 lt_prog_compiler_pic_CXX=
19182 lt_prog_compiler_static_CXX=
19184 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19185 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19187 # C++ specific cases for pic, static, wl, etc.
19188 if test "$GXX" = yes; then
19189 lt_prog_compiler_wl_CXX='-Wl,'
19190 lt_prog_compiler_static_CXX='-static'
19194 # All AIX code is PIC.
19195 if test "$host_cpu" = ia64; then
19196 # AIX 5 now supports IA64 processor
19197 lt_prog_compiler_static_CXX='-Bstatic'
19201 # FIXME: we need at least 68020 code to build shared libraries, but
19202 # adding the `-m68020' flag to GCC prevents building anything better,
19204 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19206 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19207 # PIC is the default for these OSes.
19209 mingw* | os2* | pw32*)
19210 # This hack is so that the source file can tell whether it is being
19211 # built for inclusion in a dll (and should export symbols for example).
19212 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19214 darwin* | rhapsody*)
19215 # PIC is the default on this platform
19216 # Common symbols not allowed in MH_DYLIB files
19217 lt_prog_compiler_pic_CXX='-fno-common'
19220 # DJGPP does not support shared libraries at all
19221 lt_prog_compiler_pic_CXX=
19224 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19225 # Instead, we relocate shared libraries at runtime.
19228 if test -d /usr/nec; then
19229 lt_prog_compiler_pic_CXX=-Kconform_pic
19233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19234 # not for PA HP-UX.
19239 lt_prog_compiler_pic_CXX='-fPIC'
19244 lt_prog_compiler_pic_CXX='-fPIC'
19250 # All AIX code is PIC.
19251 if test "$host_cpu" = ia64; then
19252 # AIX 5 now supports IA64 processor
19253 lt_prog_compiler_static_CXX='-Bstatic'
19255 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19259 case $cc_basename in
19261 # Green Hills C++ Compiler
19262 # _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"
19267 # PIC is the default on this platform
19268 # Common symbols not allowed in MH_DYLIB files
19269 case $cc_basename in
19271 lt_prog_compiler_pic_CXX='-qnocommon'
19272 lt_prog_compiler_wl_CXX='-Wl,'
19277 case $cc_basename in
19279 lt_prog_compiler_pic_CXX='-KPIC'
19282 # Green Hills C++ Compiler
19283 lt_prog_compiler_pic_CXX='-pic'
19289 freebsd* | kfreebsd*-gnu | dragonfly*)
19290 # FreeBSD uses GNU C++
19292 hpux9* | hpux10* | hpux11*)
19293 case $cc_basename in
19295 lt_prog_compiler_wl_CXX='-Wl,'
19296 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19297 if test "$host_cpu" != ia64; then
19298 lt_prog_compiler_pic_CXX='+Z'
19302 lt_prog_compiler_wl_CXX='-Wl,'
19303 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19309 lt_prog_compiler_pic_CXX='+Z'
19318 # This is c89, which is MS Visual C++ (no shared libs)
19319 # Anyone wants to do a port?
19321 irix5* | irix6* | nonstopux*)
19322 case $cc_basename in
19324 lt_prog_compiler_wl_CXX='-Wl,'
19325 lt_prog_compiler_static_CXX='-non_shared'
19326 # CC pic flag -KPIC is the default.
19333 case $cc_basename in
19336 lt_prog_compiler_wl_CXX='--backend -Wl,'
19337 lt_prog_compiler_pic_CXX='-fPIC'
19341 lt_prog_compiler_wl_CXX='-Wl,'
19342 lt_prog_compiler_pic_CXX='-KPIC'
19343 lt_prog_compiler_static_CXX='-static'
19346 # Portland Group C++ compiler.
19347 lt_prog_compiler_wl_CXX='-Wl,'
19348 lt_prog_compiler_pic_CXX='-fpic'
19349 lt_prog_compiler_static_CXX='-Bstatic'
19353 # Make sure the PIC flag is empty. It appears that all Alpha
19354 # Linux and Compaq Tru64 Unix objects are PIC.
19355 lt_prog_compiler_pic_CXX=
19356 lt_prog_compiler_static_CXX='-non_shared'
19367 case $cc_basename in
19369 lt_prog_compiler_pic_CXX='-W c,exportall'
19377 osf3* | osf4* | osf5*)
19378 case $cc_basename in
19380 lt_prog_compiler_wl_CXX='--backend -Wl,'
19383 # Rational C++ 2.4.1
19384 lt_prog_compiler_pic_CXX='-pic'
19387 # Digital/Compaq C++
19388 lt_prog_compiler_wl_CXX='-Wl,'
19389 # Make sure the PIC flag is empty. It appears that all Alpha
19390 # Linux and Compaq Tru64 Unix objects are PIC.
19391 lt_prog_compiler_pic_CXX=
19392 lt_prog_compiler_static_CXX='-non_shared'
19401 case $cc_basename in
19403 # Sun C++ 4.2, 5.x and Centerline C++
19404 lt_prog_compiler_pic_CXX='-KPIC'
19405 lt_prog_compiler_static_CXX='-Bstatic'
19406 lt_prog_compiler_wl_CXX='-Qoption ld '
19409 # Green Hills C++ Compiler
19410 lt_prog_compiler_pic_CXX='-PIC'
19417 case $cc_basename in
19420 lt_prog_compiler_pic_CXX='-pic'
19421 lt_prog_compiler_static_CXX='-Bstatic'
19425 lt_prog_compiler_pic_CXX='-pic'
19432 case $cc_basename in
19434 # NonStop-UX NCC 3.20
19435 lt_prog_compiler_pic_CXX='-KPIC'
19441 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19442 case $cc_basename in
19444 lt_prog_compiler_wl_CXX='-Wl,'
19445 lt_prog_compiler_pic_CXX='-KPIC'
19446 lt_prog_compiler_static_CXX='-Bstatic'
19453 lt_prog_compiler_can_build_shared_CXX=no
19458 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19459 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19462 # Check to make sure the PIC flag actually works.
19464 if test -n "$lt_prog_compiler_pic_CXX"; then
19466 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19467 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19468 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 lt_prog_compiler_pic_works_CXX=no
19472 ac_outfile=conftest.$ac_objext
19473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19474 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19475 # Insert the option either (1) after the last *FLAGS variable, or
19476 # (2) before a word containing "conftest.", or (3) at the end.
19477 # Note that $ac_compile itself does not contain backslashes and begins
19478 # with a dollar sign (not a hyphen), so the echo should work correctly.
19479 # The option is referenced via a variable to avoid confusing sed.
19480 lt_compile=`echo "$ac_compile" | $SED \
19481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19483 -e 's:$: $lt_compiler_flag:'`
19484 (eval echo "\"\$as_me:19484: $lt_compile\"" >&5)
19485 (eval "$lt_compile" 2>conftest.err)
19487 cat conftest.err >&5
19488 echo "$as_me:19488: \$? = $ac_status" >&5
19489 if (exit $ac_status) && test -s "$ac_outfile"; then
19490 # The compiler can only warn and ignore the option if not recognized
19491 # So say no if there are warnings other than the usual output.
19492 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19495 lt_prog_compiler_pic_works_CXX=yes
19501 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19502 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19504 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19505 case $lt_prog_compiler_pic_CXX in
19507 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19510 lt_prog_compiler_pic_CXX=
19511 lt_prog_compiler_can_build_shared_CXX=no
19516 # For platforms which do not support PIC, -DPIC is meaningless:
19518 lt_prog_compiler_pic_CXX=
19521 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19526 # Check to make sure the static flag actually works.
19528 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19529 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19530 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19531 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 lt_prog_compiler_static_works_CXX=no
19535 save_LDFLAGS="$LDFLAGS"
19536 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19537 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19538 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19539 # The linker can only warn and ignore the option if not recognized
19540 # So say no if there are warnings
19541 if test -s conftest.err; then
19542 # Append any errors to the config.log.
19543 cat conftest.err 1>&5
19544 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19546 if diff conftest.exp conftest.er2 >/dev/null; then
19547 lt_prog_compiler_static_works_CXX=yes
19550 lt_prog_compiler_static_works_CXX=yes
19554 LDFLAGS="$save_LDFLAGS"
19557 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19558 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19560 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19563 lt_prog_compiler_static_CXX=
19567 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19568 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19569 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 lt_cv_prog_compiler_c_o_CXX=no
19573 $rm -r conftest 2>/dev/null
19577 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19579 lt_compiler_flag="-o out/conftest2.$ac_objext"
19580 # Insert the option either (1) after the last *FLAGS variable, or
19581 # (2) before a word containing "conftest.", or (3) at the end.
19582 # Note that $ac_compile itself does not contain backslashes and begins
19583 # with a dollar sign (not a hyphen), so the echo should work correctly.
19584 lt_compile=`echo "$ac_compile" | $SED \
19585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19587 -e 's:$: $lt_compiler_flag:'`
19588 (eval echo "\"\$as_me:19588: $lt_compile\"" >&5)
19589 (eval "$lt_compile" 2>out/conftest.err)
19591 cat out/conftest.err >&5
19592 echo "$as_me:19592: \$? = $ac_status" >&5
19593 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19595 # The compiler can only warn and ignore the option if not recognized
19596 # So say no if there are warnings
19597 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19598 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19599 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19600 lt_cv_prog_compiler_c_o_CXX=yes
19605 # SGI C++ compiler will create directory out/ii_files/ for
19606 # template instantiation
19607 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19608 $rm out/* && rmdir out
19614 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19615 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19618 hard_links="nottested"
19619 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19620 # do not overwrite the value of need_locks provided by the user
19621 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19622 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19627 ln conftest.a conftest.b 2>&5 || hard_links=no
19628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19629 { echo "$as_me:$LINENO: result: $hard_links" >&5
19630 echo "${ECHO_T}$hard_links" >&6; }
19631 if test "$hard_links" = no; then
19632 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19633 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19640 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19641 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19643 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19646 # If we're using GNU nm, then we don't want the "-C" option.
19647 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19648 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19649 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'
19651 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'
19655 export_symbols_cmds_CXX="$ltdll_cmds"
19658 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'
19661 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19665 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19666 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19667 test "$ld_shlibs_CXX" = no && can_build_shared=no
19670 # Do we need to explicitly link libc?
19672 case "x$archive_cmds_need_lc_CXX" in
19674 # Assume -lc should be added
19675 archive_cmds_need_lc_CXX=yes
19677 if test "$enable_shared" = yes && test "$GCC" = yes; then
19678 case $archive_cmds_CXX in
19680 # FIXME: we may have to deal with multi-command sequences.
19683 # Test whether the compiler implicitly links with -lc since on some
19684 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19685 # to ld, don't add -lc before -lgcc.
19686 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19687 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19689 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19692 (eval $ac_compile) 2>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } 2>conftest.err; then
19698 libobjs=conftest.$ac_objext
19700 wl=$lt_prog_compiler_wl_CXX
19701 pic_flag=$lt_prog_compiler_pic_CXX
19707 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19708 allow_undefined_flag_CXX=
19709 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19710 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }
19715 archive_cmds_need_lc_CXX=no
19717 archive_cmds_need_lc_CXX=yes
19719 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19721 cat conftest.err 1>&5
19724 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19725 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19732 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19733 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19734 library_names_spec=
19735 libname_spec='lib$name'
19739 postuninstall_cmds=
19743 shlibpath_overrides_runpath=unknown
19745 dynamic_linker="$host_os ld.so"
19746 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19747 if test "$GCC" = yes; then
19748 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19749 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19750 # if the path contains ";" then we assume it to be the separator
19751 # otherwise default to the standard path separator (i.e. ":") - it is
19752 # assumed that no part of a normal pathname contains ";" but that should
19753 # okay in the real world where ";" in dirpaths is itself problematic.
19754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19759 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19761 need_lib_prefix=unknown
19762 hardcode_into_libs=no
19764 # when you set need_version to no, make sure it does not cause -set_version
19765 # flags to be left without arguments
19766 need_version=unknown
19771 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19772 shlibpath_var=LIBPATH
19774 # AIX 3 has no versioning support, so we append a major version to the name.
19775 soname_spec='${libname}${release}${shared_ext}$major'
19782 hardcode_into_libs=yes
19783 if test "$host_cpu" = ia64; then
19784 # AIX 5 supports IA64
19785 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19786 shlibpath_var=LD_LIBRARY_PATH
19788 # With GCC up to 2.95.x, collect2 would create an import file
19789 # for dependence libraries. The import file would start with
19790 # the line `#! .'. This would cause the generated library to
19791 # depend on `.', always an invalid library. This was fixed in
19792 # development snapshots of GCC prior to 3.0.
19794 aix4 | aix4.[01] | aix4.[01].*)
19795 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19797 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19800 can_build_shared=no
19804 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19805 # soname into executable. Probably we can add versioning support to
19806 # collect2, so additional links can be useful in future.
19807 if test "$aix_use_runtimelinking" = yes; then
19808 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19809 # instead of lib<name>.a to let people know that these are not
19810 # typical AIX shared libraries.
19811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19813 # We preserve .a as extension for shared libraries through AIX4.2
19814 # and later when we are not doing run time linking.
19815 library_names_spec='${libname}${release}.a $libname.a'
19816 soname_spec='${libname}${release}${shared_ext}$major'
19818 shlibpath_var=LIBPATH
19823 library_names_spec='$libname.ixlibrary $libname.a'
19824 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19825 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'
19829 library_names_spec='${libname}${shared_ext}'
19830 dynamic_linker="$host_os ld.so"
19831 shlibpath_var=LIBRARY_PATH
19837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19838 soname_spec='${libname}${release}${shared_ext}$major'
19839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19840 shlibpath_var=LD_LIBRARY_PATH
19841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19843 # the default ld.so.conf also contains /usr/contrib/lib and
19844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19845 # libtool to hard-code these into programs
19848 cygwin* | mingw* | pw32*)
19849 version_type=windows
19854 case $GCC,$host_os in
19855 yes,cygwin* | yes,mingw* | yes,pw32*)
19856 library_names_spec='$libname.dll.a'
19857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19858 postinstall_cmds='base_file=`basename \${file}`~
19859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19860 dldir=$destdir/`dirname \$dlpath`~
19861 test -d \$dldir || mkdir -p \$dldir~
19862 $install_prog $dir/$dlname \$dldir/$dlname~
19863 chmod a+x \$dldir/$dlname'
19864 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19865 dlpath=$dir/\$dldll~
19867 shlibpath_overrides_runpath=yes
19871 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19872 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19873 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19876 # MinGW DLLs use traditional 'lib' prefix
19877 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19878 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19879 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19880 # It is most probably a Windows format PATH printed by
19881 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19882 # path with ; separators, and with drive letters. We can handle the
19883 # drive letters (cygwin fileutils understands them), so leave them,
19884 # especially as we might pass files found there to a mingw objdump,
19885 # which wouldn't understand a cygwinified path. Ahh.
19886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19892 # pw32 DLLs use 'pw' prefix rather than 'lib'
19893 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19899 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19902 dynamic_linker='Win32 ld.exe'
19903 # FIXME: first we should search . and the directory the executable is in
19907 darwin* | rhapsody*)
19908 dynamic_linker="$host_os dyld"
19909 version_type=darwin
19912 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19913 soname_spec='${libname}${release}${major}$shared_ext'
19914 shlibpath_overrides_runpath=yes
19915 shlibpath_var=DYLD_LIBRARY_PATH
19916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19917 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19918 if test "$GCC" = yes; then
19919 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"`
19921 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19923 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19931 soname_spec='${libname}${release}${shared_ext}$major'
19932 shlibpath_var=LD_LIBRARY_PATH
19943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19944 soname_spec='${libname}${release}${shared_ext}$major'
19945 shlibpath_var=LD_LIBRARY_PATH
19946 shlibpath_overrides_runpath=no
19947 hardcode_into_libs=yes
19948 dynamic_linker='GNU ld.so'
19951 freebsd* | dragonfly*)
19952 # DragonFly does not have aout. When/if they implement a new
19953 # versioning mechanism, adjust this.
19954 if test -x /usr/bin/objformat; then
19955 objformat=`/usr/bin/objformat`
19958 freebsd[123]*) objformat=aout ;;
19959 *) objformat=elf ;;
19962 version_type=freebsd-$objformat
19963 case $version_type in
19965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19974 shlibpath_var=LD_LIBRARY_PATH
19977 shlibpath_overrides_runpath=yes
19979 freebsd3.[01]* | freebsdelf3.[01]*)
19980 shlibpath_overrides_runpath=yes
19981 hardcode_into_libs=yes
19983 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19984 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19985 shlibpath_overrides_runpath=no
19986 hardcode_into_libs=yes
19988 freebsd*) # from 4.6 on
19989 shlibpath_overrides_runpath=yes
19990 hardcode_into_libs=yes
19999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20000 soname_spec='${libname}${release}${shared_ext}$major'
20001 shlibpath_var=LD_LIBRARY_PATH
20002 hardcode_into_libs=yes
20005 hpux9* | hpux10* | hpux11*)
20006 # Give a soname corresponding to the major version so that dld.sl refuses to
20007 # link against other versions.
20014 hardcode_into_libs=yes
20015 dynamic_linker="$host_os dld.so"
20016 shlibpath_var=LD_LIBRARY_PATH
20017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20019 soname_spec='${libname}${release}${shared_ext}$major'
20020 if test "X$HPUX_IA64_MODE" = X32; then
20021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20023 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20029 hardcode_into_libs=yes
20030 dynamic_linker="$host_os dld.sl"
20031 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20034 soname_spec='${libname}${release}${shared_ext}$major'
20035 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20040 dynamic_linker="$host_os dld.sl"
20041 shlibpath_var=SHLIB_PATH
20042 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20044 soname_spec='${libname}${release}${shared_ext}$major'
20047 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20048 postinstall_cmds='chmod 555 $lib'
20055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20056 soname_spec='${libname}${release}${shared_ext}$major'
20057 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20058 shlibpath_var=LD_LIBRARY_PATH
20059 shlibpath_overrides_runpath=no
20060 hardcode_into_libs=yes
20063 irix5* | irix6* | nonstopux*)
20065 nonstopux*) version_type=nonstopux ;;
20067 if test "$lt_cv_prog_gnu_ld" = yes; then
20075 soname_spec='${libname}${release}${shared_ext}$major'
20076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20078 irix5* | nonstopux*)
20079 libsuff= shlibsuff=
20082 case $LD in # libtool.m4 will add one of these switches to LD
20083 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20084 libsuff= shlibsuff= libmagic=32-bit;;
20085 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20086 libsuff=32 shlibsuff=N32 libmagic=N32;;
20087 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20088 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20089 *) libsuff= shlibsuff= libmagic=never-match;;
20093 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20094 shlibpath_overrides_runpath=no
20095 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20096 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20097 hardcode_into_libs=yes
20100 # No shared lib support for Linux oldld, aout, or coff.
20101 linux*oldld* | linux*aout* | linux*coff*)
20105 # This must be Linux ELF.
20110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20111 soname_spec='${libname}${release}${shared_ext}$major'
20112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20113 shlibpath_var=LD_LIBRARY_PATH
20114 shlibpath_overrides_runpath=no
20115 # This implies no fast_install, which is unacceptable.
20116 # Some rework will be needed to allow for fast_install
20117 # before this can be enabled.
20118 hardcode_into_libs=yes
20120 # Append ld.so.conf contents to the search path
20121 if test -f /etc/ld.so.conf; then
20122 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' ' '`
20123 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20126 # We used to test for /lib/ld.so.1 and disable shared libraries on
20127 # powerpc, because MkLinux only supported shared libraries with the
20128 # GNU dynamic linker. Since this was broken with cross compilers,
20129 # most powerpc-linux boxes support dynamic linking these days and
20130 # people can always --disable-shared, the test was removed, and we
20131 # assume the GNU/Linux dynamic linker is in use.
20132 dynamic_linker='GNU/Linux ld.so'
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20140 soname_spec='${libname}${release}${shared_ext}$major'
20141 shlibpath_var=LD_LIBRARY_PATH
20142 shlibpath_overrides_runpath=no
20143 hardcode_into_libs=yes
20144 dynamic_linker='GNU ld.so'
20151 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20154 dynamic_linker='NetBSD (a.out) ld.so'
20156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20157 soname_spec='${libname}${release}${shared_ext}$major'
20158 dynamic_linker='NetBSD ld.elf_so'
20160 shlibpath_var=LD_LIBRARY_PATH
20161 shlibpath_overrides_runpath=yes
20162 hardcode_into_libs=yes
20167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20168 shlibpath_var=LD_LIBRARY_PATH
20169 shlibpath_overrides_runpath=yes
20176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20177 soname_spec='${libname}${release}${shared_ext}$major'
20178 shlibpath_var=LD_LIBRARY_PATH
20179 shlibpath_overrides_runpath=yes
20184 sys_lib_dlsearch_path_spec="/usr/lib"
20186 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20188 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20189 *) need_version=no ;;
20191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20193 shlibpath_var=LD_LIBRARY_PATH
20194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20196 openbsd2.[89] | openbsd2.[89].*)
20197 shlibpath_overrides_runpath=no
20200 shlibpath_overrides_runpath=yes
20204 shlibpath_overrides_runpath=yes
20209 libname_spec='$name'
20212 library_names_spec='$libname${shared_ext} $libname.a'
20213 dynamic_linker='OS/2 ld.exe'
20214 shlibpath_var=LIBPATH
20217 osf3* | osf4* | osf5*)
20221 soname_spec='${libname}${release}${shared_ext}$major'
20222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20223 shlibpath_var=LD_LIBRARY_PATH
20224 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20225 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20233 soname_spec='${libname}${release}${shared_ext}$major'
20234 shlibpath_var=LD_LIBRARY_PATH
20235 shlibpath_overrides_runpath=yes
20236 hardcode_into_libs=yes
20237 # ldd complains unless libraries are executable
20238 postinstall_cmds='chmod +x $lib'
20243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20244 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20245 shlibpath_var=LD_LIBRARY_PATH
20246 shlibpath_overrides_runpath=yes
20247 if test "$with_gnu_ld" = yes; then
20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20256 soname_spec='${libname}${release}${shared_ext}$major'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 case $host_vendor in
20260 shlibpath_overrides_runpath=no
20262 export_dynamic_flag_spec='${wl}-Blargedynsym'
20263 runpath_var=LD_RUN_PATH
20271 shlibpath_overrides_runpath=no
20272 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20278 if test -d /usr/nec ;then
20280 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20281 soname_spec='$libname${shared_ext}.$major'
20282 shlibpath_var=LD_LIBRARY_PATH
20286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20287 version_type=freebsd-elf
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20291 soname_spec='${libname}${release}${shared_ext}$major'
20292 shlibpath_var=LD_LIBRARY_PATH
20293 hardcode_into_libs=yes
20294 if test "$with_gnu_ld" = yes; then
20295 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20296 shlibpath_overrides_runpath=no
20298 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20299 shlibpath_overrides_runpath=yes
20302 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20306 sys_lib_dlsearch_path_spec='/usr/lib'
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312 soname_spec='${libname}${release}${shared_ext}$major'
20313 shlibpath_var=LD_LIBRARY_PATH
20320 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20321 echo "${ECHO_T}$dynamic_linker" >&6; }
20322 test "$dynamic_linker" = no && can_build_shared=no
20324 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20325 if test "$GCC" = yes; then
20326 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20329 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20330 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20331 hardcode_action_CXX=
20332 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20333 test -n "$runpath_var_CXX" || \
20334 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20336 # We can hardcode non-existant directories.
20337 if test "$hardcode_direct_CXX" != no &&
20338 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20339 # have to relink, otherwise we might link with an installed library
20340 # when we should be linking with a yet-to-be-installed one
20341 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20342 test "$hardcode_minus_L_CXX" != no; then
20343 # Linking always hardcodes the temporary library directory.
20344 hardcode_action_CXX=relink
20346 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20347 hardcode_action_CXX=immediate
20350 # We cannot hardcode anything, or else we can only hardcode existing
20352 hardcode_action_CXX=unsupported
20354 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20355 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20357 if test "$hardcode_action_CXX" = relink; then
20358 # Fast installation is not supported
20359 enable_fast_install=no
20360 elif test "$shlibpath_overrides_runpath" = yes ||
20361 test "$enable_shared" = no; then
20362 # Fast installation is not necessary
20363 enable_fast_install=needless
20367 # The else clause should only fire when bootstrapping the
20368 # libtool distribution, otherwise you forgot to ship ltmain.sh
20369 # with your package, and you will get complaints that there are
20370 # no rules to generate ltmain.sh.
20371 if test -f "$ltmain"; then
20372 # See if we are running on zsh, and set the options which allow our commands through
20373 # without removal of \ escapes.
20374 if test -n "${ZSH_VERSION+set}" ; then
20375 setopt NO_GLOB_SUBST
20377 # Now quote all the things that may contain metacharacters while being
20378 # careful not to overquote the AC_SUBSTed values. We take copies of the
20379 # variables and quote the copies for generation of the libtool script.
20380 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20382 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20383 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20384 deplibs_check_method reload_flag reload_cmds need_locks \
20385 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20386 lt_cv_sys_global_symbol_to_c_name_address \
20387 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20388 old_postinstall_cmds old_postuninstall_cmds \
20392 lt_prog_compiler_wl_CXX \
20393 lt_prog_compiler_pic_CXX \
20394 lt_prog_compiler_static_CXX \
20395 lt_prog_compiler_no_builtin_flag_CXX \
20396 export_dynamic_flag_spec_CXX \
20397 thread_safe_flag_spec_CXX \
20398 whole_archive_flag_spec_CXX \
20399 enable_shared_with_static_runtimes_CXX \
20400 old_archive_cmds_CXX \
20401 old_archive_from_new_cmds_CXX \
20402 predep_objects_CXX \
20403 postdep_objects_CXX \
20406 compiler_lib_search_path_CXX \
20408 archive_expsym_cmds_CXX \
20409 postinstall_cmds_CXX \
20410 postuninstall_cmds_CXX \
20411 old_archive_from_expsyms_cmds_CXX \
20412 allow_undefined_flag_CXX \
20413 no_undefined_flag_CXX \
20414 export_symbols_cmds_CXX \
20415 hardcode_libdir_flag_spec_CXX \
20416 hardcode_libdir_flag_spec_ld_CXX \
20417 hardcode_libdir_separator_CXX \
20418 hardcode_automatic_CXX \
20420 module_expsym_cmds_CXX \
20421 lt_cv_prog_compiler_c_o_CXX \
20422 exclude_expsyms_CXX \
20423 include_expsyms_CXX; do
20426 old_archive_cmds_CXX | \
20427 old_archive_from_new_cmds_CXX | \
20428 archive_cmds_CXX | \
20429 archive_expsym_cmds_CXX | \
20430 module_cmds_CXX | \
20431 module_expsym_cmds_CXX | \
20432 old_archive_from_expsyms_cmds_CXX | \
20433 export_symbols_cmds_CXX | \
20434 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20435 postinstall_cmds | postuninstall_cmds | \
20436 old_postinstall_cmds | old_postuninstall_cmds | \
20437 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20438 # Double-quote double-evaled strings.
20439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20442 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20448 *'\$0 --fallback-echo"')
20449 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20455 cat <<__EOF__ >> "$cfgfile"
20456 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20458 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20460 # Shell to use when invoking shell scripts.
20463 # Whether or not to build shared libraries.
20464 build_libtool_libs=$enable_shared
20466 # Whether or not to build static libraries.
20467 build_old_libs=$enable_static
20469 # Whether or not to add -lc for building shared libraries.
20470 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20472 # Whether or not to disallow shared libs when runtime libs are static
20473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20475 # Whether or not to optimize for fast installation.
20476 fast_install=$enable_fast_install
20479 host_alias=$host_alias
20483 # The build system.
20484 build_alias=$build_alias
20488 # An echo program that does not interpret backslashes.
20493 AR_FLAGS=$lt_AR_FLAGS
20498 # LTCC compiler flags.
20499 LTCFLAGS=$lt_LTCFLAGS
20501 # A language-specific compiler.
20502 CC=$lt_compiler_CXX
20504 # Is the compiler the GNU C compiler?
20510 # The linker used to build libraries.
20513 # Whether we need hard or soft links.
20516 # A BSD-compatible nm program.
20519 # A symbol stripping program
20522 # Used to examine libraries when file_magic_cmd begins "file"
20523 MAGIC_CMD=$MAGIC_CMD
20525 # Used on cygwin: DLL creation program.
20528 # Used on cygwin: object dumper.
20531 # Used on cygwin: assembler.
20534 # The name of the directory that contains temporary libtool files.
20537 # How to create reloadable object files.
20538 reload_flag=$lt_reload_flag
20539 reload_cmds=$lt_reload_cmds
20541 # How to pass a linker flag through the compiler.
20542 wl=$lt_lt_prog_compiler_wl_CXX
20544 # Object file suffix (normally "o").
20545 objext="$ac_objext"
20547 # Old archive suffix (normally "a").
20550 # Shared library suffix (normally ".so").
20551 shrext_cmds='$shrext_cmds'
20553 # Executable file suffix (normally "").
20556 # Additional compiler flags for building library objects.
20557 pic_flag=$lt_lt_prog_compiler_pic_CXX
20560 # What is the maximum length of a command?
20561 max_cmd_len=$lt_cv_sys_max_cmd_len
20563 # Does compiler simultaneously support -c and -o options?
20564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20566 # Must we lock files when doing compilation?
20567 need_locks=$lt_need_locks
20569 # Do we need the lib prefix for modules?
20570 need_lib_prefix=$need_lib_prefix
20572 # Do we need a version for libraries?
20573 need_version=$need_version
20575 # Whether dlopen is supported.
20576 dlopen_support=$enable_dlopen
20578 # Whether dlopen of programs is supported.
20579 dlopen_self=$enable_dlopen_self
20581 # Whether dlopen of statically linked programs is supported.
20582 dlopen_self_static=$enable_dlopen_self_static
20584 # Compiler flag to prevent dynamic linking.
20585 link_static_flag=$lt_lt_prog_compiler_static_CXX
20587 # Compiler flag to turn off builtin functions.
20588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20590 # Compiler flag to allow reflexive dlopens.
20591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20593 # Compiler flag to generate shared objects directly from archives.
20594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20596 # Compiler flag to generate thread-safe objects.
20597 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20599 # Library versioning type.
20600 version_type=$version_type
20602 # Format of library name prefix.
20603 libname_spec=$lt_libname_spec
20605 # List of archive names. First name is the real one, the rest are links.
20606 # The last name is the one that the linker finds with -lNAME.
20607 library_names_spec=$lt_library_names_spec
20609 # The coded name of the library, if different from the real name.
20610 soname_spec=$lt_soname_spec
20612 # Commands used to build and install an old-style archive.
20614 old_archive_cmds=$lt_old_archive_cmds_CXX
20615 old_postinstall_cmds=$lt_old_postinstall_cmds
20616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20618 # Create an old-style archive from a shared archive.
20619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20621 # Create a temporary old-style archive to link instead of a shared archive.
20622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20624 # Commands used to build and install a shared archive.
20625 archive_cmds=$lt_archive_cmds_CXX
20626 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20627 postinstall_cmds=$lt_postinstall_cmds
20628 postuninstall_cmds=$lt_postuninstall_cmds
20630 # Commands used to build a loadable module (assumed same as above if empty)
20631 module_cmds=$lt_module_cmds_CXX
20632 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20634 # Commands to strip libraries.
20635 old_striplib=$lt_old_striplib
20636 striplib=$lt_striplib
20638 # Dependencies to place before the objects being linked to create a
20640 predep_objects=$lt_predep_objects_CXX
20642 # Dependencies to place after the objects being linked to create a
20644 postdep_objects=$lt_postdep_objects_CXX
20646 # Dependencies to place before the objects being linked to create a
20648 predeps=$lt_predeps_CXX
20650 # Dependencies to place after the objects being linked to create a
20652 postdeps=$lt_postdeps_CXX
20654 # The library search path used internally by the compiler when linking
20655 # a shared library.
20656 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20658 # Method to check whether dependent libraries are shared objects.
20659 deplibs_check_method=$lt_deplibs_check_method
20661 # Command to use when deplibs_check_method == file_magic.
20662 file_magic_cmd=$lt_file_magic_cmd
20664 # Flag that allows shared libraries with undefined symbols to be built.
20665 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20667 # Flag that forces no undefined symbols.
20668 no_undefined_flag=$lt_no_undefined_flag_CXX
20670 # Commands used to finish a libtool library installation in a directory.
20671 finish_cmds=$lt_finish_cmds
20673 # Same as above, but a single script fragment to be evaled but not shown.
20674 finish_eval=$lt_finish_eval
20676 # Take the output of nm and produce a listing of raw symbols and C names.
20677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20679 # Transform the output of nm in a proper C declaration
20680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20682 # Transform the output of nm in a C name address pair
20683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20685 # This is the shared library runtime path variable.
20686 runpath_var=$runpath_var
20688 # This is the shared library path variable.
20689 shlibpath_var=$shlibpath_var
20691 # Is shlibpath searched before the hard-coded library search path?
20692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20694 # How to hardcode a shared library path into an executable.
20695 hardcode_action=$hardcode_action_CXX
20697 # Whether we should hardcode library paths into libraries.
20698 hardcode_into_libs=$hardcode_into_libs
20700 # Flag to hardcode \$libdir into a binary during linking.
20701 # This must work even if \$libdir does not exist.
20702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20704 # If ld is used when linking, flag to hardcode \$libdir into
20705 # a binary during linking. This must work even if \$libdir does
20707 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20709 # Whether we need a single -rpath flag with a separated argument.
20710 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20712 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20713 # resulting binary.
20714 hardcode_direct=$hardcode_direct_CXX
20716 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20717 # resulting binary.
20718 hardcode_minus_L=$hardcode_minus_L_CXX
20720 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20721 # the resulting binary.
20722 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20724 # Set to yes if building a shared library automatically hardcodes DIR into the library
20725 # and all subsequent libraries and executables linked against it.
20726 hardcode_automatic=$hardcode_automatic_CXX
20728 # Variables whose values should be saved in libtool wrapper scripts and
20729 # restored at relink time.
20730 variables_saved_for_relink="$variables_saved_for_relink"
20732 # Whether libtool must link a program against all its dependency libraries.
20733 link_all_deplibs=$link_all_deplibs_CXX
20735 # Compile-time system search path for libraries
20736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20738 # Run-time system search path for libraries
20739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20741 # Fix the shell variable \$srcfile for the compiler.
20742 fix_srcfile_path="$fix_srcfile_path_CXX"
20744 # Set to yes if exported symbols are required.
20745 always_export_symbols=$always_export_symbols_CXX
20747 # The commands to list exported symbols.
20748 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20750 # The commands to extract the exported symbol list from a shared archive.
20751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20753 # Symbols that should not be listed in the preloaded symbols.
20754 exclude_expsyms=$lt_exclude_expsyms_CXX
20756 # Symbols that must always be exported.
20757 include_expsyms=$lt_include_expsyms_CXX
20759 # ### END LIBTOOL TAG CONFIG: $tagname
20765 # If there is no Makefile yet, we rely on a make rule to execute
20766 # `config.status --recheck' to rerun these tests and create the
20767 # libtool script then.
20768 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20769 if test -f "$ltmain_in"; then
20770 test -f Makefile && make "$ltmain"
20776 ac_cpp='$CPP $CPPFLAGS'
20777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20785 with_gnu_ldcxx=$with_gnu_ld
20786 with_gnu_ld=$lt_save_with_gnu_ld
20787 lt_cv_path_LDCXX=$lt_cv_path_LD
20788 lt_cv_path_LD=$lt_save_path_LD
20789 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20790 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20798 if test -n "$F77" && test "X$F77" != "Xno"; then
20801 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20802 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20803 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20806 archive_cmds_need_lc_F77=no
20807 allow_undefined_flag_F77=
20808 always_export_symbols_F77=no
20809 archive_expsym_cmds_F77=
20810 export_dynamic_flag_spec_F77=
20811 hardcode_direct_F77=no
20812 hardcode_libdir_flag_spec_F77=
20813 hardcode_libdir_flag_spec_ld_F77=
20814 hardcode_libdir_separator_F77=
20815 hardcode_minus_L_F77=no
20816 hardcode_automatic_F77=no
20818 module_expsym_cmds_F77=
20819 link_all_deplibs_F77=unknown
20820 old_archive_cmds_F77=$old_archive_cmds
20821 no_undefined_flag_F77=
20822 whole_archive_flag_spec_F77=
20823 enable_shared_with_static_runtimes_F77=no
20825 # Source file extension for f77 test sources.
20828 # Object file extension for compiled f77 test sources.
20832 # Code to be used in simple compile tests
20833 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20835 # Code to be used in simple link tests
20836 lt_simple_link_test_code=" program t\n end\n"
20838 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20840 # If no C compiler was specified, use CC.
20843 # If no C compiler flags were specified, use CFLAGS.
20844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20846 # Allow CC to be a program name with arguments.
20850 # save warnings/boilerplate of simple test code
20851 ac_outfile=conftest.$ac_objext
20852 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20854 _lt_compiler_boilerplate=`cat conftest.err`
20857 ac_outfile=conftest.$ac_objext
20858 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20860 _lt_linker_boilerplate=`cat conftest.err`
20864 # Allow CC to be a program name with arguments.
20869 for cc_temp in $compiler""; do
20871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20877 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20880 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20881 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20882 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20883 echo "${ECHO_T}$can_build_shared" >&6; }
20885 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20886 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20887 test "$can_build_shared" = "no" && enable_shared=no
20889 # On AIX, shared libraries and static libraries use the same namespace, and
20890 # are all built from PIC.
20893 test "$enable_shared" = yes && enable_static=no
20894 if test -n "$RANLIB"; then
20895 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20896 postinstall_cmds='$RANLIB $lib'
20900 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20901 test "$enable_shared" = yes && enable_static=no
20905 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20906 echo "${ECHO_T}$enable_shared" >&6; }
20908 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20909 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20910 # Make sure either enable_shared or enable_static is yes.
20911 test "$enable_shared" = yes || enable_static=yes
20912 { echo "$as_me:$LINENO: result: $enable_static" >&5
20913 echo "${ECHO_T}$enable_static" >&6; }
20918 lt_prog_compiler_wl_F77=
20919 lt_prog_compiler_pic_F77=
20920 lt_prog_compiler_static_F77=
20922 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20923 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20925 if test "$GCC" = yes; then
20926 lt_prog_compiler_wl_F77='-Wl,'
20927 lt_prog_compiler_static_F77='-static'
20931 # All AIX code is PIC.
20932 if test "$host_cpu" = ia64; then
20933 # AIX 5 now supports IA64 processor
20934 lt_prog_compiler_static_F77='-Bstatic'
20939 # FIXME: we need at least 68020 code to build shared libraries, but
20940 # adding the `-m68020' flag to GCC prevents building anything better,
20942 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20945 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20946 # PIC is the default for these OSes.
20949 mingw* | pw32* | os2*)
20950 # This hack is so that the source file can tell whether it is being
20951 # built for inclusion in a dll (and should export symbols for example).
20952 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20955 darwin* | rhapsody*)
20956 # PIC is the default on this platform
20957 # Common symbols not allowed in MH_DYLIB files
20958 lt_prog_compiler_pic_F77='-fno-common'
20962 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20963 # Instead, we relocate shared libraries at runtime.
20967 # Just because we use GCC doesn't mean we suddenly get shared libraries
20968 # on systems that don't support them.
20969 lt_prog_compiler_can_build_shared_F77=no
20974 if test -d /usr/nec; then
20975 lt_prog_compiler_pic_F77=-Kconform_pic
20980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20981 # not for PA HP-UX.
20987 lt_prog_compiler_pic_F77='-fPIC'
20993 lt_prog_compiler_pic_F77='-fPIC'
20997 # PORTME Check for flag to pass linker flags through the system compiler.
21000 lt_prog_compiler_wl_F77='-Wl,'
21001 if test "$host_cpu" = ia64; then
21002 # AIX 5 now supports IA64 processor
21003 lt_prog_compiler_static_F77='-Bstatic'
21005 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21009 # PIC is the default on this platform
21010 # Common symbols not allowed in MH_DYLIB files
21011 case $cc_basename in
21013 lt_prog_compiler_pic_F77='-qnocommon'
21014 lt_prog_compiler_wl_F77='-Wl,'
21019 mingw* | pw32* | os2*)
21020 # This hack is so that the source file can tell whether it is being
21021 # built for inclusion in a dll (and should export symbols for example).
21022 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21025 hpux9* | hpux10* | hpux11*)
21026 lt_prog_compiler_wl_F77='-Wl,'
21027 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21028 # not for PA HP-UX.
21034 lt_prog_compiler_pic_F77='+Z'
21037 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21038 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21041 irix5* | irix6* | nonstopux*)
21042 lt_prog_compiler_wl_F77='-Wl,'
21043 # PIC (with -KPIC) is the default.
21044 lt_prog_compiler_static_F77='-non_shared'
21048 lt_prog_compiler_pic_F77='-KPIC'
21049 lt_prog_compiler_static_F77='-Bstatic'
21053 case $cc_basename in
21055 lt_prog_compiler_wl_F77='-Wl,'
21056 lt_prog_compiler_pic_F77='-KPIC'
21057 lt_prog_compiler_static_F77='-static'
21059 pgcc* | pgf77* | pgf90* | pgf95*)
21060 # Portland Group compilers (*not* the Pentium gcc compiler,
21061 # which looks to be a dead project)
21062 lt_prog_compiler_wl_F77='-Wl,'
21063 lt_prog_compiler_pic_F77='-fpic'
21064 lt_prog_compiler_static_F77='-Bstatic'
21067 lt_prog_compiler_wl_F77='-Wl,'
21068 # All Alpha code is PIC.
21069 lt_prog_compiler_static_F77='-non_shared'
21074 osf3* | osf4* | osf5*)
21075 lt_prog_compiler_wl_F77='-Wl,'
21076 # All OSF/1 code is PIC.
21077 lt_prog_compiler_static_F77='-non_shared'
21081 lt_prog_compiler_pic_F77='-KPIC'
21082 lt_prog_compiler_static_F77='-Bstatic'
21083 case $cc_basename in
21084 f77* | f90* | f95*)
21085 lt_prog_compiler_wl_F77='-Qoption ld ';;
21087 lt_prog_compiler_wl_F77='-Wl,';;
21092 lt_prog_compiler_wl_F77='-Qoption ld '
21093 lt_prog_compiler_pic_F77='-PIC'
21094 lt_prog_compiler_static_F77='-Bstatic'
21097 sysv4 | sysv4.2uw2* | sysv4.3*)
21098 lt_prog_compiler_wl_F77='-Wl,'
21099 lt_prog_compiler_pic_F77='-KPIC'
21100 lt_prog_compiler_static_F77='-Bstatic'
21104 if test -d /usr/nec ;then
21105 lt_prog_compiler_pic_F77='-Kconform_pic'
21106 lt_prog_compiler_static_F77='-Bstatic'
21110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21111 lt_prog_compiler_wl_F77='-Wl,'
21112 lt_prog_compiler_pic_F77='-KPIC'
21113 lt_prog_compiler_static_F77='-Bstatic'
21117 lt_prog_compiler_wl_F77='-Wl,'
21118 lt_prog_compiler_can_build_shared_F77=no
21122 lt_prog_compiler_pic_F77='-pic'
21123 lt_prog_compiler_static_F77='-Bstatic'
21127 lt_prog_compiler_can_build_shared_F77=no
21132 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21133 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21136 # Check to make sure the PIC flag actually works.
21138 if test -n "$lt_prog_compiler_pic_F77"; then
21140 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21141 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21142 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 lt_prog_compiler_pic_works_F77=no
21146 ac_outfile=conftest.$ac_objext
21147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21148 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21149 # Insert the option either (1) after the last *FLAGS variable, or
21150 # (2) before a word containing "conftest.", or (3) at the end.
21151 # Note that $ac_compile itself does not contain backslashes and begins
21152 # with a dollar sign (not a hyphen), so the echo should work correctly.
21153 # The option is referenced via a variable to avoid confusing sed.
21154 lt_compile=`echo "$ac_compile" | $SED \
21155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21157 -e 's:$: $lt_compiler_flag:'`
21158 (eval echo "\"\$as_me:21158: $lt_compile\"" >&5)
21159 (eval "$lt_compile" 2>conftest.err)
21161 cat conftest.err >&5
21162 echo "$as_me:21162: \$? = $ac_status" >&5
21163 if (exit $ac_status) && test -s "$ac_outfile"; then
21164 # The compiler can only warn and ignore the option if not recognized
21165 # So say no if there are warnings other than the usual output.
21166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21169 lt_prog_compiler_pic_works_F77=yes
21175 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21176 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21178 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21179 case $lt_prog_compiler_pic_F77 in
21181 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21184 lt_prog_compiler_pic_F77=
21185 lt_prog_compiler_can_build_shared_F77=no
21190 # For platforms which do not support PIC, -DPIC is meaningless:
21192 lt_prog_compiler_pic_F77=
21195 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21200 # Check to make sure the static flag actually works.
21202 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21203 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21204 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21205 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21208 lt_prog_compiler_static_works_F77=no
21209 save_LDFLAGS="$LDFLAGS"
21210 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21211 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21212 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21213 # The linker can only warn and ignore the option if not recognized
21214 # So say no if there are warnings
21215 if test -s conftest.err; then
21216 # Append any errors to the config.log.
21217 cat conftest.err 1>&5
21218 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21220 if diff conftest.exp conftest.er2 >/dev/null; then
21221 lt_prog_compiler_static_works_F77=yes
21224 lt_prog_compiler_static_works_F77=yes
21228 LDFLAGS="$save_LDFLAGS"
21231 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21232 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21234 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21237 lt_prog_compiler_static_F77=
21241 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21242 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21243 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 lt_cv_prog_compiler_c_o_F77=no
21247 $rm -r conftest 2>/dev/null
21251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21253 lt_compiler_flag="-o out/conftest2.$ac_objext"
21254 # Insert the option either (1) after the last *FLAGS variable, or
21255 # (2) before a word containing "conftest.", or (3) at the end.
21256 # Note that $ac_compile itself does not contain backslashes and begins
21257 # with a dollar sign (not a hyphen), so the echo should work correctly.
21258 lt_compile=`echo "$ac_compile" | $SED \
21259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21261 -e 's:$: $lt_compiler_flag:'`
21262 (eval echo "\"\$as_me:21262: $lt_compile\"" >&5)
21263 (eval "$lt_compile" 2>out/conftest.err)
21265 cat out/conftest.err >&5
21266 echo "$as_me:21266: \$? = $ac_status" >&5
21267 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21269 # The compiler can only warn and ignore the option if not recognized
21270 # So say no if there are warnings
21271 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21272 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21273 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21274 lt_cv_prog_compiler_c_o_F77=yes
21279 # SGI C++ compiler will create directory out/ii_files/ for
21280 # template instantiation
21281 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21282 $rm out/* && rmdir out
21288 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21289 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21292 hard_links="nottested"
21293 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21294 # do not overwrite the value of need_locks provided by the user
21295 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21296 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21301 ln conftest.a conftest.b 2>&5 || hard_links=no
21302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21303 { echo "$as_me:$LINENO: result: $hard_links" >&5
21304 echo "${ECHO_T}$hard_links" >&6; }
21305 if test "$hard_links" = no; then
21306 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21307 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21314 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21315 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21318 allow_undefined_flag_F77=
21319 enable_shared_with_static_runtimes_F77=no
21321 archive_expsym_cmds_F77=
21322 old_archive_From_new_cmds_F77=
21323 old_archive_from_expsyms_cmds_F77=
21324 export_dynamic_flag_spec_F77=
21325 whole_archive_flag_spec_F77=
21326 thread_safe_flag_spec_F77=
21327 hardcode_libdir_flag_spec_F77=
21328 hardcode_libdir_flag_spec_ld_F77=
21329 hardcode_libdir_separator_F77=
21330 hardcode_direct_F77=no
21331 hardcode_minus_L_F77=no
21332 hardcode_shlibpath_var_F77=unsupported
21333 link_all_deplibs_F77=unknown
21334 hardcode_automatic_F77=no
21336 module_expsym_cmds_F77=
21337 always_export_symbols_F77=no
21338 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21339 # include_expsyms should be a list of space-separated symbols to be *always*
21340 # included in the symbol list
21341 include_expsyms_F77=
21342 # exclude_expsyms can be an extended regexp of symbols to exclude
21343 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21344 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21345 # as well as any symbol that contains `d'.
21346 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21347 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21348 # platforms (ab)use it in PIC code, but their linkers get confused if
21349 # the symbol is explicitly referenced. Since portable code cannot
21350 # rely on this symbol name, it's probably fine to never include it in
21351 # preloaded symbol tables.
21352 extract_expsyms_cmds=
21353 # Just being paranoid about ensuring that cc_basename is set.
21354 for cc_temp in $compiler""; do
21356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21362 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21365 cygwin* | mingw* | pw32*)
21366 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21367 # When not using gcc, we currently assume that we are using
21368 # Microsoft Visual C++.
21369 if test "$GCC" != yes; then
21374 # we just hope/assume this is gcc and not c89 (= MSVC++)
21383 if test "$with_gnu_ld" = yes; then
21384 # If archive_cmds runs LD, not CC, wlarc should be empty
21387 # Set some defaults for GNU ld with shared library support. These
21388 # are reset later if shared libraries are not supported. Putting them
21389 # here allows them to be overridden if necessary.
21390 runpath_var=LD_RUN_PATH
21391 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21392 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21393 # ancient GNU ld didn't support --whole-archive et. al.
21394 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21395 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21397 whole_archive_flag_spec_F77=
21399 supports_anon_versioning=no
21400 case `$LD -v 2>/dev/null` in
21401 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21402 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21403 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21404 *\ 2.11.*) ;; # other 2.11 versions
21405 *) supports_anon_versioning=yes ;;
21408 # See if GNU ld supports shared libraries.
21410 aix3* | aix4* | aix5*)
21411 # On AIX/PPC, the GNU linker is very broken
21412 if test "$host_cpu" != ia64; then
21416 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21417 *** to be unable to reliably create shared libraries on AIX.
21418 *** Therefore, libtool is disabling shared libraries support. If you
21419 *** really care for shared libraries, you may want to modify your PATH
21420 *** so that a non-GNU linker is found, and then restart.
21427 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)'
21428 hardcode_libdir_flag_spec_F77='-L$libdir'
21429 hardcode_minus_L_F77=yes
21431 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21432 # that the semantics of dynamic libraries on AmigaOS, at least up
21433 # to version 4, is to share data among multiple programs linked
21434 # with the same dynamic library. Since this doesn't match the
21435 # behavior of shared libraries on other platforms, we can't use
21441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21442 allow_undefined_flag_F77=unsupported
21443 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21444 # support --undefined. This deserves some investigation. FIXME
21445 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21451 cygwin* | mingw* | pw32*)
21452 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21453 # as there is no search path for DLLs.
21454 hardcode_libdir_flag_spec_F77='-L$libdir'
21455 allow_undefined_flag_F77=unsupported
21456 always_export_symbols_F77=no
21457 enable_shared_with_static_runtimes_F77=yes
21458 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21460 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21461 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21462 # If the export-symbols file already is a .def file (1st line
21463 # is EXPORTS), use it as is; otherwise, prepend...
21464 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21465 cp $export_symbols $output_objdir/$soname.def;
21467 echo EXPORTS > $output_objdir/$soname.def;
21468 cat $export_symbols >> $output_objdir/$soname.def;
21470 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21477 hardcode_direct_F77=no
21478 hardcode_shlibpath_var_F77=no
21479 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21480 export_dynamic_flag_spec_F77='${wl}-E'
21481 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21482 # Instead, shared libraries are loaded at an image base (0x10000000 by
21483 # default) and relocated if they conflict, which is a slow very memory
21484 # consuming and fragmenting process. To avoid this, we pick a random,
21485 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21486 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21487 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'
21488 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'
21492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21494 case $cc_basename,$host_cpu in
21495 pgcc*) # Portland Group C compiler
21496 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'
21497 tmp_addflag=' $pic_flag'
21499 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21500 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'
21501 tmp_addflag=' $pic_flag -Mnomain' ;;
21502 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21503 tmp_addflag=' -i_dynamic' ;;
21504 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21505 tmp_addflag=' -i_dynamic -nofor_main' ;;
21506 ifc* | ifort*) # Intel Fortran compiler
21507 tmp_addflag=' -nofor_main' ;;
21509 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21511 if test $supports_anon_versioning = yes; then
21512 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21513 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21514 $echo "local: *; };" >> $output_objdir/$libname.ver~
21515 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21523 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21524 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21527 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21528 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21533 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21538 *** create shared libraries on Solaris systems. Therefore, libtool
21539 *** is disabling shared libraries support. We urge you to upgrade GNU
21540 *** binutils to release 2.9.1 or newer. Another option is to modify
21541 *** your PATH or compiler configuration so that the native linker is
21542 *** used, and then restart.
21545 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21546 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21547 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21554 case `$LD -v 2>&1` in
21555 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21559 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21560 *** reliably create shared libraries on SCO systems. Therefore, libtool
21561 *** is disabling shared libraries support. We urge you to upgrade GNU
21562 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21563 *** your PATH or compiler configuration so that the native linker is
21564 *** used, and then restart.
21569 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21570 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21571 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21572 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21581 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21583 hardcode_direct_F77=yes
21584 hardcode_shlibpath_var_F77=no
21588 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21589 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21590 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21597 if test "$ld_shlibs_F77" = no; then
21599 hardcode_libdir_flag_spec_F77=
21600 export_dynamic_flag_spec_F77=
21601 whole_archive_flag_spec_F77=
21604 # PORTME fill in a description of your system's linker (not GNU ld)
21607 allow_undefined_flag_F77=unsupported
21608 always_export_symbols_F77=yes
21609 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'
21610 # Note: this linker hardcodes the directories in LIBPATH if there
21611 # are no directories specified by -L.
21612 hardcode_minus_L_F77=yes
21613 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21614 # Neither direct hardcoding nor static linking is supported with a
21616 hardcode_direct_F77=unsupported
21621 if test "$host_cpu" = ia64; then
21622 # On IA64, the linker does run time linking by default, so we don't
21623 # have to do anything special.
21624 aix_use_runtimelinking=no
21625 exp_sym_flag='-Bexport'
21628 # If we're using GNU nm, then we don't want the "-C" option.
21629 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21630 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21631 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'
21633 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'
21635 aix_use_runtimelinking=no
21637 # Test if we are trying to use run time linking or normal
21638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21639 # need to do runtime linking.
21640 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21641 for ld_flag in $LDFLAGS; do
21642 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21643 aix_use_runtimelinking=yes
21650 exp_sym_flag='-bexport'
21651 no_entry_flag='-bnoentry'
21654 # When large executables or shared objects are built, AIX ld can
21655 # have problems creating the table of contents. If linking a library
21656 # or program results in "error TOC overflow" add -mminimal-toc to
21657 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21658 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21660 archive_cmds_F77=''
21661 hardcode_direct_F77=yes
21662 hardcode_libdir_separator_F77=':'
21663 link_all_deplibs_F77=yes
21665 if test "$GCC" = yes; then
21666 case $host_os in aix4.[012]|aix4.[012].*)
21667 # We only want to do this on AIX 4.2 and lower, the check
21668 # below for broken collect2 doesn't work under 4.3+
21669 collect2name=`${CC} -print-prog-name=collect2`
21670 if test -f "$collect2name" && \
21671 strings "$collect2name" | grep resolve_lib_name >/dev/null
21673 # We have reworked collect2
21674 hardcode_direct_F77=yes
21676 # We have old collect2
21677 hardcode_direct_F77=unsupported
21678 # It fails to find uninstalled libraries when the uninstalled
21679 # path is not listed in the libpath. Setting hardcode_minus_L
21680 # to unsupported forces relinking
21681 hardcode_minus_L_F77=yes
21682 hardcode_libdir_flag_spec_F77='-L$libdir'
21683 hardcode_libdir_separator_F77=
21687 shared_flag='-shared'
21688 if test "$aix_use_runtimelinking" = yes; then
21689 shared_flag="$shared_flag "'${wl}-G'
21693 if test "$host_cpu" = ia64; then
21694 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21695 # chokes on -Wl,-G. The following line is correct:
21698 if test "$aix_use_runtimelinking" = yes; then
21699 shared_flag='${wl}-G'
21701 shared_flag='${wl}-bM:SRE'
21706 # It seems that -bexpall does not export symbols beginning with
21707 # underscore (_), so it is better to generate a list of symbols to export.
21708 always_export_symbols_F77=yes
21709 if test "$aix_use_runtimelinking" = yes; then
21710 # Warning - without using the other runtime loading flags (-brtl),
21711 # -berok will link without error, but may produce a broken library.
21712 allow_undefined_flag_F77='-berok'
21713 # Determine the default libpath from the value encoded in an empty executable.
21714 cat >conftest.$ac_ext <<_ACEOF
21719 rm -f conftest.$ac_objext conftest$ac_exeext
21720 if { (ac_try="$ac_link"
21721 case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_link") 2>conftest.er1
21728 grep -v '^ *+' conftest.er1 >conftest.err
21730 cat conftest.err >&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); } &&
21733 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21734 { (case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_try") 2>&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; } &&
21743 { ac_try='test -s conftest$ac_exeext'
21744 { (case "(($ac_try" in
21745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746 *) ac_try_echo=$ac_try;;
21748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749 (eval "$ac_try") 2>&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; }; then
21754 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21756 # Check for a 64-bit object if we didn't find anything.
21757 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; }
21760 echo "$as_me: failed program was:" >&5
21761 sed 's/^/| /' conftest.$ac_ext >&5
21766 rm -f core conftest.err conftest.$ac_objext \
21767 conftest$ac_exeext conftest.$ac_ext
21768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21770 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21771 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"
21773 if test "$host_cpu" = ia64; then
21774 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21775 allow_undefined_flag_F77="-z nodefs"
21776 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"
21778 # Determine the default libpath from the value encoded in an empty executable.
21779 cat >conftest.$ac_ext <<_ACEOF
21784 rm -f conftest.$ac_objext conftest$ac_exeext
21785 if { (ac_try="$ac_link"
21786 case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_link") 2>conftest.er1
21793 grep -v '^ *+' conftest.er1 >conftest.err
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } &&
21798 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21799 { (case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_try") 2>&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; } &&
21808 { ac_try='test -s conftest$ac_exeext'
21809 { (case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814 (eval "$ac_try") 2>&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; }; then
21819 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21821 # Check for a 64-bit object if we didn't find anything.
21822 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; }
21825 echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21831 rm -f core conftest.err conftest.$ac_objext \
21832 conftest$ac_exeext conftest.$ac_ext
21833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21835 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21836 # Warning - without using the other run time loading flags,
21837 # -berok will link without error, but may produce a broken library.
21838 no_undefined_flag_F77=' ${wl}-bernotok'
21839 allow_undefined_flag_F77=' ${wl}-berok'
21840 # Exported symbols can be pulled into shared objects from archives
21841 whole_archive_flag_spec_F77='$convenience'
21842 archive_cmds_need_lc_F77=yes
21843 # This is similar to how AIX traditionally builds its shared libraries.
21844 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'
21850 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)'
21851 hardcode_libdir_flag_spec_F77='-L$libdir'
21852 hardcode_minus_L_F77=yes
21853 # see comment about different semantics on the GNU ld section
21858 export_dynamic_flag_spec_F77=-rdynamic
21861 cygwin* | mingw* | pw32*)
21862 # When not using gcc, we currently assume that we are using
21863 # Microsoft Visual C++.
21864 # hardcode_libdir_flag_spec is actually meaningless, as there is
21865 # no search path for DLLs.
21866 hardcode_libdir_flag_spec_F77=' '
21867 allow_undefined_flag_F77=unsupported
21868 # Tell ltmain to make .lib files, not .a files.
21870 # Tell ltmain to make .dll files, not .so files.
21872 # FIXME: Setting linknames here is a bad hack.
21873 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21874 # The linker will automatically build a .lib file if we build a DLL.
21875 old_archive_From_new_cmds_F77='true'
21876 # FIXME: Should let the user specify the lib program.
21877 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21878 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21879 enable_shared_with_static_runtimes_F77=yes
21882 darwin* | rhapsody*)
21884 rhapsody* | darwin1.[012])
21885 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21888 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21889 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21891 case ${MACOSX_DEPLOYMENT_TARGET} in
21893 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21896 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21902 archive_cmds_need_lc_F77=no
21903 hardcode_direct_F77=no
21904 hardcode_automatic_F77=yes
21905 hardcode_shlibpath_var_F77=unsupported
21906 whole_archive_flag_spec_F77=''
21907 link_all_deplibs_F77=yes
21908 if test "$GCC" = yes ; then
21909 output_verbose_link_cmd='echo'
21910 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21911 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21912 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21913 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}'
21914 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}'
21916 case $cc_basename in
21918 output_verbose_link_cmd='echo'
21919 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21920 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21921 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21922 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}'
21923 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}'
21933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21934 hardcode_libdir_flag_spec_F77='-L$libdir'
21935 hardcode_shlibpath_var_F77=no
21942 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21943 # support. Future versions do this automatically, but an explicit c++rt0.o
21944 # does not break anything, and helps significantly (at the cost of a little
21947 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21948 hardcode_libdir_flag_spec_F77='-R$libdir'
21949 hardcode_direct_F77=yes
21950 hardcode_shlibpath_var_F77=no
21953 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21955 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21956 hardcode_direct_F77=yes
21957 hardcode_minus_L_F77=yes
21958 hardcode_shlibpath_var_F77=no
21961 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21962 freebsd* | kfreebsd*-gnu | dragonfly*)
21963 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21964 hardcode_libdir_flag_spec_F77='-R$libdir'
21965 hardcode_direct_F77=yes
21966 hardcode_shlibpath_var_F77=no
21970 if test "$GCC" = yes; then
21971 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'
21973 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'
21975 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21976 hardcode_libdir_separator_F77=:
21977 hardcode_direct_F77=yes
21979 # hardcode_minus_L: Not really in the search PATH,
21980 # but as the default location of the library.
21981 hardcode_minus_L_F77=yes
21982 export_dynamic_flag_spec_F77='${wl}-E'
21986 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21987 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21989 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21991 if test "$with_gnu_ld" = no; then
21992 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21993 hardcode_libdir_separator_F77=:
21995 hardcode_direct_F77=yes
21996 export_dynamic_flag_spec_F77='${wl}-E'
21998 # hardcode_minus_L: Not really in the search PATH,
21999 # but as the default location of the library.
22000 hardcode_minus_L_F77=yes
22005 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22008 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22011 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22014 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22020 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22023 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22026 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22030 if test "$with_gnu_ld" = no; then
22031 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22032 hardcode_libdir_separator_F77=:
22036 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22037 hardcode_direct_F77=no
22038 hardcode_shlibpath_var_F77=no
22041 hardcode_direct_F77=yes
22042 export_dynamic_flag_spec_F77='${wl}-E'
22044 # hardcode_minus_L: Not really in the search PATH,
22045 # but as the default location of the library.
22046 hardcode_minus_L_F77=yes
22052 irix5* | irix6* | nonstopux*)
22053 if test "$GCC" = yes; then
22054 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'
22056 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'
22057 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22059 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22060 hardcode_libdir_separator_F77=:
22061 link_all_deplibs_F77=yes
22065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22066 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22068 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22070 hardcode_libdir_flag_spec_F77='-R$libdir'
22071 hardcode_direct_F77=yes
22072 hardcode_shlibpath_var_F77=no
22076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22077 hardcode_direct_F77=yes
22078 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22079 hardcode_libdir_separator_F77=:
22080 hardcode_shlibpath_var_F77=no
22084 hardcode_direct_F77=yes
22085 hardcode_shlibpath_var_F77=no
22086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22087 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22088 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22089 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22090 export_dynamic_flag_spec_F77='${wl}-E'
22093 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22094 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22095 hardcode_libdir_flag_spec_F77='-R$libdir'
22098 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22099 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22106 hardcode_libdir_flag_spec_F77='-L$libdir'
22107 hardcode_minus_L_F77=yes
22108 allow_undefined_flag_F77=unsupported
22109 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'
22110 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22114 if test "$GCC" = yes; then
22115 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22116 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'
22118 allow_undefined_flag_F77=' -expect_unresolved \*'
22119 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'
22121 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22122 hardcode_libdir_separator_F77=:
22125 osf4* | osf5*) # as osf3* with the addition of -msym flag
22126 if test "$GCC" = yes; then
22127 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22128 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'
22129 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22131 allow_undefined_flag_F77=' -expect_unresolved \*'
22132 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'
22133 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~
22134 $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'
22136 # Both c and cxx compiler support -rpath directly
22137 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22139 hardcode_libdir_separator_F77=:
22143 no_undefined_flag_F77=' -z text'
22144 if test "$GCC" = yes; then
22146 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22147 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22148 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22151 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22152 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22153 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22155 hardcode_libdir_flag_spec_F77='-R$libdir'
22156 hardcode_shlibpath_var_F77=no
22158 solaris2.[0-5] | solaris2.[0-5].*) ;;
22160 # The compiler driver will combine linker options so we
22161 # cannot just pass the convience library names through
22162 # without $wl, iff we do not link with $LD.
22163 # Luckily, gcc supports the same syntax we need for Sun Studio.
22164 # Supported since Solaris 2.6 (maybe 2.5.1?)
22167 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22169 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' ;;
22172 link_all_deplibs_F77=yes
22176 if test "x$host_vendor" = xsequent; then
22177 # Use $CC to link under sequent, because it throws in some extra .o
22178 # files that make .init and .fini sections work.
22179 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22181 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22183 hardcode_libdir_flag_spec_F77='-L$libdir'
22184 hardcode_direct_F77=yes
22185 hardcode_minus_L_F77=yes
22186 hardcode_shlibpath_var_F77=no
22190 case $host_vendor in
22192 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22193 hardcode_direct_F77=yes # is this really true???
22196 ## LD is ld it makes a PLAMLIB
22197 ## CC just makes a GrossModule.
22198 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22199 reload_cmds_F77='$CC -r -o $output$reload_objs'
22200 hardcode_direct_F77=no
22203 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22204 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22207 runpath_var='LD_RUN_PATH'
22208 hardcode_shlibpath_var_F77=no
22212 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22213 hardcode_shlibpath_var_F77=no
22214 export_dynamic_flag_spec_F77='-Bexport'
22218 if test -d /usr/nec; then
22219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22220 hardcode_shlibpath_var_F77=no
22221 runpath_var=LD_RUN_PATH
22222 hardcode_runpath_var=yes
22227 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22228 no_undefined_flag_F77='${wl}-z,text'
22229 archive_cmds_need_lc_F77=no
22230 hardcode_shlibpath_var_F77=no
22231 runpath_var='LD_RUN_PATH'
22233 if test "$GCC" = yes; then
22234 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22235 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22237 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22238 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22242 sysv5* | sco3.2v5* | sco5v6*)
22243 # Note: We can NOT use -z defs as we might desire, because we do not
22244 # link with -lc, and that would cause any symbols used from libc to
22245 # always be unresolved, which means just about no library would
22246 # ever link correctly. If we're not using GNU ld we use -z text
22247 # though, which does catch some bad symbols but isn't as heavy-handed
22249 no_undefined_flag_F77='${wl}-z,text'
22250 allow_undefined_flag_F77='${wl}-z,nodefs'
22251 archive_cmds_need_lc_F77=no
22252 hardcode_shlibpath_var_F77=no
22253 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22254 hardcode_libdir_separator_F77=':'
22255 link_all_deplibs_F77=yes
22256 export_dynamic_flag_spec_F77='${wl}-Bexport'
22257 runpath_var='LD_RUN_PATH'
22259 if test "$GCC" = yes; then
22260 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22261 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22263 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22264 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22269 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22270 hardcode_libdir_flag_spec_F77='-L$libdir'
22271 hardcode_shlibpath_var_F77=no
22280 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22281 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22282 test "$ld_shlibs_F77" = no && can_build_shared=no
22285 # Do we need to explicitly link libc?
22287 case "x$archive_cmds_need_lc_F77" in
22289 # Assume -lc should be added
22290 archive_cmds_need_lc_F77=yes
22292 if test "$enable_shared" = yes && test "$GCC" = yes; then
22293 case $archive_cmds_F77 in
22295 # FIXME: we may have to deal with multi-command sequences.
22298 # Test whether the compiler implicitly links with -lc since on some
22299 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22300 # to ld, don't add -lc before -lgcc.
22301 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22302 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22307 (eval $ac_compile) 2>&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } 2>conftest.err; then
22313 libobjs=conftest.$ac_objext
22315 wl=$lt_prog_compiler_wl_F77
22316 pic_flag=$lt_prog_compiler_pic_F77
22322 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22323 allow_undefined_flag_F77=
22324 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22325 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); }
22330 archive_cmds_need_lc_F77=no
22332 archive_cmds_need_lc_F77=yes
22334 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22336 cat conftest.err 1>&5
22339 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22340 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22347 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22348 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22349 library_names_spec=
22350 libname_spec='lib$name'
22354 postuninstall_cmds=
22358 shlibpath_overrides_runpath=unknown
22360 dynamic_linker="$host_os ld.so"
22361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22362 if test "$GCC" = yes; then
22363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22364 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22365 # if the path contains ";" then we assume it to be the separator
22366 # otherwise default to the standard path separator (i.e. ":") - it is
22367 # assumed that no part of a normal pathname contains ";" but that should
22368 # okay in the real world where ";" in dirpaths is itself problematic.
22369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22374 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22376 need_lib_prefix=unknown
22377 hardcode_into_libs=no
22379 # when you set need_version to no, make sure it does not cause -set_version
22380 # flags to be left without arguments
22381 need_version=unknown
22386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22387 shlibpath_var=LIBPATH
22389 # AIX 3 has no versioning support, so we append a major version to the name.
22390 soname_spec='${libname}${release}${shared_ext}$major'
22397 hardcode_into_libs=yes
22398 if test "$host_cpu" = ia64; then
22399 # AIX 5 supports IA64
22400 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22401 shlibpath_var=LD_LIBRARY_PATH
22403 # With GCC up to 2.95.x, collect2 would create an import file
22404 # for dependence libraries. The import file would start with
22405 # the line `#! .'. This would cause the generated library to
22406 # depend on `.', always an invalid library. This was fixed in
22407 # development snapshots of GCC prior to 3.0.
22409 aix4 | aix4.[01] | aix4.[01].*)
22410 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22412 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22415 can_build_shared=no
22419 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22420 # soname into executable. Probably we can add versioning support to
22421 # collect2, so additional links can be useful in future.
22422 if test "$aix_use_runtimelinking" = yes; then
22423 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22424 # instead of lib<name>.a to let people know that these are not
22425 # typical AIX shared libraries.
22426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22428 # We preserve .a as extension for shared libraries through AIX4.2
22429 # and later when we are not doing run time linking.
22430 library_names_spec='${libname}${release}.a $libname.a'
22431 soname_spec='${libname}${release}${shared_ext}$major'
22433 shlibpath_var=LIBPATH
22438 library_names_spec='$libname.ixlibrary $libname.a'
22439 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22440 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'
22444 library_names_spec='${libname}${shared_ext}'
22445 dynamic_linker="$host_os ld.so"
22446 shlibpath_var=LIBRARY_PATH
22452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22453 soname_spec='${libname}${release}${shared_ext}$major'
22454 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22455 shlibpath_var=LD_LIBRARY_PATH
22456 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22457 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22458 # the default ld.so.conf also contains /usr/contrib/lib and
22459 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22460 # libtool to hard-code these into programs
22463 cygwin* | mingw* | pw32*)
22464 version_type=windows
22469 case $GCC,$host_os in
22470 yes,cygwin* | yes,mingw* | yes,pw32*)
22471 library_names_spec='$libname.dll.a'
22472 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22473 postinstall_cmds='base_file=`basename \${file}`~
22474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22475 dldir=$destdir/`dirname \$dlpath`~
22476 test -d \$dldir || mkdir -p \$dldir~
22477 $install_prog $dir/$dlname \$dldir/$dlname~
22478 chmod a+x \$dldir/$dlname'
22479 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22480 dlpath=$dir/\$dldll~
22482 shlibpath_overrides_runpath=yes
22486 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22487 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22488 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22491 # MinGW DLLs use traditional 'lib' prefix
22492 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22493 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22494 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22495 # It is most probably a Windows format PATH printed by
22496 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22497 # path with ; separators, and with drive letters. We can handle the
22498 # drive letters (cygwin fileutils understands them), so leave them,
22499 # especially as we might pass files found there to a mingw objdump,
22500 # which wouldn't understand a cygwinified path. Ahh.
22501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22507 # pw32 DLLs use 'pw' prefix rather than 'lib'
22508 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22514 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22517 dynamic_linker='Win32 ld.exe'
22518 # FIXME: first we should search . and the directory the executable is in
22522 darwin* | rhapsody*)
22523 dynamic_linker="$host_os dyld"
22524 version_type=darwin
22527 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22528 soname_spec='${libname}${release}${major}$shared_ext'
22529 shlibpath_overrides_runpath=yes
22530 shlibpath_var=DYLD_LIBRARY_PATH
22531 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22532 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22533 if test "$GCC" = yes; then
22534 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"`
22536 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22538 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22546 soname_spec='${libname}${release}${shared_ext}$major'
22547 shlibpath_var=LD_LIBRARY_PATH
22558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22559 soname_spec='${libname}${release}${shared_ext}$major'
22560 shlibpath_var=LD_LIBRARY_PATH
22561 shlibpath_overrides_runpath=no
22562 hardcode_into_libs=yes
22563 dynamic_linker='GNU ld.so'
22566 freebsd* | dragonfly*)
22567 # DragonFly does not have aout. When/if they implement a new
22568 # versioning mechanism, adjust this.
22569 if test -x /usr/bin/objformat; then
22570 objformat=`/usr/bin/objformat`
22573 freebsd[123]*) objformat=aout ;;
22574 *) objformat=elf ;;
22577 version_type=freebsd-$objformat
22578 case $version_type in
22580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22589 shlibpath_var=LD_LIBRARY_PATH
22592 shlibpath_overrides_runpath=yes
22594 freebsd3.[01]* | freebsdelf3.[01]*)
22595 shlibpath_overrides_runpath=yes
22596 hardcode_into_libs=yes
22598 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22599 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22600 shlibpath_overrides_runpath=no
22601 hardcode_into_libs=yes
22603 freebsd*) # from 4.6 on
22604 shlibpath_overrides_runpath=yes
22605 hardcode_into_libs=yes
22614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22615 soname_spec='${libname}${release}${shared_ext}$major'
22616 shlibpath_var=LD_LIBRARY_PATH
22617 hardcode_into_libs=yes
22620 hpux9* | hpux10* | hpux11*)
22621 # Give a soname corresponding to the major version so that dld.sl refuses to
22622 # link against other versions.
22629 hardcode_into_libs=yes
22630 dynamic_linker="$host_os dld.so"
22631 shlibpath_var=LD_LIBRARY_PATH
22632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22634 soname_spec='${libname}${release}${shared_ext}$major'
22635 if test "X$HPUX_IA64_MODE" = X32; then
22636 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22638 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22644 hardcode_into_libs=yes
22645 dynamic_linker="$host_os dld.sl"
22646 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22649 soname_spec='${libname}${release}${shared_ext}$major'
22650 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22655 dynamic_linker="$host_os dld.sl"
22656 shlibpath_var=SHLIB_PATH
22657 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22659 soname_spec='${libname}${release}${shared_ext}$major'
22662 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22663 postinstall_cmds='chmod 555 $lib'
22670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22671 soname_spec='${libname}${release}${shared_ext}$major'
22672 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22673 shlibpath_var=LD_LIBRARY_PATH
22674 shlibpath_overrides_runpath=no
22675 hardcode_into_libs=yes
22678 irix5* | irix6* | nonstopux*)
22680 nonstopux*) version_type=nonstopux ;;
22682 if test "$lt_cv_prog_gnu_ld" = yes; then
22690 soname_spec='${libname}${release}${shared_ext}$major'
22691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22693 irix5* | nonstopux*)
22694 libsuff= shlibsuff=
22697 case $LD in # libtool.m4 will add one of these switches to LD
22698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22699 libsuff= shlibsuff= libmagic=32-bit;;
22700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22701 libsuff=32 shlibsuff=N32 libmagic=N32;;
22702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22703 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22704 *) libsuff= shlibsuff= libmagic=never-match;;
22708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22709 shlibpath_overrides_runpath=no
22710 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22711 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22712 hardcode_into_libs=yes
22715 # No shared lib support for Linux oldld, aout, or coff.
22716 linux*oldld* | linux*aout* | linux*coff*)
22720 # This must be Linux ELF.
22725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22726 soname_spec='${libname}${release}${shared_ext}$major'
22727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22728 shlibpath_var=LD_LIBRARY_PATH
22729 shlibpath_overrides_runpath=no
22730 # This implies no fast_install, which is unacceptable.
22731 # Some rework will be needed to allow for fast_install
22732 # before this can be enabled.
22733 hardcode_into_libs=yes
22735 # Append ld.so.conf contents to the search path
22736 if test -f /etc/ld.so.conf; then
22737 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' ' '`
22738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22741 # We used to test for /lib/ld.so.1 and disable shared libraries on
22742 # powerpc, because MkLinux only supported shared libraries with the
22743 # GNU dynamic linker. Since this was broken with cross compilers,
22744 # most powerpc-linux boxes support dynamic linking these days and
22745 # people can always --disable-shared, the test was removed, and we
22746 # assume the GNU/Linux dynamic linker is in use.
22747 dynamic_linker='GNU/Linux ld.so'
22754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22755 soname_spec='${libname}${release}${shared_ext}$major'
22756 shlibpath_var=LD_LIBRARY_PATH
22757 shlibpath_overrides_runpath=no
22758 hardcode_into_libs=yes
22759 dynamic_linker='GNU ld.so'
22766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22769 dynamic_linker='NetBSD (a.out) ld.so'
22771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22772 soname_spec='${libname}${release}${shared_ext}$major'
22773 dynamic_linker='NetBSD ld.elf_so'
22775 shlibpath_var=LD_LIBRARY_PATH
22776 shlibpath_overrides_runpath=yes
22777 hardcode_into_libs=yes
22782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783 shlibpath_var=LD_LIBRARY_PATH
22784 shlibpath_overrides_runpath=yes
22791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792 soname_spec='${libname}${release}${shared_ext}$major'
22793 shlibpath_var=LD_LIBRARY_PATH
22794 shlibpath_overrides_runpath=yes
22799 sys_lib_dlsearch_path_spec="/usr/lib"
22801 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22803 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22804 *) need_version=no ;;
22806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22808 shlibpath_var=LD_LIBRARY_PATH
22809 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22811 openbsd2.[89] | openbsd2.[89].*)
22812 shlibpath_overrides_runpath=no
22815 shlibpath_overrides_runpath=yes
22819 shlibpath_overrides_runpath=yes
22824 libname_spec='$name'
22827 library_names_spec='$libname${shared_ext} $libname.a'
22828 dynamic_linker='OS/2 ld.exe'
22829 shlibpath_var=LIBPATH
22832 osf3* | osf4* | osf5*)
22836 soname_spec='${libname}${release}${shared_ext}$major'
22837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22838 shlibpath_var=LD_LIBRARY_PATH
22839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22840 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22848 soname_spec='${libname}${release}${shared_ext}$major'
22849 shlibpath_var=LD_LIBRARY_PATH
22850 shlibpath_overrides_runpath=yes
22851 hardcode_into_libs=yes
22852 # ldd complains unless libraries are executable
22853 postinstall_cmds='chmod +x $lib'
22858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22859 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22860 shlibpath_var=LD_LIBRARY_PATH
22861 shlibpath_overrides_runpath=yes
22862 if test "$with_gnu_ld" = yes; then
22870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22871 soname_spec='${libname}${release}${shared_ext}$major'
22872 shlibpath_var=LD_LIBRARY_PATH
22873 case $host_vendor in
22875 shlibpath_overrides_runpath=no
22877 export_dynamic_flag_spec='${wl}-Blargedynsym'
22878 runpath_var=LD_RUN_PATH
22886 shlibpath_overrides_runpath=no
22887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22893 if test -d /usr/nec ;then
22895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22896 soname_spec='$libname${shared_ext}.$major'
22897 shlibpath_var=LD_LIBRARY_PATH
22901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22902 version_type=freebsd-elf
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22906 soname_spec='${libname}${release}${shared_ext}$major'
22907 shlibpath_var=LD_LIBRARY_PATH
22908 hardcode_into_libs=yes
22909 if test "$with_gnu_ld" = yes; then
22910 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22911 shlibpath_overrides_runpath=no
22913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22914 shlibpath_overrides_runpath=yes
22917 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22921 sys_lib_dlsearch_path_spec='/usr/lib'
22926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22927 soname_spec='${libname}${release}${shared_ext}$major'
22928 shlibpath_var=LD_LIBRARY_PATH
22935 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22936 echo "${ECHO_T}$dynamic_linker" >&6; }
22937 test "$dynamic_linker" = no && can_build_shared=no
22939 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22940 if test "$GCC" = yes; then
22941 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22944 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22945 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22946 hardcode_action_F77=
22947 if test -n "$hardcode_libdir_flag_spec_F77" || \
22948 test -n "$runpath_var_F77" || \
22949 test "X$hardcode_automatic_F77" = "Xyes" ; then
22951 # We can hardcode non-existant directories.
22952 if test "$hardcode_direct_F77" != no &&
22953 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22954 # have to relink, otherwise we might link with an installed library
22955 # when we should be linking with a yet-to-be-installed one
22956 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22957 test "$hardcode_minus_L_F77" != no; then
22958 # Linking always hardcodes the temporary library directory.
22959 hardcode_action_F77=relink
22961 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22962 hardcode_action_F77=immediate
22965 # We cannot hardcode anything, or else we can only hardcode existing
22967 hardcode_action_F77=unsupported
22969 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22970 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22972 if test "$hardcode_action_F77" = relink; then
22973 # Fast installation is not supported
22974 enable_fast_install=no
22975 elif test "$shlibpath_overrides_runpath" = yes ||
22976 test "$enable_shared" = no; then
22977 # Fast installation is not necessary
22978 enable_fast_install=needless
22982 # The else clause should only fire when bootstrapping the
22983 # libtool distribution, otherwise you forgot to ship ltmain.sh
22984 # with your package, and you will get complaints that there are
22985 # no rules to generate ltmain.sh.
22986 if test -f "$ltmain"; then
22987 # See if we are running on zsh, and set the options which allow our commands through
22988 # without removal of \ escapes.
22989 if test -n "${ZSH_VERSION+set}" ; then
22990 setopt NO_GLOB_SUBST
22992 # Now quote all the things that may contain metacharacters while being
22993 # careful not to overquote the AC_SUBSTed values. We take copies of the
22994 # variables and quote the copies for generation of the libtool script.
22995 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22997 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22998 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22999 deplibs_check_method reload_flag reload_cmds need_locks \
23000 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23001 lt_cv_sys_global_symbol_to_c_name_address \
23002 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23003 old_postinstall_cmds old_postuninstall_cmds \
23007 lt_prog_compiler_wl_F77 \
23008 lt_prog_compiler_pic_F77 \
23009 lt_prog_compiler_static_F77 \
23010 lt_prog_compiler_no_builtin_flag_F77 \
23011 export_dynamic_flag_spec_F77 \
23012 thread_safe_flag_spec_F77 \
23013 whole_archive_flag_spec_F77 \
23014 enable_shared_with_static_runtimes_F77 \
23015 old_archive_cmds_F77 \
23016 old_archive_from_new_cmds_F77 \
23017 predep_objects_F77 \
23018 postdep_objects_F77 \
23021 compiler_lib_search_path_F77 \
23023 archive_expsym_cmds_F77 \
23024 postinstall_cmds_F77 \
23025 postuninstall_cmds_F77 \
23026 old_archive_from_expsyms_cmds_F77 \
23027 allow_undefined_flag_F77 \
23028 no_undefined_flag_F77 \
23029 export_symbols_cmds_F77 \
23030 hardcode_libdir_flag_spec_F77 \
23031 hardcode_libdir_flag_spec_ld_F77 \
23032 hardcode_libdir_separator_F77 \
23033 hardcode_automatic_F77 \
23035 module_expsym_cmds_F77 \
23036 lt_cv_prog_compiler_c_o_F77 \
23037 exclude_expsyms_F77 \
23038 include_expsyms_F77; do
23041 old_archive_cmds_F77 | \
23042 old_archive_from_new_cmds_F77 | \
23043 archive_cmds_F77 | \
23044 archive_expsym_cmds_F77 | \
23045 module_cmds_F77 | \
23046 module_expsym_cmds_F77 | \
23047 old_archive_from_expsyms_cmds_F77 | \
23048 export_symbols_cmds_F77 | \
23049 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23050 postinstall_cmds | postuninstall_cmds | \
23051 old_postinstall_cmds | old_postuninstall_cmds | \
23052 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23053 # Double-quote double-evaled strings.
23054 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23063 *'\$0 --fallback-echo"')
23064 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23070 cat <<__EOF__ >> "$cfgfile"
23071 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23075 # Shell to use when invoking shell scripts.
23078 # Whether or not to build shared libraries.
23079 build_libtool_libs=$enable_shared
23081 # Whether or not to build static libraries.
23082 build_old_libs=$enable_static
23084 # Whether or not to add -lc for building shared libraries.
23085 build_libtool_need_lc=$archive_cmds_need_lc_F77
23087 # Whether or not to disallow shared libs when runtime libs are static
23088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23090 # Whether or not to optimize for fast installation.
23091 fast_install=$enable_fast_install
23094 host_alias=$host_alias
23098 # The build system.
23099 build_alias=$build_alias
23103 # An echo program that does not interpret backslashes.
23108 AR_FLAGS=$lt_AR_FLAGS
23113 # LTCC compiler flags.
23114 LTCFLAGS=$lt_LTCFLAGS
23116 # A language-specific compiler.
23117 CC=$lt_compiler_F77
23119 # Is the compiler the GNU C compiler?
23125 # The linker used to build libraries.
23128 # Whether we need hard or soft links.
23131 # A BSD-compatible nm program.
23134 # A symbol stripping program
23137 # Used to examine libraries when file_magic_cmd begins "file"
23138 MAGIC_CMD=$MAGIC_CMD
23140 # Used on cygwin: DLL creation program.
23143 # Used on cygwin: object dumper.
23146 # Used on cygwin: assembler.
23149 # The name of the directory that contains temporary libtool files.
23152 # How to create reloadable object files.
23153 reload_flag=$lt_reload_flag
23154 reload_cmds=$lt_reload_cmds
23156 # How to pass a linker flag through the compiler.
23157 wl=$lt_lt_prog_compiler_wl_F77
23159 # Object file suffix (normally "o").
23160 objext="$ac_objext"
23162 # Old archive suffix (normally "a").
23165 # Shared library suffix (normally ".so").
23166 shrext_cmds='$shrext_cmds'
23168 # Executable file suffix (normally "").
23171 # Additional compiler flags for building library objects.
23172 pic_flag=$lt_lt_prog_compiler_pic_F77
23175 # What is the maximum length of a command?
23176 max_cmd_len=$lt_cv_sys_max_cmd_len
23178 # Does compiler simultaneously support -c and -o options?
23179 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23181 # Must we lock files when doing compilation?
23182 need_locks=$lt_need_locks
23184 # Do we need the lib prefix for modules?
23185 need_lib_prefix=$need_lib_prefix
23187 # Do we need a version for libraries?
23188 need_version=$need_version
23190 # Whether dlopen is supported.
23191 dlopen_support=$enable_dlopen
23193 # Whether dlopen of programs is supported.
23194 dlopen_self=$enable_dlopen_self
23196 # Whether dlopen of statically linked programs is supported.
23197 dlopen_self_static=$enable_dlopen_self_static
23199 # Compiler flag to prevent dynamic linking.
23200 link_static_flag=$lt_lt_prog_compiler_static_F77
23202 # Compiler flag to turn off builtin functions.
23203 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23205 # Compiler flag to allow reflexive dlopens.
23206 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23208 # Compiler flag to generate shared objects directly from archives.
23209 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23211 # Compiler flag to generate thread-safe objects.
23212 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23214 # Library versioning type.
23215 version_type=$version_type
23217 # Format of library name prefix.
23218 libname_spec=$lt_libname_spec
23220 # List of archive names. First name is the real one, the rest are links.
23221 # The last name is the one that the linker finds with -lNAME.
23222 library_names_spec=$lt_library_names_spec
23224 # The coded name of the library, if different from the real name.
23225 soname_spec=$lt_soname_spec
23227 # Commands used to build and install an old-style archive.
23229 old_archive_cmds=$lt_old_archive_cmds_F77
23230 old_postinstall_cmds=$lt_old_postinstall_cmds
23231 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23233 # Create an old-style archive from a shared archive.
23234 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23236 # Create a temporary old-style archive to link instead of a shared archive.
23237 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23239 # Commands used to build and install a shared archive.
23240 archive_cmds=$lt_archive_cmds_F77
23241 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23242 postinstall_cmds=$lt_postinstall_cmds
23243 postuninstall_cmds=$lt_postuninstall_cmds
23245 # Commands used to build a loadable module (assumed same as above if empty)
23246 module_cmds=$lt_module_cmds_F77
23247 module_expsym_cmds=$lt_module_expsym_cmds_F77
23249 # Commands to strip libraries.
23250 old_striplib=$lt_old_striplib
23251 striplib=$lt_striplib
23253 # Dependencies to place before the objects being linked to create a
23255 predep_objects=$lt_predep_objects_F77
23257 # Dependencies to place after the objects being linked to create a
23259 postdep_objects=$lt_postdep_objects_F77
23261 # Dependencies to place before the objects being linked to create a
23263 predeps=$lt_predeps_F77
23265 # Dependencies to place after the objects being linked to create a
23267 postdeps=$lt_postdeps_F77
23269 # The library search path used internally by the compiler when linking
23270 # a shared library.
23271 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23273 # Method to check whether dependent libraries are shared objects.
23274 deplibs_check_method=$lt_deplibs_check_method
23276 # Command to use when deplibs_check_method == file_magic.
23277 file_magic_cmd=$lt_file_magic_cmd
23279 # Flag that allows shared libraries with undefined symbols to be built.
23280 allow_undefined_flag=$lt_allow_undefined_flag_F77
23282 # Flag that forces no undefined symbols.
23283 no_undefined_flag=$lt_no_undefined_flag_F77
23285 # Commands used to finish a libtool library installation in a directory.
23286 finish_cmds=$lt_finish_cmds
23288 # Same as above, but a single script fragment to be evaled but not shown.
23289 finish_eval=$lt_finish_eval
23291 # Take the output of nm and produce a listing of raw symbols and C names.
23292 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23294 # Transform the output of nm in a proper C declaration
23295 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23297 # Transform the output of nm in a C name address pair
23298 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23300 # This is the shared library runtime path variable.
23301 runpath_var=$runpath_var
23303 # This is the shared library path variable.
23304 shlibpath_var=$shlibpath_var
23306 # Is shlibpath searched before the hard-coded library search path?
23307 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23309 # How to hardcode a shared library path into an executable.
23310 hardcode_action=$hardcode_action_F77
23312 # Whether we should hardcode library paths into libraries.
23313 hardcode_into_libs=$hardcode_into_libs
23315 # Flag to hardcode \$libdir into a binary during linking.
23316 # This must work even if \$libdir does not exist.
23317 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23319 # If ld is used when linking, flag to hardcode \$libdir into
23320 # a binary during linking. This must work even if \$libdir does
23322 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23324 # Whether we need a single -rpath flag with a separated argument.
23325 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23327 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23328 # resulting binary.
23329 hardcode_direct=$hardcode_direct_F77
23331 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23332 # resulting binary.
23333 hardcode_minus_L=$hardcode_minus_L_F77
23335 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23336 # the resulting binary.
23337 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23339 # Set to yes if building a shared library automatically hardcodes DIR into the library
23340 # and all subsequent libraries and executables linked against it.
23341 hardcode_automatic=$hardcode_automatic_F77
23343 # Variables whose values should be saved in libtool wrapper scripts and
23344 # restored at relink time.
23345 variables_saved_for_relink="$variables_saved_for_relink"
23347 # Whether libtool must link a program against all its dependency libraries.
23348 link_all_deplibs=$link_all_deplibs_F77
23350 # Compile-time system search path for libraries
23351 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23353 # Run-time system search path for libraries
23354 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23356 # Fix the shell variable \$srcfile for the compiler.
23357 fix_srcfile_path="$fix_srcfile_path_F77"
23359 # Set to yes if exported symbols are required.
23360 always_export_symbols=$always_export_symbols_F77
23362 # The commands to list exported symbols.
23363 export_symbols_cmds=$lt_export_symbols_cmds_F77
23365 # The commands to extract the exported symbol list from a shared archive.
23366 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23368 # Symbols that should not be listed in the preloaded symbols.
23369 exclude_expsyms=$lt_exclude_expsyms_F77
23371 # Symbols that must always be exported.
23372 include_expsyms=$lt_include_expsyms_F77
23374 # ### END LIBTOOL TAG CONFIG: $tagname
23380 # If there is no Makefile yet, we rely on a make rule to execute
23381 # `config.status --recheck' to rerun these tests and create the
23382 # libtool script then.
23383 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23384 if test -f "$ltmain_in"; then
23385 test -f Makefile && make "$ltmain"
23391 ac_cpp='$CPP $CPPFLAGS'
23392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23404 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23406 ac_cpp='$CPP $CPPFLAGS'
23407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23412 # Source file extension for Java test sources.
23415 # Object file extension for compiled Java test sources.
23419 # Code to be used in simple compile tests
23420 lt_simple_compile_test_code="class foo {}\n"
23422 # Code to be used in simple link tests
23423 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23425 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23427 # If no C compiler was specified, use CC.
23430 # If no C compiler flags were specified, use CFLAGS.
23431 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23433 # Allow CC to be a program name with arguments.
23437 # save warnings/boilerplate of simple test code
23438 ac_outfile=conftest.$ac_objext
23439 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23440 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23441 _lt_compiler_boilerplate=`cat conftest.err`
23444 ac_outfile=conftest.$ac_objext
23445 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23446 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23447 _lt_linker_boilerplate=`cat conftest.err`
23451 # Allow CC to be a program name with arguments.
23456 for cc_temp in $compiler""; do
23458 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23459 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23464 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23467 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23468 archive_cmds_need_lc_GCJ=no
23470 old_archive_cmds_GCJ=$old_archive_cmds
23473 lt_prog_compiler_no_builtin_flag_GCJ=
23475 if test "$GCC" = yes; then
23476 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23479 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23480 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23481 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23482 echo $ECHO_N "(cached) $ECHO_C" >&6
23484 lt_cv_prog_compiler_rtti_exceptions=no
23485 ac_outfile=conftest.$ac_objext
23486 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23487 lt_compiler_flag="-fno-rtti -fno-exceptions"
23488 # Insert the option either (1) after the last *FLAGS variable, or
23489 # (2) before a word containing "conftest.", or (3) at the end.
23490 # Note that $ac_compile itself does not contain backslashes and begins
23491 # with a dollar sign (not a hyphen), so the echo should work correctly.
23492 # The option is referenced via a variable to avoid confusing sed.
23493 lt_compile=`echo "$ac_compile" | $SED \
23494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23496 -e 's:$: $lt_compiler_flag:'`
23497 (eval echo "\"\$as_me:23497: $lt_compile\"" >&5)
23498 (eval "$lt_compile" 2>conftest.err)
23500 cat conftest.err >&5
23501 echo "$as_me:23501: \$? = $ac_status" >&5
23502 if (exit $ac_status) && test -s "$ac_outfile"; then
23503 # The compiler can only warn and ignore the option if not recognized
23504 # So say no if there are warnings other than the usual output.
23505 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23508 lt_cv_prog_compiler_rtti_exceptions=yes
23514 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23515 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23517 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23518 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23525 lt_prog_compiler_wl_GCJ=
23526 lt_prog_compiler_pic_GCJ=
23527 lt_prog_compiler_static_GCJ=
23529 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23530 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23532 if test "$GCC" = yes; then
23533 lt_prog_compiler_wl_GCJ='-Wl,'
23534 lt_prog_compiler_static_GCJ='-static'
23538 # All AIX code is PIC.
23539 if test "$host_cpu" = ia64; then
23540 # AIX 5 now supports IA64 processor
23541 lt_prog_compiler_static_GCJ='-Bstatic'
23546 # FIXME: we need at least 68020 code to build shared libraries, but
23547 # adding the `-m68020' flag to GCC prevents building anything better,
23549 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23552 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23553 # PIC is the default for these OSes.
23556 mingw* | pw32* | os2*)
23557 # This hack is so that the source file can tell whether it is being
23558 # built for inclusion in a dll (and should export symbols for example).
23559 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23562 darwin* | rhapsody*)
23563 # PIC is the default on this platform
23564 # Common symbols not allowed in MH_DYLIB files
23565 lt_prog_compiler_pic_GCJ='-fno-common'
23569 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23570 # Instead, we relocate shared libraries at runtime.
23574 # Just because we use GCC doesn't mean we suddenly get shared libraries
23575 # on systems that don't support them.
23576 lt_prog_compiler_can_build_shared_GCJ=no
23581 if test -d /usr/nec; then
23582 lt_prog_compiler_pic_GCJ=-Kconform_pic
23587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23588 # not for PA HP-UX.
23594 lt_prog_compiler_pic_GCJ='-fPIC'
23600 lt_prog_compiler_pic_GCJ='-fPIC'
23604 # PORTME Check for flag to pass linker flags through the system compiler.
23607 lt_prog_compiler_wl_GCJ='-Wl,'
23608 if test "$host_cpu" = ia64; then
23609 # AIX 5 now supports IA64 processor
23610 lt_prog_compiler_static_GCJ='-Bstatic'
23612 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23616 # PIC is the default on this platform
23617 # Common symbols not allowed in MH_DYLIB files
23618 case $cc_basename in
23620 lt_prog_compiler_pic_GCJ='-qnocommon'
23621 lt_prog_compiler_wl_GCJ='-Wl,'
23626 mingw* | pw32* | os2*)
23627 # This hack is so that the source file can tell whether it is being
23628 # built for inclusion in a dll (and should export symbols for example).
23629 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23632 hpux9* | hpux10* | hpux11*)
23633 lt_prog_compiler_wl_GCJ='-Wl,'
23634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23635 # not for PA HP-UX.
23641 lt_prog_compiler_pic_GCJ='+Z'
23644 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23645 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23648 irix5* | irix6* | nonstopux*)
23649 lt_prog_compiler_wl_GCJ='-Wl,'
23650 # PIC (with -KPIC) is the default.
23651 lt_prog_compiler_static_GCJ='-non_shared'
23655 lt_prog_compiler_pic_GCJ='-KPIC'
23656 lt_prog_compiler_static_GCJ='-Bstatic'
23660 case $cc_basename in
23662 lt_prog_compiler_wl_GCJ='-Wl,'
23663 lt_prog_compiler_pic_GCJ='-KPIC'
23664 lt_prog_compiler_static_GCJ='-static'
23666 pgcc* | pgf77* | pgf90* | pgf95*)
23667 # Portland Group compilers (*not* the Pentium gcc compiler,
23668 # which looks to be a dead project)
23669 lt_prog_compiler_wl_GCJ='-Wl,'
23670 lt_prog_compiler_pic_GCJ='-fpic'
23671 lt_prog_compiler_static_GCJ='-Bstatic'
23674 lt_prog_compiler_wl_GCJ='-Wl,'
23675 # All Alpha code is PIC.
23676 lt_prog_compiler_static_GCJ='-non_shared'
23681 osf3* | osf4* | osf5*)
23682 lt_prog_compiler_wl_GCJ='-Wl,'
23683 # All OSF/1 code is PIC.
23684 lt_prog_compiler_static_GCJ='-non_shared'
23688 lt_prog_compiler_pic_GCJ='-KPIC'
23689 lt_prog_compiler_static_GCJ='-Bstatic'
23690 case $cc_basename in
23691 f77* | f90* | f95*)
23692 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23694 lt_prog_compiler_wl_GCJ='-Wl,';;
23699 lt_prog_compiler_wl_GCJ='-Qoption ld '
23700 lt_prog_compiler_pic_GCJ='-PIC'
23701 lt_prog_compiler_static_GCJ='-Bstatic'
23704 sysv4 | sysv4.2uw2* | sysv4.3*)
23705 lt_prog_compiler_wl_GCJ='-Wl,'
23706 lt_prog_compiler_pic_GCJ='-KPIC'
23707 lt_prog_compiler_static_GCJ='-Bstatic'
23711 if test -d /usr/nec ;then
23712 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23713 lt_prog_compiler_static_GCJ='-Bstatic'
23717 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23718 lt_prog_compiler_wl_GCJ='-Wl,'
23719 lt_prog_compiler_pic_GCJ='-KPIC'
23720 lt_prog_compiler_static_GCJ='-Bstatic'
23724 lt_prog_compiler_wl_GCJ='-Wl,'
23725 lt_prog_compiler_can_build_shared_GCJ=no
23729 lt_prog_compiler_pic_GCJ='-pic'
23730 lt_prog_compiler_static_GCJ='-Bstatic'
23734 lt_prog_compiler_can_build_shared_GCJ=no
23739 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23740 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23743 # Check to make sure the PIC flag actually works.
23745 if test -n "$lt_prog_compiler_pic_GCJ"; then
23747 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23748 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23749 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23750 echo $ECHO_N "(cached) $ECHO_C" >&6
23752 lt_prog_compiler_pic_works_GCJ=no
23753 ac_outfile=conftest.$ac_objext
23754 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23755 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23756 # Insert the option either (1) after the last *FLAGS variable, or
23757 # (2) before a word containing "conftest.", or (3) at the end.
23758 # Note that $ac_compile itself does not contain backslashes and begins
23759 # with a dollar sign (not a hyphen), so the echo should work correctly.
23760 # The option is referenced via a variable to avoid confusing sed.
23761 lt_compile=`echo "$ac_compile" | $SED \
23762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23764 -e 's:$: $lt_compiler_flag:'`
23765 (eval echo "\"\$as_me:23765: $lt_compile\"" >&5)
23766 (eval "$lt_compile" 2>conftest.err)
23768 cat conftest.err >&5
23769 echo "$as_me:23769: \$? = $ac_status" >&5
23770 if (exit $ac_status) && test -s "$ac_outfile"; then
23771 # The compiler can only warn and ignore the option if not recognized
23772 # So say no if there are warnings other than the usual output.
23773 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23776 lt_prog_compiler_pic_works_GCJ=yes
23782 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23783 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23785 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23786 case $lt_prog_compiler_pic_GCJ in
23788 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23791 lt_prog_compiler_pic_GCJ=
23792 lt_prog_compiler_can_build_shared_GCJ=no
23797 # For platforms which do not support PIC, -DPIC is meaningless:
23799 lt_prog_compiler_pic_GCJ=
23802 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23807 # Check to make sure the static flag actually works.
23809 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23810 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23811 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23812 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23813 echo $ECHO_N "(cached) $ECHO_C" >&6
23815 lt_prog_compiler_static_works_GCJ=no
23816 save_LDFLAGS="$LDFLAGS"
23817 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23818 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23819 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23820 # The linker can only warn and ignore the option if not recognized
23821 # So say no if there are warnings
23822 if test -s conftest.err; then
23823 # Append any errors to the config.log.
23824 cat conftest.err 1>&5
23825 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23827 if diff conftest.exp conftest.er2 >/dev/null; then
23828 lt_prog_compiler_static_works_GCJ=yes
23831 lt_prog_compiler_static_works_GCJ=yes
23835 LDFLAGS="$save_LDFLAGS"
23838 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23839 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23841 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23844 lt_prog_compiler_static_GCJ=
23848 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23849 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23850 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23851 echo $ECHO_N "(cached) $ECHO_C" >&6
23853 lt_cv_prog_compiler_c_o_GCJ=no
23854 $rm -r conftest 2>/dev/null
23858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23860 lt_compiler_flag="-o out/conftest2.$ac_objext"
23861 # Insert the option either (1) after the last *FLAGS variable, or
23862 # (2) before a word containing "conftest.", or (3) at the end.
23863 # Note that $ac_compile itself does not contain backslashes and begins
23864 # with a dollar sign (not a hyphen), so the echo should work correctly.
23865 lt_compile=`echo "$ac_compile" | $SED \
23866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23868 -e 's:$: $lt_compiler_flag:'`
23869 (eval echo "\"\$as_me:23869: $lt_compile\"" >&5)
23870 (eval "$lt_compile" 2>out/conftest.err)
23872 cat out/conftest.err >&5
23873 echo "$as_me:23873: \$? = $ac_status" >&5
23874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23876 # The compiler can only warn and ignore the option if not recognized
23877 # So say no if there are warnings
23878 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23881 lt_cv_prog_compiler_c_o_GCJ=yes
23886 # SGI C++ compiler will create directory out/ii_files/ for
23887 # template instantiation
23888 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23889 $rm out/* && rmdir out
23895 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23896 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23899 hard_links="nottested"
23900 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23901 # do not overwrite the value of need_locks provided by the user
23902 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23903 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23906 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23908 ln conftest.a conftest.b 2>&5 || hard_links=no
23909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23910 { echo "$as_me:$LINENO: result: $hard_links" >&5
23911 echo "${ECHO_T}$hard_links" >&6; }
23912 if test "$hard_links" = no; then
23913 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23914 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23921 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23922 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23925 allow_undefined_flag_GCJ=
23926 enable_shared_with_static_runtimes_GCJ=no
23928 archive_expsym_cmds_GCJ=
23929 old_archive_From_new_cmds_GCJ=
23930 old_archive_from_expsyms_cmds_GCJ=
23931 export_dynamic_flag_spec_GCJ=
23932 whole_archive_flag_spec_GCJ=
23933 thread_safe_flag_spec_GCJ=
23934 hardcode_libdir_flag_spec_GCJ=
23935 hardcode_libdir_flag_spec_ld_GCJ=
23936 hardcode_libdir_separator_GCJ=
23937 hardcode_direct_GCJ=no
23938 hardcode_minus_L_GCJ=no
23939 hardcode_shlibpath_var_GCJ=unsupported
23940 link_all_deplibs_GCJ=unknown
23941 hardcode_automatic_GCJ=no
23943 module_expsym_cmds_GCJ=
23944 always_export_symbols_GCJ=no
23945 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23946 # include_expsyms should be a list of space-separated symbols to be *always*
23947 # included in the symbol list
23948 include_expsyms_GCJ=
23949 # exclude_expsyms can be an extended regexp of symbols to exclude
23950 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23952 # as well as any symbol that contains `d'.
23953 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23955 # platforms (ab)use it in PIC code, but their linkers get confused if
23956 # the symbol is explicitly referenced. Since portable code cannot
23957 # rely on this symbol name, it's probably fine to never include it in
23958 # preloaded symbol tables.
23959 extract_expsyms_cmds=
23960 # Just being paranoid about ensuring that cc_basename is set.
23961 for cc_temp in $compiler""; do
23963 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23964 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23969 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23972 cygwin* | mingw* | pw32*)
23973 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23974 # When not using gcc, we currently assume that we are using
23975 # Microsoft Visual C++.
23976 if test "$GCC" != yes; then
23981 # we just hope/assume this is gcc and not c89 (= MSVC++)
23990 if test "$with_gnu_ld" = yes; then
23991 # If archive_cmds runs LD, not CC, wlarc should be empty
23994 # Set some defaults for GNU ld with shared library support. These
23995 # are reset later if shared libraries are not supported. Putting them
23996 # here allows them to be overridden if necessary.
23997 runpath_var=LD_RUN_PATH
23998 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23999 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24000 # ancient GNU ld didn't support --whole-archive et. al.
24001 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24002 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24004 whole_archive_flag_spec_GCJ=
24006 supports_anon_versioning=no
24007 case `$LD -v 2>/dev/null` in
24008 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24009 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24010 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24011 *\ 2.11.*) ;; # other 2.11 versions
24012 *) supports_anon_versioning=yes ;;
24015 # See if GNU ld supports shared libraries.
24017 aix3* | aix4* | aix5*)
24018 # On AIX/PPC, the GNU linker is very broken
24019 if test "$host_cpu" != ia64; then
24023 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24024 *** to be unable to reliably create shared libraries on AIX.
24025 *** Therefore, libtool is disabling shared libraries support. If you
24026 *** really care for shared libraries, you may want to modify your PATH
24027 *** so that a non-GNU linker is found, and then restart.
24034 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)'
24035 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24036 hardcode_minus_L_GCJ=yes
24038 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24039 # that the semantics of dynamic libraries on AmigaOS, at least up
24040 # to version 4, is to share data among multiple programs linked
24041 # with the same dynamic library. Since this doesn't match the
24042 # behavior of shared libraries on other platforms, we can't use
24048 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24049 allow_undefined_flag_GCJ=unsupported
24050 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24051 # support --undefined. This deserves some investigation. FIXME
24052 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24058 cygwin* | mingw* | pw32*)
24059 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24060 # as there is no search path for DLLs.
24061 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24062 allow_undefined_flag_GCJ=unsupported
24063 always_export_symbols_GCJ=no
24064 enable_shared_with_static_runtimes_GCJ=yes
24065 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24067 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24068 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24069 # If the export-symbols file already is a .def file (1st line
24070 # is EXPORTS), use it as is; otherwise, prepend...
24071 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24072 cp $export_symbols $output_objdir/$soname.def;
24074 echo EXPORTS > $output_objdir/$soname.def;
24075 cat $export_symbols >> $output_objdir/$soname.def;
24077 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24084 hardcode_direct_GCJ=no
24085 hardcode_shlibpath_var_GCJ=no
24086 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24087 export_dynamic_flag_spec_GCJ='${wl}-E'
24088 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24089 # Instead, shared libraries are loaded at an image base (0x10000000 by
24090 # default) and relocated if they conflict, which is a slow very memory
24091 # consuming and fragmenting process. To avoid this, we pick a random,
24092 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24093 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24094 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'
24095 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'
24099 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24101 case $cc_basename,$host_cpu in
24102 pgcc*) # Portland Group C compiler
24103 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'
24104 tmp_addflag=' $pic_flag'
24106 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24107 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'
24108 tmp_addflag=' $pic_flag -Mnomain' ;;
24109 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24110 tmp_addflag=' -i_dynamic' ;;
24111 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24112 tmp_addflag=' -i_dynamic -nofor_main' ;;
24113 ifc* | ifort*) # Intel Fortran compiler
24114 tmp_addflag=' -nofor_main' ;;
24116 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24118 if test $supports_anon_versioning = yes; then
24119 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24121 $echo "local: *; };" >> $output_objdir/$libname.ver~
24122 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24131 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24134 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24135 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24140 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24145 *** create shared libraries on Solaris systems. Therefore, libtool
24146 *** is disabling shared libraries support. We urge you to upgrade GNU
24147 *** binutils to release 2.9.1 or newer. Another option is to modify
24148 *** your PATH or compiler configuration so that the native linker is
24149 *** used, and then restart.
24152 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24153 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24154 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24161 case `$LD -v 2>&1` in
24162 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24166 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24167 *** reliably create shared libraries on SCO systems. Therefore, libtool
24168 *** is disabling shared libraries support. We urge you to upgrade GNU
24169 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24170 *** your PATH or compiler configuration so that the native linker is
24171 *** used, and then restart.
24176 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24177 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24178 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24179 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24188 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24190 hardcode_direct_GCJ=yes
24191 hardcode_shlibpath_var_GCJ=no
24195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24196 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24197 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24204 if test "$ld_shlibs_GCJ" = no; then
24206 hardcode_libdir_flag_spec_GCJ=
24207 export_dynamic_flag_spec_GCJ=
24208 whole_archive_flag_spec_GCJ=
24211 # PORTME fill in a description of your system's linker (not GNU ld)
24214 allow_undefined_flag_GCJ=unsupported
24215 always_export_symbols_GCJ=yes
24216 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'
24217 # Note: this linker hardcodes the directories in LIBPATH if there
24218 # are no directories specified by -L.
24219 hardcode_minus_L_GCJ=yes
24220 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24221 # Neither direct hardcoding nor static linking is supported with a
24223 hardcode_direct_GCJ=unsupported
24228 if test "$host_cpu" = ia64; then
24229 # On IA64, the linker does run time linking by default, so we don't
24230 # have to do anything special.
24231 aix_use_runtimelinking=no
24232 exp_sym_flag='-Bexport'
24235 # If we're using GNU nm, then we don't want the "-C" option.
24236 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24237 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24238 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'
24240 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'
24242 aix_use_runtimelinking=no
24244 # Test if we are trying to use run time linking or normal
24245 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24246 # need to do runtime linking.
24247 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24248 for ld_flag in $LDFLAGS; do
24249 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24250 aix_use_runtimelinking=yes
24257 exp_sym_flag='-bexport'
24258 no_entry_flag='-bnoentry'
24261 # When large executables or shared objects are built, AIX ld can
24262 # have problems creating the table of contents. If linking a library
24263 # or program results in "error TOC overflow" add -mminimal-toc to
24264 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24265 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24267 archive_cmds_GCJ=''
24268 hardcode_direct_GCJ=yes
24269 hardcode_libdir_separator_GCJ=':'
24270 link_all_deplibs_GCJ=yes
24272 if test "$GCC" = yes; then
24273 case $host_os in aix4.[012]|aix4.[012].*)
24274 # We only want to do this on AIX 4.2 and lower, the check
24275 # below for broken collect2 doesn't work under 4.3+
24276 collect2name=`${CC} -print-prog-name=collect2`
24277 if test -f "$collect2name" && \
24278 strings "$collect2name" | grep resolve_lib_name >/dev/null
24280 # We have reworked collect2
24281 hardcode_direct_GCJ=yes
24283 # We have old collect2
24284 hardcode_direct_GCJ=unsupported
24285 # It fails to find uninstalled libraries when the uninstalled
24286 # path is not listed in the libpath. Setting hardcode_minus_L
24287 # to unsupported forces relinking
24288 hardcode_minus_L_GCJ=yes
24289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24290 hardcode_libdir_separator_GCJ=
24294 shared_flag='-shared'
24295 if test "$aix_use_runtimelinking" = yes; then
24296 shared_flag="$shared_flag "'${wl}-G'
24300 if test "$host_cpu" = ia64; then
24301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24302 # chokes on -Wl,-G. The following line is correct:
24305 if test "$aix_use_runtimelinking" = yes; then
24306 shared_flag='${wl}-G'
24308 shared_flag='${wl}-bM:SRE'
24313 # It seems that -bexpall does not export symbols beginning with
24314 # underscore (_), so it is better to generate a list of symbols to export.
24315 always_export_symbols_GCJ=yes
24316 if test "$aix_use_runtimelinking" = yes; then
24317 # Warning - without using the other runtime loading flags (-brtl),
24318 # -berok will link without error, but may produce a broken library.
24319 allow_undefined_flag_GCJ='-berok'
24320 # Determine the default libpath from the value encoded in an empty executable.
24321 cat >conftest.$ac_ext <<_ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h. */
24336 rm -f conftest.$ac_objext conftest$ac_exeext
24337 if { (ac_try="$ac_link"
24338 case "(($ac_try" in
24339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24340 *) ac_try_echo=$ac_try;;
24342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24343 (eval "$ac_link") 2>conftest.er1
24345 grep -v '^ *+' conftest.er1 >conftest.err
24347 cat conftest.err >&5
24348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); } &&
24350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24351 { (case "(($ac_try" in
24352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353 *) ac_try_echo=$ac_try;;
24355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356 (eval "$ac_try") 2>&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); }; } &&
24360 { ac_try='test -s conftest$ac_exeext'
24361 { (case "(($ac_try" in
24362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24363 *) ac_try_echo=$ac_try;;
24365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24366 (eval "$ac_try") 2>&5
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); }; }; then
24371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24373 # Check for a 64-bit object if we didn't find anything.
24374 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; }
24377 echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24383 rm -f core conftest.err conftest.$ac_objext \
24384 conftest$ac_exeext conftest.$ac_ext
24385 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24387 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24388 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"
24390 if test "$host_cpu" = ia64; then
24391 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24392 allow_undefined_flag_GCJ="-z nodefs"
24393 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"
24395 # Determine the default libpath from the value encoded in an empty executable.
24396 cat >conftest.$ac_ext <<_ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h. */
24411 rm -f conftest.$ac_objext conftest$ac_exeext
24412 if { (ac_try="$ac_link"
24413 case "(($ac_try" in
24414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24415 *) ac_try_echo=$ac_try;;
24417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24418 (eval "$ac_link") 2>conftest.er1
24420 grep -v '^ *+' conftest.er1 >conftest.err
24422 cat conftest.err >&5
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } &&
24425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24426 { (case "(($ac_try" in
24427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428 *) ac_try_echo=$ac_try;;
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431 (eval "$ac_try") 2>&5
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); }; } &&
24435 { ac_try='test -s conftest$ac_exeext'
24436 { (case "(($ac_try" in
24437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438 *) ac_try_echo=$ac_try;;
24440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24441 (eval "$ac_try") 2>&5
24443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); }; }; then
24446 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24448 # Check for a 64-bit object if we didn't find anything.
24449 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; }
24452 echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24458 rm -f core conftest.err conftest.$ac_objext \
24459 conftest$ac_exeext conftest.$ac_ext
24460 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24462 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24463 # Warning - without using the other run time loading flags,
24464 # -berok will link without error, but may produce a broken library.
24465 no_undefined_flag_GCJ=' ${wl}-bernotok'
24466 allow_undefined_flag_GCJ=' ${wl}-berok'
24467 # Exported symbols can be pulled into shared objects from archives
24468 whole_archive_flag_spec_GCJ='$convenience'
24469 archive_cmds_need_lc_GCJ=yes
24470 # This is similar to how AIX traditionally builds its shared libraries.
24471 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'
24477 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)'
24478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24479 hardcode_minus_L_GCJ=yes
24480 # see comment about different semantics on the GNU ld section
24485 export_dynamic_flag_spec_GCJ=-rdynamic
24488 cygwin* | mingw* | pw32*)
24489 # When not using gcc, we currently assume that we are using
24490 # Microsoft Visual C++.
24491 # hardcode_libdir_flag_spec is actually meaningless, as there is
24492 # no search path for DLLs.
24493 hardcode_libdir_flag_spec_GCJ=' '
24494 allow_undefined_flag_GCJ=unsupported
24495 # Tell ltmain to make .lib files, not .a files.
24497 # Tell ltmain to make .dll files, not .so files.
24499 # FIXME: Setting linknames here is a bad hack.
24500 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24501 # The linker will automatically build a .lib file if we build a DLL.
24502 old_archive_From_new_cmds_GCJ='true'
24503 # FIXME: Should let the user specify the lib program.
24504 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24505 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24506 enable_shared_with_static_runtimes_GCJ=yes
24509 darwin* | rhapsody*)
24511 rhapsody* | darwin1.[012])
24512 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24515 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24516 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24518 case ${MACOSX_DEPLOYMENT_TARGET} in
24520 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24523 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24529 archive_cmds_need_lc_GCJ=no
24530 hardcode_direct_GCJ=no
24531 hardcode_automatic_GCJ=yes
24532 hardcode_shlibpath_var_GCJ=unsupported
24533 whole_archive_flag_spec_GCJ=''
24534 link_all_deplibs_GCJ=yes
24535 if test "$GCC" = yes ; then
24536 output_verbose_link_cmd='echo'
24537 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24538 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24539 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24540 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}'
24541 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}'
24543 case $cc_basename in
24545 output_verbose_link_cmd='echo'
24546 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24547 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24548 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24549 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}'
24550 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}'
24560 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24561 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24562 hardcode_shlibpath_var_GCJ=no
24569 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24570 # support. Future versions do this automatically, but an explicit c++rt0.o
24571 # does not break anything, and helps significantly (at the cost of a little
24574 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24575 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24576 hardcode_direct_GCJ=yes
24577 hardcode_shlibpath_var_GCJ=no
24580 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24582 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24583 hardcode_direct_GCJ=yes
24584 hardcode_minus_L_GCJ=yes
24585 hardcode_shlibpath_var_GCJ=no
24588 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24589 freebsd* | kfreebsd*-gnu | dragonfly*)
24590 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24591 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24592 hardcode_direct_GCJ=yes
24593 hardcode_shlibpath_var_GCJ=no
24597 if test "$GCC" = yes; then
24598 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'
24600 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'
24602 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24603 hardcode_libdir_separator_GCJ=:
24604 hardcode_direct_GCJ=yes
24606 # hardcode_minus_L: Not really in the search PATH,
24607 # but as the default location of the library.
24608 hardcode_minus_L_GCJ=yes
24609 export_dynamic_flag_spec_GCJ='${wl}-E'
24613 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24614 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24616 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24618 if test "$with_gnu_ld" = no; then
24619 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24620 hardcode_libdir_separator_GCJ=:
24622 hardcode_direct_GCJ=yes
24623 export_dynamic_flag_spec_GCJ='${wl}-E'
24625 # hardcode_minus_L: Not really in the search PATH,
24626 # but as the default location of the library.
24627 hardcode_minus_L_GCJ=yes
24632 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24635 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24638 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24641 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24647 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24650 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24653 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24657 if test "$with_gnu_ld" = no; then
24658 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24659 hardcode_libdir_separator_GCJ=:
24663 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24664 hardcode_direct_GCJ=no
24665 hardcode_shlibpath_var_GCJ=no
24668 hardcode_direct_GCJ=yes
24669 export_dynamic_flag_spec_GCJ='${wl}-E'
24671 # hardcode_minus_L: Not really in the search PATH,
24672 # but as the default location of the library.
24673 hardcode_minus_L_GCJ=yes
24679 irix5* | irix6* | nonstopux*)
24680 if test "$GCC" = yes; then
24681 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'
24683 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'
24684 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24686 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24687 hardcode_libdir_separator_GCJ=:
24688 link_all_deplibs_GCJ=yes
24692 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24693 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24695 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24697 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24698 hardcode_direct_GCJ=yes
24699 hardcode_shlibpath_var_GCJ=no
24703 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24704 hardcode_direct_GCJ=yes
24705 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24706 hardcode_libdir_separator_GCJ=:
24707 hardcode_shlibpath_var_GCJ=no
24711 hardcode_direct_GCJ=yes
24712 hardcode_shlibpath_var_GCJ=no
24713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24714 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24715 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24716 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24717 export_dynamic_flag_spec_GCJ='${wl}-E'
24720 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24721 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24722 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24725 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24726 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24733 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24734 hardcode_minus_L_GCJ=yes
24735 allow_undefined_flag_GCJ=unsupported
24736 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'
24737 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24741 if test "$GCC" = yes; then
24742 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24743 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'
24745 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24746 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'
24748 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24749 hardcode_libdir_separator_GCJ=:
24752 osf4* | osf5*) # as osf3* with the addition of -msym flag
24753 if test "$GCC" = yes; then
24754 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24755 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'
24756 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24758 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24759 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'
24760 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~
24761 $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'
24763 # Both c and cxx compiler support -rpath directly
24764 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24766 hardcode_libdir_separator_GCJ=:
24770 no_undefined_flag_GCJ=' -z text'
24771 if test "$GCC" = yes; then
24773 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24774 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24775 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24778 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24779 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24780 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24782 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24783 hardcode_shlibpath_var_GCJ=no
24785 solaris2.[0-5] | solaris2.[0-5].*) ;;
24787 # The compiler driver will combine linker options so we
24788 # cannot just pass the convience library names through
24789 # without $wl, iff we do not link with $LD.
24790 # Luckily, gcc supports the same syntax we need for Sun Studio.
24791 # Supported since Solaris 2.6 (maybe 2.5.1?)
24794 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24796 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' ;;
24799 link_all_deplibs_GCJ=yes
24803 if test "x$host_vendor" = xsequent; then
24804 # Use $CC to link under sequent, because it throws in some extra .o
24805 # files that make .init and .fini sections work.
24806 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24808 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24810 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24811 hardcode_direct_GCJ=yes
24812 hardcode_minus_L_GCJ=yes
24813 hardcode_shlibpath_var_GCJ=no
24817 case $host_vendor in
24819 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24820 hardcode_direct_GCJ=yes # is this really true???
24823 ## LD is ld it makes a PLAMLIB
24824 ## CC just makes a GrossModule.
24825 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24826 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24827 hardcode_direct_GCJ=no
24830 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24831 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24834 runpath_var='LD_RUN_PATH'
24835 hardcode_shlibpath_var_GCJ=no
24839 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24840 hardcode_shlibpath_var_GCJ=no
24841 export_dynamic_flag_spec_GCJ='-Bexport'
24845 if test -d /usr/nec; then
24846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24847 hardcode_shlibpath_var_GCJ=no
24848 runpath_var=LD_RUN_PATH
24849 hardcode_runpath_var=yes
24854 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24855 no_undefined_flag_GCJ='${wl}-z,text'
24856 archive_cmds_need_lc_GCJ=no
24857 hardcode_shlibpath_var_GCJ=no
24858 runpath_var='LD_RUN_PATH'
24860 if test "$GCC" = yes; then
24861 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24862 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24864 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24865 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24869 sysv5* | sco3.2v5* | sco5v6*)
24870 # Note: We can NOT use -z defs as we might desire, because we do not
24871 # link with -lc, and that would cause any symbols used from libc to
24872 # always be unresolved, which means just about no library would
24873 # ever link correctly. If we're not using GNU ld we use -z text
24874 # though, which does catch some bad symbols but isn't as heavy-handed
24876 no_undefined_flag_GCJ='${wl}-z,text'
24877 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24878 archive_cmds_need_lc_GCJ=no
24879 hardcode_shlibpath_var_GCJ=no
24880 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24881 hardcode_libdir_separator_GCJ=':'
24882 link_all_deplibs_GCJ=yes
24883 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24884 runpath_var='LD_RUN_PATH'
24886 if test "$GCC" = yes; then
24887 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24888 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24890 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24891 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24896 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24897 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24898 hardcode_shlibpath_var_GCJ=no
24907 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24908 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24909 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24912 # Do we need to explicitly link libc?
24914 case "x$archive_cmds_need_lc_GCJ" in
24916 # Assume -lc should be added
24917 archive_cmds_need_lc_GCJ=yes
24919 if test "$enable_shared" = yes && test "$GCC" = yes; then
24920 case $archive_cmds_GCJ in
24922 # FIXME: we may have to deal with multi-command sequences.
24925 # Test whether the compiler implicitly links with -lc since on some
24926 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24927 # to ld, don't add -lc before -lgcc.
24928 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24929 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24931 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24934 (eval $ac_compile) 2>&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } 2>conftest.err; then
24940 libobjs=conftest.$ac_objext
24942 wl=$lt_prog_compiler_wl_GCJ
24943 pic_flag=$lt_prog_compiler_pic_GCJ
24949 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24950 allow_undefined_flag_GCJ=
24951 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24952 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }
24957 archive_cmds_need_lc_GCJ=no
24959 archive_cmds_need_lc_GCJ=yes
24961 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24963 cat conftest.err 1>&5
24966 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24967 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24974 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24975 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24976 library_names_spec=
24977 libname_spec='lib$name'
24981 postuninstall_cmds=
24985 shlibpath_overrides_runpath=unknown
24987 dynamic_linker="$host_os ld.so"
24988 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24989 if test "$GCC" = yes; then
24990 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24991 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24992 # if the path contains ";" then we assume it to be the separator
24993 # otherwise default to the standard path separator (i.e. ":") - it is
24994 # assumed that no part of a normal pathname contains ";" but that should
24995 # okay in the real world where ";" in dirpaths is itself problematic.
24996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25001 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25003 need_lib_prefix=unknown
25004 hardcode_into_libs=no
25006 # when you set need_version to no, make sure it does not cause -set_version
25007 # flags to be left without arguments
25008 need_version=unknown
25013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25014 shlibpath_var=LIBPATH
25016 # AIX 3 has no versioning support, so we append a major version to the name.
25017 soname_spec='${libname}${release}${shared_ext}$major'
25024 hardcode_into_libs=yes
25025 if test "$host_cpu" = ia64; then
25026 # AIX 5 supports IA64
25027 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25028 shlibpath_var=LD_LIBRARY_PATH
25030 # With GCC up to 2.95.x, collect2 would create an import file
25031 # for dependence libraries. The import file would start with
25032 # the line `#! .'. This would cause the generated library to
25033 # depend on `.', always an invalid library. This was fixed in
25034 # development snapshots of GCC prior to 3.0.
25036 aix4 | aix4.[01] | aix4.[01].*)
25037 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25039 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25042 can_build_shared=no
25046 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25047 # soname into executable. Probably we can add versioning support to
25048 # collect2, so additional links can be useful in future.
25049 if test "$aix_use_runtimelinking" = yes; then
25050 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25051 # instead of lib<name>.a to let people know that these are not
25052 # typical AIX shared libraries.
25053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25055 # We preserve .a as extension for shared libraries through AIX4.2
25056 # and later when we are not doing run time linking.
25057 library_names_spec='${libname}${release}.a $libname.a'
25058 soname_spec='${libname}${release}${shared_ext}$major'
25060 shlibpath_var=LIBPATH
25065 library_names_spec='$libname.ixlibrary $libname.a'
25066 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25067 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'
25071 library_names_spec='${libname}${shared_ext}'
25072 dynamic_linker="$host_os ld.so"
25073 shlibpath_var=LIBRARY_PATH
25079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25080 soname_spec='${libname}${release}${shared_ext}$major'
25081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25082 shlibpath_var=LD_LIBRARY_PATH
25083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25085 # the default ld.so.conf also contains /usr/contrib/lib and
25086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25087 # libtool to hard-code these into programs
25090 cygwin* | mingw* | pw32*)
25091 version_type=windows
25096 case $GCC,$host_os in
25097 yes,cygwin* | yes,mingw* | yes,pw32*)
25098 library_names_spec='$libname.dll.a'
25099 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25100 postinstall_cmds='base_file=`basename \${file}`~
25101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25102 dldir=$destdir/`dirname \$dlpath`~
25103 test -d \$dldir || mkdir -p \$dldir~
25104 $install_prog $dir/$dlname \$dldir/$dlname~
25105 chmod a+x \$dldir/$dlname'
25106 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25107 dlpath=$dir/\$dldll~
25109 shlibpath_overrides_runpath=yes
25113 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25114 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25115 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25118 # MinGW DLLs use traditional 'lib' prefix
25119 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25120 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25121 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25122 # It is most probably a Windows format PATH printed by
25123 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25124 # path with ; separators, and with drive letters. We can handle the
25125 # drive letters (cygwin fileutils understands them), so leave them,
25126 # especially as we might pass files found there to a mingw objdump,
25127 # which wouldn't understand a cygwinified path. Ahh.
25128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25134 # pw32 DLLs use 'pw' prefix rather than 'lib'
25135 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25141 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25144 dynamic_linker='Win32 ld.exe'
25145 # FIXME: first we should search . and the directory the executable is in
25149 darwin* | rhapsody*)
25150 dynamic_linker="$host_os dyld"
25151 version_type=darwin
25154 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25155 soname_spec='${libname}${release}${major}$shared_ext'
25156 shlibpath_overrides_runpath=yes
25157 shlibpath_var=DYLD_LIBRARY_PATH
25158 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25159 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25160 if test "$GCC" = yes; then
25161 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"`
25163 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25165 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25173 soname_spec='${libname}${release}${shared_ext}$major'
25174 shlibpath_var=LD_LIBRARY_PATH
25185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25186 soname_spec='${libname}${release}${shared_ext}$major'
25187 shlibpath_var=LD_LIBRARY_PATH
25188 shlibpath_overrides_runpath=no
25189 hardcode_into_libs=yes
25190 dynamic_linker='GNU ld.so'
25193 freebsd* | dragonfly*)
25194 # DragonFly does not have aout. When/if they implement a new
25195 # versioning mechanism, adjust this.
25196 if test -x /usr/bin/objformat; then
25197 objformat=`/usr/bin/objformat`
25200 freebsd[123]*) objformat=aout ;;
25201 *) objformat=elf ;;
25204 version_type=freebsd-$objformat
25205 case $version_type in
25207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25216 shlibpath_var=LD_LIBRARY_PATH
25219 shlibpath_overrides_runpath=yes
25221 freebsd3.[01]* | freebsdelf3.[01]*)
25222 shlibpath_overrides_runpath=yes
25223 hardcode_into_libs=yes
25225 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25226 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25227 shlibpath_overrides_runpath=no
25228 hardcode_into_libs=yes
25230 freebsd*) # from 4.6 on
25231 shlibpath_overrides_runpath=yes
25232 hardcode_into_libs=yes
25241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25242 soname_spec='${libname}${release}${shared_ext}$major'
25243 shlibpath_var=LD_LIBRARY_PATH
25244 hardcode_into_libs=yes
25247 hpux9* | hpux10* | hpux11*)
25248 # Give a soname corresponding to the major version so that dld.sl refuses to
25249 # link against other versions.
25256 hardcode_into_libs=yes
25257 dynamic_linker="$host_os dld.so"
25258 shlibpath_var=LD_LIBRARY_PATH
25259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25261 soname_spec='${libname}${release}${shared_ext}$major'
25262 if test "X$HPUX_IA64_MODE" = X32; then
25263 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25265 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25271 hardcode_into_libs=yes
25272 dynamic_linker="$host_os dld.sl"
25273 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25276 soname_spec='${libname}${release}${shared_ext}$major'
25277 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25282 dynamic_linker="$host_os dld.sl"
25283 shlibpath_var=SHLIB_PATH
25284 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25286 soname_spec='${libname}${release}${shared_ext}$major'
25289 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25290 postinstall_cmds='chmod 555 $lib'
25297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25298 soname_spec='${libname}${release}${shared_ext}$major'
25299 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25300 shlibpath_var=LD_LIBRARY_PATH
25301 shlibpath_overrides_runpath=no
25302 hardcode_into_libs=yes
25305 irix5* | irix6* | nonstopux*)
25307 nonstopux*) version_type=nonstopux ;;
25309 if test "$lt_cv_prog_gnu_ld" = yes; then
25317 soname_spec='${libname}${release}${shared_ext}$major'
25318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25320 irix5* | nonstopux*)
25321 libsuff= shlibsuff=
25324 case $LD in # libtool.m4 will add one of these switches to LD
25325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25326 libsuff= shlibsuff= libmagic=32-bit;;
25327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25328 libsuff=32 shlibsuff=N32 libmagic=N32;;
25329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25330 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25331 *) libsuff= shlibsuff= libmagic=never-match;;
25335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25336 shlibpath_overrides_runpath=no
25337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25339 hardcode_into_libs=yes
25342 # No shared lib support for Linux oldld, aout, or coff.
25343 linux*oldld* | linux*aout* | linux*coff*)
25347 # This must be Linux ELF.
25352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25353 soname_spec='${libname}${release}${shared_ext}$major'
25354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25355 shlibpath_var=LD_LIBRARY_PATH
25356 shlibpath_overrides_runpath=no
25357 # This implies no fast_install, which is unacceptable.
25358 # Some rework will be needed to allow for fast_install
25359 # before this can be enabled.
25360 hardcode_into_libs=yes
25362 # Append ld.so.conf contents to the search path
25363 if test -f /etc/ld.so.conf; then
25364 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' ' '`
25365 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25368 # We used to test for /lib/ld.so.1 and disable shared libraries on
25369 # powerpc, because MkLinux only supported shared libraries with the
25370 # GNU dynamic linker. Since this was broken with cross compilers,
25371 # most powerpc-linux boxes support dynamic linking these days and
25372 # people can always --disable-shared, the test was removed, and we
25373 # assume the GNU/Linux dynamic linker is in use.
25374 dynamic_linker='GNU/Linux ld.so'
25381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25382 soname_spec='${libname}${release}${shared_ext}$major'
25383 shlibpath_var=LD_LIBRARY_PATH
25384 shlibpath_overrides_runpath=no
25385 hardcode_into_libs=yes
25386 dynamic_linker='GNU ld.so'
25393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25396 dynamic_linker='NetBSD (a.out) ld.so'
25398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25399 soname_spec='${libname}${release}${shared_ext}$major'
25400 dynamic_linker='NetBSD ld.elf_so'
25402 shlibpath_var=LD_LIBRARY_PATH
25403 shlibpath_overrides_runpath=yes
25404 hardcode_into_libs=yes
25409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25410 shlibpath_var=LD_LIBRARY_PATH
25411 shlibpath_overrides_runpath=yes
25418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25419 soname_spec='${libname}${release}${shared_ext}$major'
25420 shlibpath_var=LD_LIBRARY_PATH
25421 shlibpath_overrides_runpath=yes
25426 sys_lib_dlsearch_path_spec="/usr/lib"
25428 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25430 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25431 *) need_version=no ;;
25433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25435 shlibpath_var=LD_LIBRARY_PATH
25436 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25438 openbsd2.[89] | openbsd2.[89].*)
25439 shlibpath_overrides_runpath=no
25442 shlibpath_overrides_runpath=yes
25446 shlibpath_overrides_runpath=yes
25451 libname_spec='$name'
25454 library_names_spec='$libname${shared_ext} $libname.a'
25455 dynamic_linker='OS/2 ld.exe'
25456 shlibpath_var=LIBPATH
25459 osf3* | osf4* | osf5*)
25463 soname_spec='${libname}${release}${shared_ext}$major'
25464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25465 shlibpath_var=LD_LIBRARY_PATH
25466 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25467 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25475 soname_spec='${libname}${release}${shared_ext}$major'
25476 shlibpath_var=LD_LIBRARY_PATH
25477 shlibpath_overrides_runpath=yes
25478 hardcode_into_libs=yes
25479 # ldd complains unless libraries are executable
25480 postinstall_cmds='chmod +x $lib'
25485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25486 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25487 shlibpath_var=LD_LIBRARY_PATH
25488 shlibpath_overrides_runpath=yes
25489 if test "$with_gnu_ld" = yes; then
25497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25498 soname_spec='${libname}${release}${shared_ext}$major'
25499 shlibpath_var=LD_LIBRARY_PATH
25500 case $host_vendor in
25502 shlibpath_overrides_runpath=no
25504 export_dynamic_flag_spec='${wl}-Blargedynsym'
25505 runpath_var=LD_RUN_PATH
25513 shlibpath_overrides_runpath=no
25514 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25520 if test -d /usr/nec ;then
25522 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25523 soname_spec='$libname${shared_ext}.$major'
25524 shlibpath_var=LD_LIBRARY_PATH
25528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25529 version_type=freebsd-elf
25532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25533 soname_spec='${libname}${release}${shared_ext}$major'
25534 shlibpath_var=LD_LIBRARY_PATH
25535 hardcode_into_libs=yes
25536 if test "$with_gnu_ld" = yes; then
25537 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25538 shlibpath_overrides_runpath=no
25540 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25541 shlibpath_overrides_runpath=yes
25544 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25548 sys_lib_dlsearch_path_spec='/usr/lib'
25553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25554 soname_spec='${libname}${release}${shared_ext}$major'
25555 shlibpath_var=LD_LIBRARY_PATH
25562 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25563 echo "${ECHO_T}$dynamic_linker" >&6; }
25564 test "$dynamic_linker" = no && can_build_shared=no
25566 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25567 if test "$GCC" = yes; then
25568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25571 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25572 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25573 hardcode_action_GCJ=
25574 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25575 test -n "$runpath_var_GCJ" || \
25576 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25578 # We can hardcode non-existant directories.
25579 if test "$hardcode_direct_GCJ" != no &&
25580 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25581 # have to relink, otherwise we might link with an installed library
25582 # when we should be linking with a yet-to-be-installed one
25583 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25584 test "$hardcode_minus_L_GCJ" != no; then
25585 # Linking always hardcodes the temporary library directory.
25586 hardcode_action_GCJ=relink
25588 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25589 hardcode_action_GCJ=immediate
25592 # We cannot hardcode anything, or else we can only hardcode existing
25594 hardcode_action_GCJ=unsupported
25596 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25597 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25599 if test "$hardcode_action_GCJ" = relink; then
25600 # Fast installation is not supported
25601 enable_fast_install=no
25602 elif test "$shlibpath_overrides_runpath" = yes ||
25603 test "$enable_shared" = no; then
25604 # Fast installation is not necessary
25605 enable_fast_install=needless
25609 # The else clause should only fire when bootstrapping the
25610 # libtool distribution, otherwise you forgot to ship ltmain.sh
25611 # with your package, and you will get complaints that there are
25612 # no rules to generate ltmain.sh.
25613 if test -f "$ltmain"; then
25614 # See if we are running on zsh, and set the options which allow our commands through
25615 # without removal of \ escapes.
25616 if test -n "${ZSH_VERSION+set}" ; then
25617 setopt NO_GLOB_SUBST
25619 # Now quote all the things that may contain metacharacters while being
25620 # careful not to overquote the AC_SUBSTed values. We take copies of the
25621 # variables and quote the copies for generation of the libtool script.
25622 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25624 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25625 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25626 deplibs_check_method reload_flag reload_cmds need_locks \
25627 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25628 lt_cv_sys_global_symbol_to_c_name_address \
25629 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25630 old_postinstall_cmds old_postuninstall_cmds \
25634 lt_prog_compiler_wl_GCJ \
25635 lt_prog_compiler_pic_GCJ \
25636 lt_prog_compiler_static_GCJ \
25637 lt_prog_compiler_no_builtin_flag_GCJ \
25638 export_dynamic_flag_spec_GCJ \
25639 thread_safe_flag_spec_GCJ \
25640 whole_archive_flag_spec_GCJ \
25641 enable_shared_with_static_runtimes_GCJ \
25642 old_archive_cmds_GCJ \
25643 old_archive_from_new_cmds_GCJ \
25644 predep_objects_GCJ \
25645 postdep_objects_GCJ \
25648 compiler_lib_search_path_GCJ \
25650 archive_expsym_cmds_GCJ \
25651 postinstall_cmds_GCJ \
25652 postuninstall_cmds_GCJ \
25653 old_archive_from_expsyms_cmds_GCJ \
25654 allow_undefined_flag_GCJ \
25655 no_undefined_flag_GCJ \
25656 export_symbols_cmds_GCJ \
25657 hardcode_libdir_flag_spec_GCJ \
25658 hardcode_libdir_flag_spec_ld_GCJ \
25659 hardcode_libdir_separator_GCJ \
25660 hardcode_automatic_GCJ \
25662 module_expsym_cmds_GCJ \
25663 lt_cv_prog_compiler_c_o_GCJ \
25664 exclude_expsyms_GCJ \
25665 include_expsyms_GCJ; do
25668 old_archive_cmds_GCJ | \
25669 old_archive_from_new_cmds_GCJ | \
25670 archive_cmds_GCJ | \
25671 archive_expsym_cmds_GCJ | \
25672 module_cmds_GCJ | \
25673 module_expsym_cmds_GCJ | \
25674 old_archive_from_expsyms_cmds_GCJ | \
25675 export_symbols_cmds_GCJ | \
25676 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25677 postinstall_cmds | postuninstall_cmds | \
25678 old_postinstall_cmds | old_postuninstall_cmds | \
25679 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25680 # Double-quote double-evaled strings.
25681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25690 *'\$0 --fallback-echo"')
25691 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25697 cat <<__EOF__ >> "$cfgfile"
25698 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25702 # Shell to use when invoking shell scripts.
25705 # Whether or not to build shared libraries.
25706 build_libtool_libs=$enable_shared
25708 # Whether or not to build static libraries.
25709 build_old_libs=$enable_static
25711 # Whether or not to add -lc for building shared libraries.
25712 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25714 # Whether or not to disallow shared libs when runtime libs are static
25715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25717 # Whether or not to optimize for fast installation.
25718 fast_install=$enable_fast_install
25721 host_alias=$host_alias
25725 # The build system.
25726 build_alias=$build_alias
25730 # An echo program that does not interpret backslashes.
25735 AR_FLAGS=$lt_AR_FLAGS
25740 # LTCC compiler flags.
25741 LTCFLAGS=$lt_LTCFLAGS
25743 # A language-specific compiler.
25744 CC=$lt_compiler_GCJ
25746 # Is the compiler the GNU C compiler?
25752 # The linker used to build libraries.
25755 # Whether we need hard or soft links.
25758 # A BSD-compatible nm program.
25761 # A symbol stripping program
25764 # Used to examine libraries when file_magic_cmd begins "file"
25765 MAGIC_CMD=$MAGIC_CMD
25767 # Used on cygwin: DLL creation program.
25770 # Used on cygwin: object dumper.
25773 # Used on cygwin: assembler.
25776 # The name of the directory that contains temporary libtool files.
25779 # How to create reloadable object files.
25780 reload_flag=$lt_reload_flag
25781 reload_cmds=$lt_reload_cmds
25783 # How to pass a linker flag through the compiler.
25784 wl=$lt_lt_prog_compiler_wl_GCJ
25786 # Object file suffix (normally "o").
25787 objext="$ac_objext"
25789 # Old archive suffix (normally "a").
25792 # Shared library suffix (normally ".so").
25793 shrext_cmds='$shrext_cmds'
25795 # Executable file suffix (normally "").
25798 # Additional compiler flags for building library objects.
25799 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25802 # What is the maximum length of a command?
25803 max_cmd_len=$lt_cv_sys_max_cmd_len
25805 # Does compiler simultaneously support -c and -o options?
25806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25808 # Must we lock files when doing compilation?
25809 need_locks=$lt_need_locks
25811 # Do we need the lib prefix for modules?
25812 need_lib_prefix=$need_lib_prefix
25814 # Do we need a version for libraries?
25815 need_version=$need_version
25817 # Whether dlopen is supported.
25818 dlopen_support=$enable_dlopen
25820 # Whether dlopen of programs is supported.
25821 dlopen_self=$enable_dlopen_self
25823 # Whether dlopen of statically linked programs is supported.
25824 dlopen_self_static=$enable_dlopen_self_static
25826 # Compiler flag to prevent dynamic linking.
25827 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25829 # Compiler flag to turn off builtin functions.
25830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25832 # Compiler flag to allow reflexive dlopens.
25833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25835 # Compiler flag to generate shared objects directly from archives.
25836 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25838 # Compiler flag to generate thread-safe objects.
25839 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25841 # Library versioning type.
25842 version_type=$version_type
25844 # Format of library name prefix.
25845 libname_spec=$lt_libname_spec
25847 # List of archive names. First name is the real one, the rest are links.
25848 # The last name is the one that the linker finds with -lNAME.
25849 library_names_spec=$lt_library_names_spec
25851 # The coded name of the library, if different from the real name.
25852 soname_spec=$lt_soname_spec
25854 # Commands used to build and install an old-style archive.
25856 old_archive_cmds=$lt_old_archive_cmds_GCJ
25857 old_postinstall_cmds=$lt_old_postinstall_cmds
25858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25860 # Create an old-style archive from a shared archive.
25861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25863 # Create a temporary old-style archive to link instead of a shared archive.
25864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25866 # Commands used to build and install a shared archive.
25867 archive_cmds=$lt_archive_cmds_GCJ
25868 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25869 postinstall_cmds=$lt_postinstall_cmds
25870 postuninstall_cmds=$lt_postuninstall_cmds
25872 # Commands used to build a loadable module (assumed same as above if empty)
25873 module_cmds=$lt_module_cmds_GCJ
25874 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25876 # Commands to strip libraries.
25877 old_striplib=$lt_old_striplib
25878 striplib=$lt_striplib
25880 # Dependencies to place before the objects being linked to create a
25882 predep_objects=$lt_predep_objects_GCJ
25884 # Dependencies to place after the objects being linked to create a
25886 postdep_objects=$lt_postdep_objects_GCJ
25888 # Dependencies to place before the objects being linked to create a
25890 predeps=$lt_predeps_GCJ
25892 # Dependencies to place after the objects being linked to create a
25894 postdeps=$lt_postdeps_GCJ
25896 # The library search path used internally by the compiler when linking
25897 # a shared library.
25898 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25900 # Method to check whether dependent libraries are shared objects.
25901 deplibs_check_method=$lt_deplibs_check_method
25903 # Command to use when deplibs_check_method == file_magic.
25904 file_magic_cmd=$lt_file_magic_cmd
25906 # Flag that allows shared libraries with undefined symbols to be built.
25907 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25909 # Flag that forces no undefined symbols.
25910 no_undefined_flag=$lt_no_undefined_flag_GCJ
25912 # Commands used to finish a libtool library installation in a directory.
25913 finish_cmds=$lt_finish_cmds
25915 # Same as above, but a single script fragment to be evaled but not shown.
25916 finish_eval=$lt_finish_eval
25918 # Take the output of nm and produce a listing of raw symbols and C names.
25919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25921 # Transform the output of nm in a proper C declaration
25922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25924 # Transform the output of nm in a C name address pair
25925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25927 # This is the shared library runtime path variable.
25928 runpath_var=$runpath_var
25930 # This is the shared library path variable.
25931 shlibpath_var=$shlibpath_var
25933 # Is shlibpath searched before the hard-coded library search path?
25934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25936 # How to hardcode a shared library path into an executable.
25937 hardcode_action=$hardcode_action_GCJ
25939 # Whether we should hardcode library paths into libraries.
25940 hardcode_into_libs=$hardcode_into_libs
25942 # Flag to hardcode \$libdir into a binary during linking.
25943 # This must work even if \$libdir does not exist.
25944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25946 # If ld is used when linking, flag to hardcode \$libdir into
25947 # a binary during linking. This must work even if \$libdir does
25949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25951 # Whether we need a single -rpath flag with a separated argument.
25952 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25955 # resulting binary.
25956 hardcode_direct=$hardcode_direct_GCJ
25958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25959 # resulting binary.
25960 hardcode_minus_L=$hardcode_minus_L_GCJ
25962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25963 # the resulting binary.
25964 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25966 # Set to yes if building a shared library automatically hardcodes DIR into the library
25967 # and all subsequent libraries and executables linked against it.
25968 hardcode_automatic=$hardcode_automatic_GCJ
25970 # Variables whose values should be saved in libtool wrapper scripts and
25971 # restored at relink time.
25972 variables_saved_for_relink="$variables_saved_for_relink"
25974 # Whether libtool must link a program against all its dependency libraries.
25975 link_all_deplibs=$link_all_deplibs_GCJ
25977 # Compile-time system search path for libraries
25978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25980 # Run-time system search path for libraries
25981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25983 # Fix the shell variable \$srcfile for the compiler.
25984 fix_srcfile_path="$fix_srcfile_path_GCJ"
25986 # Set to yes if exported symbols are required.
25987 always_export_symbols=$always_export_symbols_GCJ
25989 # The commands to list exported symbols.
25990 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25992 # The commands to extract the exported symbol list from a shared archive.
25993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25995 # Symbols that should not be listed in the preloaded symbols.
25996 exclude_expsyms=$lt_exclude_expsyms_GCJ
25998 # Symbols that must always be exported.
25999 include_expsyms=$lt_include_expsyms_GCJ
26001 # ### END LIBTOOL TAG CONFIG: $tagname
26007 # If there is no Makefile yet, we rely on a make rule to execute
26008 # `config.status --recheck' to rerun these tests and create the
26009 # libtool script then.
26010 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26011 if test -f "$ltmain_in"; then
26012 test -f Makefile && make "$ltmain"
26018 ac_cpp='$CPP $CPPFLAGS'
26019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26032 ac_cpp='$CPP $CPPFLAGS'
26033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26038 # Source file extension for RC test sources.
26041 # Object file extension for compiled RC test sources.
26045 # Code to be used in simple compile tests
26046 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26048 # Code to be used in simple link tests
26049 lt_simple_link_test_code="$lt_simple_compile_test_code"
26051 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26053 # If no C compiler was specified, use CC.
26056 # If no C compiler flags were specified, use CFLAGS.
26057 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26059 # Allow CC to be a program name with arguments.
26063 # save warnings/boilerplate of simple test code
26064 ac_outfile=conftest.$ac_objext
26065 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26066 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26067 _lt_compiler_boilerplate=`cat conftest.err`
26070 ac_outfile=conftest.$ac_objext
26071 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26072 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26073 _lt_linker_boilerplate=`cat conftest.err`
26077 # Allow CC to be a program name with arguments.
26082 for cc_temp in $compiler""; do
26084 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26085 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26090 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26092 lt_cv_prog_compiler_c_o_RC=yes
26094 # The else clause should only fire when bootstrapping the
26095 # libtool distribution, otherwise you forgot to ship ltmain.sh
26096 # with your package, and you will get complaints that there are
26097 # no rules to generate ltmain.sh.
26098 if test -f "$ltmain"; then
26099 # See if we are running on zsh, and set the options which allow our commands through
26100 # without removal of \ escapes.
26101 if test -n "${ZSH_VERSION+set}" ; then
26102 setopt NO_GLOB_SUBST
26104 # Now quote all the things that may contain metacharacters while being
26105 # careful not to overquote the AC_SUBSTed values. We take copies of the
26106 # variables and quote the copies for generation of the libtool script.
26107 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26109 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26110 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26111 deplibs_check_method reload_flag reload_cmds need_locks \
26112 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26113 lt_cv_sys_global_symbol_to_c_name_address \
26114 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26115 old_postinstall_cmds old_postuninstall_cmds \
26119 lt_prog_compiler_wl_RC \
26120 lt_prog_compiler_pic_RC \
26121 lt_prog_compiler_static_RC \
26122 lt_prog_compiler_no_builtin_flag_RC \
26123 export_dynamic_flag_spec_RC \
26124 thread_safe_flag_spec_RC \
26125 whole_archive_flag_spec_RC \
26126 enable_shared_with_static_runtimes_RC \
26127 old_archive_cmds_RC \
26128 old_archive_from_new_cmds_RC \
26129 predep_objects_RC \
26130 postdep_objects_RC \
26133 compiler_lib_search_path_RC \
26135 archive_expsym_cmds_RC \
26136 postinstall_cmds_RC \
26137 postuninstall_cmds_RC \
26138 old_archive_from_expsyms_cmds_RC \
26139 allow_undefined_flag_RC \
26140 no_undefined_flag_RC \
26141 export_symbols_cmds_RC \
26142 hardcode_libdir_flag_spec_RC \
26143 hardcode_libdir_flag_spec_ld_RC \
26144 hardcode_libdir_separator_RC \
26145 hardcode_automatic_RC \
26147 module_expsym_cmds_RC \
26148 lt_cv_prog_compiler_c_o_RC \
26149 exclude_expsyms_RC \
26150 include_expsyms_RC; do
26153 old_archive_cmds_RC | \
26154 old_archive_from_new_cmds_RC | \
26155 archive_cmds_RC | \
26156 archive_expsym_cmds_RC | \
26158 module_expsym_cmds_RC | \
26159 old_archive_from_expsyms_cmds_RC | \
26160 export_symbols_cmds_RC | \
26161 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26162 postinstall_cmds | postuninstall_cmds | \
26163 old_postinstall_cmds | old_postuninstall_cmds | \
26164 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26165 # Double-quote double-evaled strings.
26166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26175 *'\$0 --fallback-echo"')
26176 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26182 cat <<__EOF__ >> "$cfgfile"
26183 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26187 # Shell to use when invoking shell scripts.
26190 # Whether or not to build shared libraries.
26191 build_libtool_libs=$enable_shared
26193 # Whether or not to build static libraries.
26194 build_old_libs=$enable_static
26196 # Whether or not to add -lc for building shared libraries.
26197 build_libtool_need_lc=$archive_cmds_need_lc_RC
26199 # Whether or not to disallow shared libs when runtime libs are static
26200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26202 # Whether or not to optimize for fast installation.
26203 fast_install=$enable_fast_install
26206 host_alias=$host_alias
26210 # The build system.
26211 build_alias=$build_alias
26215 # An echo program that does not interpret backslashes.
26220 AR_FLAGS=$lt_AR_FLAGS
26225 # LTCC compiler flags.
26226 LTCFLAGS=$lt_LTCFLAGS
26228 # A language-specific compiler.
26231 # Is the compiler the GNU C compiler?
26237 # The linker used to build libraries.
26240 # Whether we need hard or soft links.
26243 # A BSD-compatible nm program.
26246 # A symbol stripping program
26249 # Used to examine libraries when file_magic_cmd begins "file"
26250 MAGIC_CMD=$MAGIC_CMD
26252 # Used on cygwin: DLL creation program.
26255 # Used on cygwin: object dumper.
26258 # Used on cygwin: assembler.
26261 # The name of the directory that contains temporary libtool files.
26264 # How to create reloadable object files.
26265 reload_flag=$lt_reload_flag
26266 reload_cmds=$lt_reload_cmds
26268 # How to pass a linker flag through the compiler.
26269 wl=$lt_lt_prog_compiler_wl_RC
26271 # Object file suffix (normally "o").
26272 objext="$ac_objext"
26274 # Old archive suffix (normally "a").
26277 # Shared library suffix (normally ".so").
26278 shrext_cmds='$shrext_cmds'
26280 # Executable file suffix (normally "").
26283 # Additional compiler flags for building library objects.
26284 pic_flag=$lt_lt_prog_compiler_pic_RC
26287 # What is the maximum length of a command?
26288 max_cmd_len=$lt_cv_sys_max_cmd_len
26290 # Does compiler simultaneously support -c and -o options?
26291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26293 # Must we lock files when doing compilation?
26294 need_locks=$lt_need_locks
26296 # Do we need the lib prefix for modules?
26297 need_lib_prefix=$need_lib_prefix
26299 # Do we need a version for libraries?
26300 need_version=$need_version
26302 # Whether dlopen is supported.
26303 dlopen_support=$enable_dlopen
26305 # Whether dlopen of programs is supported.
26306 dlopen_self=$enable_dlopen_self
26308 # Whether dlopen of statically linked programs is supported.
26309 dlopen_self_static=$enable_dlopen_self_static
26311 # Compiler flag to prevent dynamic linking.
26312 link_static_flag=$lt_lt_prog_compiler_static_RC
26314 # Compiler flag to turn off builtin functions.
26315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26317 # Compiler flag to allow reflexive dlopens.
26318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26320 # Compiler flag to generate shared objects directly from archives.
26321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26323 # Compiler flag to generate thread-safe objects.
26324 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26326 # Library versioning type.
26327 version_type=$version_type
26329 # Format of library name prefix.
26330 libname_spec=$lt_libname_spec
26332 # List of archive names. First name is the real one, the rest are links.
26333 # The last name is the one that the linker finds with -lNAME.
26334 library_names_spec=$lt_library_names_spec
26336 # The coded name of the library, if different from the real name.
26337 soname_spec=$lt_soname_spec
26339 # Commands used to build and install an old-style archive.
26341 old_archive_cmds=$lt_old_archive_cmds_RC
26342 old_postinstall_cmds=$lt_old_postinstall_cmds
26343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26345 # Create an old-style archive from a shared archive.
26346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26348 # Create a temporary old-style archive to link instead of a shared archive.
26349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26351 # Commands used to build and install a shared archive.
26352 archive_cmds=$lt_archive_cmds_RC
26353 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26354 postinstall_cmds=$lt_postinstall_cmds
26355 postuninstall_cmds=$lt_postuninstall_cmds
26357 # Commands used to build a loadable module (assumed same as above if empty)
26358 module_cmds=$lt_module_cmds_RC
26359 module_expsym_cmds=$lt_module_expsym_cmds_RC
26361 # Commands to strip libraries.
26362 old_striplib=$lt_old_striplib
26363 striplib=$lt_striplib
26365 # Dependencies to place before the objects being linked to create a
26367 predep_objects=$lt_predep_objects_RC
26369 # Dependencies to place after the objects being linked to create a
26371 postdep_objects=$lt_postdep_objects_RC
26373 # Dependencies to place before the objects being linked to create a
26375 predeps=$lt_predeps_RC
26377 # Dependencies to place after the objects being linked to create a
26379 postdeps=$lt_postdeps_RC
26381 # The library search path used internally by the compiler when linking
26382 # a shared library.
26383 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26385 # Method to check whether dependent libraries are shared objects.
26386 deplibs_check_method=$lt_deplibs_check_method
26388 # Command to use when deplibs_check_method == file_magic.
26389 file_magic_cmd=$lt_file_magic_cmd
26391 # Flag that allows shared libraries with undefined symbols to be built.
26392 allow_undefined_flag=$lt_allow_undefined_flag_RC
26394 # Flag that forces no undefined symbols.
26395 no_undefined_flag=$lt_no_undefined_flag_RC
26397 # Commands used to finish a libtool library installation in a directory.
26398 finish_cmds=$lt_finish_cmds
26400 # Same as above, but a single script fragment to be evaled but not shown.
26401 finish_eval=$lt_finish_eval
26403 # Take the output of nm and produce a listing of raw symbols and C names.
26404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26406 # Transform the output of nm in a proper C declaration
26407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26409 # Transform the output of nm in a C name address pair
26410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26412 # This is the shared library runtime path variable.
26413 runpath_var=$runpath_var
26415 # This is the shared library path variable.
26416 shlibpath_var=$shlibpath_var
26418 # Is shlibpath searched before the hard-coded library search path?
26419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26421 # How to hardcode a shared library path into an executable.
26422 hardcode_action=$hardcode_action_RC
26424 # Whether we should hardcode library paths into libraries.
26425 hardcode_into_libs=$hardcode_into_libs
26427 # Flag to hardcode \$libdir into a binary during linking.
26428 # This must work even if \$libdir does not exist.
26429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26431 # If ld is used when linking, flag to hardcode \$libdir into
26432 # a binary during linking. This must work even if \$libdir does
26434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26436 # Whether we need a single -rpath flag with a separated argument.
26437 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26440 # resulting binary.
26441 hardcode_direct=$hardcode_direct_RC
26443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26444 # resulting binary.
26445 hardcode_minus_L=$hardcode_minus_L_RC
26447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26448 # the resulting binary.
26449 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26451 # Set to yes if building a shared library automatically hardcodes DIR into the library
26452 # and all subsequent libraries and executables linked against it.
26453 hardcode_automatic=$hardcode_automatic_RC
26455 # Variables whose values should be saved in libtool wrapper scripts and
26456 # restored at relink time.
26457 variables_saved_for_relink="$variables_saved_for_relink"
26459 # Whether libtool must link a program against all its dependency libraries.
26460 link_all_deplibs=$link_all_deplibs_RC
26462 # Compile-time system search path for libraries
26463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26465 # Run-time system search path for libraries
26466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26468 # Fix the shell variable \$srcfile for the compiler.
26469 fix_srcfile_path="$fix_srcfile_path_RC"
26471 # Set to yes if exported symbols are required.
26472 always_export_symbols=$always_export_symbols_RC
26474 # The commands to list exported symbols.
26475 export_symbols_cmds=$lt_export_symbols_cmds_RC
26477 # The commands to extract the exported symbol list from a shared archive.
26478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26480 # Symbols that should not be listed in the preloaded symbols.
26481 exclude_expsyms=$lt_exclude_expsyms_RC
26483 # Symbols that must always be exported.
26484 include_expsyms=$lt_include_expsyms_RC
26486 # ### END LIBTOOL TAG CONFIG: $tagname
26492 # If there is no Makefile yet, we rely on a make rule to execute
26493 # `config.status --recheck' to rerun these tests and create the
26494 # libtool script then.
26495 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26496 if test -f "$ltmain_in"; then
26497 test -f Makefile && make "$ltmain"
26503 ac_cpp='$CPP $CPPFLAGS'
26504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26513 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26514 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26515 { (exit 1); exit 1; }; }
26519 # Append the new tag name to the list of available tags.
26520 if test -n "$tagname" ; then
26521 available_tags="$available_tags $tagname"
26527 # Now substitute the updated list of available tags.
26528 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26529 mv "${ofile}T" "$ofile"
26533 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26534 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26535 { (exit 1); exit 1; }; }
26541 # This can be used to rebuild libtool when needed
26542 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26544 # Always use our own libtool.
26545 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26547 # Prevent multiple expansion
26569 if test "$lt_cv_dlopen_self" = "yes" ; then
26571 cat >>confdefs.h <<\_ACEOF
26572 #define CAN_DLOPEN_SELF 1
26577 etags_version=`$ETAGS --version 2>&1`
26578 case "$etags_version" in
26579 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26580 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26581 *) ETAGSFLAGS="" ;;
26583 ETAGSFLAGS=$ETAGSFLAGS
26586 if test "$WITH_LLVMGCCDIR" = "default" ; then
26587 LLVMGCC="llvm-gcc${EXEEXT}"
26588 LLVMGXX="llvm-g++${EXEEXT}"
26589 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26590 set dummy $LLVMGCC; ac_word=$2
26591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26593 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26594 echo $ECHO_N "(cached) $ECHO_C" >&6
26598 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26602 for as_dir in $PATH
26605 test -z "$as_dir" && as_dir=.
26606 for ac_exec_ext in '' $ac_executable_extensions; do
26607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26608 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26619 LLVMGCC=$ac_cv_path_LLVMGCC
26620 if test -n "$LLVMGCC"; then
26621 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26622 echo "${ECHO_T}$LLVMGCC" >&6; }
26624 { echo "$as_me:$LINENO: result: no" >&5
26625 echo "${ECHO_T}no" >&6; }
26629 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26630 set dummy $LLVMGXX; ac_word=$2
26631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26633 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26634 echo $ECHO_N "(cached) $ECHO_C" >&6
26638 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26642 for as_dir in $PATH
26645 test -z "$as_dir" && as_dir=.
26646 for ac_exec_ext in '' $ac_executable_extensions; do
26647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26648 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26659 LLVMGXX=$ac_cv_path_LLVMGXX
26660 if test -n "$LLVMGXX"; then
26661 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26662 echo "${ECHO_T}$LLVMGXX" >&6; }
26664 { echo "$as_me:$LINENO: result: no" >&5
26665 echo "${ECHO_T}no" >&6; }
26670 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26671 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26678 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26679 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26692 if test "$GCC" != "yes" && test "$ICC" != "yes"
26694 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26695 echo "$as_me: error: gcc|icc required but not found" >&2;}
26696 { (exit 1); exit 1; }; }
26699 if test "$GXX" != "yes" && test "$IXX" != "yes"
26701 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26702 echo "$as_me: error: g++|icc required but not found" >&2;}
26703 { (exit 1); exit 1; }; }
26706 if test "$GCC" = "yes"
26708 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26709 if test "$gccmajor" -lt "3"
26711 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26712 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26713 { (exit 1); exit 1; }; }
26717 if test -z "$llvm_cv_gnu_make_command"
26719 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26720 echo "$as_me: error: GNU Make required but not found" >&2;}
26721 { (exit 1); exit 1; }; }
26724 { echo "$as_me:$LINENO: result: ok" >&5
26725 echo "${ECHO_T}ok" >&6; }
26729 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26730 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26731 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26732 echo $ECHO_N "(cached) $ECHO_C" >&6
26734 ac_check_lib_save_LIBS=$LIBS
26736 cat >conftest.$ac_ext <<_ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h. */
26743 /* Override any GCC internal prototype to avoid an error.
26744 Use char because int might match the return type of a GCC
26745 builtin and then its argument prototype would still apply. */
26753 return elf_begin ();
26758 rm -f conftest.$ac_objext conftest$ac_exeext
26759 if { (ac_try="$ac_link"
26760 case "(($ac_try" in
26761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26762 *) ac_try_echo=$ac_try;;
26764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26765 (eval "$ac_link") 2>conftest.er1
26767 grep -v '^ *+' conftest.er1 >conftest.err
26769 cat conftest.err >&5
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); } &&
26772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26773 { (case "(($ac_try" in
26774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775 *) ac_try_echo=$ac_try;;
26777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26778 (eval "$ac_try") 2>&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; } &&
26782 { ac_try='test -s conftest$ac_exeext'
26783 { (case "(($ac_try" in
26784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26785 *) ac_try_echo=$ac_try;;
26787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26788 (eval "$ac_try") 2>&5
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); }; }; then
26792 ac_cv_lib_elf_elf_begin=yes
26794 echo "$as_me: failed program was:" >&5
26795 sed 's/^/| /' conftest.$ac_ext >&5
26797 ac_cv_lib_elf_elf_begin=no
26800 rm -f core conftest.err conftest.$ac_objext \
26801 conftest$ac_exeext conftest.$ac_ext
26802 LIBS=$ac_check_lib_save_LIBS
26804 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26805 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26806 if test $ac_cv_lib_elf_elf_begin = yes; then
26807 cat >>confdefs.h <<_ACEOF
26808 #define HAVE_LIBELF 1
26816 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26817 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26818 if test "${ac_cv_lib_m_sin+set}" = set; then
26819 echo $ECHO_N "(cached) $ECHO_C" >&6
26821 ac_check_lib_save_LIBS=$LIBS
26823 cat >conftest.$ac_ext <<_ACEOF
26826 cat confdefs.h >>conftest.$ac_ext
26827 cat >>conftest.$ac_ext <<_ACEOF
26828 /* end confdefs.h. */
26830 /* Override any GCC internal prototype to avoid an error.
26831 Use char because int might match the return type of a GCC
26832 builtin and then its argument prototype would still apply. */
26845 rm -f conftest.$ac_objext conftest$ac_exeext
26846 if { (ac_try="$ac_link"
26847 case "(($ac_try" in
26848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849 *) ac_try_echo=$ac_try;;
26851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26852 (eval "$ac_link") 2>conftest.er1
26854 grep -v '^ *+' conftest.er1 >conftest.err
26856 cat conftest.err >&5
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); } &&
26859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26860 { (case "(($ac_try" in
26861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862 *) ac_try_echo=$ac_try;;
26864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865 (eval "$ac_try") 2>&5
26867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868 (exit $ac_status); }; } &&
26869 { ac_try='test -s conftest$ac_exeext'
26870 { (case "(($ac_try" in
26871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26872 *) ac_try_echo=$ac_try;;
26874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26875 (eval "$ac_try") 2>&5
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); }; }; then
26879 ac_cv_lib_m_sin=yes
26881 echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.$ac_ext >&5
26887 rm -f core conftest.err conftest.$ac_objext \
26888 conftest$ac_exeext conftest.$ac_ext
26889 LIBS=$ac_check_lib_save_LIBS
26891 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26892 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26893 if test $ac_cv_lib_m_sin = yes; then
26894 cat >>confdefs.h <<_ACEOF
26895 #define HAVE_LIBM 1
26902 if test "$llvm_cv_os_type" == "MingW" ; then
26904 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26905 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26906 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26907 echo $ECHO_N "(cached) $ECHO_C" >&6
26909 ac_check_lib_save_LIBS=$LIBS
26910 LIBS="-limagehlp $LIBS"
26911 cat >conftest.$ac_ext <<_ACEOF
26914 cat confdefs.h >>conftest.$ac_ext
26915 cat >>conftest.$ac_ext <<_ACEOF
26916 /* end confdefs.h. */
26927 rm -f conftest.$ac_objext conftest$ac_exeext
26928 if { (ac_try="$ac_link"
26929 case "(($ac_try" in
26930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26931 *) ac_try_echo=$ac_try;;
26933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26934 (eval "$ac_link") 2>conftest.er1
26936 grep -v '^ *+' conftest.er1 >conftest.err
26938 cat conftest.err >&5
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); } &&
26941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26942 { (case "(($ac_try" in
26943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944 *) ac_try_echo=$ac_try;;
26946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947 (eval "$ac_try") 2>&5
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); }; } &&
26951 { ac_try='test -s conftest$ac_exeext'
26952 { (case "(($ac_try" in
26953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26954 *) ac_try_echo=$ac_try;;
26956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26957 (eval "$ac_try") 2>&5
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; }; then
26961 ac_cv_lib_imagehlp_main=yes
26963 echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26966 ac_cv_lib_imagehlp_main=no
26969 rm -f core conftest.err conftest.$ac_objext \
26970 conftest$ac_exeext conftest.$ac_ext
26971 LIBS=$ac_check_lib_save_LIBS
26973 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26974 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26975 if test $ac_cv_lib_imagehlp_main = yes; then
26976 cat >>confdefs.h <<_ACEOF
26977 #define HAVE_LIBIMAGEHLP 1
26980 LIBS="-limagehlp $LIBS"
26985 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26986 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26987 if test "${ac_cv_lib_psapi_main+set}" = set; then
26988 echo $ECHO_N "(cached) $ECHO_C" >&6
26990 ac_check_lib_save_LIBS=$LIBS
26991 LIBS="-lpsapi $LIBS"
26992 cat >conftest.$ac_ext <<_ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h. */
27008 rm -f conftest.$ac_objext conftest$ac_exeext
27009 if { (ac_try="$ac_link"
27010 case "(($ac_try" in
27011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27012 *) ac_try_echo=$ac_try;;
27014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27015 (eval "$ac_link") 2>conftest.er1
27017 grep -v '^ *+' conftest.er1 >conftest.err
27019 cat conftest.err >&5
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); } &&
27022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27023 { (case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_try") 2>&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; } &&
27032 { ac_try='test -s conftest$ac_exeext'
27033 { (case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038 (eval "$ac_try") 2>&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; }; then
27042 ac_cv_lib_psapi_main=yes
27044 echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27047 ac_cv_lib_psapi_main=no
27050 rm -f core conftest.err conftest.$ac_objext \
27051 conftest$ac_exeext conftest.$ac_ext
27052 LIBS=$ac_check_lib_save_LIBS
27054 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27055 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27056 if test $ac_cv_lib_psapi_main = yes; then
27057 cat >>confdefs.h <<_ACEOF
27058 #define HAVE_LIBPSAPI 1
27061 LIBS="-lpsapi $LIBS"
27067 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27068 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27069 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27070 echo $ECHO_N "(cached) $ECHO_C" >&6
27072 ac_func_search_save_LIBS=$LIBS
27073 cat >conftest.$ac_ext <<_ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h. */
27080 /* Override any GCC internal prototype to avoid an error.
27081 Use char because int might match the return type of a GCC
27082 builtin and then its argument prototype would still apply. */
27090 return lt_dlopen ();
27095 for ac_lib in '' ltdl; do
27096 if test -z "$ac_lib"; then
27097 ac_res="none required"
27100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27102 rm -f conftest.$ac_objext conftest$ac_exeext
27103 if { (ac_try="$ac_link"
27104 case "(($ac_try" in
27105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106 *) ac_try_echo=$ac_try;;
27108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27109 (eval "$ac_link") 2>conftest.er1
27111 grep -v '^ *+' conftest.er1 >conftest.err
27113 cat conftest.err >&5
27114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115 (exit $ac_status); } &&
27116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27117 { (case "(($ac_try" in
27118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27119 *) ac_try_echo=$ac_try;;
27121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27122 (eval "$ac_try") 2>&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; } &&
27126 { ac_try='test -s conftest$ac_exeext'
27127 { (case "(($ac_try" in
27128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27129 *) ac_try_echo=$ac_try;;
27131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27132 (eval "$ac_try") 2>&5
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); }; }; then
27136 ac_cv_search_lt_dlopen=$ac_res
27138 echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27144 rm -f core conftest.err conftest.$ac_objext \
27146 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27150 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27153 ac_cv_search_lt_dlopen=no
27155 rm conftest.$ac_ext
27156 LIBS=$ac_func_search_save_LIBS
27158 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27159 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27160 ac_res=$ac_cv_search_lt_dlopen
27161 if test "$ac_res" != no; then
27162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27164 cat >>confdefs.h <<\_ACEOF
27165 #define HAVE_LT_DLOPEN 1
27169 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27170 not be available" >&5
27171 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27172 not be available" >&2;}
27176 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27177 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27178 if test "${ac_cv_search_dlopen+set}" = set; then
27179 echo $ECHO_N "(cached) $ECHO_C" >&6
27181 ac_func_search_save_LIBS=$LIBS
27182 cat >conftest.$ac_ext <<_ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h. */
27189 /* Override any GCC internal prototype to avoid an error.
27190 Use char because int might match the return type of a GCC
27191 builtin and then its argument prototype would still apply. */
27204 for ac_lib in '' dl; do
27205 if test -z "$ac_lib"; then
27206 ac_res="none required"
27209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27211 rm -f conftest.$ac_objext conftest$ac_exeext
27212 if { (ac_try="$ac_link"
27213 case "(($ac_try" in
27214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215 *) ac_try_echo=$ac_try;;
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218 (eval "$ac_link") 2>conftest.er1
27220 grep -v '^ *+' conftest.er1 >conftest.err
27222 cat conftest.err >&5
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); } &&
27225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27226 { (case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231 (eval "$ac_try") 2>&5
27233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234 (exit $ac_status); }; } &&
27235 { ac_try='test -s conftest$ac_exeext'
27236 { (case "(($ac_try" in
27237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238 *) ac_try_echo=$ac_try;;
27240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241 (eval "$ac_try") 2>&5
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); }; }; then
27245 ac_cv_search_dlopen=$ac_res
27247 echo "$as_me: failed program was:" >&5
27248 sed 's/^/| /' conftest.$ac_ext >&5
27253 rm -f core conftest.err conftest.$ac_objext \
27255 if test "${ac_cv_search_dlopen+set}" = set; then
27259 if test "${ac_cv_search_dlopen+set}" = set; then
27262 ac_cv_search_dlopen=no
27264 rm conftest.$ac_ext
27265 LIBS=$ac_func_search_save_LIBS
27267 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27268 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27269 ac_res=$ac_cv_search_dlopen
27270 if test "$ac_res" != no; then
27271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27273 cat >>confdefs.h <<\_ACEOF
27274 #define HAVE_DLOPEN 1
27278 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27279 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27283 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27284 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27285 if test "${ac_cv_search_mallinfo+set}" = set; then
27286 echo $ECHO_N "(cached) $ECHO_C" >&6
27288 ac_func_search_save_LIBS=$LIBS
27289 cat >conftest.$ac_ext <<_ACEOF
27292 cat confdefs.h >>conftest.$ac_ext
27293 cat >>conftest.$ac_ext <<_ACEOF
27294 /* end confdefs.h. */
27296 /* Override any GCC internal prototype to avoid an error.
27297 Use char because int might match the return type of a GCC
27298 builtin and then its argument prototype would still apply. */
27306 return mallinfo ();
27311 for ac_lib in '' malloc; do
27312 if test -z "$ac_lib"; then
27313 ac_res="none required"
27316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27318 rm -f conftest.$ac_objext conftest$ac_exeext
27319 if { (ac_try="$ac_link"
27320 case "(($ac_try" in
27321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322 *) ac_try_echo=$ac_try;;
27324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325 (eval "$ac_link") 2>conftest.er1
27327 grep -v '^ *+' conftest.er1 >conftest.err
27329 cat conftest.err >&5
27330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); } &&
27332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27333 { (case "(($ac_try" in
27334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27335 *) ac_try_echo=$ac_try;;
27337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338 (eval "$ac_try") 2>&5
27340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341 (exit $ac_status); }; } &&
27342 { ac_try='test -s conftest$ac_exeext'
27343 { (case "(($ac_try" in
27344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27345 *) ac_try_echo=$ac_try;;
27347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27348 (eval "$ac_try") 2>&5
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); }; }; then
27352 ac_cv_search_mallinfo=$ac_res
27354 echo "$as_me: failed program was:" >&5
27355 sed 's/^/| /' conftest.$ac_ext >&5
27360 rm -f core conftest.err conftest.$ac_objext \
27362 if test "${ac_cv_search_mallinfo+set}" = set; then
27366 if test "${ac_cv_search_mallinfo+set}" = set; then
27369 ac_cv_search_mallinfo=no
27371 rm conftest.$ac_ext
27372 LIBS=$ac_func_search_save_LIBS
27374 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27375 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27376 ac_res=$ac_cv_search_mallinfo
27377 if test "$ac_res" != no; then
27378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27380 cat >>confdefs.h <<\_ACEOF
27381 #define HAVE_MALLINFO 1
27387 if test "$ENABLE_THREADS" -eq 1 ; then
27389 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27390 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27391 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27392 echo $ECHO_N "(cached) $ECHO_C" >&6
27394 ac_check_lib_save_LIBS=$LIBS
27395 LIBS="-lpthread $LIBS"
27396 cat >conftest.$ac_ext <<_ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h. */
27403 /* Override any GCC internal prototype to avoid an error.
27404 Use char because int might match the return type of a GCC
27405 builtin and then its argument prototype would still apply. */
27409 char pthread_mutex_init ();
27413 return pthread_mutex_init ();
27418 rm -f conftest.$ac_objext conftest$ac_exeext
27419 if { (ac_try="$ac_link"
27420 case "(($ac_try" in
27421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422 *) ac_try_echo=$ac_try;;
27424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425 (eval "$ac_link") 2>conftest.er1
27427 grep -v '^ *+' conftest.er1 >conftest.err
27429 cat conftest.err >&5
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); } &&
27432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27433 { (case "(($ac_try" in
27434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27435 *) ac_try_echo=$ac_try;;
27437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438 (eval "$ac_try") 2>&5
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); }; } &&
27442 { ac_try='test -s conftest$ac_exeext'
27443 { (case "(($ac_try" in
27444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445 *) ac_try_echo=$ac_try;;
27447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27448 (eval "$ac_try") 2>&5
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); }; }; then
27452 ac_cv_lib_pthread_pthread_mutex_init=yes
27454 echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.$ac_ext >&5
27457 ac_cv_lib_pthread_pthread_mutex_init=no
27460 rm -f core conftest.err conftest.$ac_objext \
27461 conftest$ac_exeext conftest.$ac_ext
27462 LIBS=$ac_check_lib_save_LIBS
27464 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27465 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27466 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27467 cat >>confdefs.h <<_ACEOF
27468 #define HAVE_LIBPTHREAD 1
27471 LIBS="-lpthread $LIBS"
27475 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27476 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27477 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27478 echo $ECHO_N "(cached) $ECHO_C" >&6
27480 ac_func_search_save_LIBS=$LIBS
27481 cat >conftest.$ac_ext <<_ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h. */
27488 /* Override any GCC internal prototype to avoid an error.
27489 Use char because int might match the return type of a GCC
27490 builtin and then its argument prototype would still apply. */
27494 char pthread_mutex_lock ();
27498 return pthread_mutex_lock ();
27503 for ac_lib in '' pthread; do
27504 if test -z "$ac_lib"; then
27505 ac_res="none required"
27508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27510 rm -f conftest.$ac_objext conftest$ac_exeext
27511 if { (ac_try="$ac_link"
27512 case "(($ac_try" in
27513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514 *) ac_try_echo=$ac_try;;
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517 (eval "$ac_link") 2>conftest.er1
27519 grep -v '^ *+' conftest.er1 >conftest.err
27521 cat conftest.err >&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); } &&
27524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27525 { (case "(($ac_try" in
27526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527 *) ac_try_echo=$ac_try;;
27529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530 (eval "$ac_try") 2>&5
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; } &&
27534 { ac_try='test -s conftest$ac_exeext'
27535 { (case "(($ac_try" in
27536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537 *) ac_try_echo=$ac_try;;
27539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540 (eval "$ac_try") 2>&5
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); }; }; then
27544 ac_cv_search_pthread_mutex_lock=$ac_res
27546 echo "$as_me: failed program was:" >&5
27547 sed 's/^/| /' conftest.$ac_ext >&5
27552 rm -f core conftest.err conftest.$ac_objext \
27554 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27558 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27561 ac_cv_search_pthread_mutex_lock=no
27563 rm conftest.$ac_ext
27564 LIBS=$ac_func_search_save_LIBS
27566 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27567 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27568 ac_res=$ac_cv_search_pthread_mutex_lock
27569 if test "$ac_res" != no; then
27570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27572 cat >>confdefs.h <<\_ACEOF
27573 #define HAVE_PTHREAD_MUTEX_LOCK 1
27586 ac_header_dirent=no
27587 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27588 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27589 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27590 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27592 echo $ECHO_N "(cached) $ECHO_C" >&6
27594 cat >conftest.$ac_ext <<_ACEOF
27597 cat confdefs.h >>conftest.$ac_ext
27598 cat >>conftest.$ac_ext <<_ACEOF
27599 /* end confdefs.h. */
27600 #include <sys/types.h>
27612 rm -f conftest.$ac_objext
27613 if { (ac_try="$ac_compile"
27614 case "(($ac_try" in
27615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27616 *) ac_try_echo=$ac_try;;
27618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27619 (eval "$ac_compile") 2>conftest.er1
27621 grep -v '^ *+' conftest.er1 >conftest.err
27623 cat conftest.err >&5
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } &&
27626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27627 { (case "(($ac_try" in
27628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27629 *) ac_try_echo=$ac_try;;
27631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27632 (eval "$ac_try") 2>&5
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); }; } &&
27636 { ac_try='test -s conftest.$ac_objext'
27637 { (case "(($ac_try" in
27638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639 *) ac_try_echo=$ac_try;;
27641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642 (eval "$ac_try") 2>&5
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; }; then
27646 eval "$as_ac_Header=yes"
27648 echo "$as_me: failed program was:" >&5
27649 sed 's/^/| /' conftest.$ac_ext >&5
27651 eval "$as_ac_Header=no"
27654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27656 ac_res=`eval echo '${'$as_ac_Header'}'`
27657 { echo "$as_me:$LINENO: result: $ac_res" >&5
27658 echo "${ECHO_T}$ac_res" >&6; }
27659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27660 cat >>confdefs.h <<_ACEOF
27661 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27664 ac_header_dirent=$ac_hdr; break
27668 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27669 if test $ac_header_dirent = dirent.h; then
27670 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27671 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27672 if test "${ac_cv_search_opendir+set}" = set; then
27673 echo $ECHO_N "(cached) $ECHO_C" >&6
27675 ac_func_search_save_LIBS=$LIBS
27676 cat >conftest.$ac_ext <<_ACEOF
27679 cat confdefs.h >>conftest.$ac_ext
27680 cat >>conftest.$ac_ext <<_ACEOF
27681 /* end confdefs.h. */
27683 /* Override any GCC internal prototype to avoid an error.
27684 Use char because int might match the return type of a GCC
27685 builtin and then its argument prototype would still apply. */
27698 for ac_lib in '' dir; do
27699 if test -z "$ac_lib"; then
27700 ac_res="none required"
27703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27705 rm -f conftest.$ac_objext conftest$ac_exeext
27706 if { (ac_try="$ac_link"
27707 case "(($ac_try" in
27708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27709 *) ac_try_echo=$ac_try;;
27711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27712 (eval "$ac_link") 2>conftest.er1
27714 grep -v '^ *+' conftest.er1 >conftest.err
27716 cat conftest.err >&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
27719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27720 { (case "(($ac_try" in
27721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722 *) ac_try_echo=$ac_try;;
27724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27725 (eval "$ac_try") 2>&5
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; } &&
27729 { ac_try='test -s conftest$ac_exeext'
27730 { (case "(($ac_try" in
27731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732 *) ac_try_echo=$ac_try;;
27734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735 (eval "$ac_try") 2>&5
27737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738 (exit $ac_status); }; }; then
27739 ac_cv_search_opendir=$ac_res
27741 echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27747 rm -f core conftest.err conftest.$ac_objext \
27749 if test "${ac_cv_search_opendir+set}" = set; then
27753 if test "${ac_cv_search_opendir+set}" = set; then
27756 ac_cv_search_opendir=no
27758 rm conftest.$ac_ext
27759 LIBS=$ac_func_search_save_LIBS
27761 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27762 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27763 ac_res=$ac_cv_search_opendir
27764 if test "$ac_res" != no; then
27765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27770 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27771 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27772 if test "${ac_cv_search_opendir+set}" = set; then
27773 echo $ECHO_N "(cached) $ECHO_C" >&6
27775 ac_func_search_save_LIBS=$LIBS
27776 cat >conftest.$ac_ext <<_ACEOF
27779 cat confdefs.h >>conftest.$ac_ext
27780 cat >>conftest.$ac_ext <<_ACEOF
27781 /* end confdefs.h. */
27783 /* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
27798 for ac_lib in '' x; do
27799 if test -z "$ac_lib"; then
27800 ac_res="none required"
27803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27805 rm -f conftest.$ac_objext conftest$ac_exeext
27806 if { (ac_try="$ac_link"
27807 case "(($ac_try" in
27808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809 *) ac_try_echo=$ac_try;;
27811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812 (eval "$ac_link") 2>conftest.er1
27814 grep -v '^ *+' conftest.er1 >conftest.err
27816 cat conftest.err >&5
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); } &&
27819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27820 { (case "(($ac_try" in
27821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822 *) ac_try_echo=$ac_try;;
27824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825 (eval "$ac_try") 2>&5
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); }; } &&
27829 { ac_try='test -s conftest$ac_exeext'
27830 { (case "(($ac_try" in
27831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27832 *) ac_try_echo=$ac_try;;
27834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27835 (eval "$ac_try") 2>&5
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; }; then
27839 ac_cv_search_opendir=$ac_res
27841 echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27847 rm -f core conftest.err conftest.$ac_objext \
27849 if test "${ac_cv_search_opendir+set}" = set; then
27853 if test "${ac_cv_search_opendir+set}" = set; then
27856 ac_cv_search_opendir=no
27858 rm conftest.$ac_ext
27859 LIBS=$ac_func_search_save_LIBS
27861 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27862 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27863 ac_res=$ac_cv_search_opendir
27864 if test "$ac_res" != no; then
27865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27871 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27872 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27873 if test "${ac_cv_header_mmap_anon+set}" = set; then
27874 echo $ECHO_N "(cached) $ECHO_C" >&6
27877 ac_cpp='$CPP $CPPFLAGS'
27878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27882 cat >conftest.$ac_ext <<_ACEOF
27885 cat confdefs.h >>conftest.$ac_ext
27886 cat >>conftest.$ac_ext <<_ACEOF
27887 /* end confdefs.h. */
27888 #include <sys/mman.h>
27889 #include <unistd.h>
27894 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27899 rm -f conftest.$ac_objext
27900 if { (ac_try="$ac_compile"
27901 case "(($ac_try" in
27902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27903 *) ac_try_echo=$ac_try;;
27905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27906 (eval "$ac_compile") 2>conftest.er1
27908 grep -v '^ *+' conftest.er1 >conftest.err
27910 cat conftest.err >&5
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); } &&
27913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27914 { (case "(($ac_try" in
27915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916 *) ac_try_echo=$ac_try;;
27918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27919 (eval "$ac_try") 2>&5
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; } &&
27923 { ac_try='test -s conftest.$ac_objext'
27924 { (case "(($ac_try" in
27925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27926 *) ac_try_echo=$ac_try;;
27928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27929 (eval "$ac_try") 2>&5
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); }; }; then
27933 ac_cv_header_mmap_anon=yes
27935 echo "$as_me: failed program was:" >&5
27936 sed 's/^/| /' conftest.$ac_ext >&5
27938 ac_cv_header_mmap_anon=no
27941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27943 ac_cpp='$CPP $CPPFLAGS'
27944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27950 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27951 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27952 if test "$ac_cv_header_mmap_anon" = yes; then
27954 cat >>confdefs.h <<\_ACEOF
27955 #define HAVE_MMAP_ANONYMOUS 1
27960 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27961 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27962 if test "${ac_cv_header_stat_broken+set}" = set; then
27963 echo $ECHO_N "(cached) $ECHO_C" >&6
27965 cat >conftest.$ac_ext <<_ACEOF
27968 cat confdefs.h >>conftest.$ac_ext
27969 cat >>conftest.$ac_ext <<_ACEOF
27970 /* end confdefs.h. */
27971 #include <sys/types.h>
27972 #include <sys/stat.h>
27974 #if defined S_ISBLK && defined S_IFDIR
27975 # if S_ISBLK (S_IFDIR)
27980 #if defined S_ISBLK && defined S_IFCHR
27981 # if S_ISBLK (S_IFCHR)
27986 #if defined S_ISLNK && defined S_IFREG
27987 # if S_ISLNK (S_IFREG)
27992 #if defined S_ISSOCK && defined S_IFREG
27993 # if S_ISSOCK (S_IFREG)
27999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28000 $EGREP "You lose" >/dev/null 2>&1; then
28001 ac_cv_header_stat_broken=yes
28003 ac_cv_header_stat_broken=no
28008 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28009 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28010 if test $ac_cv_header_stat_broken = yes; then
28012 cat >>confdefs.h <<\_ACEOF
28013 #define STAT_MACROS_BROKEN 1
28018 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28019 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28020 if test "${ac_cv_header_stdc+set}" = set; then
28021 echo $ECHO_N "(cached) $ECHO_C" >&6
28023 cat >conftest.$ac_ext <<_ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h. */
28029 #include <stdlib.h>
28030 #include <stdarg.h>
28031 #include <string.h>
28042 rm -f conftest.$ac_objext
28043 if { (ac_try="$ac_compile"
28044 case "(($ac_try" in
28045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046 *) ac_try_echo=$ac_try;;
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049 (eval "$ac_compile") 2>conftest.er1
28051 grep -v '^ *+' conftest.er1 >conftest.err
28053 cat conftest.err >&5
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); } &&
28056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28057 { (case "(($ac_try" in
28058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28059 *) ac_try_echo=$ac_try;;
28061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062 (eval "$ac_try") 2>&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); }; } &&
28066 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28076 ac_cv_header_stdc=yes
28078 echo "$as_me: failed program was:" >&5
28079 sed 's/^/| /' conftest.$ac_ext >&5
28081 ac_cv_header_stdc=no
28084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28086 if test $ac_cv_header_stdc = yes; then
28087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28088 cat >conftest.$ac_ext <<_ACEOF
28091 cat confdefs.h >>conftest.$ac_ext
28092 cat >>conftest.$ac_ext <<_ACEOF
28093 /* end confdefs.h. */
28094 #include <string.h>
28097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28098 $EGREP "memchr" >/dev/null 2>&1; then
28101 ac_cv_header_stdc=no
28107 if test $ac_cv_header_stdc = yes; then
28108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28109 cat >conftest.$ac_ext <<_ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h. */
28115 #include <stdlib.h>
28118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28119 $EGREP "free" >/dev/null 2>&1; then
28122 ac_cv_header_stdc=no
28128 if test $ac_cv_header_stdc = yes; then
28129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28130 if test "$cross_compiling" = yes; then
28133 cat >conftest.$ac_ext <<_ACEOF
28136 cat confdefs.h >>conftest.$ac_ext
28137 cat >>conftest.$ac_ext <<_ACEOF
28138 /* end confdefs.h. */
28140 #include <stdlib.h>
28141 #if ((' ' & 0x0FF) == 0x020)
28142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28145 # define ISLOWER(c) \
28146 (('a' <= (c) && (c) <= 'i') \
28147 || ('j' <= (c) && (c) <= 'r') \
28148 || ('s' <= (c) && (c) <= 'z'))
28149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28157 for (i = 0; i < 256; i++)
28158 if (XOR (islower (i), ISLOWER (i))
28159 || toupper (i) != TOUPPER (i))
28164 rm -f conftest$ac_exeext
28165 if { (ac_try="$ac_link"
28166 case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_link") 2>&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28175 { (case "(($ac_try" in
28176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28177 *) ac_try_echo=$ac_try;;
28179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28180 (eval "$ac_try") 2>&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; }; then
28186 echo "$as_me: program exited with status $ac_status" >&5
28187 echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28190 ( exit $ac_status )
28191 ac_cv_header_stdc=no
28193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28199 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28200 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28201 if test $ac_cv_header_stdc = yes; then
28203 cat >>confdefs.h <<\_ACEOF
28204 #define STDC_HEADERS 1
28209 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28210 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28211 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28212 echo $ECHO_N "(cached) $ECHO_C" >&6
28214 cat >conftest.$ac_ext <<_ACEOF
28217 cat confdefs.h >>conftest.$ac_ext
28218 cat >>conftest.$ac_ext <<_ACEOF
28219 /* end confdefs.h. */
28220 #include <sys/types.h>
28221 #include <sys/wait.h>
28222 #ifndef WEXITSTATUS
28223 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28226 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28234 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28239 rm -f conftest.$ac_objext
28240 if { (ac_try="$ac_compile"
28241 case "(($ac_try" in
28242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28243 *) ac_try_echo=$ac_try;;
28245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28246 (eval "$ac_compile") 2>conftest.er1
28248 grep -v '^ *+' conftest.er1 >conftest.err
28250 cat conftest.err >&5
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); } &&
28253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28254 { (case "(($ac_try" in
28255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256 *) ac_try_echo=$ac_try;;
28258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259 (eval "$ac_try") 2>&5
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; } &&
28263 { ac_try='test -s conftest.$ac_objext'
28264 { (case "(($ac_try" in
28265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266 *) ac_try_echo=$ac_try;;
28268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269 (eval "$ac_try") 2>&5
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); }; }; then
28273 ac_cv_header_sys_wait_h=yes
28275 echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28278 ac_cv_header_sys_wait_h=no
28281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28283 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28284 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28285 if test $ac_cv_header_sys_wait_h = yes; then
28287 cat >>confdefs.h <<\_ACEOF
28288 #define HAVE_SYS_WAIT_H 1
28293 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28294 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28295 if test "${ac_cv_header_time+set}" = set; then
28296 echo $ECHO_N "(cached) $ECHO_C" >&6
28298 cat >conftest.$ac_ext <<_ACEOF
28301 cat confdefs.h >>conftest.$ac_ext
28302 cat >>conftest.$ac_ext <<_ACEOF
28303 /* end confdefs.h. */
28304 #include <sys/types.h>
28305 #include <sys/time.h>
28311 if ((struct tm *) 0)
28317 rm -f conftest.$ac_objext
28318 if { (ac_try="$ac_compile"
28319 case "(($ac_try" in
28320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321 *) ac_try_echo=$ac_try;;
28323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324 (eval "$ac_compile") 2>conftest.er1
28326 grep -v '^ *+' conftest.er1 >conftest.err
28328 cat conftest.err >&5
28329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 (exit $ac_status); } &&
28331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28332 { (case "(($ac_try" in
28333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334 *) ac_try_echo=$ac_try;;
28336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337 (eval "$ac_try") 2>&5
28339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340 (exit $ac_status); }; } &&
28341 { ac_try='test -s conftest.$ac_objext'
28342 { (case "(($ac_try" in
28343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28344 *) ac_try_echo=$ac_try;;
28346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28347 (eval "$ac_try") 2>&5
28349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28350 (exit $ac_status); }; }; then
28351 ac_cv_header_time=yes
28353 echo "$as_me: failed program was:" >&5
28354 sed 's/^/| /' conftest.$ac_ext >&5
28356 ac_cv_header_time=no
28359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28361 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28362 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28363 if test $ac_cv_header_time = yes; then
28365 cat >>confdefs.h <<\_ACEOF
28366 #define TIME_WITH_SYS_TIME 1
28378 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28385 echo $ECHO_N "(cached) $ECHO_C" >&6
28387 ac_res=`eval echo '${'$as_ac_Header'}'`
28388 { echo "$as_me:$LINENO: result: $ac_res" >&5
28389 echo "${ECHO_T}$ac_res" >&6; }
28391 # Is the header compilable?
28392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28394 cat >conftest.$ac_ext <<_ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h. */
28400 $ac_includes_default
28401 #include <$ac_header>
28403 rm -f conftest.$ac_objext
28404 if { (ac_try="$ac_compile"
28405 case "(($ac_try" in
28406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407 *) ac_try_echo=$ac_try;;
28409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28410 (eval "$ac_compile") 2>conftest.er1
28412 grep -v '^ *+' conftest.er1 >conftest.err
28414 cat conftest.err >&5
28415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); } &&
28417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28418 { (case "(($ac_try" in
28419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420 *) ac_try_echo=$ac_try;;
28422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423 (eval "$ac_try") 2>&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); }; } &&
28427 { ac_try='test -s conftest.$ac_objext'
28428 { (case "(($ac_try" in
28429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430 *) ac_try_echo=$ac_try;;
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433 (eval "$ac_try") 2>&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); }; }; then
28437 ac_header_compiler=yes
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28442 ac_header_compiler=no
28445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28447 echo "${ECHO_T}$ac_header_compiler" >&6; }
28449 # Is the header present?
28450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28452 cat >conftest.$ac_ext <<_ACEOF
28455 cat confdefs.h >>conftest.$ac_ext
28456 cat >>conftest.$ac_ext <<_ACEOF
28457 /* end confdefs.h. */
28458 #include <$ac_header>
28460 if { (ac_try="$ac_cpp conftest.$ac_ext"
28461 case "(($ac_try" in
28462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28463 *) ac_try_echo=$ac_try;;
28465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28468 grep -v '^ *+' conftest.er1 >conftest.err
28470 cat conftest.err >&5
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); } >/dev/null; then
28473 if test -s conftest.err; then
28474 ac_cpp_err=$ac_c_preproc_warn_flag
28475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28482 if test -z "$ac_cpp_err"; then
28483 ac_header_preproc=yes
28485 echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28488 ac_header_preproc=no
28491 rm -f conftest.err conftest.$ac_ext
28492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28493 echo "${ECHO_T}$ac_header_preproc" >&6; }
28495 # So? What about this header?
28496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28502 ac_header_preproc=yes
28505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28518 ## ----------------------------------- ##
28519 ## Report this to llvmbugs@cs.uiuc.edu ##
28520 ## ----------------------------------- ##
28522 ) | sed "s/^/$as_me: WARNING: /" >&2
28525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28528 echo $ECHO_N "(cached) $ECHO_C" >&6
28530 eval "$as_ac_Header=\$ac_header_preproc"
28532 ac_res=`eval echo '${'$as_ac_Header'}'`
28533 { echo "$as_me:$LINENO: result: $ac_res" >&5
28534 echo "${ECHO_T}$ac_res" >&6; }
28537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28538 cat >>confdefs.h <<_ACEOF
28539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28552 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28561 ac_res=`eval echo '${'$as_ac_Header'}'`
28562 { echo "$as_me:$LINENO: result: $ac_res" >&5
28563 echo "${ECHO_T}$ac_res" >&6; }
28565 # Is the header compilable?
28566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28568 cat >conftest.$ac_ext <<_ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h. */
28574 $ac_includes_default
28575 #include <$ac_header>
28577 rm -f conftest.$ac_objext
28578 if { (ac_try="$ac_compile"
28579 case "(($ac_try" in
28580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581 *) ac_try_echo=$ac_try;;
28583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584 (eval "$ac_compile") 2>conftest.er1
28586 grep -v '^ *+' conftest.er1 >conftest.err
28588 cat conftest.err >&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } &&
28591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28592 { (case "(($ac_try" in
28593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28594 *) ac_try_echo=$ac_try;;
28596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28597 (eval "$ac_try") 2>&5
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); }; } &&
28601 { ac_try='test -s conftest.$ac_objext'
28602 { (case "(($ac_try" in
28603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604 *) ac_try_echo=$ac_try;;
28606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607 (eval "$ac_try") 2>&5
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; }; then
28611 ac_header_compiler=yes
28613 echo "$as_me: failed program was:" >&5
28614 sed 's/^/| /' conftest.$ac_ext >&5
28616 ac_header_compiler=no
28619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28621 echo "${ECHO_T}$ac_header_compiler" >&6; }
28623 # Is the header present?
28624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28626 cat >conftest.$ac_ext <<_ACEOF
28629 cat confdefs.h >>conftest.$ac_ext
28630 cat >>conftest.$ac_ext <<_ACEOF
28631 /* end confdefs.h. */
28632 #include <$ac_header>
28634 if { (ac_try="$ac_cpp conftest.$ac_ext"
28635 case "(($ac_try" in
28636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28637 *) ac_try_echo=$ac_try;;
28639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28642 grep -v '^ *+' conftest.er1 >conftest.err
28644 cat conftest.err >&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); } >/dev/null; then
28647 if test -s conftest.err; then
28648 ac_cpp_err=$ac_c_preproc_warn_flag
28649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28656 if test -z "$ac_cpp_err"; then
28657 ac_header_preproc=yes
28659 echo "$as_me: failed program was:" >&5
28660 sed 's/^/| /' conftest.$ac_ext >&5
28662 ac_header_preproc=no
28665 rm -f conftest.err conftest.$ac_ext
28666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28667 echo "${ECHO_T}$ac_header_preproc" >&6; }
28669 # So? What about this header?
28670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28676 ac_header_preproc=yes
28679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28686 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28692 ## ----------------------------------- ##
28693 ## Report this to llvmbugs@cs.uiuc.edu ##
28694 ## ----------------------------------- ##
28696 ) | sed "s/^/$as_me: WARNING: /" >&2
28699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28702 echo $ECHO_N "(cached) $ECHO_C" >&6
28704 eval "$as_ac_Header=\$ac_header_preproc"
28706 ac_res=`eval echo '${'$as_ac_Header'}'`
28707 { echo "$as_me:$LINENO: result: $ac_res" >&5
28708 echo "${ECHO_T}$ac_res" >&6; }
28711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28712 cat >>confdefs.h <<_ACEOF
28713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28725 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28732 echo $ECHO_N "(cached) $ECHO_C" >&6
28734 ac_res=`eval echo '${'$as_ac_Header'}'`
28735 { echo "$as_me:$LINENO: result: $ac_res" >&5
28736 echo "${ECHO_T}$ac_res" >&6; }
28738 # Is the header compilable?
28739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28741 cat >conftest.$ac_ext <<_ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h. */
28747 $ac_includes_default
28748 #include <$ac_header>
28750 rm -f conftest.$ac_objext
28751 if { (ac_try="$ac_compile"
28752 case "(($ac_try" in
28753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 *) ac_try_echo=$ac_try;;
28756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757 (eval "$ac_compile") 2>conftest.er1
28759 grep -v '^ *+' conftest.er1 >conftest.err
28761 cat conftest.err >&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); } &&
28764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28765 { (case "(($ac_try" in
28766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767 *) ac_try_echo=$ac_try;;
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770 (eval "$ac_try") 2>&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); }; } &&
28774 { ac_try='test -s conftest.$ac_objext'
28775 { (case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_try") 2>&5
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; }; then
28784 ac_header_compiler=yes
28786 echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28789 ac_header_compiler=no
28792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28794 echo "${ECHO_T}$ac_header_compiler" >&6; }
28796 # Is the header present?
28797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28799 cat >conftest.$ac_ext <<_ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h. */
28805 #include <$ac_header>
28807 if { (ac_try="$ac_cpp conftest.$ac_ext"
28808 case "(($ac_try" in
28809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810 *) ac_try_echo=$ac_try;;
28812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28815 grep -v '^ *+' conftest.er1 >conftest.err
28817 cat conftest.err >&5
28818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819 (exit $ac_status); } >/dev/null; then
28820 if test -s conftest.err; then
28821 ac_cpp_err=$ac_c_preproc_warn_flag
28822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28829 if test -z "$ac_cpp_err"; then
28830 ac_header_preproc=yes
28832 echo "$as_me: failed program was:" >&5
28833 sed 's/^/| /' conftest.$ac_ext >&5
28835 ac_header_preproc=no
28838 rm -f conftest.err conftest.$ac_ext
28839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28840 echo "${ECHO_T}$ac_header_preproc" >&6; }
28842 # So? What about this header?
28843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28849 ac_header_preproc=yes
28852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28865 ## ----------------------------------- ##
28866 ## Report this to llvmbugs@cs.uiuc.edu ##
28867 ## ----------------------------------- ##
28869 ) | sed "s/^/$as_me: WARNING: /" >&2
28872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28875 echo $ECHO_N "(cached) $ECHO_C" >&6
28877 eval "$as_ac_Header=\$ac_header_preproc"
28879 ac_res=`eval echo '${'$as_ac_Header'}'`
28880 { echo "$as_me:$LINENO: result: $ac_res" >&5
28881 echo "${ECHO_T}$ac_res" >&6; }
28884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28885 cat >>confdefs.h <<_ACEOF
28886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28896 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28903 echo $ECHO_N "(cached) $ECHO_C" >&6
28905 ac_res=`eval echo '${'$as_ac_Header'}'`
28906 { echo "$as_me:$LINENO: result: $ac_res" >&5
28907 echo "${ECHO_T}$ac_res" >&6; }
28909 # Is the header compilable?
28910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28912 cat >conftest.$ac_ext <<_ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h. */
28918 $ac_includes_default
28919 #include <$ac_header>
28921 rm -f conftest.$ac_objext
28922 if { (ac_try="$ac_compile"
28923 case "(($ac_try" in
28924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28925 *) ac_try_echo=$ac_try;;
28927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28928 (eval "$ac_compile") 2>conftest.er1
28930 grep -v '^ *+' conftest.er1 >conftest.err
28932 cat conftest.err >&5
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); } &&
28935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28936 { (case "(($ac_try" in
28937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938 *) ac_try_echo=$ac_try;;
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941 (eval "$ac_try") 2>&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; } &&
28945 { ac_try='test -s conftest.$ac_objext'
28946 { (case "(($ac_try" in
28947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948 *) ac_try_echo=$ac_try;;
28950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951 (eval "$ac_try") 2>&5
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); }; }; then
28955 ac_header_compiler=yes
28957 echo "$as_me: failed program was:" >&5
28958 sed 's/^/| /' conftest.$ac_ext >&5
28960 ac_header_compiler=no
28963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28965 echo "${ECHO_T}$ac_header_compiler" >&6; }
28967 # Is the header present?
28968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28970 cat >conftest.$ac_ext <<_ACEOF
28973 cat confdefs.h >>conftest.$ac_ext
28974 cat >>conftest.$ac_ext <<_ACEOF
28975 /* end confdefs.h. */
28976 #include <$ac_header>
28978 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
28986 grep -v '^ *+' conftest.er1 >conftest.err
28988 cat conftest.err >&5
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } >/dev/null; then
28991 if test -s conftest.err; then
28992 ac_cpp_err=$ac_c_preproc_warn_flag
28993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29000 if test -z "$ac_cpp_err"; then
29001 ac_header_preproc=yes
29003 echo "$as_me: failed program was:" >&5
29004 sed 's/^/| /' conftest.$ac_ext >&5
29006 ac_header_preproc=no
29009 rm -f conftest.err conftest.$ac_ext
29010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29011 echo "${ECHO_T}$ac_header_preproc" >&6; }
29013 # So? What about this header?
29014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29020 ac_header_preproc=yes
29023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29036 ## ----------------------------------- ##
29037 ## Report this to llvmbugs@cs.uiuc.edu ##
29038 ## ----------------------------------- ##
29040 ) | sed "s/^/$as_me: WARNING: /" >&2
29043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29046 echo $ECHO_N "(cached) $ECHO_C" >&6
29048 eval "$as_ac_Header=\$ac_header_preproc"
29050 ac_res=`eval echo '${'$as_ac_Header'}'`
29051 { echo "$as_me:$LINENO: result: $ac_res" >&5
29052 echo "${ECHO_T}$ac_res" >&6; }
29055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29056 cat >>confdefs.h <<_ACEOF
29057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29064 if test "$ENABLE_THREADS" -eq 1 ; then
29065 if test "${ac_cv_header_pthread_h+set}" = set; then
29066 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29067 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29068 if test "${ac_cv_header_pthread_h+set}" = set; then
29069 echo $ECHO_N "(cached) $ECHO_C" >&6
29071 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29072 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29074 # Is the header compilable?
29075 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29076 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29077 cat >conftest.$ac_ext <<_ACEOF
29080 cat confdefs.h >>conftest.$ac_ext
29081 cat >>conftest.$ac_ext <<_ACEOF
29082 /* end confdefs.h. */
29083 $ac_includes_default
29084 #include <pthread.h>
29086 rm -f conftest.$ac_objext
29087 if { (ac_try="$ac_compile"
29088 case "(($ac_try" in
29089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29090 *) ac_try_echo=$ac_try;;
29092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29093 (eval "$ac_compile") 2>conftest.er1
29095 grep -v '^ *+' conftest.er1 >conftest.err
29097 cat conftest.err >&5
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); } &&
29100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29101 { (case "(($ac_try" in
29102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103 *) ac_try_echo=$ac_try;;
29105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106 (eval "$ac_try") 2>&5
29108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109 (exit $ac_status); }; } &&
29110 { ac_try='test -s conftest.$ac_objext'
29111 { (case "(($ac_try" in
29112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29113 *) ac_try_echo=$ac_try;;
29115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29116 (eval "$ac_try") 2>&5
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); }; }; then
29120 ac_header_compiler=yes
29122 echo "$as_me: failed program was:" >&5
29123 sed 's/^/| /' conftest.$ac_ext >&5
29125 ac_header_compiler=no
29128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29130 echo "${ECHO_T}$ac_header_compiler" >&6; }
29132 # Is the header present?
29133 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29134 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29135 cat >conftest.$ac_ext <<_ACEOF
29138 cat confdefs.h >>conftest.$ac_ext
29139 cat >>conftest.$ac_ext <<_ACEOF
29140 /* end confdefs.h. */
29141 #include <pthread.h>
29143 if { (ac_try="$ac_cpp conftest.$ac_ext"
29144 case "(($ac_try" in
29145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29146 *) ac_try_echo=$ac_try;;
29148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29151 grep -v '^ *+' conftest.er1 >conftest.err
29153 cat conftest.err >&5
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); } >/dev/null; then
29156 if test -s conftest.err; then
29157 ac_cpp_err=$ac_c_preproc_warn_flag
29158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29165 if test -z "$ac_cpp_err"; then
29166 ac_header_preproc=yes
29168 echo "$as_me: failed program was:" >&5
29169 sed 's/^/| /' conftest.$ac_ext >&5
29171 ac_header_preproc=no
29174 rm -f conftest.err conftest.$ac_ext
29175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29176 echo "${ECHO_T}$ac_header_preproc" >&6; }
29178 # So? What about this header?
29179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29181 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29182 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29183 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29184 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29185 ac_header_preproc=yes
29188 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29189 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29190 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29191 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29192 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29193 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29194 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29195 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29196 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29197 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29198 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29199 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29201 ## ----------------------------------- ##
29202 ## Report this to llvmbugs@cs.uiuc.edu ##
29203 ## ----------------------------------- ##
29205 ) | sed "s/^/$as_me: WARNING: /" >&2
29208 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29209 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29210 if test "${ac_cv_header_pthread_h+set}" = set; then
29211 echo $ECHO_N "(cached) $ECHO_C" >&6
29213 ac_cv_header_pthread_h=$ac_header_preproc
29215 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29216 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29219 if test $ac_cv_header_pthread_h = yes; then
29235 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29236 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29237 if test "${ac_cv_huge_val_sanity+set}" = set; then
29238 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 ac_cpp='$CXXCPP $CPPFLAGS'
29243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29248 if test "$cross_compiling" = yes; then
29249 ac_cv_huge_val_sanity=yes
29251 cat >conftest.$ac_ext <<_ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h. */
29261 double x = HUGE_VAL; return x != x;
29266 rm -f conftest$ac_exeext
29267 if { (ac_try="$ac_link"
29268 case "(($ac_try" in
29269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29270 *) ac_try_echo=$ac_try;;
29272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29273 (eval "$ac_link") 2>&5
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29277 { (case "(($ac_try" in
29278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29279 *) ac_try_echo=$ac_try;;
29281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29282 (eval "$ac_try") 2>&5
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; }; then
29286 ac_cv_huge_val_sanity=yes
29288 echo "$as_me: program exited with status $ac_status" >&5
29289 echo "$as_me: failed program was:" >&5
29290 sed 's/^/| /' conftest.$ac_ext >&5
29292 ( exit $ac_status )
29293 ac_cv_huge_val_sanity=no
29295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29300 ac_cpp='$CPP $CPPFLAGS'
29301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29307 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29308 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29309 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29312 { echo "$as_me:$LINENO: checking for pid_t" >&5
29313 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29314 if test "${ac_cv_type_pid_t+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 $ac_includes_default
29324 typedef pid_t ac__type_new_;
29328 if ((ac__type_new_ *) 0)
29330 if (sizeof (ac__type_new_))
29336 rm -f conftest.$ac_objext
29337 if { (ac_try="$ac_compile"
29338 case "(($ac_try" in
29339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29340 *) ac_try_echo=$ac_try;;
29342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29343 (eval "$ac_compile") 2>conftest.er1
29345 grep -v '^ *+' conftest.er1 >conftest.err
29347 cat conftest.err >&5
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } &&
29350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29351 { (case "(($ac_try" in
29352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353 *) ac_try_echo=$ac_try;;
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356 (eval "$ac_try") 2>&5
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359 (exit $ac_status); }; } &&
29360 { ac_try='test -s conftest.$ac_objext'
29361 { (case "(($ac_try" in
29362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29363 *) ac_try_echo=$ac_try;;
29365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29366 (eval "$ac_try") 2>&5
29368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369 (exit $ac_status); }; }; then
29370 ac_cv_type_pid_t=yes
29372 echo "$as_me: failed program was:" >&5
29373 sed 's/^/| /' conftest.$ac_ext >&5
29375 ac_cv_type_pid_t=no
29378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29380 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29381 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29382 if test $ac_cv_type_pid_t = yes; then
29386 cat >>confdefs.h <<_ACEOF
29392 { echo "$as_me:$LINENO: checking for size_t" >&5
29393 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29394 if test "${ac_cv_type_size_t+set}" = set; then
29395 echo $ECHO_N "(cached) $ECHO_C" >&6
29397 cat >conftest.$ac_ext <<_ACEOF
29400 cat confdefs.h >>conftest.$ac_ext
29401 cat >>conftest.$ac_ext <<_ACEOF
29402 /* end confdefs.h. */
29403 $ac_includes_default
29404 typedef size_t ac__type_new_;
29408 if ((ac__type_new_ *) 0)
29410 if (sizeof (ac__type_new_))
29416 rm -f conftest.$ac_objext
29417 if { (ac_try="$ac_compile"
29418 case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423 (eval "$ac_compile") 2>conftest.er1
29425 grep -v '^ *+' conftest.er1 >conftest.err
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
29430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29431 { (case "(($ac_try" in
29432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433 *) ac_try_echo=$ac_try;;
29435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436 (eval "$ac_try") 2>&5
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; } &&
29440 { ac_try='test -s conftest.$ac_objext'
29441 { (case "(($ac_try" in
29442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443 *) ac_try_echo=$ac_try;;
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446 (eval "$ac_try") 2>&5
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); }; }; then
29450 ac_cv_type_size_t=yes
29452 echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29455 ac_cv_type_size_t=no
29458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29460 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29461 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29462 if test $ac_cv_type_size_t = yes; then
29466 cat >>confdefs.h <<_ACEOF
29467 #define size_t unsigned int
29472 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29473 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29474 if test "${ac_cv_type_signal+set}" = set; then
29475 echo $ECHO_N "(cached) $ECHO_C" >&6
29477 cat >conftest.$ac_ext <<_ACEOF
29480 cat confdefs.h >>conftest.$ac_ext
29481 cat >>conftest.$ac_ext <<_ACEOF
29482 /* end confdefs.h. */
29483 #include <sys/types.h>
29484 #include <signal.h>
29489 return *(signal (0, 0)) (0) == 1;
29494 rm -f conftest.$ac_objext
29495 if { (ac_try="$ac_compile"
29496 case "(($ac_try" in
29497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29498 *) ac_try_echo=$ac_try;;
29500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29501 (eval "$ac_compile") 2>conftest.er1
29503 grep -v '^ *+' conftest.er1 >conftest.err
29505 cat conftest.err >&5
29506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 (exit $ac_status); } &&
29508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29509 { (case "(($ac_try" in
29510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511 *) ac_try_echo=$ac_try;;
29513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29514 (eval "$ac_try") 2>&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; } &&
29518 { ac_try='test -s conftest.$ac_objext'
29519 { (case "(($ac_try" in
29520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29521 *) ac_try_echo=$ac_try;;
29523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29524 (eval "$ac_try") 2>&5
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); }; }; then
29528 ac_cv_type_signal=int
29530 echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29533 ac_cv_type_signal=void
29536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29538 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29539 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29541 cat >>confdefs.h <<_ACEOF
29542 #define RETSIGTYPE $ac_cv_type_signal
29546 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29547 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29548 if test "${ac_cv_struct_tm+set}" = set; then
29549 echo $ECHO_N "(cached) $ECHO_C" >&6
29551 cat >conftest.$ac_ext <<_ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h. */
29557 #include <sys/types.h>
29563 struct tm *tp; tp->tm_sec;
29568 rm -f conftest.$ac_objext
29569 if { (ac_try="$ac_compile"
29570 case "(($ac_try" in
29571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572 *) ac_try_echo=$ac_try;;
29574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29575 (eval "$ac_compile") 2>conftest.er1
29577 grep -v '^ *+' conftest.er1 >conftest.err
29579 cat conftest.err >&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); } &&
29582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29583 { (case "(($ac_try" in
29584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29585 *) ac_try_echo=$ac_try;;
29587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29588 (eval "$ac_try") 2>&5
29590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591 (exit $ac_status); }; } &&
29592 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); }; }; then
29602 ac_cv_struct_tm=time.h
29604 echo "$as_me: failed program was:" >&5
29605 sed 's/^/| /' conftest.$ac_ext >&5
29607 ac_cv_struct_tm=sys/time.h
29610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29612 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29613 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29614 if test $ac_cv_struct_tm = sys/time.h; then
29616 cat >>confdefs.h <<\_ACEOF
29617 #define TM_IN_SYS_TIME 1
29622 { echo "$as_me:$LINENO: checking for int64_t" >&5
29623 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29624 if test "${ac_cv_type_int64_t+set}" = set; then
29625 echo $ECHO_N "(cached) $ECHO_C" >&6
29627 cat >conftest.$ac_ext <<_ACEOF
29630 cat confdefs.h >>conftest.$ac_ext
29631 cat >>conftest.$ac_ext <<_ACEOF
29632 /* end confdefs.h. */
29633 $ac_includes_default
29634 typedef int64_t ac__type_new_;
29638 if ((ac__type_new_ *) 0)
29640 if (sizeof (ac__type_new_))
29646 rm -f conftest.$ac_objext
29647 if { (ac_try="$ac_compile"
29648 case "(($ac_try" in
29649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650 *) ac_try_echo=$ac_try;;
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653 (eval "$ac_compile") 2>conftest.er1
29655 grep -v '^ *+' conftest.er1 >conftest.err
29657 cat conftest.err >&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); } &&
29660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29661 { (case "(($ac_try" in
29662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663 *) ac_try_echo=$ac_try;;
29665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29666 (eval "$ac_try") 2>&5
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); }; } &&
29670 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); }; }; then
29680 ac_cv_type_int64_t=yes
29682 echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29685 ac_cv_type_int64_t=no
29688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29690 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29691 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29692 if test $ac_cv_type_int64_t = yes; then
29694 cat >>confdefs.h <<_ACEOF
29695 #define HAVE_INT64_T 1
29700 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29701 echo "$as_me: error: Type int64_t required but not found" >&2;}
29702 { (exit 1); exit 1; }; }
29705 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29706 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29707 if test "${ac_cv_type_uint64_t+set}" = set; then
29708 echo $ECHO_N "(cached) $ECHO_C" >&6
29710 cat >conftest.$ac_ext <<_ACEOF
29713 cat confdefs.h >>conftest.$ac_ext
29714 cat >>conftest.$ac_ext <<_ACEOF
29715 /* end confdefs.h. */
29716 $ac_includes_default
29717 typedef uint64_t ac__type_new_;
29721 if ((ac__type_new_ *) 0)
29723 if (sizeof (ac__type_new_))
29729 rm -f conftest.$ac_objext
29730 if { (ac_try="$ac_compile"
29731 case "(($ac_try" in
29732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29733 *) ac_try_echo=$ac_try;;
29735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29736 (eval "$ac_compile") 2>conftest.er1
29738 grep -v '^ *+' conftest.er1 >conftest.err
29740 cat conftest.err >&5
29741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); } &&
29743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29744 { (case "(($ac_try" in
29745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29746 *) ac_try_echo=$ac_try;;
29748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29749 (eval "$ac_try") 2>&5
29751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752 (exit $ac_status); }; } &&
29753 { ac_try='test -s conftest.$ac_objext'
29754 { (case "(($ac_try" in
29755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756 *) ac_try_echo=$ac_try;;
29758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759 (eval "$ac_try") 2>&5
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); }; }; then
29763 ac_cv_type_uint64_t=yes
29765 echo "$as_me: failed program was:" >&5
29766 sed 's/^/| /' conftest.$ac_ext >&5
29768 ac_cv_type_uint64_t=no
29771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29773 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29774 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29775 if test $ac_cv_type_uint64_t = yes; then
29777 cat >>confdefs.h <<_ACEOF
29778 #define HAVE_UINT64_T 1
29783 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29784 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29785 if test "${ac_cv_type_u_int64_t+set}" = set; then
29786 echo $ECHO_N "(cached) $ECHO_C" >&6
29788 cat >conftest.$ac_ext <<_ACEOF
29791 cat confdefs.h >>conftest.$ac_ext
29792 cat >>conftest.$ac_ext <<_ACEOF
29793 /* end confdefs.h. */
29794 $ac_includes_default
29795 typedef u_int64_t ac__type_new_;
29799 if ((ac__type_new_ *) 0)
29801 if (sizeof (ac__type_new_))
29807 rm -f conftest.$ac_objext
29808 if { (ac_try="$ac_compile"
29809 case "(($ac_try" in
29810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811 *) ac_try_echo=$ac_try;;
29813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814 (eval "$ac_compile") 2>conftest.er1
29816 grep -v '^ *+' conftest.er1 >conftest.err
29818 cat conftest.err >&5
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); } &&
29821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29822 { (case "(($ac_try" in
29823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29824 *) ac_try_echo=$ac_try;;
29826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29827 (eval "$ac_try") 2>&5
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); }; } &&
29831 { ac_try='test -s conftest.$ac_objext'
29832 { (case "(($ac_try" in
29833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29834 *) ac_try_echo=$ac_try;;
29836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29837 (eval "$ac_try") 2>&5
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); }; }; then
29841 ac_cv_type_u_int64_t=yes
29843 echo "$as_me: failed program was:" >&5
29844 sed 's/^/| /' conftest.$ac_ext >&5
29846 ac_cv_type_u_int64_t=no
29849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29851 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29852 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29853 if test $ac_cv_type_u_int64_t = yes; then
29855 cat >>confdefs.h <<_ACEOF
29856 #define HAVE_U_INT64_T 1
29861 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29862 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29863 { (exit 1); exit 1; }; }
29877 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29883 echo $ECHO_N "(cached) $ECHO_C" >&6
29885 cat >conftest.$ac_ext <<_ACEOF
29888 cat confdefs.h >>conftest.$ac_ext
29889 cat >>conftest.$ac_ext <<_ACEOF
29890 /* end confdefs.h. */
29891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29893 #define $ac_func innocuous_$ac_func
29895 /* System header to define __stub macros and hopefully few prototypes,
29896 which can conflict with char $ac_func (); below.
29897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29898 <limits.h> exists even on freestanding compilers. */
29901 # include <limits.h>
29903 # include <assert.h>
29908 /* Override any GCC internal prototype to avoid an error.
29909 Use char because int might match the return type of a GCC
29910 builtin and then its argument prototype would still apply. */
29915 /* The GNU C library defines this for functions which it implements
29916 to always fail with ENOSYS. Some functions are actually named
29917 something starting with __ and the normal name is an alias. */
29918 #if defined __stub_$ac_func || defined __stub___$ac_func
29925 return $ac_func ();
29930 rm -f conftest.$ac_objext conftest$ac_exeext
29931 if { (ac_try="$ac_link"
29932 case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_link") 2>conftest.er1
29939 grep -v '^ *+' conftest.er1 >conftest.err
29941 cat conftest.err >&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } &&
29944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29945 { (case "(($ac_try" in
29946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947 *) ac_try_echo=$ac_try;;
29949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950 (eval "$ac_try") 2>&5
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); }; } &&
29954 { ac_try='test -s conftest$ac_exeext'
29955 { (case "(($ac_try" in
29956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29957 *) ac_try_echo=$ac_try;;
29959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29960 (eval "$ac_try") 2>&5
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); }; }; then
29964 eval "$as_ac_var=yes"
29966 echo "$as_me: failed program was:" >&5
29967 sed 's/^/| /' conftest.$ac_ext >&5
29969 eval "$as_ac_var=no"
29972 rm -f core conftest.err conftest.$ac_objext \
29973 conftest$ac_exeext conftest.$ac_ext
29975 ac_res=`eval echo '${'$as_ac_var'}'`
29976 { echo "$as_me:$LINENO: result: $ac_res" >&5
29977 echo "${ECHO_T}$ac_res" >&6; }
29978 if test `eval echo '${'$as_ac_var'}'` = yes; then
29979 cat >>confdefs.h <<_ACEOF
29980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29992 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29998 echo $ECHO_N "(cached) $ECHO_C" >&6
30000 cat >conftest.$ac_ext <<_ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h. */
30006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30008 #define $ac_func innocuous_$ac_func
30010 /* System header to define __stub macros and hopefully few prototypes,
30011 which can conflict with char $ac_func (); below.
30012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30013 <limits.h> exists even on freestanding compilers. */
30016 # include <limits.h>
30018 # include <assert.h>
30023 /* Override any GCC internal prototype to avoid an error.
30024 Use char because int might match the return type of a GCC
30025 builtin and then its argument prototype would still apply. */
30030 /* The GNU C library defines this for functions which it implements
30031 to always fail with ENOSYS. Some functions are actually named
30032 something starting with __ and the normal name is an alias. */
30033 #if defined __stub_$ac_func || defined __stub___$ac_func
30040 return $ac_func ();
30045 rm -f conftest.$ac_objext conftest$ac_exeext
30046 if { (ac_try="$ac_link"
30047 case "(($ac_try" in
30048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30049 *) ac_try_echo=$ac_try;;
30051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30052 (eval "$ac_link") 2>conftest.er1
30054 grep -v '^ *+' conftest.er1 >conftest.err
30056 cat conftest.err >&5
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); } &&
30059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30060 { (case "(($ac_try" in
30061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062 *) ac_try_echo=$ac_try;;
30064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065 (eval "$ac_try") 2>&5
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); }; } &&
30069 { ac_try='test -s conftest$ac_exeext'
30070 { (case "(($ac_try" in
30071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072 *) ac_try_echo=$ac_try;;
30074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075 (eval "$ac_try") 2>&5
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); }; }; then
30079 eval "$as_ac_var=yes"
30081 echo "$as_me: failed program was:" >&5
30082 sed 's/^/| /' conftest.$ac_ext >&5
30084 eval "$as_ac_var=no"
30087 rm -f core conftest.err conftest.$ac_objext \
30088 conftest$ac_exeext conftest.$ac_ext
30090 ac_res=`eval echo '${'$as_ac_var'}'`
30091 { echo "$as_me:$LINENO: result: $ac_res" >&5
30092 echo "${ECHO_T}$ac_res" >&6; }
30093 if test `eval echo '${'$as_ac_var'}'` = yes; then
30094 cat >>confdefs.h <<_ACEOF
30095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30108 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30114 echo $ECHO_N "(cached) $ECHO_C" >&6
30116 cat >conftest.$ac_ext <<_ACEOF
30119 cat confdefs.h >>conftest.$ac_ext
30120 cat >>conftest.$ac_ext <<_ACEOF
30121 /* end confdefs.h. */
30122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30124 #define $ac_func innocuous_$ac_func
30126 /* System header to define __stub macros and hopefully few prototypes,
30127 which can conflict with char $ac_func (); below.
30128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30129 <limits.h> exists even on freestanding compilers. */
30132 # include <limits.h>
30134 # include <assert.h>
30139 /* Override any GCC internal prototype to avoid an error.
30140 Use char because int might match the return type of a GCC
30141 builtin and then its argument prototype would still apply. */
30146 /* The GNU C library defines this for functions which it implements
30147 to always fail with ENOSYS. Some functions are actually named
30148 something starting with __ and the normal name is an alias. */
30149 #if defined __stub_$ac_func || defined __stub___$ac_func
30156 return $ac_func ();
30161 rm -f conftest.$ac_objext conftest$ac_exeext
30162 if { (ac_try="$ac_link"
30163 case "(($ac_try" in
30164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165 *) ac_try_echo=$ac_try;;
30167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168 (eval "$ac_link") 2>conftest.er1
30170 grep -v '^ *+' conftest.er1 >conftest.err
30172 cat conftest.err >&5
30173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); } &&
30175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30176 { (case "(($ac_try" in
30177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30178 *) ac_try_echo=$ac_try;;
30180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30181 (eval "$ac_try") 2>&5
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); }; } &&
30185 { ac_try='test -s conftest$ac_exeext'
30186 { (case "(($ac_try" in
30187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188 *) ac_try_echo=$ac_try;;
30190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191 (eval "$ac_try") 2>&5
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; }; then
30195 eval "$as_ac_var=yes"
30197 echo "$as_me: failed program was:" >&5
30198 sed 's/^/| /' conftest.$ac_ext >&5
30200 eval "$as_ac_var=no"
30203 rm -f core conftest.err conftest.$ac_objext \
30204 conftest$ac_exeext conftest.$ac_ext
30206 ac_res=`eval echo '${'$as_ac_var'}'`
30207 { echo "$as_me:$LINENO: result: $ac_res" >&5
30208 echo "${ECHO_T}$ac_res" >&6; }
30209 if test `eval echo '${'$as_ac_var'}'` = yes; then
30210 cat >>confdefs.h <<_ACEOF
30211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30221 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30227 echo $ECHO_N "(cached) $ECHO_C" >&6
30229 cat >conftest.$ac_ext <<_ACEOF
30232 cat confdefs.h >>conftest.$ac_ext
30233 cat >>conftest.$ac_ext <<_ACEOF
30234 /* end confdefs.h. */
30235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30237 #define $ac_func innocuous_$ac_func
30239 /* System header to define __stub macros and hopefully few prototypes,
30240 which can conflict with char $ac_func (); below.
30241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30242 <limits.h> exists even on freestanding compilers. */
30245 # include <limits.h>
30247 # include <assert.h>
30252 /* Override any GCC internal prototype to avoid an error.
30253 Use char because int might match the return type of a GCC
30254 builtin and then its argument prototype would still apply. */
30259 /* The GNU C library defines this for functions which it implements
30260 to always fail with ENOSYS. Some functions are actually named
30261 something starting with __ and the normal name is an alias. */
30262 #if defined __stub_$ac_func || defined __stub___$ac_func
30269 return $ac_func ();
30274 rm -f conftest.$ac_objext conftest$ac_exeext
30275 if { (ac_try="$ac_link"
30276 case "(($ac_try" in
30277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278 *) ac_try_echo=$ac_try;;
30280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281 (eval "$ac_link") 2>conftest.er1
30283 grep -v '^ *+' conftest.er1 >conftest.err
30285 cat conftest.err >&5
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); } &&
30288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30289 { (case "(($ac_try" in
30290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30291 *) ac_try_echo=$ac_try;;
30293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30294 (eval "$ac_try") 2>&5
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); }; } &&
30298 { ac_try='test -s conftest$ac_exeext'
30299 { (case "(($ac_try" in
30300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30301 *) ac_try_echo=$ac_try;;
30303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30304 (eval "$ac_try") 2>&5
30306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); }; }; then
30308 eval "$as_ac_var=yes"
30310 echo "$as_me: failed program was:" >&5
30311 sed 's/^/| /' conftest.$ac_ext >&5
30313 eval "$as_ac_var=no"
30316 rm -f core conftest.err conftest.$ac_objext \
30317 conftest$ac_exeext conftest.$ac_ext
30319 ac_res=`eval echo '${'$as_ac_var'}'`
30320 { echo "$as_me:$LINENO: result: $ac_res" >&5
30321 echo "${ECHO_T}$ac_res" >&6; }
30322 if test `eval echo '${'$as_ac_var'}'` = yes; then
30323 cat >>confdefs.h <<_ACEOF
30324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30334 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30340 echo $ECHO_N "(cached) $ECHO_C" >&6
30342 cat >conftest.$ac_ext <<_ACEOF
30345 cat confdefs.h >>conftest.$ac_ext
30346 cat >>conftest.$ac_ext <<_ACEOF
30347 /* end confdefs.h. */
30348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30350 #define $ac_func innocuous_$ac_func
30352 /* System header to define __stub macros and hopefully few prototypes,
30353 which can conflict with char $ac_func (); below.
30354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30355 <limits.h> exists even on freestanding compilers. */
30358 # include <limits.h>
30360 # include <assert.h>
30365 /* Override any GCC internal prototype to avoid an error.
30366 Use char because int might match the return type of a GCC
30367 builtin and then its argument prototype would still apply. */
30372 /* The GNU C library defines this for functions which it implements
30373 to always fail with ENOSYS. Some functions are actually named
30374 something starting with __ and the normal name is an alias. */
30375 #if defined __stub_$ac_func || defined __stub___$ac_func
30382 return $ac_func ();
30387 rm -f conftest.$ac_objext conftest$ac_exeext
30388 if { (ac_try="$ac_link"
30389 case "(($ac_try" in
30390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30391 *) ac_try_echo=$ac_try;;
30393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30394 (eval "$ac_link") 2>conftest.er1
30396 grep -v '^ *+' conftest.er1 >conftest.err
30398 cat conftest.err >&5
30399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400 (exit $ac_status); } &&
30401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30402 { (case "(($ac_try" in
30403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404 *) ac_try_echo=$ac_try;;
30406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407 (eval "$ac_try") 2>&5
30409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410 (exit $ac_status); }; } &&
30411 { ac_try='test -s conftest$ac_exeext'
30412 { (case "(($ac_try" in
30413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30414 *) ac_try_echo=$ac_try;;
30416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30417 (eval "$ac_try") 2>&5
30419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); }; }; then
30421 eval "$as_ac_var=yes"
30423 echo "$as_me: failed program was:" >&5
30424 sed 's/^/| /' conftest.$ac_ext >&5
30426 eval "$as_ac_var=no"
30429 rm -f core conftest.err conftest.$ac_objext \
30430 conftest$ac_exeext conftest.$ac_ext
30432 ac_res=`eval echo '${'$as_ac_var'}'`
30433 { echo "$as_me:$LINENO: result: $ac_res" >&5
30434 echo "${ECHO_T}$ac_res" >&6; }
30435 if test `eval echo '${'$as_ac_var'}'` = yes; then
30436 cat >>confdefs.h <<_ACEOF
30437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30443 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30444 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30445 if test "${llvm_cv_c_printf_a+set}" = set; then
30446 echo $ECHO_N "(cached) $ECHO_C" >&6
30449 ac_cpp='$CPP $CPPFLAGS'
30450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30454 if test "$cross_compiling" = yes; then
30455 llvmac_cv_c_printf_a=no
30457 cat >conftest.$ac_ext <<_ACEOF
30461 cat confdefs.h >>conftest.$ac_ext
30462 cat >>conftest.$ac_ext <<_ACEOF
30463 /* end confdefs.h. */
30466 #include <stdlib.h>
30472 volatile double A, B;
30476 sprintf(Buffer, "%a", A);
30480 if (A != 0x1.999999999999ap-4)
30487 rm -f conftest$ac_exeext
30488 if { (ac_try="$ac_link"
30489 case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_link") 2>&5
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30498 { (case "(($ac_try" in
30499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500 *) ac_try_echo=$ac_try;;
30502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503 (eval "$ac_try") 2>&5
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); }; }; then
30507 llvm_cv_c_printf_a=yes
30509 echo "$as_me: program exited with status $ac_status" >&5
30510 echo "$as_me: failed program was:" >&5
30511 sed 's/^/| /' conftest.$ac_ext >&5
30513 ( exit $ac_status )
30514 llvmac_cv_c_printf_a=no
30516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30521 ac_cpp='$CPP $CPPFLAGS'
30522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30527 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30528 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30529 if test "$llvm_cv_c_printf_a" = "yes"; then
30531 cat >>confdefs.h <<\_ACEOF
30532 #define HAVE_PRINTF_A 1
30537 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30538 # for constant arguments. Useless!
30539 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30540 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30541 if test "${ac_cv_working_alloca_h+set}" = set; then
30542 echo $ECHO_N "(cached) $ECHO_C" >&6
30544 cat >conftest.$ac_ext <<_ACEOF
30547 cat confdefs.h >>conftest.$ac_ext
30548 cat >>conftest.$ac_ext <<_ACEOF
30549 /* end confdefs.h. */
30550 #include <alloca.h>
30554 char *p = (char *) alloca (2 * sizeof (int));
30560 rm -f conftest.$ac_objext conftest$ac_exeext
30561 if { (ac_try="$ac_link"
30562 case "(($ac_try" in
30563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30564 *) ac_try_echo=$ac_try;;
30566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30567 (eval "$ac_link") 2>conftest.er1
30569 grep -v '^ *+' conftest.er1 >conftest.err
30571 cat conftest.err >&5
30572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573 (exit $ac_status); } &&
30574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30575 { (case "(($ac_try" in
30576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30577 *) ac_try_echo=$ac_try;;
30579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30580 (eval "$ac_try") 2>&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); }; } &&
30584 { ac_try='test -s conftest$ac_exeext'
30585 { (case "(($ac_try" in
30586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30587 *) ac_try_echo=$ac_try;;
30589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30590 (eval "$ac_try") 2>&5
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; }; then
30594 ac_cv_working_alloca_h=yes
30596 echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30599 ac_cv_working_alloca_h=no
30602 rm -f core conftest.err conftest.$ac_objext \
30603 conftest$ac_exeext conftest.$ac_ext
30605 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30606 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30607 if test $ac_cv_working_alloca_h = yes; then
30609 cat >>confdefs.h <<\_ACEOF
30610 #define HAVE_ALLOCA_H 1
30615 { echo "$as_me:$LINENO: checking for alloca" >&5
30616 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30617 if test "${ac_cv_func_alloca_works+set}" = set; then
30618 echo $ECHO_N "(cached) $ECHO_C" >&6
30620 cat >conftest.$ac_ext <<_ACEOF
30623 cat confdefs.h >>conftest.$ac_ext
30624 cat >>conftest.$ac_ext <<_ACEOF
30625 /* end confdefs.h. */
30627 # define alloca __builtin_alloca
30630 # include <malloc.h>
30631 # define alloca _alloca
30634 # include <alloca.h>
30639 # ifndef alloca /* predefined by HP cc +Olibcalls */
30650 char *p = (char *) alloca (1);
30656 rm -f conftest.$ac_objext conftest$ac_exeext
30657 if { (ac_try="$ac_link"
30658 case "(($ac_try" in
30659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30660 *) ac_try_echo=$ac_try;;
30662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30663 (eval "$ac_link") 2>conftest.er1
30665 grep -v '^ *+' conftest.er1 >conftest.err
30667 cat conftest.err >&5
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); } &&
30670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; } &&
30680 { ac_try='test -s conftest$ac_exeext'
30681 { (case "(($ac_try" in
30682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30683 *) ac_try_echo=$ac_try;;
30685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30686 (eval "$ac_try") 2>&5
30688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689 (exit $ac_status); }; }; then
30690 ac_cv_func_alloca_works=yes
30692 echo "$as_me: failed program was:" >&5
30693 sed 's/^/| /' conftest.$ac_ext >&5
30695 ac_cv_func_alloca_works=no
30698 rm -f core conftest.err conftest.$ac_objext \
30699 conftest$ac_exeext conftest.$ac_ext
30701 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30702 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30704 if test $ac_cv_func_alloca_works = yes; then
30706 cat >>confdefs.h <<\_ACEOF
30707 #define HAVE_ALLOCA 1
30711 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30712 # that cause trouble. Some versions do not even contain alloca or
30713 # contain a buggy version. If you still want to use their alloca,
30714 # use ar to extract alloca.o from them instead of compiling alloca.c.
30716 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30718 cat >>confdefs.h <<\_ACEOF
30723 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30724 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30725 if test "${ac_cv_os_cray+set}" = set; then
30726 echo $ECHO_N "(cached) $ECHO_C" >&6
30728 cat >conftest.$ac_ext <<_ACEOF
30731 cat confdefs.h >>conftest.$ac_ext
30732 cat >>conftest.$ac_ext <<_ACEOF
30733 /* end confdefs.h. */
30734 #if defined CRAY && ! defined CRAY2
30741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30742 $EGREP "webecray" >/dev/null 2>&1; then
30750 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30751 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30752 if test $ac_cv_os_cray = yes; then
30753 for ac_func in _getb67 GETB67 getb67; do
30754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30758 echo $ECHO_N "(cached) $ECHO_C" >&6
30760 cat >conftest.$ac_ext <<_ACEOF
30763 cat confdefs.h >>conftest.$ac_ext
30764 cat >>conftest.$ac_ext <<_ACEOF
30765 /* end confdefs.h. */
30766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30768 #define $ac_func innocuous_$ac_func
30770 /* System header to define __stub macros and hopefully few prototypes,
30771 which can conflict with char $ac_func (); below.
30772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30773 <limits.h> exists even on freestanding compilers. */
30776 # include <limits.h>
30778 # include <assert.h>
30783 /* Override any GCC internal prototype to avoid an error.
30784 Use char because int might match the return type of a GCC
30785 builtin and then its argument prototype would still apply. */
30790 /* The GNU C library defines this for functions which it implements
30791 to always fail with ENOSYS. Some functions are actually named
30792 something starting with __ and the normal name is an alias. */
30793 #if defined __stub_$ac_func || defined __stub___$ac_func
30800 return $ac_func ();
30805 rm -f conftest.$ac_objext conftest$ac_exeext
30806 if { (ac_try="$ac_link"
30807 case "(($ac_try" in
30808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30809 *) ac_try_echo=$ac_try;;
30811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30812 (eval "$ac_link") 2>conftest.er1
30814 grep -v '^ *+' conftest.er1 >conftest.err
30816 cat conftest.err >&5
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); } &&
30819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30820 { (case "(($ac_try" in
30821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822 *) ac_try_echo=$ac_try;;
30824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825 (eval "$ac_try") 2>&5
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); }; } &&
30829 { ac_try='test -s conftest$ac_exeext'
30830 { (case "(($ac_try" in
30831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30832 *) ac_try_echo=$ac_try;;
30834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30835 (eval "$ac_try") 2>&5
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); }; }; then
30839 eval "$as_ac_var=yes"
30841 echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.$ac_ext >&5
30844 eval "$as_ac_var=no"
30847 rm -f core conftest.err conftest.$ac_objext \
30848 conftest$ac_exeext conftest.$ac_ext
30850 ac_res=`eval echo '${'$as_ac_var'}'`
30851 { echo "$as_me:$LINENO: result: $ac_res" >&5
30852 echo "${ECHO_T}$ac_res" >&6; }
30853 if test `eval echo '${'$as_ac_var'}'` = yes; then
30855 cat >>confdefs.h <<_ACEOF
30856 #define CRAY_STACKSEG_END $ac_func
30865 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30866 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30867 if test "${ac_cv_c_stack_direction+set}" = set; then
30868 echo $ECHO_N "(cached) $ECHO_C" >&6
30870 if test "$cross_compiling" = yes; then
30871 ac_cv_c_stack_direction=0
30873 cat >conftest.$ac_ext <<_ACEOF
30876 cat confdefs.h >>conftest.$ac_ext
30877 cat >>conftest.$ac_ext <<_ACEOF
30878 /* end confdefs.h. */
30879 $ac_includes_default
30881 find_stack_direction ()
30883 static char *addr = 0;
30888 return find_stack_direction ();
30891 return (&dummy > addr) ? 1 : -1;
30897 return find_stack_direction () < 0;
30900 rm -f conftest$ac_exeext
30901 if { (ac_try="$ac_link"
30902 case "(($ac_try" in
30903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904 *) ac_try_echo=$ac_try;;
30906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907 (eval "$ac_link") 2>&5
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30911 { (case "(($ac_try" in
30912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30913 *) ac_try_echo=$ac_try;;
30915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30916 (eval "$ac_try") 2>&5
30918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919 (exit $ac_status); }; }; then
30920 ac_cv_c_stack_direction=1
30922 echo "$as_me: program exited with status $ac_status" >&5
30923 echo "$as_me: failed program was:" >&5
30924 sed 's/^/| /' conftest.$ac_ext >&5
30926 ( exit $ac_status )
30927 ac_cv_c_stack_direction=-1
30929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30934 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30935 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30937 cat >>confdefs.h <<_ACEOF
30938 #define STACK_DIRECTION $ac_cv_c_stack_direction
30945 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30946 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30947 if test "${ac_cv_func_rand48+set}" = set; then
30948 echo $ECHO_N "(cached) $ECHO_C" >&6
30951 ac_cpp='$CXXCPP $CPPFLAGS'
30952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30956 cat >conftest.$ac_ext <<_ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h. */
30962 #include <stdlib.h>
30966 srand48(0);lrand48();drand48();
30971 rm -f conftest.$ac_objext
30972 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30980 grep -v '^ *+' conftest.er1 >conftest.err
30982 cat conftest.err >&5
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); } &&
30985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30986 { (case "(($ac_try" in
30987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988 *) ac_try_echo=$ac_try;;
30990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30991 (eval "$ac_try") 2>&5
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 (exit $ac_status); }; } &&
30995 { ac_try='test -s conftest.$ac_objext'
30996 { (case "(($ac_try" in
30997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30998 *) ac_try_echo=$ac_try;;
31000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31001 (eval "$ac_try") 2>&5
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); }; }; then
31005 ac_cv_func_rand48=yes
31007 echo "$as_me: failed program was:" >&5
31008 sed 's/^/| /' conftest.$ac_ext >&5
31010 ac_cv_func_rand48=no
31013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31015 ac_cpp='$CPP $CPPFLAGS'
31016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31021 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31022 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31024 if test "$ac_cv_func_rand48" = "yes" ; then
31026 cat >>confdefs.h <<\_ACEOF
31027 #define HAVE_RAND48 1
31033 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31034 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31035 if test "${ac_cv_cxx_namespaces+set}" = set; then
31036 echo $ECHO_N "(cached) $ECHO_C" >&6
31039 ac_cpp='$CXXCPP $CPPFLAGS'
31040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31044 cat >conftest.$ac_ext <<_ACEOF
31047 cat confdefs.h >>conftest.$ac_ext
31048 cat >>conftest.$ac_ext <<_ACEOF
31049 /* end confdefs.h. */
31050 namespace Outer { namespace Inner { int i = 0; }}
31054 using namespace Outer::Inner; return i;
31059 rm -f conftest.$ac_objext
31060 if { (ac_try="$ac_compile"
31061 case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_compile") 2>conftest.er1
31068 grep -v '^ *+' conftest.er1 >conftest.err
31070 cat conftest.err >&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } &&
31073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31074 { (case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079 (eval "$ac_try") 2>&5
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); }; } &&
31083 { ac_try='test -s conftest.$ac_objext'
31084 { (case "(($ac_try" in
31085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31086 *) ac_try_echo=$ac_try;;
31088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31089 (eval "$ac_try") 2>&5
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; }; then
31093 ac_cv_cxx_namespaces=yes
31095 echo "$as_me: failed program was:" >&5
31096 sed 's/^/| /' conftest.$ac_ext >&5
31098 ac_cv_cxx_namespaces=no
31101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31103 ac_cpp='$CPP $CPPFLAGS'
31104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31110 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31111 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31112 if test "$ac_cv_cxx_namespaces" = yes; then
31114 cat >>confdefs.h <<\_ACEOF
31115 #define HAVE_NAMESPACES
31120 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31121 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31122 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31123 echo $ECHO_N "(cached) $ECHO_C" >&6
31127 ac_cpp='$CXXCPP $CPPFLAGS'
31128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31132 cat >conftest.$ac_ext <<_ACEOF
31135 cat confdefs.h >>conftest.$ac_ext
31136 cat >>conftest.$ac_ext <<_ACEOF
31137 /* end confdefs.h. */
31138 #include <ext/hash_map>
31139 #ifdef HAVE_NAMESPACES
31140 using namespace std;
31145 hash_map<int, int> t;
31150 rm -f conftest.$ac_objext
31151 if { (ac_try="$ac_compile"
31152 case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_compile") 2>conftest.er1
31159 grep -v '^ *+' conftest.er1 >conftest.err
31161 cat conftest.err >&5
31162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); } &&
31164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31165 { (case "(($ac_try" in
31166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31167 *) ac_try_echo=$ac_try;;
31169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31170 (eval "$ac_try") 2>&5
31172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173 (exit $ac_status); }; } &&
31174 { ac_try='test -s conftest.$ac_objext'
31175 { (case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180 (eval "$ac_try") 2>&5
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; }; then
31184 ac_cv_cxx_have_std_ext_hash_map=yes
31186 echo "$as_me: failed program was:" >&5
31187 sed 's/^/| /' conftest.$ac_ext >&5
31189 ac_cv_cxx_have_std_ext_hash_map=no
31192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31194 ac_cpp='$CPP $CPPFLAGS'
31195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31200 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31201 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31202 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31205 cat >>confdefs.h <<\_ACEOF
31206 #define HAVE_STD_EXT_HASH_MAP 1
31211 cat >>confdefs.h <<\_ACEOF
31212 #define HAVE_STD_EXT_HASH_MAP 0
31217 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31218 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31219 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31220 echo $ECHO_N "(cached) $ECHO_C" >&6
31224 ac_cpp='$CXXCPP $CPPFLAGS'
31225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31229 cat >conftest.$ac_ext <<_ACEOF
31232 cat confdefs.h >>conftest.$ac_ext
31233 cat >>conftest.$ac_ext <<_ACEOF
31234 /* end confdefs.h. */
31235 #include <ext/hash_map>
31236 #ifdef HAVE_NAMESPACES
31237 using namespace __gnu_cxx;
31242 hash_map<int,int> t;
31247 rm -f conftest.$ac_objext
31248 if { (ac_try="$ac_compile"
31249 case "(($ac_try" in
31250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251 *) ac_try_echo=$ac_try;;
31253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254 (eval "$ac_compile") 2>conftest.er1
31256 grep -v '^ *+' conftest.er1 >conftest.err
31258 cat conftest.err >&5
31259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260 (exit $ac_status); } &&
31261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31262 { (case "(($ac_try" in
31263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31264 *) ac_try_echo=$ac_try;;
31266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31267 (eval "$ac_try") 2>&5
31269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270 (exit $ac_status); }; } &&
31271 { ac_try='test -s conftest.$ac_objext'
31272 { (case "(($ac_try" in
31273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31274 *) ac_try_echo=$ac_try;;
31276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31277 (eval "$ac_try") 2>&5
31279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); }; }; then
31281 ac_cv_cxx_have_gnu_ext_hash_map=yes
31283 echo "$as_me: failed program was:" >&5
31284 sed 's/^/| /' conftest.$ac_ext >&5
31286 ac_cv_cxx_have_gnu_ext_hash_map=no
31289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31291 ac_cpp='$CPP $CPPFLAGS'
31292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31297 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31298 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31299 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31302 cat >>confdefs.h <<\_ACEOF
31303 #define HAVE_GNU_EXT_HASH_MAP 1
31308 cat >>confdefs.h <<\_ACEOF
31309 #define HAVE_GNU_EXT_HASH_MAP 0
31314 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31315 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31316 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31317 echo $ECHO_N "(cached) $ECHO_C" >&6
31321 ac_cpp='$CXXCPP $CPPFLAGS'
31322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31326 cat >conftest.$ac_ext <<_ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h. */
31332 #include <hash_map>
31336 hash_map<int,int> t;
31341 rm -f conftest.$ac_objext
31342 if { (ac_try="$ac_compile"
31343 case "(($ac_try" in
31344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345 *) ac_try_echo=$ac_try;;
31347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348 (eval "$ac_compile") 2>conftest.er1
31350 grep -v '^ *+' conftest.er1 >conftest.err
31352 cat conftest.err >&5
31353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354 (exit $ac_status); } &&
31355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31356 { (case "(($ac_try" in
31357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31358 *) ac_try_echo=$ac_try;;
31360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31361 (eval "$ac_try") 2>&5
31363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364 (exit $ac_status); }; } &&
31365 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
31375 ac_cv_cxx_have_global_hash_map=yes
31377 echo "$as_me: failed program was:" >&5
31378 sed 's/^/| /' conftest.$ac_ext >&5
31380 ac_cv_cxx_have_global_hash_map=no
31383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31385 ac_cpp='$CPP $CPPFLAGS'
31386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31391 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31392 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31393 if test "$ac_cv_cxx_have_global_hash_map" = yes
31396 cat >>confdefs.h <<\_ACEOF
31397 #define HAVE_GLOBAL_HASH_MAP 1
31402 cat >>confdefs.h <<\_ACEOF
31403 #define HAVE_GLOBAL_HASH_MAP 0
31408 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31409 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31410 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31411 echo $ECHO_N "(cached) $ECHO_C" >&6
31415 ac_cpp='$CXXCPP $CPPFLAGS'
31416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31420 cat >conftest.$ac_ext <<_ACEOF
31423 cat confdefs.h >>conftest.$ac_ext
31424 cat >>conftest.$ac_ext <<_ACEOF
31425 /* end confdefs.h. */
31426 #include <ext/hash_set>
31427 #ifdef HAVE_NAMESPACES
31428 using namespace std;
31438 rm -f conftest.$ac_objext
31439 if { (ac_try="$ac_compile"
31440 case "(($ac_try" in
31441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31442 *) ac_try_echo=$ac_try;;
31444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445 (eval "$ac_compile") 2>conftest.er1
31447 grep -v '^ *+' conftest.er1 >conftest.err
31449 cat conftest.err >&5
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); } &&
31452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31453 { (case "(($ac_try" in
31454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455 *) ac_try_echo=$ac_try;;
31457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458 (eval "$ac_try") 2>&5
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); }; } &&
31462 { ac_try='test -s conftest.$ac_objext'
31463 { (case "(($ac_try" in
31464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465 *) ac_try_echo=$ac_try;;
31467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468 (eval "$ac_try") 2>&5
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); }; }; then
31472 ac_cv_cxx_have_std_ext_hash_set=yes
31474 echo "$as_me: failed program was:" >&5
31475 sed 's/^/| /' conftest.$ac_ext >&5
31477 ac_cv_cxx_have_std_ext_hash_set=no
31480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31482 ac_cpp='$CPP $CPPFLAGS'
31483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31488 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31489 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31490 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31493 cat >>confdefs.h <<\_ACEOF
31494 #define HAVE_STD_EXT_HASH_SET 1
31499 cat >>confdefs.h <<\_ACEOF
31500 #define HAVE_STD_EXT_HASH_SET 0
31505 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31506 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31507 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31508 echo $ECHO_N "(cached) $ECHO_C" >&6
31512 ac_cpp='$CXXCPP $CPPFLAGS'
31513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31517 cat >conftest.$ac_ext <<_ACEOF
31520 cat confdefs.h >>conftest.$ac_ext
31521 cat >>conftest.$ac_ext <<_ACEOF
31522 /* end confdefs.h. */
31523 #include <ext/hash_set>
31524 #ifdef HAVE_NAMESPACES
31525 using namespace __gnu_cxx;
31535 rm -f conftest.$ac_objext
31536 if { (ac_try="$ac_compile"
31537 case "(($ac_try" in
31538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31539 *) ac_try_echo=$ac_try;;
31541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31542 (eval "$ac_compile") 2>conftest.er1
31544 grep -v '^ *+' conftest.er1 >conftest.err
31546 cat conftest.err >&5
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); } &&
31549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31550 { (case "(($ac_try" in
31551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31552 *) ac_try_echo=$ac_try;;
31554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31555 (eval "$ac_try") 2>&5
31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558 (exit $ac_status); }; } &&
31559 { ac_try='test -s conftest.$ac_objext'
31560 { (case "(($ac_try" in
31561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31562 *) ac_try_echo=$ac_try;;
31564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31565 (eval "$ac_try") 2>&5
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); }; }; then
31569 ac_cv_cxx_have_gnu_ext_hash_set=yes
31571 echo "$as_me: failed program was:" >&5
31572 sed 's/^/| /' conftest.$ac_ext >&5
31574 ac_cv_cxx_have_gnu_ext_hash_set=no
31577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31579 ac_cpp='$CPP $CPPFLAGS'
31580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31585 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31586 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31587 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31590 cat >>confdefs.h <<\_ACEOF
31591 #define HAVE_GNU_EXT_HASH_SET 1
31596 cat >>confdefs.h <<\_ACEOF
31597 #define HAVE_GNU_EXT_HASH_SET 0
31602 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31603 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31604 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31605 echo $ECHO_N "(cached) $ECHO_C" >&6
31609 ac_cpp='$CXXCPP $CPPFLAGS'
31610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31614 cat >conftest.$ac_ext <<_ACEOF
31617 cat confdefs.h >>conftest.$ac_ext
31618 cat >>conftest.$ac_ext <<_ACEOF
31619 /* end confdefs.h. */
31620 #include <hash_set>
31624 hash_set<int> t; return 0;
31629 rm -f conftest.$ac_objext
31630 if { (ac_try="$ac_compile"
31631 case "(($ac_try" in
31632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31633 *) ac_try_echo=$ac_try;;
31635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31636 (eval "$ac_compile") 2>conftest.er1
31638 grep -v '^ *+' conftest.er1 >conftest.err
31640 cat conftest.err >&5
31641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642 (exit $ac_status); } &&
31643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31644 { (case "(($ac_try" in
31645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31646 *) ac_try_echo=$ac_try;;
31648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31649 (eval "$ac_try") 2>&5
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); }; } &&
31653 { ac_try='test -s conftest.$ac_objext'
31654 { (case "(($ac_try" in
31655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31656 *) ac_try_echo=$ac_try;;
31658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31659 (eval "$ac_try") 2>&5
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); }; }; then
31663 ac_cv_cxx_have_global_hash_set=yes
31665 echo "$as_me: failed program was:" >&5
31666 sed 's/^/| /' conftest.$ac_ext >&5
31668 ac_cv_cxx_have_global_hash_set=no
31671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31673 ac_cpp='$CPP $CPPFLAGS'
31674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31679 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31680 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31681 if test "$ac_cv_cxx_have_global_hash_set" = yes
31684 cat >>confdefs.h <<\_ACEOF
31685 #define HAVE_GLOBAL_HASH_SET 1
31690 cat >>confdefs.h <<\_ACEOF
31691 #define HAVE_GLOBAL_HASH_SET 0
31696 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31697 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31698 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31699 echo $ECHO_N "(cached) $ECHO_C" >&6
31703 ac_cpp='$CXXCPP $CPPFLAGS'
31704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31708 cat >conftest.$ac_ext <<_ACEOF
31711 cat confdefs.h >>conftest.$ac_ext
31712 cat >>conftest.$ac_ext <<_ACEOF
31713 /* end confdefs.h. */
31714 #include <iterator>
31715 #ifdef HAVE_NAMESPACES
31716 using namespace std;
31721 iterator<int,int,int> t; return 0;
31726 rm -f conftest.$ac_objext
31727 if { (ac_try="$ac_compile"
31728 case "(($ac_try" in
31729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730 *) ac_try_echo=$ac_try;;
31732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733 (eval "$ac_compile") 2>conftest.er1
31735 grep -v '^ *+' conftest.er1 >conftest.err
31737 cat conftest.err >&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); } &&
31740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31741 { (case "(($ac_try" in
31742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31743 *) ac_try_echo=$ac_try;;
31745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31746 (eval "$ac_try") 2>&5
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749 (exit $ac_status); }; } &&
31750 { ac_try='test -s conftest.$ac_objext'
31751 { (case "(($ac_try" in
31752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753 *) ac_try_echo=$ac_try;;
31755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756 (eval "$ac_try") 2>&5
31758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759 (exit $ac_status); }; }; then
31760 ac_cv_cxx_have_std_iterator=yes
31762 echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31765 ac_cv_cxx_have_std_iterator=no
31768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31770 ac_cpp='$CPP $CPPFLAGS'
31771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31777 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31778 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31779 if test "$ac_cv_cxx_have_std_iterator" = yes
31782 cat >>confdefs.h <<\_ACEOF
31783 #define HAVE_STD_ITERATOR 1
31788 cat >>confdefs.h <<\_ACEOF
31789 #define HAVE_STD_ITERATOR 0
31794 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31795 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31796 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31797 echo $ECHO_N "(cached) $ECHO_C" >&6
31801 ac_cpp='$CXXCPP $CPPFLAGS'
31802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31806 cat >conftest.$ac_ext <<_ACEOF
31809 cat confdefs.h >>conftest.$ac_ext
31810 cat >>conftest.$ac_ext <<_ACEOF
31811 /* end confdefs.h. */
31812 #include <iterator>
31813 #ifdef HAVE_NAMESPACES
31814 using namespace std;
31819 bidirectional_iterator<int,int> t; return 0;
31824 rm -f conftest.$ac_objext
31825 if { (ac_try="$ac_compile"
31826 case "(($ac_try" in
31827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31828 *) ac_try_echo=$ac_try;;
31830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831 (eval "$ac_compile") 2>conftest.er1
31833 grep -v '^ *+' conftest.er1 >conftest.err
31835 cat conftest.err >&5
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } &&
31838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31839 { (case "(($ac_try" in
31840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841 *) ac_try_echo=$ac_try;;
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844 (eval "$ac_try") 2>&5
31846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); }; } &&
31848 { ac_try='test -s conftest.$ac_objext'
31849 { (case "(($ac_try" in
31850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31851 *) ac_try_echo=$ac_try;;
31853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31854 (eval "$ac_try") 2>&5
31856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857 (exit $ac_status); }; }; then
31858 ac_cv_cxx_have_bi_iterator=yes
31860 echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.$ac_ext >&5
31863 ac_cv_cxx_have_bi_iterator=no
31866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31868 ac_cpp='$CPP $CPPFLAGS'
31869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31875 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31876 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31877 if test "$ac_cv_cxx_have_bi_iterator" = yes
31880 cat >>confdefs.h <<\_ACEOF
31881 #define HAVE_BI_ITERATOR 1
31886 cat >>confdefs.h <<\_ACEOF
31887 #define HAVE_BI_ITERATOR 0
31892 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31893 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31894 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31895 echo $ECHO_N "(cached) $ECHO_C" >&6
31899 ac_cpp='$CXXCPP $CPPFLAGS'
31900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31904 cat >conftest.$ac_ext <<_ACEOF
31907 cat confdefs.h >>conftest.$ac_ext
31908 cat >>conftest.$ac_ext <<_ACEOF
31909 /* end confdefs.h. */
31910 #include <iterator>
31911 #ifdef HAVE_NAMESPACES
31912 using namespace std;
31917 forward_iterator<int,int> t; return 0;
31922 rm -f conftest.$ac_objext
31923 if { (ac_try="$ac_compile"
31924 case "(($ac_try" in
31925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31926 *) ac_try_echo=$ac_try;;
31928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31929 (eval "$ac_compile") 2>conftest.er1
31931 grep -v '^ *+' conftest.er1 >conftest.err
31933 cat conftest.err >&5
31934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935 (exit $ac_status); } &&
31936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31937 { (case "(($ac_try" in
31938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_try") 2>&5
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); }; } &&
31946 { ac_try='test -s conftest.$ac_objext'
31947 { (case "(($ac_try" in
31948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949 *) ac_try_echo=$ac_try;;
31951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952 (eval "$ac_try") 2>&5
31954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955 (exit $ac_status); }; }; then
31956 ac_cv_cxx_have_fwd_iterator=yes
31958 echo "$as_me: failed program was:" >&5
31959 sed 's/^/| /' conftest.$ac_ext >&5
31961 ac_cv_cxx_have_fwd_iterator=no
31964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31966 ac_cpp='$CPP $CPPFLAGS'
31967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31973 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31974 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31975 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31978 cat >>confdefs.h <<\_ACEOF
31979 #define HAVE_FWD_ITERATOR 1
31984 cat >>confdefs.h <<\_ACEOF
31985 #define HAVE_FWD_ITERATOR 0
31991 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31992 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31993 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31994 echo $ECHO_N "(cached) $ECHO_C" >&6
31997 ac_cpp='$CXXCPP $CPPFLAGS'
31998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32002 cat >conftest.$ac_ext <<_ACEOF
32005 cat confdefs.h >>conftest.$ac_ext
32006 cat >>conftest.$ac_ext <<_ACEOF
32007 /* end confdefs.h. */
32017 rm -f conftest.$ac_objext
32018 if { (ac_try="$ac_compile"
32019 case "(($ac_try" in
32020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32021 *) ac_try_echo=$ac_try;;
32023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32024 (eval "$ac_compile") 2>conftest.er1
32026 grep -v '^ *+' conftest.er1 >conftest.err
32028 cat conftest.err >&5
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); } &&
32031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32032 { (case "(($ac_try" in
32033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034 *) ac_try_echo=$ac_try;;
32036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037 (eval "$ac_try") 2>&5
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); }; } &&
32041 { ac_try='test -s conftest.$ac_objext'
32042 { (case "(($ac_try" in
32043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32044 *) ac_try_echo=$ac_try;;
32046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32047 (eval "$ac_try") 2>&5
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); }; }; then
32051 ac_cv_func_isnan_in_math_h=yes
32053 echo "$as_me: failed program was:" >&5
32054 sed 's/^/| /' conftest.$ac_ext >&5
32056 ac_cv_func_isnan_in_math_h=no
32059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32061 ac_cpp='$CPP $CPPFLAGS'
32062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32067 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32068 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32071 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32073 cat >>confdefs.h <<\_ACEOF
32074 #define HAVE_ISNAN_IN_MATH_H 1
32079 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32080 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32081 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32082 echo $ECHO_N "(cached) $ECHO_C" >&6
32085 ac_cpp='$CXXCPP $CPPFLAGS'
32086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32090 cat >conftest.$ac_ext <<_ACEOF
32093 cat confdefs.h >>conftest.$ac_ext
32094 cat >>conftest.$ac_ext <<_ACEOF
32095 /* end confdefs.h. */
32105 rm -f conftest.$ac_objext
32106 if { (ac_try="$ac_compile"
32107 case "(($ac_try" in
32108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32109 *) ac_try_echo=$ac_try;;
32111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32112 (eval "$ac_compile") 2>conftest.er1
32114 grep -v '^ *+' conftest.er1 >conftest.err
32116 cat conftest.err >&5
32117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118 (exit $ac_status); } &&
32119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32120 { (case "(($ac_try" in
32121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32122 *) ac_try_echo=$ac_try;;
32124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32125 (eval "$ac_try") 2>&5
32127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); }; } &&
32129 { ac_try='test -s conftest.$ac_objext'
32130 { (case "(($ac_try" in
32131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32132 *) ac_try_echo=$ac_try;;
32134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32135 (eval "$ac_try") 2>&5
32137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138 (exit $ac_status); }; }; then
32139 ac_cv_func_isnan_in_cmath=yes
32141 echo "$as_me: failed program was:" >&5
32142 sed 's/^/| /' conftest.$ac_ext >&5
32144 ac_cv_func_isnan_in_cmath=no
32147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32149 ac_cpp='$CPP $CPPFLAGS'
32150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32155 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32156 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32158 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32160 cat >>confdefs.h <<\_ACEOF
32161 #define HAVE_ISNAN_IN_CMATH 1
32166 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32167 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32168 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32169 echo $ECHO_N "(cached) $ECHO_C" >&6
32172 ac_cpp='$CXXCPP $CPPFLAGS'
32173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32177 cat >conftest.$ac_ext <<_ACEOF
32180 cat confdefs.h >>conftest.$ac_ext
32181 cat >>conftest.$ac_ext <<_ACEOF
32182 /* end confdefs.h. */
32187 float f; std::isnan(f);
32192 rm -f conftest.$ac_objext
32193 if { (ac_try="$ac_compile"
32194 case "(($ac_try" in
32195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32196 *) ac_try_echo=$ac_try;;
32198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32199 (eval "$ac_compile") 2>conftest.er1
32201 grep -v '^ *+' conftest.er1 >conftest.err
32203 cat conftest.err >&5
32204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); } &&
32206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32207 { (case "(($ac_try" in
32208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209 *) ac_try_echo=$ac_try;;
32211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212 (eval "$ac_try") 2>&5
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); }; } &&
32216 { ac_try='test -s conftest.$ac_objext'
32217 { (case "(($ac_try" in
32218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32219 *) ac_try_echo=$ac_try;;
32221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32222 (eval "$ac_try") 2>&5
32224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225 (exit $ac_status); }; }; then
32226 ac_cv_func_std_isnan_in_cmath=yes
32228 echo "$as_me: failed program was:" >&5
32229 sed 's/^/| /' conftest.$ac_ext >&5
32231 ac_cv_func_std_isnan_in_cmath=no
32234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32236 ac_cpp='$CPP $CPPFLAGS'
32237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32242 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32243 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32245 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32247 cat >>confdefs.h <<\_ACEOF
32248 #define HAVE_STD_ISNAN_IN_CMATH 1
32254 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32255 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32256 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32260 ac_cpp='$CXXCPP $CPPFLAGS'
32261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32265 cat >conftest.$ac_ext <<_ACEOF
32268 cat confdefs.h >>conftest.$ac_ext
32269 cat >>conftest.$ac_ext <<_ACEOF
32270 /* end confdefs.h. */
32280 rm -f conftest.$ac_objext
32281 if { (ac_try="$ac_compile"
32282 case "(($ac_try" in
32283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284 *) ac_try_echo=$ac_try;;
32286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287 (eval "$ac_compile") 2>conftest.er1
32289 grep -v '^ *+' conftest.er1 >conftest.err
32291 cat conftest.err >&5
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); } &&
32294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32295 { (case "(($ac_try" in
32296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297 *) ac_try_echo=$ac_try;;
32299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300 (eval "$ac_try") 2>&5
32302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303 (exit $ac_status); }; } &&
32304 { ac_try='test -s conftest.$ac_objext'
32305 { (case "(($ac_try" in
32306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307 *) ac_try_echo=$ac_try;;
32309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310 (eval "$ac_try") 2>&5
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); }; }; then
32314 ac_cv_func_isinf_in_math_h=yes
32316 echo "$as_me: failed program was:" >&5
32317 sed 's/^/| /' conftest.$ac_ext >&5
32319 ac_cv_func_isinf_in_math_h=no
32322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32324 ac_cpp='$CPP $CPPFLAGS'
32325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32330 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32331 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32333 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32335 cat >>confdefs.h <<\_ACEOF
32336 #define HAVE_ISINF_IN_MATH_H 1
32341 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32342 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32343 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32344 echo $ECHO_N "(cached) $ECHO_C" >&6
32347 ac_cpp='$CXXCPP $CPPFLAGS'
32348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32352 cat >conftest.$ac_ext <<_ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h. */
32367 rm -f conftest.$ac_objext
32368 if { (ac_try="$ac_compile"
32369 case "(($ac_try" in
32370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32371 *) ac_try_echo=$ac_try;;
32373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32374 (eval "$ac_compile") 2>conftest.er1
32376 grep -v '^ *+' conftest.er1 >conftest.err
32378 cat conftest.err >&5
32379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 (exit $ac_status); } &&
32381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32382 { (case "(($ac_try" in
32383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32384 *) ac_try_echo=$ac_try;;
32386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32387 (eval "$ac_try") 2>&5
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); }; } &&
32391 { ac_try='test -s conftest.$ac_objext'
32392 { (case "(($ac_try" in
32393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394 *) ac_try_echo=$ac_try;;
32396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397 (eval "$ac_try") 2>&5
32399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400 (exit $ac_status); }; }; then
32401 ac_cv_func_isinf_in_cmath=yes
32403 echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32406 ac_cv_func_isinf_in_cmath=no
32409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32411 ac_cpp='$CPP $CPPFLAGS'
32412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32417 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32418 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32420 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32422 cat >>confdefs.h <<\_ACEOF
32423 #define HAVE_ISINF_IN_CMATH 1
32428 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32429 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32430 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32431 echo $ECHO_N "(cached) $ECHO_C" >&6
32434 ac_cpp='$CXXCPP $CPPFLAGS'
32435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32439 cat >conftest.$ac_ext <<_ACEOF
32442 cat confdefs.h >>conftest.$ac_ext
32443 cat >>conftest.$ac_ext <<_ACEOF
32444 /* end confdefs.h. */
32449 float f; std::isinf(f)}
32454 rm -f conftest.$ac_objext
32455 if { (ac_try="$ac_compile"
32456 case "(($ac_try" in
32457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32458 *) ac_try_echo=$ac_try;;
32460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32461 (eval "$ac_compile") 2>conftest.er1
32463 grep -v '^ *+' conftest.er1 >conftest.err
32465 cat conftest.err >&5
32466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32467 (exit $ac_status); } &&
32468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32469 { (case "(($ac_try" in
32470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32471 *) ac_try_echo=$ac_try;;
32473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32474 (eval "$ac_try") 2>&5
32476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477 (exit $ac_status); }; } &&
32478 { ac_try='test -s conftest.$ac_objext'
32479 { (case "(($ac_try" in
32480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32481 *) ac_try_echo=$ac_try;;
32483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32484 (eval "$ac_try") 2>&5
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); }; }; then
32488 ac_cv_func_std_isinf_in_cmath=yes
32490 echo "$as_me: failed program was:" >&5
32491 sed 's/^/| /' conftest.$ac_ext >&5
32493 ac_cv_func_std_isinf_in_cmath=no
32496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32498 ac_cpp='$CPP $CPPFLAGS'
32499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32504 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32505 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32507 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32509 cat >>confdefs.h <<\_ACEOF
32510 #define HAVE_STD_ISINF_IN_CMATH 1
32515 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32516 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32517 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32518 echo $ECHO_N "(cached) $ECHO_C" >&6
32521 ac_cpp='$CXXCPP $CPPFLAGS'
32522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32526 cat >conftest.$ac_ext <<_ACEOF
32529 cat confdefs.h >>conftest.$ac_ext
32530 cat >>conftest.$ac_ext <<_ACEOF
32531 /* end confdefs.h. */
32532 #include <ieeefp.h>
32536 float f; finite(f);
32541 rm -f conftest.$ac_objext
32542 if { (ac_try="$ac_compile"
32543 case "(($ac_try" in
32544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545 *) ac_try_echo=$ac_try;;
32547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548 (eval "$ac_compile") 2>conftest.er1
32550 grep -v '^ *+' conftest.er1 >conftest.err
32552 cat conftest.err >&5
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); } &&
32555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32556 { (case "(($ac_try" in
32557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558 *) ac_try_echo=$ac_try;;
32560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561 (eval "$ac_try") 2>&5
32563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564 (exit $ac_status); }; } &&
32565 { ac_try='test -s conftest.$ac_objext'
32566 { (case "(($ac_try" in
32567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32568 *) ac_try_echo=$ac_try;;
32570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32571 (eval "$ac_try") 2>&5
32573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574 (exit $ac_status); }; }; then
32575 ac_cv_func_finite_in_ieeefp_h=yes
32577 echo "$as_me: failed program was:" >&5
32578 sed 's/^/| /' conftest.$ac_ext >&5
32580 ac_cv_func_finite_in_ieeefp_h=no
32583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32585 ac_cpp='$CPP $CPPFLAGS'
32586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32591 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32592 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32594 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32596 cat >>confdefs.h <<\_ACEOF
32597 #define HAVE_FINITE_IN_IEEEFP_H 1
32606 for ac_header in stdlib.h unistd.h
32608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32613 echo $ECHO_N "(cached) $ECHO_C" >&6
32615 ac_res=`eval echo '${'$as_ac_Header'}'`
32616 { echo "$as_me:$LINENO: result: $ac_res" >&5
32617 echo "${ECHO_T}$ac_res" >&6; }
32619 # Is the header compilable?
32620 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32622 cat >conftest.$ac_ext <<_ACEOF
32625 cat confdefs.h >>conftest.$ac_ext
32626 cat >>conftest.$ac_ext <<_ACEOF
32627 /* end confdefs.h. */
32628 $ac_includes_default
32629 #include <$ac_header>
32631 rm -f conftest.$ac_objext
32632 if { (ac_try="$ac_compile"
32633 case "(($ac_try" in
32634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32635 *) ac_try_echo=$ac_try;;
32637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32638 (eval "$ac_compile") 2>conftest.er1
32640 grep -v '^ *+' conftest.er1 >conftest.err
32642 cat conftest.err >&5
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); } &&
32645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32646 { (case "(($ac_try" in
32647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651 (eval "$ac_try") 2>&5
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); }; } &&
32655 { ac_try='test -s conftest.$ac_objext'
32656 { (case "(($ac_try" in
32657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32658 *) ac_try_echo=$ac_try;;
32660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32661 (eval "$ac_try") 2>&5
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); }; }; then
32665 ac_header_compiler=yes
32667 echo "$as_me: failed program was:" >&5
32668 sed 's/^/| /' conftest.$ac_ext >&5
32670 ac_header_compiler=no
32673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32675 echo "${ECHO_T}$ac_header_compiler" >&6; }
32677 # Is the header present?
32678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32680 cat >conftest.$ac_ext <<_ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h. */
32686 #include <$ac_header>
32688 if { (ac_try="$ac_cpp conftest.$ac_ext"
32689 case "(($ac_try" in
32690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691 *) ac_try_echo=$ac_try;;
32693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32696 grep -v '^ *+' conftest.er1 >conftest.err
32698 cat conftest.err >&5
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); } >/dev/null; then
32701 if test -s conftest.err; then
32702 ac_cpp_err=$ac_c_preproc_warn_flag
32703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32710 if test -z "$ac_cpp_err"; then
32711 ac_header_preproc=yes
32713 echo "$as_me: failed program was:" >&5
32714 sed 's/^/| /' conftest.$ac_ext >&5
32716 ac_header_preproc=no
32719 rm -f conftest.err conftest.$ac_ext
32720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32721 echo "${ECHO_T}$ac_header_preproc" >&6; }
32723 # So? What about this header?
32724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32730 ac_header_preproc=yes
32733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32746 ## ----------------------------------- ##
32747 ## Report this to llvmbugs@cs.uiuc.edu ##
32748 ## ----------------------------------- ##
32750 ) | sed "s/^/$as_me: WARNING: /" >&2
32753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32756 echo $ECHO_N "(cached) $ECHO_C" >&6
32758 eval "$as_ac_Header=\$ac_header_preproc"
32760 ac_res=`eval echo '${'$as_ac_Header'}'`
32761 { echo "$as_me:$LINENO: result: $ac_res" >&5
32762 echo "${ECHO_T}$ac_res" >&6; }
32765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32766 cat >>confdefs.h <<_ACEOF
32767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32775 for ac_func in getpagesize
32777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32781 echo $ECHO_N "(cached) $ECHO_C" >&6
32783 cat >conftest.$ac_ext <<_ACEOF
32786 cat confdefs.h >>conftest.$ac_ext
32787 cat >>conftest.$ac_ext <<_ACEOF
32788 /* end confdefs.h. */
32789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32791 #define $ac_func innocuous_$ac_func
32793 /* System header to define __stub macros and hopefully few prototypes,
32794 which can conflict with char $ac_func (); below.
32795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32796 <limits.h> exists even on freestanding compilers. */
32799 # include <limits.h>
32801 # include <assert.h>
32806 /* Override any GCC internal prototype to avoid an error.
32807 Use char because int might match the return type of a GCC
32808 builtin and then its argument prototype would still apply. */
32813 /* The GNU C library defines this for functions which it implements
32814 to always fail with ENOSYS. Some functions are actually named
32815 something starting with __ and the normal name is an alias. */
32816 #if defined __stub_$ac_func || defined __stub___$ac_func
32823 return $ac_func ();
32828 rm -f conftest.$ac_objext conftest$ac_exeext
32829 if { (ac_try="$ac_link"
32830 case "(($ac_try" in
32831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32832 *) ac_try_echo=$ac_try;;
32834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32835 (eval "$ac_link") 2>conftest.er1
32837 grep -v '^ *+' conftest.er1 >conftest.err
32839 cat conftest.err >&5
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); } &&
32842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32843 { (case "(($ac_try" in
32844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32845 *) ac_try_echo=$ac_try;;
32847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32848 (eval "$ac_try") 2>&5
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); }; } &&
32852 { ac_try='test -s conftest$ac_exeext'
32853 { (case "(($ac_try" in
32854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32855 *) ac_try_echo=$ac_try;;
32857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32858 (eval "$ac_try") 2>&5
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); }; }; then
32862 eval "$as_ac_var=yes"
32864 echo "$as_me: failed program was:" >&5
32865 sed 's/^/| /' conftest.$ac_ext >&5
32867 eval "$as_ac_var=no"
32870 rm -f core conftest.err conftest.$ac_objext \
32871 conftest$ac_exeext conftest.$ac_ext
32873 ac_res=`eval echo '${'$as_ac_var'}'`
32874 { echo "$as_me:$LINENO: result: $ac_res" >&5
32875 echo "${ECHO_T}$ac_res" >&6; }
32876 if test `eval echo '${'$as_ac_var'}'` = yes; then
32877 cat >>confdefs.h <<_ACEOF
32878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32884 { echo "$as_me:$LINENO: checking for working mmap" >&5
32885 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32886 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32887 echo $ECHO_N "(cached) $ECHO_C" >&6
32889 if test "$cross_compiling" = yes; then
32890 ac_cv_func_mmap_fixed_mapped=no
32892 cat >conftest.$ac_ext <<_ACEOF
32895 cat confdefs.h >>conftest.$ac_ext
32896 cat >>conftest.$ac_ext <<_ACEOF
32897 /* end confdefs.h. */
32898 $ac_includes_default
32899 /* malloc might have been renamed as rpl_malloc. */
32902 /* Thanks to Mike Haertel and Jim Avera for this test.
32903 Here is a matrix of mmap possibilities:
32904 mmap private not fixed
32905 mmap private fixed at somewhere currently unmapped
32906 mmap private fixed at somewhere already mapped
32907 mmap shared not fixed
32908 mmap shared fixed at somewhere currently unmapped
32909 mmap shared fixed at somewhere already mapped
32910 For private mappings, we should verify that changes cannot be read()
32911 back from the file, nor mmap's back from the file at a different
32912 address. (There have been systems where private was not correctly
32913 implemented like the infamous i386 svr4.0, and systems where the
32914 VM page cache was not coherent with the file system buffer cache
32915 like early versions of FreeBSD and possibly contemporary NetBSD.)
32916 For shared mappings, we should conversely verify that changes get
32917 propagated back to all the places they're supposed to be.
32919 Grep wants private fixed already mapped.
32920 The main things grep needs to know about mmap are:
32921 * does it exist and is it safe to write into the mmap'd area
32922 * how to use it (BSD variants) */
32925 #include <sys/mman.h>
32927 #if !STDC_HEADERS && !HAVE_STDLIB_H
32931 /* This mess was copied from the GNU getpagesize.h. */
32932 #if !HAVE_GETPAGESIZE
32933 /* Assume that all systems that can run configure have sys/param.h. */
32934 # if !HAVE_SYS_PARAM_H
32935 # define HAVE_SYS_PARAM_H 1
32938 # ifdef _SC_PAGESIZE
32939 # define getpagesize() sysconf(_SC_PAGESIZE)
32940 # else /* no _SC_PAGESIZE */
32941 # if HAVE_SYS_PARAM_H
32942 # include <sys/param.h>
32943 # ifdef EXEC_PAGESIZE
32944 # define getpagesize() EXEC_PAGESIZE
32945 # else /* no EXEC_PAGESIZE */
32947 # define getpagesize() NBPG * CLSIZE
32950 # endif /* no CLSIZE */
32951 # else /* no NBPG */
32953 # define getpagesize() NBPC
32954 # else /* no NBPC */
32956 # define getpagesize() PAGESIZE
32957 # endif /* PAGESIZE */
32958 # endif /* no NBPC */
32959 # endif /* no NBPG */
32960 # endif /* no EXEC_PAGESIZE */
32961 # else /* no HAVE_SYS_PARAM_H */
32962 # define getpagesize() 8192 /* punt totally */
32963 # endif /* no HAVE_SYS_PARAM_H */
32964 # endif /* no _SC_PAGESIZE */
32966 #endif /* no HAVE_GETPAGESIZE */
32971 char *data, *data2, *data3;
32975 pagesize = getpagesize ();
32977 /* First, make a file with some known garbage in it. */
32978 data = (char *) malloc (pagesize);
32981 for (i = 0; i < pagesize; ++i)
32982 *(data + i) = rand ();
32984 fd = creat ("conftest.mmap", 0600);
32987 if (write (fd, data, pagesize) != pagesize)
32991 /* Next, try to mmap the file at a fixed address which already has
32992 something else allocated at it. If we can, also make sure that
32993 we see the same garbage. */
32994 fd = open ("conftest.mmap", O_RDWR);
32997 data2 = (char *) malloc (2 * pagesize);
33000 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33001 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33002 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33004 for (i = 0; i < pagesize; ++i)
33005 if (*(data + i) != *(data2 + i))
33008 /* Finally, make sure that changes to the mapped area do not
33009 percolate back to the file as seen by read(). (This is a bug on
33010 some variants of i386 svr4.0.) */
33011 for (i = 0; i < pagesize; ++i)
33012 *(data2 + i) = *(data2 + i) + 1;
33013 data3 = (char *) malloc (pagesize);
33016 if (read (fd, data3, pagesize) != pagesize)
33018 for (i = 0; i < pagesize; ++i)
33019 if (*(data + i) != *(data3 + i))
33025 rm -f conftest$ac_exeext
33026 if { (ac_try="$ac_link"
33027 case "(($ac_try" in
33028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33029 *) ac_try_echo=$ac_try;;
33031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33032 (eval "$ac_link") 2>&5
33034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_mmap_fixed_mapped=yes
33047 echo "$as_me: program exited with status $ac_status" >&5
33048 echo "$as_me: failed program was:" >&5
33049 sed 's/^/| /' conftest.$ac_ext >&5
33051 ( exit $ac_status )
33052 ac_cv_func_mmap_fixed_mapped=no
33054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33059 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33060 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33061 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33063 cat >>confdefs.h <<\_ACEOF
33064 #define HAVE_MMAP 1
33068 rm -f conftest.mmap
33070 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33071 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33072 if test "${ac_cv_func_mmap_file+set}" = set; then
33073 echo $ECHO_N "(cached) $ECHO_C" >&6
33076 ac_cpp='$CPP $CPPFLAGS'
33077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33081 if test "$cross_compiling" = yes; then
33082 ac_cv_func_mmap_file=no
33084 cat >conftest.$ac_ext <<_ACEOF
33088 cat confdefs.h >>conftest.$ac_ext
33089 cat >>conftest.$ac_ext <<_ACEOF
33090 /* end confdefs.h. */
33092 #include <sys/types.h>
33093 #include <sys/mman.h>
33101 fd = creat ("foo",0777);
33102 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33104 return (fd != (int) MAP_FAILED);
33109 rm -f conftest$ac_exeext
33110 if { (ac_try="$ac_link"
33111 case "(($ac_try" in
33112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113 *) ac_try_echo=$ac_try;;
33115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116 (eval "$ac_link") 2>&5
33118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33120 { (case "(($ac_try" in
33121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33122 *) ac_try_echo=$ac_try;;
33124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33125 (eval "$ac_try") 2>&5
33127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128 (exit $ac_status); }; }; then
33129 ac_cv_func_mmap_file=yes
33131 echo "$as_me: program exited with status $ac_status" >&5
33132 echo "$as_me: failed program was:" >&5
33133 sed 's/^/| /' conftest.$ac_ext >&5
33135 ( exit $ac_status )
33136 ac_cv_func_mmap_file=no
33138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext 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_func_mmap_file" >&5
33151 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33152 if test "$ac_cv_func_mmap_file" = yes; then
33154 cat >>confdefs.h <<\_ACEOF
33155 #define HAVE_MMAP_FILE
33162 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33163 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33164 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33165 echo $ECHO_N "(cached) $ECHO_C" >&6
33167 if test "$llvm_cv_os_type" = "Interix" ; then
33168 ac_cv_need_dev_zero_for_mmap=yes
33170 ac_cv_need_dev_zero_for_mmap=no
33174 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33175 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33176 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33178 cat >>confdefs.h <<\_ACEOF
33179 #define NEED_DEV_ZERO_FOR_MMAP 1
33183 { echo "$as_me:$LINENO: checking for mprotect" >&5
33184 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33185 if test "${ac_cv_func_mprotect+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
33188 cat >conftest.$ac_ext <<_ACEOF
33191 cat confdefs.h >>conftest.$ac_ext
33192 cat >>conftest.$ac_ext <<_ACEOF
33193 /* end confdefs.h. */
33194 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33196 #define mprotect innocuous_mprotect
33198 /* System header to define __stub macros and hopefully few prototypes,
33199 which can conflict with char mprotect (); below.
33200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33201 <limits.h> exists even on freestanding compilers. */
33204 # include <limits.h>
33206 # include <assert.h>
33211 /* Override any GCC internal prototype to avoid an error.
33212 Use char because int might match the return type of a GCC
33213 builtin and then its argument prototype would still apply. */
33218 /* The GNU C library defines this for functions which it implements
33219 to always fail with ENOSYS. Some functions are actually named
33220 something starting with __ and the normal name is an alias. */
33221 #if defined __stub_mprotect || defined __stub___mprotect
33228 return mprotect ();
33233 rm -f conftest.$ac_objext conftest$ac_exeext
33234 if { (ac_try="$ac_link"
33235 case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_link") 2>conftest.er1
33242 grep -v '^ *+' conftest.er1 >conftest.err
33244 cat conftest.err >&5
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); } &&
33247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33248 { (case "(($ac_try" in
33249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33250 *) ac_try_echo=$ac_try;;
33252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33253 (eval "$ac_try") 2>&5
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); }; } &&
33257 { ac_try='test -s conftest$ac_exeext'
33258 { (case "(($ac_try" in
33259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33260 *) ac_try_echo=$ac_try;;
33262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33263 (eval "$ac_try") 2>&5
33265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); }; }; then
33267 ac_cv_func_mprotect=yes
33269 echo "$as_me: failed program was:" >&5
33270 sed 's/^/| /' conftest.$ac_ext >&5
33272 ac_cv_func_mprotect=no
33275 rm -f core conftest.err conftest.$ac_objext \
33276 conftest$ac_exeext conftest.$ac_ext
33278 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33279 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33280 if test $ac_cv_func_mprotect = yes; then
33283 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33284 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33285 { (exit 1); exit 1; }; }
33289 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33291 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33292 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33294 if test "$ac_cv_func_mmap_file" = "no"
33296 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33297 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33301 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33302 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33303 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33304 echo $ECHO_N "(cached) $ECHO_C" >&6
33306 llvm_cv_llvmgcc_sanity="no"
33307 if test -x "$LLVMGCC" ; then
33308 cp /dev/null conftest.c
33309 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33310 if test $? -eq 0 ; then
33311 llvm_cv_llvmgcc_sanity="yes"
33316 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33317 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33319 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33320 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33321 LLVMCC1=$llvmcc1path
33323 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33324 LLVMCC1PLUS=$llvmcc1pluspath
33326 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33327 LLVMGCCDIR=$llvmgccdir
33329 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33330 LLVMGCCLIBEXEC=$llvmgcclibexec
33332 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33333 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33334 LLVMGCC_VERSION=$llvmgccversion
33336 LLVMGCC_MAJVERS=$llvmgccmajvers
33340 SHLIBEXT=$libltdl_cv_shlibext
33343 # Translate the various configuration directories and other basic
33344 # information into substitutions that will end up in Makefile.config.in
33345 # that these configured values can be used by the makefiles
33346 if test "${prefix}" == "NONE" ; then
33347 prefix="/usr/local"
33349 eval LLVM_PREFIX="${prefix}";
33350 eval LLVM_BINDIR="${prefix}/bin";
33351 eval LLVM_LIBDIR="${prefix}/lib";
33352 eval LLVM_DATADIR="${prefix}/share/llvm";
33353 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33354 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33355 eval LLVM_INCLUDEDIR="${prefix}/include";
33356 eval LLVM_INFODIR="${prefix}/info";
33357 eval LLVM_MANDIR="${prefix}/man";
33358 LLVM_CONFIGTIME=`date`
33370 # Place the various directores into the config.h file as #defines so that we
33371 # can know about the installation paths within LLVM.
33373 cat >>confdefs.h <<_ACEOF
33374 #define LLVM_PREFIX "$LLVM_PREFIX"
33378 cat >>confdefs.h <<_ACEOF
33379 #define LLVM_BINDIR "$LLVM_BINDIR"
33383 cat >>confdefs.h <<_ACEOF
33384 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33388 cat >>confdefs.h <<_ACEOF
33389 #define LLVM_DATADIR "$LLVM_DATADIR"
33393 cat >>confdefs.h <<_ACEOF
33394 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33398 cat >>confdefs.h <<_ACEOF
33399 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33403 cat >>confdefs.h <<_ACEOF
33404 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33408 cat >>confdefs.h <<_ACEOF
33409 #define LLVM_INFODIR "$LLVM_INFODIR"
33413 cat >>confdefs.h <<_ACEOF
33414 #define LLVM_MANDIR "$LLVM_MANDIR"
33418 cat >>confdefs.h <<_ACEOF
33419 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33424 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33426 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33428 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33430 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33432 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33435 ac_config_files="$ac_config_files Makefile.config"
33438 ac_config_files="$ac_config_files llvm.spec"
33441 ac_config_files="$ac_config_files docs/doxygen.cfg"
33444 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33447 ac_config_commands="$ac_config_commands setup"
33449 ac_config_commands="$ac_config_commands Makefile"
33452 ac_config_commands="$ac_config_commands Makefile.common"
33455 ac_config_commands="$ac_config_commands examples/Makefile"
33458 ac_config_commands="$ac_config_commands lib/Makefile"
33461 ac_config_commands="$ac_config_commands runtime/Makefile"
33464 ac_config_commands="$ac_config_commands test/Makefile"
33467 ac_config_commands="$ac_config_commands test/Makefile.tests"
33470 ac_config_commands="$ac_config_commands tools/Makefile"
33473 ac_config_commands="$ac_config_commands utils/Makefile"
33476 ac_config_commands="$ac_config_commands projects/Makefile"
33480 cat >confcache <<\_ACEOF
33481 # This file is a shell script that caches the results of configure
33482 # tests run on this system so they can be shared between configure
33483 # scripts and configure runs, see configure's option --config-cache.
33484 # It is not useful on other systems. If it contains results you don't
33485 # want to keep, you may remove or edit it.
33487 # config.status only pays attention to the cache file if you give it
33488 # the --recheck option to rerun configure.
33490 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33491 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33492 # following values.
33496 # The following way of writing the cache mishandles newlines in values,
33497 # but we know of no workaround that is simple, portable, and efficient.
33498 # So, we kill variables containing newlines.
33499 # Ultrix sh set writes to stderr and can't be redirected directly,
33500 # and sets the high bit in the cache file unless we assign to the vars.
33502 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33503 eval ac_val=\$$ac_var
33507 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33508 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33511 _ | IFS | as_nl) ;; #(
33512 *) $as_unset $ac_var ;;
33518 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33519 *${as_nl}ac_space=\ *)
33520 # `set' does not quote correctly, so add quotes (double-quote
33521 # substitution turns \\\\ into \\, and sed turns \\ into \).
33524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33527 # `set' quotes correctly as required by POSIX, so do not add quotes.
33528 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33537 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33539 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33541 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33542 if test -w "$cache_file"; then
33543 test "x$cache_file" != "x/dev/null" &&
33544 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33545 echo "$as_me: updating cache $cache_file" >&6;}
33546 cat confcache >$cache_file
33548 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33549 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33554 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33555 # Let make expand exec_prefix.
33556 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33558 DEFS=-DHAVE_CONFIG_H
33562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33563 # 1. Remove the extension, and $U if already installed.
33564 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33565 ac_i=`echo "$ac_i" | sed "$ac_script"`
33566 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33567 # will be set to the directory where LIBOBJS objects are built.
33568 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33569 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33571 LIBOBJS=$ac_libobjs
33573 LTLIBOBJS=$ac_ltlibobjs
33576 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33577 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33578 Usually this means the macro was only invoked conditionally." >&5
33579 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33580 Usually this means the macro was only invoked conditionally." >&2;}
33581 { (exit 1); exit 1; }; }
33583 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33584 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33585 Usually this means the macro was only invoked conditionally." >&5
33586 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33587 Usually this means the macro was only invoked conditionally." >&2;}
33588 { (exit 1); exit 1; }; }
33591 : ${CONFIG_STATUS=./config.status}
33592 ac_clean_files_save=$ac_clean_files
33593 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33594 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33595 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33596 cat >$CONFIG_STATUS <<_ACEOF
33598 # Generated by $as_me.
33599 # Run this file to recreate the current configuration.
33600 # Compiler output produced by configure, useful for debugging
33601 # configure, is in config.log if it exists.
33604 ac_cs_recheck=false
33606 SHELL=\${CONFIG_SHELL-$SHELL}
33609 cat >>$CONFIG_STATUS <<\_ACEOF
33610 ## --------------------- ##
33611 ## M4sh Initialization. ##
33612 ## --------------------- ##
33614 # Be Bourne compatible
33615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33618 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33619 # is contrary to our usage. Disable this feature.
33620 alias -g '${1+"$@"}'='"$@"'
33621 setopt NO_GLOB_SUBST
33623 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33625 BIN_SH=xpg4; export BIN_SH # for Tru64
33626 DUALCASE=1; export DUALCASE # for MKS sh
33630 # Avoid depending upon Character Ranges.
33631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33634 as_cr_digits='0123456789'
33635 as_cr_alnum=$as_cr_Letters$as_cr_digits
33637 # The user is always right.
33638 if test "${PATH_SEPARATOR+set}" != set; then
33639 echo "#! /bin/sh" >conf$$.sh
33640 echo "exit 0" >>conf$$.sh
33642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33650 # Support unset when possible.
33651 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33659 # We need space, tab and new line, in precisely that order. Quoting is
33660 # there to prevent editors from complaining about space-tab.
33661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33662 # splitting by setting IFS to empty value.)
33667 # Find who we are. Look in the path if we contain no directory separator.
33669 *[\\/]* ) as_myself=$0 ;;
33670 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33671 for as_dir in $PATH
33674 test -z "$as_dir" && as_dir=.
33675 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33681 # We did not find ourselves, most probably we were run as `sh COMMAND'
33682 # in which case we are not to be found in the path.
33683 if test "x$as_myself" = x; then
33686 if test ! -f "$as_myself"; then
33687 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33688 { (exit 1); exit 1; }
33691 # Work around bugs in pre-3.0 UWIN ksh.
33692 for as_var in ENV MAIL MAILPATH
33693 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33701 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33702 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33703 LC_TELEPHONE LC_TIME
33705 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33706 eval $as_var=C; export $as_var
33708 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33712 # Required to use basename.
33713 if expr a : '\(a\)' >/dev/null 2>&1 &&
33714 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33720 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33721 as_basename=basename
33727 # Name of the executable.
33728 as_me=`$as_basename -- "$0" ||
33729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33730 X"$0" : 'X\(//\)$' \| \
33731 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33733 sed '/^.*\/\([^/][^/]*\)\/*$/{
33752 as_lineno_1=$LINENO
33753 as_lineno_2=$LINENO
33754 test "x$as_lineno_1" != "x$as_lineno_2" &&
33755 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33757 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33758 # uniformly replaced by the line number. The first 'sed' inserts a
33759 # line-number line after each line using $LINENO; the second 'sed'
33760 # does the real work. The second script uses 'N' to pair each
33761 # line-number line with the line containing $LINENO, and appends
33762 # trailing '-' during substitution so that $LINENO is not a special
33763 # case at line end.
33764 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33765 # scripts with optimization help from Paolo Bonzini. Blame Lee
33766 # E. McMahon (1931-1989) for sed's syntax. :-)
33778 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33781 ' >$as_me.lineno &&
33782 chmod +x "$as_me.lineno" ||
33783 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33784 { (exit 1); exit 1; }; }
33786 # Don't try to exec as it changes $[0], causing all sort of problems
33787 # (the dirname of $[0] is not the place where we might find the
33788 # original and so on. Autoconf is especially sensitive to this).
33789 . "./$as_me.lineno"
33790 # Exit status is that of the last command.
33795 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33801 ECHO_C= ECHO_N= ECHO_T=
33802 case `echo -n x` in
33804 case `echo 'x\c'` in
33805 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33812 if expr a : '\(a\)' >/dev/null 2>&1 &&
33813 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33819 rm -f conf$$ conf$$.exe conf$$.file
33820 if test -d conf$$.dir; then
33821 rm -f conf$$.dir/conf$$.file
33827 if ln -s conf$$.file conf$$ 2>/dev/null; then
33829 # ... but there are two gotchas:
33830 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33831 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33832 # In both cases, we have to default to `cp -p'.
33833 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33835 elif ln conf$$.file conf$$ 2>/dev/null; then
33840 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33841 rmdir conf$$.dir 2>/dev/null
33843 if mkdir -p . 2>/dev/null; then
33846 test -d ./-p && rmdir ./-p
33850 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33851 # systems may use methods other than mode bits to determine executability.
33852 cat >conf$$.file <<_ASEOF
33856 chmod +x conf$$.file
33857 if test -x conf$$.file >/dev/null 2>&1; then
33858 as_executable_p="test -x"
33864 # Sed expression to map a string onto a valid CPP name.
33865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33867 # Sed expression to map a string onto a valid variable name.
33868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33873 # Save the log message, to keep $[0] and so on meaningful, and to
33874 # report actual input values of CONFIG_FILES etc. instead of their
33875 # values after options handling.
33877 This file was extended by llvm $as_me 2.0cvs, which was
33878 generated by GNU Autoconf 2.60. Invocation command line was
33880 CONFIG_FILES = $CONFIG_FILES
33881 CONFIG_HEADERS = $CONFIG_HEADERS
33882 CONFIG_LINKS = $CONFIG_LINKS
33883 CONFIG_COMMANDS = $CONFIG_COMMANDS
33886 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33891 cat >>$CONFIG_STATUS <<_ACEOF
33892 # Files that config.status was made for.
33893 config_files="$ac_config_files"
33894 config_headers="$ac_config_headers"
33895 config_commands="$ac_config_commands"
33899 cat >>$CONFIG_STATUS <<\_ACEOF
33901 \`$as_me' instantiates files from templates according to the
33902 current configuration.
33904 Usage: $0 [OPTIONS] [FILE]...
33906 -h, --help print this help, then exit
33907 -V, --version print version number, then exit
33908 -q, --quiet do not print progress messages
33909 -d, --debug don't remove temporary files
33910 --recheck update $as_me by reconfiguring in the same conditions
33911 --file=FILE[:TEMPLATE]
33912 instantiate the configuration file FILE
33913 --header=FILE[:TEMPLATE]
33914 instantiate the configuration header FILE
33916 Configuration files:
33919 Configuration headers:
33922 Configuration commands:
33925 Report bugs to <bug-autoconf@gnu.org>."
33928 cat >>$CONFIG_STATUS <<_ACEOF
33930 llvm config.status 2.0cvs
33931 configured by $0, generated by GNU Autoconf 2.60,
33932 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33934 Copyright (C) 2006 Free Software Foundation, Inc.
33935 This config.status script is free software; the Free Software Foundation
33936 gives unlimited permission to copy, distribute and modify it."
33943 cat >>$CONFIG_STATUS <<\_ACEOF
33944 # If no file are specified by the user, then we need to provide default
33945 # value. By we need to know if files were specified by the user.
33951 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33952 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33963 # Handling of the options.
33964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33966 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33967 echo "$ac_cs_version"; exit ;;
33968 --debug | --debu | --deb | --de | --d | -d )
33970 --file | --fil | --fi | --f )
33972 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33973 ac_need_defaults=false;;
33974 --header | --heade | --head | --hea )
33976 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33977 ac_need_defaults=false;;
33979 # Conflict between --help and --header
33980 { echo "$as_me: error: ambiguous option: $1
33981 Try \`$0 --help' for more information." >&2
33982 { (exit 1); exit 1; }; };;
33983 --help | --hel | -h )
33984 echo "$ac_cs_usage"; exit ;;
33985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33986 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33989 # This is an error.
33990 -*) { echo "$as_me: error: unrecognized option: $1
33991 Try \`$0 --help' for more information." >&2
33992 { (exit 1); exit 1; }; } ;;
33994 *) ac_config_targets="$ac_config_targets $1"
33995 ac_need_defaults=false ;;
34001 ac_configure_extra_args=
34003 if $ac_cs_silent; then
34005 ac_configure_extra_args="$ac_configure_extra_args --silent"
34009 cat >>$CONFIG_STATUS <<_ACEOF
34010 if \$ac_cs_recheck; then
34011 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34012 CONFIG_SHELL=$SHELL
34013 export CONFIG_SHELL
34014 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34018 cat >>$CONFIG_STATUS <<\_ACEOF
34022 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34023 ## Running $as_me. ##
34029 cat >>$CONFIG_STATUS <<_ACEOF
34033 llvm_src="${srcdir}"
34037 cat >>$CONFIG_STATUS <<\_ACEOF
34039 # Handling of arguments.
34040 for ac_config_target in $ac_config_targets
34042 case $ac_config_target in
34043 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34044 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34045 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34046 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34047 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34048 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34049 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34050 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34051 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34052 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34053 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34054 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34055 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34056 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34057 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34058 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34059 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34060 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34061 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34062 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34064 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34065 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34066 { (exit 1); exit 1; }; };;
34071 # If the user did not use the arguments to specify the items to instantiate,
34072 # then the envvar interface is used. Set only those that are not.
34073 # We use the long form for the default assignment because of an extremely
34074 # bizarre bug on SunOS 4.1.3.
34075 if $ac_need_defaults; then
34076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34081 # Have a temporary directory for convenience. Make it in the build tree
34082 # simply because there is no reason against having it here, and in addition,
34083 # creating and moving files from /tmp can sometimes cause problems.
34084 # Hook for its removal unless debugging.
34085 # Note that there is a small window in which the directory will not be cleaned:
34086 # after its creation but before its name has been assigned to `$tmp'.
34090 trap 'exit_status=$?
34091 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34093 trap '{ (exit 1); exit 1; }' 1 2 13 15
34095 # Create a (secure) tmp directory for tmp files.
34098 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34099 test -n "$tmp" && test -d "$tmp"
34102 tmp=./conf$$-$RANDOM
34103 (umask 077 && mkdir "$tmp")
34106 echo "$me: cannot create a temporary directory in ." >&2
34107 { (exit 1); exit 1; }
34111 # Set up the sed scripts for CONFIG_FILES section.
34114 # No need to generate the scripts if there are no CONFIG_FILES.
34115 # This happens for instance when ./config.status config.h
34116 if test -n "$CONFIG_FILES"; then
34123 for ac_last_try in false false false false false :; do
34124 cat >conf$$subs.sed <<_ACEOF
34125 SHELL!$SHELL$ac_delim
34126 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34127 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34128 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34129 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34130 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34131 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34132 exec_prefix!$exec_prefix$ac_delim
34133 prefix!$prefix$ac_delim
34134 program_transform_name!$program_transform_name$ac_delim
34135 bindir!$bindir$ac_delim
34136 sbindir!$sbindir$ac_delim
34137 libexecdir!$libexecdir$ac_delim
34138 datarootdir!$datarootdir$ac_delim
34139 datadir!$datadir$ac_delim
34140 sysconfdir!$sysconfdir$ac_delim
34141 sharedstatedir!$sharedstatedir$ac_delim
34142 localstatedir!$localstatedir$ac_delim
34143 includedir!$includedir$ac_delim
34144 oldincludedir!$oldincludedir$ac_delim
34145 docdir!$docdir$ac_delim
34146 infodir!$infodir$ac_delim
34147 htmldir!$htmldir$ac_delim
34148 dvidir!$dvidir$ac_delim
34149 pdfdir!$pdfdir$ac_delim
34150 psdir!$psdir$ac_delim
34151 libdir!$libdir$ac_delim
34152 localedir!$localedir$ac_delim
34153 mandir!$mandir$ac_delim
34154 DEFS!$DEFS$ac_delim
34155 ECHO_C!$ECHO_C$ac_delim
34156 ECHO_N!$ECHO_N$ac_delim
34157 ECHO_T!$ECHO_T$ac_delim
34158 LIBS!$LIBS$ac_delim
34159 build_alias!$build_alias$ac_delim
34160 host_alias!$host_alias$ac_delim
34161 target_alias!$target_alias$ac_delim
34162 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34163 subdirs!$subdirs$ac_delim
34164 build!$build$ac_delim
34165 build_cpu!$build_cpu$ac_delim
34166 build_vendor!$build_vendor$ac_delim
34167 build_os!$build_os$ac_delim
34168 host!$host$ac_delim
34169 host_cpu!$host_cpu$ac_delim
34170 host_vendor!$host_vendor$ac_delim
34171 host_os!$host_os$ac_delim
34172 target!$target$ac_delim
34173 target_cpu!$target_cpu$ac_delim
34174 target_vendor!$target_vendor$ac_delim
34175 target_os!$target_os$ac_delim
34177 LINKALL!$LINKALL$ac_delim
34178 NOLINKALL!$NOLINKALL$ac_delim
34179 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34180 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34181 ARCH!$ARCH$ac_delim
34182 ENDIAN!$ENDIAN$ac_delim
34184 CFLAGS!$CFLAGS$ac_delim
34185 LDFLAGS!$LDFLAGS$ac_delim
34186 CPPFLAGS!$CPPFLAGS$ac_delim
34187 ac_ct_CC!$ac_ct_CC$ac_delim
34188 EXEEXT!$EXEEXT$ac_delim
34189 OBJEXT!$OBJEXT$ac_delim
34191 GREP!$GREP$ac_delim
34192 EGREP!$EGREP$ac_delim
34193 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34194 BUILD_CC!$BUILD_CC$ac_delim
34195 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34196 CVSBUILD!$CVSBUILD$ac_delim
34197 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34198 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34199 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34201 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34202 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34203 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34204 ENABLE_PIC!$ENABLE_PIC$ac_delim
34205 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34206 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34207 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34209 CXXFLAGS!$CXXFLAGS$ac_delim
34210 ac_ct_CXX!$ac_ct_CXX$ac_delim
34212 LEXLIB!$LEXLIB$ac_delim
34213 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34214 FLEX!$FLEX$ac_delim
34215 YACC!$YACC$ac_delim
34216 YFLAGS!$YFLAGS$ac_delim
34217 BISON!$BISON$ac_delim
34219 ifGNUmake!$ifGNUmake$ac_delim
34220 LN_S!$LN_S$ac_delim
34224 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34226 elif $ac_last_try; then
34227 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34228 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34229 { (exit 1); exit 1; }; }
34231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34235 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34236 if test -n "$ac_eof"; then
34237 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34238 ac_eof=`expr $ac_eof + 1`
34241 cat >>$CONFIG_STATUS <<_ACEOF
34242 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34246 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34247 s/^/s,@/; s/!/@,|#_!!_#|/
34250 s/'"$ac_delim"'$/,g/; t
34252 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34253 ' >>$CONFIG_STATUS <conf$$subs.sed
34254 rm -f conf$$subs.sed
34255 cat >>$CONFIG_STATUS <<_ACEOF
34261 for ac_last_try in false false false false false :; do
34262 cat >conf$$subs.sed <<_ACEOF
34264 DATE!$DATE$ac_delim
34265 FIND!$FIND$ac_delim
34266 MKDIR!$MKDIR$ac_delim
34268 RANLIB!$RANLIB$ac_delim
34272 BINPWD!$BINPWD$ac_delim
34273 GRAPHVIZ!$GRAPHVIZ$ac_delim
34276 DOTTY!$DOTTY$ac_delim
34277 PERL!$PERL$ac_delim
34278 HAVE_PERL!$HAVE_PERL$ac_delim
34279 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34280 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34281 INSTALL_DATA!$INSTALL_DATA$ac_delim
34282 BZIP2!$BZIP2$ac_delim
34283 DOXYGEN!$DOXYGEN$ac_delim
34284 GROFF!$GROFF$ac_delim
34285 GZIP!$GZIP$ac_delim
34286 POD2HTML!$POD2HTML$ac_delim
34287 POD2MAN!$POD2MAN$ac_delim
34288 RUNTEST!$RUNTEST$ac_delim
34289 TCLSH!$TCLSH$ac_delim
34291 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34292 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34293 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34294 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34295 LIBADD_DL!$LIBADD_DL$ac_delim
34296 ECHO!$ECHO$ac_delim
34298 STRIP!$STRIP$ac_delim
34299 CXXCPP!$CXXCPP$ac_delim
34301 FFLAGS!$FFLAGS$ac_delim
34302 ac_ct_F77!$ac_ct_F77$ac_delim
34303 LIBTOOL!$LIBTOOL$ac_delim
34304 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34305 LLVMGCC!$LLVMGCC$ac_delim
34306 LLVMGXX!$LLVMGXX$ac_delim
34307 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34308 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34309 ALLOCA!$ALLOCA$ac_delim
34310 MMAP_FILE!$MMAP_FILE$ac_delim
34311 LLVMCC1!$LLVMCC1$ac_delim
34312 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34313 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34314 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34315 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34316 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34317 SHLIBEXT!$SHLIBEXT$ac_delim
34318 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34319 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34320 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34321 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34322 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34323 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34324 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34325 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34326 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34327 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34328 LIBOBJS!$LIBOBJS$ac_delim
34329 LTLIBOBJS!$LTLIBOBJS$ac_delim
34332 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
34334 elif $ac_last_try; then
34335 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34336 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34337 { (exit 1); exit 1; }; }
34339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34343 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34344 if test -n "$ac_eof"; then
34345 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34346 ac_eof=`expr $ac_eof + 1`
34349 cat >>$CONFIG_STATUS <<_ACEOF
34350 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34354 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34355 s/^/s,@/; s/!/@,|#_!!_#|/
34358 s/'"$ac_delim"'$/,g/; t
34360 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34361 ' >>$CONFIG_STATUS <conf$$subs.sed
34362 rm -f conf$$subs.sed
34363 cat >>$CONFIG_STATUS <<_ACEOF
34370 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34371 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34372 # trailing colons and then remove the whole line if VPATH becomes empty
34373 # (actually we leave an empty line to preserve line numbers).
34374 if test "x$srcdir" = x.; then
34375 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34376 s/:*\$(srcdir):*/:/
34377 s/:*\${srcdir}:*/:/
34379 s/^\([^=]*=[ ]*\):*/\1/
34385 cat >>$CONFIG_STATUS <<\_ACEOF
34386 fi # test -n "$CONFIG_FILES"
34389 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34392 :[FHLC]) ac_mode=$ac_tag; continue;;
34394 case $ac_mode$ac_tag in
34396 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34397 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34398 { (exit 1); exit 1; }; };;
34399 :[FH]-) ac_tag=-:-;;
34400 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34417 -) ac_f="$tmp/stdin";;
34418 *) # Look for the file first in the build tree, then in the source tree
34419 # (if the path is not absolute). The absolute path cannot be DOS-style,
34420 # because $ac_f cannot contain `:'.
34424 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34426 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34427 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34428 { (exit 1); exit 1; }; };;
34430 ac_file_inputs="$ac_file_inputs $ac_f"
34433 # Let's still pretend it is `configure' which instantiates (i.e., don't
34434 # use $as_me), people would be surprised to read:
34435 # /* config.h. Generated by config.status. */
34436 configure_input="Generated from "`IFS=:
34437 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34438 if test x"$ac_file" != x-; then
34439 configure_input="$ac_file. $configure_input"
34440 { echo "$as_me:$LINENO: creating $ac_file" >&5
34441 echo "$as_me: creating $ac_file" >&6;}
34445 *:-:* | *:-) cat >"$tmp/stdin";;
34450 ac_dir=`$as_dirname -- "$ac_file" ||
34451 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34452 X"$ac_file" : 'X\(//\)[^/]' \| \
34453 X"$ac_file" : 'X\(//\)$' \| \
34454 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34460 /^X\(\/\/\)[^/].*/{
34475 -*) as_dir=./$as_dir;;
34477 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34481 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34482 *) as_qdir=$as_dir;;
34484 as_dirs="'$as_qdir' $as_dirs"
34485 as_dir=`$as_dirname -- "$as_dir" ||
34486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34487 X"$as_dir" : 'X\(//\)[^/]' \| \
34488 X"$as_dir" : 'X\(//\)$' \| \
34489 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34495 /^X\(\/\/\)[^/].*/{
34508 test -d "$as_dir" && break
34510 test -z "$as_dirs" || eval "mkdir $as_dirs"
34511 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34512 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34513 { (exit 1); exit 1; }; }; }
34517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34520 # A ".." for each directory in $ac_dir_suffix.
34521 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34522 case $ac_top_builddir_sub in
34523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34527 ac_abs_top_builddir=$ac_pwd
34528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34529 # for backward compatibility:
34530 ac_top_builddir=$ac_top_build_prefix
34533 .) # We are building in place.
34535 ac_top_srcdir=$ac_top_builddir_sub
34536 ac_abs_top_srcdir=$ac_pwd ;;
34537 [\\/]* | ?:[\\/]* ) # Absolute name.
34538 ac_srcdir=$srcdir$ac_dir_suffix;
34539 ac_top_srcdir=$srcdir
34540 ac_abs_top_srcdir=$srcdir ;;
34541 *) # Relative name.
34542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34543 ac_top_srcdir=$ac_top_build_prefix$srcdir
34544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34556 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34557 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34561 cat >>$CONFIG_STATUS <<\_ACEOF
34562 # If the template does not know about datarootdir, expand it.
34563 # FIXME: This hack should be removed a few years after 2.60.
34564 ac_datarootdir_hack=; ac_datarootdir_seen=
34566 case `sed -n '/datarootdir/ {
34575 ' $ac_file_inputs` in
34576 *datarootdir*) ac_datarootdir_seen=yes;;
34577 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34578 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34579 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34581 cat >>$CONFIG_STATUS <<_ACEOF
34582 ac_datarootdir_hack='
34583 s&@datadir@&$datadir&g
34584 s&@docdir@&$docdir&g
34585 s&@infodir@&$infodir&g
34586 s&@localedir@&$localedir&g
34587 s&@mandir@&$mandir&g
34588 s&\\\${datarootdir}&$datarootdir&g' ;;
34592 # Neutralize VPATH when `$srcdir' = `.'.
34593 # Shell code in configure.ac might set extrasub.
34594 # FIXME: do we really want to maintain this feature?
34595 cat >>$CONFIG_STATUS <<_ACEOF
34599 cat >>$CONFIG_STATUS <<\_ACEOF
34601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34602 s&@configure_input@&$configure_input&;t t
34603 s&@top_builddir@&$ac_top_builddir_sub&;t t
34604 s&@srcdir@&$ac_srcdir&;t t
34605 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34606 s&@top_srcdir@&$ac_top_srcdir&;t t
34607 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34608 s&@builddir@&$ac_builddir&;t t
34609 s&@abs_builddir@&$ac_abs_builddir&;t t
34610 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34611 s&@INSTALL@&$ac_INSTALL&;t t
34612 $ac_datarootdir_hack
34613 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34615 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34616 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34617 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34618 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34619 which seems to be undefined. Please make sure it is defined." >&5
34620 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34621 which seems to be undefined. Please make sure it is defined." >&2;}
34625 -) cat "$tmp/out"; rm -f "$tmp/out";;
34626 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34635 # Transform confdefs.h into a sed script `conftest.defines', that
34636 # substitutes the proper values into config.h.in to produce config.h.
34637 rm -f conftest.defines conftest.tail
34638 # First, append a space to every undef/define line, to ease matching.
34639 echo 's/$/ /' >conftest.defines
34640 # Then, protect against being on the right side of a sed subst, or in
34641 # an unquoted here document, in config.status. If some macros were
34642 # called several times there might be several #defines for the same
34643 # symbol, which is useless. But do not sort them, since the last
34644 # AC_DEFINE must be honored.
34645 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34646 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34647 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34648 # PARAMS is the parameter list in the macro definition--in most cases, it's
34649 # just an empty string.
34650 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34651 ac_dB='\\)[ (].*,\\1define\\2'
34659 s/^[ ]*#[ ]*define[ ][ ]*//
34664 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34665 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34666 ' >>conftest.defines
34668 # Remove the space that was appended to ease matching.
34669 # Then replace #undef with comments. This is necessary, for
34670 # example, in the case of _POSIX_SOURCE, which is predefined and required
34671 # on some systems where configure will not decide to define it.
34672 # (The regexp can be short, since the line contains either #define or #undef.)
34674 s,^[ #]*u.*,/* & */,' >>conftest.defines
34676 # Break up conftest.defines:
34677 ac_max_sed_lines=50
34679 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34680 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34681 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34683 ac_in='$ac_file_inputs'
34684 ac_out='"$tmp/out1"'
34685 ac_nxt='"$tmp/out2"'
34689 # Write a here document:
34690 cat >>$CONFIG_STATUS <<_ACEOF
34691 # First, check the format of the line:
34692 cat >"\$tmp/defines.sed" <<\\CEOF
34693 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34694 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34698 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34700 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34701 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34702 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34703 grep . conftest.tail >/dev/null || break
34704 rm -f conftest.defines
34705 mv conftest.tail conftest.defines
34707 rm -f conftest.defines conftest.tail
34709 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34710 cat >>$CONFIG_STATUS <<\_ACEOF
34711 if test x"$ac_file" != x-; then
34712 echo "/* $configure_input */" >"$tmp/config.h"
34713 cat "$ac_result" >>"$tmp/config.h"
34714 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34715 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34716 echo "$as_me: $ac_file is unchanged" >&6;}
34719 mv "$tmp/config.h" $ac_file
34722 echo "/* $configure_input */"
34728 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34729 echo "$as_me: executing $ac_file commands" >&6;}
34734 case $ac_file$ac_mode in
34735 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34736 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34737 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34738 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34739 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34740 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34741 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34742 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34743 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34744 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34745 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34746 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34747 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34748 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34749 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34750 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34751 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34752 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34753 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34754 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34760 { (exit 0); exit 0; }
34762 chmod +x $CONFIG_STATUS
34763 ac_clean_files=$ac_clean_files_save
34766 # configure is writing to config.log, and then calls config.status.
34767 # config.status does its own redirection, appending to config.log.
34768 # Unfortunately, on DOS this fails, as config.log is still kept open
34769 # by configure, so config.status won't be able to write to it; its
34770 # output is simply discarded. So we exec the FD to /dev/null,
34771 # effectively closing config.log, so it can be properly (re)opened and
34772 # appended to by config.status. When coming back to configure, we
34773 # need to make the FD available again.
34774 if test "$no_create" != yes; then
34776 ac_config_status_args=
34777 test "$silent" = yes &&
34778 ac_config_status_args="$ac_config_status_args --quiet"
34780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34783 # would make configure fail if this is the last instruction.
34784 $ac_cs_success || { (exit 1); exit 1; }
34788 # CONFIG_SUBDIRS section.
34790 if test "$no_recursion" != yes; then
34792 # Remove --cache-file and --srcdir arguments so they do not pile up.
34793 ac_sub_configure_args=
34795 eval "set x $ac_configure_args"
34799 if test -n "$ac_prev"; then
34804 -cache-file | --cache-file | --cache-fil | --cache-fi \
34805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34806 ac_prev=cache_file ;;
34807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34811 --config-cache | -C)
34813 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34815 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34817 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34819 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34823 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34825 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34829 # Always prepend --prefix to ensure using the same prefix
34830 # in subdir configurations.
34831 ac_arg="--prefix=$prefix"
34833 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34835 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34838 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34840 # Do not complain, so a configure script can configure whichever
34841 # parts of a large source tree are present.
34842 test -d "$srcdir/$ac_dir" || continue
34844 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34845 echo "$as_me:$LINENO: $ac_msg" >&5
34849 -*) as_dir=./$as_dir;;
34851 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34855 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34856 *) as_qdir=$as_dir;;
34858 as_dirs="'$as_qdir' $as_dirs"
34859 as_dir=`$as_dirname -- "$as_dir" ||
34860 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34861 X"$as_dir" : 'X\(//\)[^/]' \| \
34862 X"$as_dir" : 'X\(//\)$' \| \
34863 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34869 /^X\(\/\/\)[^/].*/{
34882 test -d "$as_dir" && break
34884 test -z "$as_dirs" || eval "mkdir $as_dirs"
34885 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34886 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34887 { (exit 1); exit 1; }; }; }
34891 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34894 # A ".." for each directory in $ac_dir_suffix.
34895 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34896 case $ac_top_builddir_sub in
34897 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34898 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34901 ac_abs_top_builddir=$ac_pwd
34902 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34903 # for backward compatibility:
34904 ac_top_builddir=$ac_top_build_prefix
34907 .) # We are building in place.
34909 ac_top_srcdir=$ac_top_builddir_sub
34910 ac_abs_top_srcdir=$ac_pwd ;;
34911 [\\/]* | ?:[\\/]* ) # Absolute name.
34912 ac_srcdir=$srcdir$ac_dir_suffix;
34913 ac_top_srcdir=$srcdir
34914 ac_abs_top_srcdir=$srcdir ;;
34915 *) # Relative name.
34916 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34917 ac_top_srcdir=$ac_top_build_prefix$srcdir
34918 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34920 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34925 # Check for guested configure; otherwise get Cygnus style configure.
34926 if test -f "$ac_srcdir/configure.gnu"; then
34927 ac_sub_configure=$ac_srcdir/configure.gnu
34928 elif test -f "$ac_srcdir/configure"; then
34929 ac_sub_configure=$ac_srcdir/configure
34930 elif test -f "$ac_srcdir/configure.in"; then
34931 # This should be Cygnus configure.
34932 ac_sub_configure=$ac_aux_dir/configure
34934 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34935 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34939 # The recursion is here.
34940 if test -n "$ac_sub_configure"; then
34941 # Make the cache file name correct relative to the subdirectory.
34942 case $cache_file in
34943 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34944 *) # Relative name.
34945 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34948 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34949 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34950 # The eval makes quoting arguments work.
34951 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34952 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34953 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34954 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34955 { (exit 1); exit 1; }; }