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
884 CONVENIENCE_LTDL_TRUE
885 CONVENIENCE_LTDL_FALSE
920 ac_precious_vars='build_alias
936 ac_subdirs_all='projects/sample
944 projects/llvm-poolalloc
945 projects/llvm-kernel'
947 # Initialize some variables set by options.
949 ac_init_version=false
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
959 program_transform_name=s,x,x,
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir='${datarootdir}/info'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1035 -datadir | --datadir | --datadi | --datad)
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1047 -disable-* | --disable-*)
1048 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1054 eval enable_$ac_feature=no ;;
1056 -docdir | --docdir | --docdi | --doc | --do)
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
1066 -enable-* | --enable-*)
1067 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1073 eval enable_$ac_feature=\$ac_optarg ;;
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077 | --exec | --exe | --ex)
1078 ac_prev=exec_prefix ;;
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081 | --exec=* | --exe=* | --ex=*)
1082 exec_prefix=$ac_optarg ;;
1084 -gas | --gas | --ga | --g)
1085 # Obsolete; use --with-gas.
1088 -help | --help | --hel | --he | -h)
1089 ac_init_help=long ;;
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091 ac_init_help=recursive ;;
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093 ac_init_help=short ;;
1095 -host | --host | --hos | --ho)
1096 ac_prev=host_alias ;;
1097 -host=* | --host=* | --hos=* | --ho=*)
1098 host_alias=$ac_optarg ;;
1100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 htmldir=$ac_optarg ;;
1106 -includedir | --includedir | --includedi | --included | --include \
1107 | --includ | --inclu | --incl | --inc)
1108 ac_prev=includedir ;;
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110 | --includ=* | --inclu=* | --incl=* | --inc=*)
1111 includedir=$ac_optarg ;;
1113 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116 infodir=$ac_optarg ;;
1118 -libdir | --libdir | --libdi | --libd)
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121 libdir=$ac_optarg ;;
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124 | --libexe | --libex | --libe)
1125 ac_prev=libexecdir ;;
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127 | --libexe=* | --libex=* | --libe=*)
1128 libexecdir=$ac_optarg ;;
1130 -localedir | --localedir | --localedi | --localed | --locale)
1131 ac_prev=localedir ;;
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133 localedir=$ac_optarg ;;
1135 -localstatedir | --localstatedir | --localstatedi | --localstated \
1136 | --localstate | --localstat | --localsta | --localst | --locals)
1137 ac_prev=localstatedir ;;
1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140 localstatedir=$ac_optarg ;;
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145 mandir=$ac_optarg ;;
1147 -nfp | --nfp | --nf)
1148 # Obsolete; use --without-fp.
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152 | --no-cr | --no-c | -n)
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161 | --oldin | --oldi | --old | --ol | --o)
1162 ac_prev=oldincludedir ;;
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166 oldincludedir=$ac_optarg ;;
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171 prefix=$ac_optarg ;;
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174 | --program-pre | --program-pr | --program-p)
1175 ac_prev=program_prefix ;;
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178 program_prefix=$ac_optarg ;;
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181 | --program-suf | --program-su | --program-s)
1182 ac_prev=program_suffix ;;
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185 program_suffix=$ac_optarg ;;
1187 -program-transform-name | --program-transform-name \
1188 | --program-transform-nam | --program-transform-na \
1189 | --program-transform-n | --program-transform- \
1190 | --program-transform | --program-transfor \
1191 | --program-transfo | --program-transf \
1192 | --program-trans | --program-tran \
1193 | --progr-tra | --program-tr | --program-t)
1194 ac_prev=program_transform_name ;;
1195 -program-transform-name=* | --program-transform-name=* \
1196 | --program-transform-nam=* | --program-transform-na=* \
1197 | --program-transform-n=* | --program-transform-=* \
1198 | --program-transform=* | --program-transfor=* \
1199 | --program-transfo=* | --program-transf=* \
1200 | --program-trans=* | --program-tran=* \
1201 | --progr-tra=* | --program-tr=* | --program-t=*)
1202 program_transform_name=$ac_optarg ;;
1204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207 pdfdir=$ac_optarg ;;
1209 -psdir | --psdir | --psdi | --psd | --ps)
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 sbindir=$ac_optarg ;;
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 sharedstatedir=$ac_optarg ;;
1235 -site | --site | --sit)
1237 -site=* | --site=* | --sit=*)
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243 srcdir=$ac_optarg ;;
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250 sysconfdir=$ac_optarg ;;
1252 -target | --target | --targe | --targ | --tar | --ta | --t)
1253 ac_prev=target_alias ;;
1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255 target_alias=$ac_optarg ;;
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
1264 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid package name: $ac_package" >&2
1268 { (exit 1); exit 1; }; }
1269 ac_package=`echo $ac_package| sed 's/-/_/g'`
1270 eval with_$ac_package=\$ac_optarg ;;
1272 -without-* | --without-*)
1273 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid package name: $ac_package" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_package=`echo $ac_package | sed 's/-/_/g'`
1279 eval with_$ac_package=no ;;
1282 # Obsolete; use --with-x.
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1299 -*) { echo "$as_me: error: unrecognized option: $ac_option
1300 Try \`$0 --help' for more information." >&2
1301 { (exit 1); exit 1; }; }
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1308 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1309 { (exit 1); exit 1; }; }
1310 eval $ac_envvar=\$ac_optarg
1311 export $ac_envvar ;;
1314 # FIXME: should be removed in autoconf 3.0.
1315 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324 if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326 { echo "$as_me: error: missing argument to $ac_option" >&2
1327 { (exit 1); exit 1; }; }
1330 # Be sure to have absolute directory names.
1331 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
1336 eval ac_val=\$$ac_var
1338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1342 { (exit 1); exit 1; }; }
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1350 target=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1357 If a cross compiler is detected then cross compile mode will be used." >&2
1358 elif test "x$build_alias" != "x$host_alias"; then
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366 test "$silent" = yes && exec 6>/dev/null
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 { echo "$as_me: error: Working directory cannot be determined" >&2
1373 { (exit 1); exit 1; }; }
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 { echo "$as_me: error: pwd does not report name of working directory" >&2
1376 { (exit 1); exit 1; }; }
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir=`$as_dirname -- "$0" ||
1384 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$0" : 'X\(//\)[^/]' \| \
1386 X"$0" : 'X\(//\)$' \| \
1387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1411 ac_srcdir_defaulted=no
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1416 { (exit 1); exit 1; }; }
1418 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1421 { (exit 1); exit 1; }; }
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 # Report the --help message.
1443 if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1447 \`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE. See below for descriptions of some of the useful variables.
1454 Defaults for the options are specified in brackets.
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467 Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
1469 [$ac_default_prefix]
1470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1478 For better control, use the options below.
1480 Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 --target=TARGET configure for building compilers for TARGET [HOST]
1511 if test -n "$ac_init_help"; then
1512 case $ac_init_help in
1513 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-jit Enable Just In Time Compiling (default is YES)
1523 --enable-doxygen Build doxygen documentation (default is NO)
1524 --enable-threads Use threads if available (default is YES)
1525 --enable-targets Build specific host targets:
1526 all,host-only,{target-name} (default=all)
1527 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1529 --enable-ltdl-install install libltdl
1530 --enable-shared[=PKGS] build shared libraries
1531 [default=enable_shared_default]
1532 --enable-static[=PKGS] build static libraries
1533 [default=enable_static_default]
1534 --enable-fast-install[=PKGS]
1535 optimize for fast installation
1536 [default=enable_Fast_install_default]
1537 --disable-libtool-lock avoid locking (might break parallel builds)
1540 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1542 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1544 --with-extra-options Specify addtional options to compile LLVM with
1545 --with-tclinclude directory where tcl headers are
1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547 --with-pic try to use only PIC/non-PIC objects [default=use
1549 --with-tags[=TAGS] include additional configurations [automatic]
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
1561 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1562 the first program found out of: `bison -y', `byacc', `yacc'.
1563 YFLAGS The list of arguments that will be passed by default to $YACC.
1564 This script will default YFLAGS to the empty string to avoid a
1565 default value of `-d' given by some make applications.
1566 CXXCPP C++ preprocessor
1567 F77 Fortran 77 compiler command
1568 FFLAGS Fortran 77 compiler flags
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1573 Report bugs to <llvmbugs@cs.uiuc.edu>.
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" || continue
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1588 # A ".." for each directory in $ac_dir_suffix.
1589 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1601 .) # We are building in place.
1603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
1606 ac_srcdir=$srcdir$ac_dir_suffix;
1607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for guested configure.
1618 if test -f "$ac_srcdir/configure.gnu"; then
1620 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621 elif test -f "$ac_srcdir/configure"; then
1623 $SHELL "$ac_srcdir/configure" --help=recursive
1625 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 cd "$ac_pwd" || { ac_status=$?; break; }
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1634 llvm configure 2.0cvs
1635 generated by GNU Autoconf 2.60
1637 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1638 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1642 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1646 cat >config.log <<_ACEOF
1647 This file contains any messages produced by compilers while
1648 running configure, to aid debugging if configure makes a mistake.
1650 It was created by llvm $as_me 2.0cvs, which was
1651 generated by GNU Autoconf 2.60. Invocation command line was
1663 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1664 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1665 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1666 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1667 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1669 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1670 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1672 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1673 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1674 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1675 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1676 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1677 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1678 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 test -z "$as_dir" && as_dir=.
1687 echo "PATH: $as_dir"
1703 # Keep a trace of the command line.
1704 # Strip out --no-create and --no-recursion so they do not pile up.
1705 # Strip out --silent because we don't want to record it for future runs.
1706 # Also quote any args containing shell meta-characters.
1707 # Make two passes to allow for proper duplicate-argument suppression.
1711 ac_must_keep_next=false
1717 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1719 | -silent | --silent | --silen | --sile | --sil)
1722 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1727 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1728 if test $ac_must_keep_next = true; then
1729 ac_must_keep_next=false # Got value, back to normal.
1732 *=* | --config-cache | -C | -disable-* | --disable-* \
1733 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1734 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1735 | -with-* | --with-* | -without-* | --without-* | --x)
1736 case "$ac_configure_args0 " in
1737 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1740 -* ) ac_must_keep_next=true ;;
1743 ac_configure_args="$ac_configure_args '$ac_arg'"
1748 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1749 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1751 # When interrupted or exit'd, cleanup temporary files, and complete
1752 # config.log. We remove comments because anyway the quotes in there
1753 # would cause problems or look ugly.
1754 # WARNING: Use '\'' to represent an apostrophe within the trap.
1755 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1756 trap 'exit_status=$?
1757 # Save into config.log some information that might help in debugging.
1762 ## ---------------- ##
1763 ## Cache variables. ##
1764 ## ---------------- ##
1767 # The following way of writing the cache mishandles newlines in values,
1769 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1770 eval ac_val=\$$ac_var
1774 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1775 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1778 _ | IFS | as_nl) ;; #(
1779 *) $as_unset $ac_var ;;
1784 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1785 *${as_nl}ac_space=\ *)
1787 "s/'\''/'\''\\\\'\'''\''/g;
1788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1799 ## ----------------- ##
1800 ## Output variables. ##
1801 ## ----------------- ##
1804 for ac_var in $ac_subst_vars
1806 eval ac_val=\$$ac_var
1808 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1810 echo "$ac_var='\''$ac_val'\''"
1814 if test -n "$ac_subst_files"; then
1816 ## ------------------- ##
1817 ## File substitutions. ##
1818 ## ------------------- ##
1821 for ac_var in $ac_subst_files
1823 eval ac_val=\$$ac_var
1825 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827 echo "$ac_var='\''$ac_val'\''"
1832 if test -s confdefs.h; then
1842 test "$ac_signal" != 0 &&
1843 echo "$as_me: caught signal $ac_signal"
1844 echo "$as_me: exit $exit_status"
1846 rm -f core *.core core.conftest.* &&
1847 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1850 for ac_signal in 1 2 13 15; do
1851 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1855 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1856 rm -f -r conftest* confdefs.h
1858 # Predefined preprocessor variables.
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_NAME "$PACKAGE_NAME"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_STRING "$PACKAGE_STRING"
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1885 # Let the site file select an alternate cache file if it wants to.
1886 # Prefer explicitly selected file to automatically selected ones.
1887 if test -n "$CONFIG_SITE"; then
1888 set x "$CONFIG_SITE"
1889 elif test "x$prefix" != xNONE; then
1890 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1892 set x "$ac_default_prefix/share/config.site" \
1893 "$ac_default_prefix/etc/config.site"
1898 if test -r "$ac_site_file"; then
1899 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 echo "$as_me: loading site script $ac_site_file" >&6;}
1901 sed 's/^/| /' "$ac_site_file" >&5
1906 if test -r "$cache_file"; then
1907 # Some versions of bash will fail to source /dev/null (special
1908 # files actually), so we avoid doing that.
1909 if test -f "$cache_file"; then
1910 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 echo "$as_me: loading cache $cache_file" >&6;}
1913 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914 *) . "./$cache_file";;
1918 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 echo "$as_me: creating cache $cache_file" >&6;}
1923 # Check that the precious variables saved in the cache have kept the same
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928 eval ac_new_set=\$ac_env_${ac_var}_set
1929 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930 eval ac_new_val=\$ac_env_${ac_var}_value
1931 case $ac_old_set,$ac_new_set in
1933 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1937 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1942 if test "x$ac_old_val" != "x$ac_new_val"; then
1943 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1944 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1945 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1946 echo "$as_me: former value: $ac_old_val" >&2;}
1947 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1948 echo "$as_me: current value: $ac_new_val" >&2;}
1949 ac_cache_corrupted=:
1952 # Pass precious variables to config.status.
1953 if test "$ac_new_set" = set; then
1955 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 *) ac_arg=$ac_var=$ac_new_val ;;
1958 case " $ac_configure_args " in
1959 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1960 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1964 if $ac_cache_corrupted; then
1965 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1966 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1968 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1969 { (exit 1); exit 1; }; }
1997 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2013 for ac_dir in autoconf "$srcdir"/autoconf; do
2014 if test -f "$ac_dir/install-sh"; then
2016 ac_install_sh="$ac_aux_dir/install-sh -c"
2018 elif test -f "$ac_dir/install.sh"; then
2020 ac_install_sh="$ac_aux_dir/install.sh -c"
2022 elif test -f "$ac_dir/shtool"; then
2024 ac_install_sh="$ac_aux_dir/shtool install -c"
2028 if test -z "$ac_aux_dir"; then
2029 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2030 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2031 { (exit 1); exit 1; }; }
2034 # These three variables are undocumented and unsupported,
2035 # and are intended to be withdrawn in a future Autoconf release.
2036 # They can cause serious problems if a builder's source tree is in a directory
2037 # whose full name contains unusual characters.
2038 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2039 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2040 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2044 if test ${srcdir} != "." ; then
2045 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2046 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2047 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2048 { (exit 1); exit 1; }; }
2052 for i in `ls ${srcdir}/projects`
2054 if test -d ${srcdir}/projects/${i} ; then
2057 "sample") subdirs="$subdirs projects/sample"
2059 "Stacker") subdirs="$subdirs projects/Stacker"
2061 "privbracket") subdirs="$subdirs projects/privbracket"
2063 "llvm-test") subdirs="$subdirs projects/llvm-test"
2065 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
2067 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
2069 "llvm-java") subdirs="$subdirs projects/llvm-java"
2071 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
2073 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2075 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
2078 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2079 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2086 # Make sure we can run config.sub.
2087 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2088 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2089 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2090 { (exit 1); exit 1; }; }
2092 { echo "$as_me:$LINENO: checking build system type" >&5
2093 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2094 if test "${ac_cv_build+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 ac_build_alias=$build_alias
2098 test "x$ac_build_alias" = x &&
2099 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2100 test "x$ac_build_alias" = x &&
2101 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2102 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2103 { (exit 1); exit 1; }; }
2104 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2105 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2106 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2107 { (exit 1); exit 1; }; }
2110 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2111 echo "${ECHO_T}$ac_cv_build" >&6; }
2112 case $ac_cv_build in
2114 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2115 echo "$as_me: error: invalid value of canonical build" >&2;}
2116 { (exit 1); exit 1; }; };;
2119 ac_save_IFS=$IFS; IFS='-'
2125 # Remember, the first character of IFS is used to create $*,
2126 # except with old shells:
2129 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2132 { echo "$as_me:$LINENO: checking host system type" >&5
2133 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_host+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 if test "x$host_alias" = x; then
2138 ac_cv_host=$ac_cv_build
2140 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2141 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2142 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2147 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2148 echo "${ECHO_T}$ac_cv_host" >&6; }
2151 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2152 echo "$as_me: error: invalid value of canonical host" >&2;}
2153 { (exit 1); exit 1; }; };;
2156 ac_save_IFS=$IFS; IFS='-'
2162 # Remember, the first character of IFS is used to create $*,
2163 # except with old shells:
2166 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2169 { echo "$as_me:$LINENO: checking target system type" >&5
2170 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2171 if test "${ac_cv_target+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test "x$target_alias" = x; then
2175 ac_cv_target=$ac_cv_host
2177 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2178 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2179 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2180 { (exit 1); exit 1; }; }
2184 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2185 echo "${ECHO_T}$ac_cv_target" >&6; }
2186 case $ac_cv_target in
2188 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2189 echo "$as_me: error: invalid value of canonical target" >&2;}
2190 { (exit 1); exit 1; }; };;
2192 target=$ac_cv_target
2193 ac_save_IFS=$IFS; IFS='-'
2199 # Remember, the first character of IFS is used to create $*,
2200 # except with old shells:
2203 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2206 # The aliases save the names the user supplied, while $host etc.
2207 # will get canonicalized.
2208 test -n "$target_alias" &&
2209 test "$program_prefix$program_suffix$program_transform_name" = \
2211 program_prefix=${target_alias}-
2213 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2214 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2215 if test "${llvm_cv_os_type+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2222 llvm_cv_os_type="AIX"
2223 llvm_cv_platform_type="Unix" ;;
2225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227 llvm_cv_os_type="IRIX"
2228 llvm_cv_platform_type="Unix" ;;
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="Cygwin"
2233 llvm_cv_platform_type="Unix" ;;
2235 llvm_cv_link_all_option="-Wl,-all_load"
2236 llvm_cv_link_all_option="-Wl,-noall_load"
2237 llvm_cv_os_type="Darwin"
2238 llvm_cv_platform_type="Unix" ;;
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="FreeBSD"
2243 llvm_cv_platform_type="Unix" ;;
2245 llvm_cv_link_all_option="-Wl,--whole-archive"
2246 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2247 llvm_cv_os_type="OpenBSD"
2248 llvm_cv_platform_type="Unix" ;;
2250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252 llvm_cv_os_type="HP-UX"
2253 llvm_cv_platform_type="Unix" ;;
2255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257 llvm_cv_os_type="Interix"
2258 llvm_cv_platform_type="Unix" ;;
2260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262 llvm_cv_os_type="Linux"
2263 llvm_cv_platform_type="Unix" ;;
2265 llvm_cv_link_all_option="-Wl,-z,allextract"
2266 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2267 llvm_cv_os_type="SunOS"
2268 llvm_cv_platform_type="Unix" ;;
2270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272 llvm_cv_os_type="Win32"
2273 llvm_cv_platform_type="Win32" ;;
2275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277 llvm_cv_os_type="MingW"
2278 llvm_cv_platform_type="Win32" ;;
2280 llvm_cv_link_all_option=""
2281 llvm_cv_no_link_all_option=""
2282 llvm_cv_os_type="Unknown"
2283 llvm_cv_platform_type="Unknown" ;;
2286 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2287 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2289 if test "$llvm_cv_os_type" = "Unknown" ; then
2290 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2291 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2292 { (exit 1); exit 1; }; }
2298 LINKALL=$llvm_cv_link_all_option
2300 NOLINKALL=$llvm_cv_no_link_all_option
2303 case $llvm_cv_platform_type in
2306 cat >>confdefs.h <<\_ACEOF
2307 #define LLVM_ON_UNIX 1
2317 cat >>confdefs.h <<\_ACEOF
2318 #define LLVM_ON_WIN32 1
2328 { echo "$as_me:$LINENO: checking target architecture" >&5
2329 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2330 if test "${llvm_cv_target_arch+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 i?86-*) llvm_cv_target_arch="x86" ;;
2335 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2336 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2337 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2338 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2339 ia64-*) llvm_cv_target_arch="IA64" ;;
2340 *) llvm_cv_target_arch="Unknown" ;;
2343 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2344 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2346 if test "$llvm_cv_target_arch" = "Unknown" ; then
2347 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2348 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2351 ARCH=$llvm_cv_target_arch
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC="$CC" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 if test -n "$CC"; then
2389 { echo "$as_me:$LINENO: result: $CC" >&5
2390 echo "${ECHO_T}$CC" >&6; }
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2398 if test -z "$ac_cv_prog_CC"; then
2400 # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$ac_ct_CC"; then
2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2417 ac_cv_prog_ac_ct_CC="gcc"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6; }
2432 { echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6; }
2436 if test "x$ac_ct_CC" = x; then
2439 case $cross_compiling:$ac_tool_warned in
2441 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet. If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&5
2444 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet. If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2447 ac_tool_warned=yes ;;
2455 if test -z "$CC"; then
2456 if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}cc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_CC="${ac_tool_prefix}cc"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 if test -n "$CC"; then
2486 { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2496 if test -z "$CC"; then
2497 # Extract the first word of "cc", so it can be a program name with args.
2498 set dummy cc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516 ac_prog_rejected=yes
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 if test $ac_prog_rejected = yes; then
2528 # We found a bogon in the path, so make sure we never use it.
2529 set dummy $ac_cv_prog_CC
2531 if test $# != 0; then
2532 # We chose a different compiler from the bogus one.
2533 # However, it has the same basename, so the bogon will be chosen
2534 # first if we set CC to just the basename; use the full file name.
2536 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2542 if test -n "$CC"; then
2543 { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2546 { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2552 if test -z "$CC"; then
2553 if test -n "$ac_tool_prefix"; then
2554 for ac_prog in cl.exe
2556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_CC+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 if test -n "$CC"; then
2585 { echo "$as_me:$LINENO: result: $CC" >&5
2586 echo "${ECHO_T}$CC" >&6; }
2588 { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2593 test -n "$CC" && break
2596 if test -z "$CC"; then
2598 for ac_prog in cl.exe
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 if test -n "$ac_ct_CC"; then
2608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_ac_ct_CC="$ac_prog"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2628 if test -n "$ac_ct_CC"; then
2629 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2630 echo "${ECHO_T}$ac_ct_CC" >&6; }
2632 { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2637 test -n "$ac_ct_CC" && break
2640 if test "x$ac_ct_CC" = x; then
2643 case $cross_compiling:$ac_tool_warned in
2645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet. If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&5
2648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2651 ac_tool_warned=yes ;;
2660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details." >&5
2662 echo "$as_me: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&2;}
2664 { (exit 1); exit 1; }; }
2666 # Provide some information about the compiler.
2667 echo "$as_me:$LINENO: checking for C compiler version" >&5
2668 ac_compiler=`set X $ac_compile; echo $2`
2669 { (ac_try="$ac_compiler --version >&5"
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compiler --version >&5") 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }
2679 { (ac_try="$ac_compiler -v >&5"
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compiler -v >&5") 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }
2689 { (ac_try="$ac_compiler -V >&5"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compiler -V >&5") 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2715 ac_clean_files_save=$ac_clean_files
2716 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2717 # Try to create an executable without -o first, disregard a.out.
2718 # It will help us diagnose broken compilers, and finding out an intuition
2720 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2721 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2722 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2724 # List of possible output files, starting from the most likely.
2725 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2726 # only as a last resort. b.out is created by i960 compilers.
2727 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2729 # The IRIX 6 linker writes into existing files which may not be
2730 # executable, retaining their permissions. Remove them first so a
2731 # subsequent execution test works.
2733 for ac_file in $ac_files
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2737 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2742 if { (ac_try="$ac_link_default"
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_link_default") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; then
2752 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2755 # so that the user can short-circuit this test for compilers unknown to
2757 for ac_file in $ac_files
2759 test -f "$ac_file" || continue
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2764 # We found the default executable, but exeext='' is most
2768 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2772 # We set ac_cv_exeext here because the later test for it is not
2773 # safe: cross compilers may not add the suffix if given an `-o'
2774 # argument, so we may need to know it at that point already.
2775 # Even if this section looks crufty: it has the advantage of
2782 test "$ac_cv_exeext" = no && ac_cv_exeext=
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&2;}
2792 { (exit 77); exit 77; }; }
2795 ac_exeext=$ac_cv_exeext
2796 { echo "$as_me:$LINENO: result: $ac_file" >&5
2797 echo "${ECHO_T}$ac_file" >&6; }
2799 # Check that the compiler produces executables we can run. If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804 # If not cross compiling, check that we can run a simple program.
2805 if test "$cross_compiling" != yes; then
2806 if { ac_try='./$ac_file'
2807 { (case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_try") 2>&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2818 if test "$cross_compiling" = maybe; then
2821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2831 { echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6; }
2834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 echo "${ECHO_T}$cross_compiling" >&6; }
2843 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845 if { (ac_try="$ac_link"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_link") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
2855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2857 # work properly (i.e., refer to `conftest.exe'), while it won't with
2859 for ac_file in conftest.exe conftest conftest.*; do
2860 test -f "$ac_file" || continue
2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873 { (exit 1); exit 1; }; }
2876 rm -f conftest$ac_cv_exeext
2877 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2883 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885 if test "${ac_cv_objext+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.o conftest.obj
2904 if { (ac_try="$ac_compile"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compile") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; then
2914 for ac_file in conftest.o conftest.obj conftest.*; do
2915 test -f "$ac_file" || continue;
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&2;}
2930 { (exit 1); exit 1; }; }
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2935 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936 echo "${ECHO_T}$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest.$ac_objext'
2987 { (case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_try") 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3008 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3009 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3010 GCC=`test $ac_compiler_gnu = yes && echo yes`
3011 ac_test_CFLAGS=${CFLAGS+set}
3012 ac_save_CFLAGS=$CFLAGS
3013 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3014 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_cc_g+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 ac_save_c_werror_flag=$ac_c_werror_flag
3019 ac_c_werror_flag=yes
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; } &&
3061 { ac_try='test -s conftest.$ac_objext'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_try") 2>&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; }; then
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3131 ac_c_werror_flag=$ac_save_c_werror_flag
3133 cat >conftest.$ac_ext <<_ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h. */
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_try") 2>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_c_werror_flag=$ac_save_c_werror_flag
3199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3200 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3201 if test "$ac_test_CFLAGS" = set; then
3202 CFLAGS=$ac_save_CFLAGS
3203 elif test $ac_cv_prog_cc_g = yes; then
3204 if test "$GCC" = yes; then
3210 if test "$GCC" = yes; then
3216 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3217 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3218 if test "${ac_cv_prog_cc_c89+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 ac_cv_prog_cc_c89=no
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3231 #include <sys/types.h>
3232 #include <sys/stat.h>
3233 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3234 struct buf { int x; };
3235 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3236 static char *e (p, i)
3242 static char *f (char * (*g) (char **, int), char **p, ...)
3247 s = g (p, va_arg (v,int));
3252 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3253 function prototypes and stuff, but not '\xHH' hex character constants.
3254 These don't provoke an error unfortunately, instead are silently treated
3255 as 'x'. The following induces an error, until -std is added to get
3256 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3257 array size at least. It's necessary to write '\x00'==0 to get something
3258 that's true only with -std. */
3259 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3261 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3262 inside strings and character constants. */
3264 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3266 int test (int i, double x);
3267 struct s1 {int (*f) (int a);};
3268 struct s2 {int (*f) (double a);};
3269 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3280 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3281 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3283 CC="$ac_save_CC $ac_arg"
3284 rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3293 grep -v '^ *+' conftest.er1 >conftest.err
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3299 { (case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_try") 2>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; } &&
3308 { ac_try='test -s conftest.$ac_objext'
3309 { (case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_try") 2>&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
3318 ac_cv_prog_cc_c89=$ac_arg
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3326 rm -f core conftest.err conftest.$ac_objext
3327 test "x$ac_cv_prog_cc_c89" != "xno" && break
3329 rm -f conftest.$ac_ext
3334 case "x$ac_cv_prog_cc_c89" in
3336 { echo "$as_me:$LINENO: result: none needed" >&5
3337 echo "${ECHO_T}none needed" >&6; } ;;
3339 { echo "$as_me:$LINENO: result: unsupported" >&5
3340 echo "${ECHO_T}unsupported" >&6; } ;;
3342 CC="$CC $ac_cv_prog_cc_c89"
3343 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3360 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3361 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3362 # On Suns, sometimes $CPP names a directory.
3363 if test -n "$CPP" && test -d "$CPP"; then
3366 if test -z "$CPP"; then
3367 if test "${ac_cv_prog_CPP+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 # Double quotes because CPP needs to be expanded
3371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3374 for ac_c_preproc_warn_flag in '' yes
3376 # Use a header file that comes with gcc, so configuring glibc
3377 # with a fresh cross-compiler works.
3378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379 # <limits.h> exists even on freestanding compilers.
3380 # On the NeXT, cc -E runs the code through the compiler's parser,
3381 # not just through cpp. "Syntax error" is here to catch this case.
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3389 # include <limits.h>
3391 # include <assert.h>
3395 if { (ac_try="$ac_cpp conftest.$ac_ext"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } >/dev/null; then
3408 if test -s conftest.err; then
3409 ac_cpp_err=$ac_c_preproc_warn_flag
3410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417 if test -z "$ac_cpp_err"; then
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 # Broken: fails on valid input.
3427 rm -f conftest.err conftest.$ac_ext
3429 # OK, works on sane cases. Now check whether nonexistent headers
3430 # can be detected and how.
3431 cat >conftest.$ac_ext <<_ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 #include <ac_nonexistent.h>
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461 if test -z "$ac_cpp_err"; then
3462 # Broken: success on invalid input.
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 # Passes both tests.
3473 rm -f conftest.err conftest.$ac_ext
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.err conftest.$ac_ext
3478 if $ac_preproc_ok; then
3490 { echo "$as_me:$LINENO: result: $CPP" >&5
3491 echo "${ECHO_T}$CPP" >&6; }
3493 for ac_c_preproc_warn_flag in '' yes
3495 # Use a header file that comes with gcc, so configuring glibc
3496 # with a fresh cross-compiler works.
3497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498 # <limits.h> exists even on freestanding compilers.
3499 # On the NeXT, cc -E runs the code through the compiler's parser,
3500 # not just through cpp. "Syntax error" is here to catch this case.
3501 cat >conftest.$ac_ext <<_ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3508 # include <limits.h>
3510 # include <assert.h>
3514 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev/null; then
3527 if test -s conftest.err; then
3528 ac_cpp_err=$ac_c_preproc_warn_flag
3529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3536 if test -z "$ac_cpp_err"; then
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 # Broken: fails on valid input.
3546 rm -f conftest.err conftest.$ac_ext
3548 # OK, works on sane cases. Now check whether nonexistent headers
3549 # can be detected and how.
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 #include <ac_nonexistent.h>
3558 if { (ac_try="$ac_cpp conftest.$ac_ext"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3566 grep -v '^ *+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580 if test -z "$ac_cpp_err"; then
3581 # Broken: success on invalid input.
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 # Passes both tests.
3592 rm -f conftest.err conftest.$ac_ext
3595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3596 rm -f conftest.err conftest.$ac_ext
3597 if $ac_preproc_ok; then
3600 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3601 See \`config.log' for more details." >&5
3602 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&2;}
3604 { (exit 1); exit 1; }; }
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3615 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3616 if test "${ac_cv_path_GREP+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 # Extract the first word of "grep ggrep" to use in msg output
3620 if test -z "$GREP"; then
3621 set dummy grep ggrep; ac_prog_name=$2
3622 if test "${ac_cv_path_GREP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 ac_path_GREP_found=false
3626 # Loop through the user's path and test for each of PROGNAME-LIST
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3631 test -z "$as_dir" && as_dir=.
3632 for ac_prog in grep ggrep; do
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3635 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3636 # Check for GNU ac_path_GREP and select it if it is found.
3637 # Check for GNU $ac_path_GREP
3638 case `"$ac_path_GREP" --version 2>&1` in
3640 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3643 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3646 cat "conftest.in" "conftest.in" >"conftest.tmp"
3647 mv "conftest.tmp" "conftest.in"
3648 cp "conftest.in" "conftest.nl"
3649 echo 'GREP' >> "conftest.nl"
3650 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3652 ac_count=`expr $ac_count + 1`
3653 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3654 # Best one so far, save it but keep looking for a better one
3655 ac_cv_path_GREP="$ac_path_GREP"
3656 ac_path_GREP_max=$ac_count
3658 # 10*(2^10) chars as input seems more than enough
3659 test $ac_count -gt 10 && break
3661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3665 $ac_path_GREP_found && break 3
3675 GREP="$ac_cv_path_GREP"
3676 if test -z "$GREP"; then
3677 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3678 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3679 { (exit 1); exit 1; }; }
3683 ac_cv_path_GREP=$GREP
3688 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3689 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3690 GREP="$ac_cv_path_GREP"
3693 { echo "$as_me:$LINENO: checking for egrep" >&5
3694 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3695 if test "${ac_cv_path_EGREP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3699 then ac_cv_path_EGREP="$GREP -E"
3701 # Extract the first word of "egrep" to use in msg output
3702 if test -z "$EGREP"; then
3703 set dummy egrep; ac_prog_name=$2
3704 if test "${ac_cv_path_EGREP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_path_EGREP_found=false
3708 # Loop through the user's path and test for each of PROGNAME-LIST
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 test -z "$as_dir" && as_dir=.
3714 for ac_prog in egrep; do
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3717 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3718 # Check for GNU ac_path_EGREP and select it if it is found.
3719 # Check for GNU $ac_path_EGREP
3720 case `"$ac_path_EGREP" --version 2>&1` in
3722 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3725 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3728 cat "conftest.in" "conftest.in" >"conftest.tmp"
3729 mv "conftest.tmp" "conftest.in"
3730 cp "conftest.in" "conftest.nl"
3731 echo 'EGREP' >> "conftest.nl"
3732 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3734 ac_count=`expr $ac_count + 1`
3735 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3736 # Best one so far, save it but keep looking for a better one
3737 ac_cv_path_EGREP="$ac_path_EGREP"
3738 ac_path_EGREP_max=$ac_count
3740 # 10*(2^10) chars as input seems more than enough
3741 test $ac_count -gt 10 && break
3743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747 $ac_path_EGREP_found && break 3
3757 EGREP="$ac_cv_path_EGREP"
3758 if test -z "$EGREP"; then
3759 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3760 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3761 { (exit 1); exit 1; }; }
3765 ac_cv_path_EGREP=$EGREP
3771 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3772 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3773 EGREP="$ac_cv_path_EGREP"
3776 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3777 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3778 if test "${ac_cv_header_stdc+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 cat >conftest.$ac_ext <<_ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3800 rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_compile") 2>conftest.er1
3809 grep -v '^ *+' conftest.er1 >conftest.err
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3815 { (case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_try") 2>&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; } &&
3824 { ac_try='test -s conftest.$ac_objext'
3825 { (case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_try") 2>&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_cv_header_stdc=yes
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3839 ac_cv_header_stdc=no
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 if test $ac_cv_header_stdc = yes; then
3845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3846 cat >conftest.$ac_ext <<_ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856 $EGREP "memchr" >/dev/null 2>&1; then
3859 ac_cv_header_stdc=no
3865 if test $ac_cv_header_stdc = yes; then
3866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3867 cat >conftest.$ac_ext <<_ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3877 $EGREP "free" >/dev/null 2>&1; then
3880 ac_cv_header_stdc=no
3886 if test $ac_cv_header_stdc = yes; then
3887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3888 if test "$cross_compiling" = yes; then
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3899 #if ((' ' & 0x0FF) == 0x020)
3900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3903 # define ISLOWER(c) \
3904 (('a' <= (c) && (c) <= 'i') \
3905 || ('j' <= (c) && (c) <= 'r') \
3906 || ('s' <= (c) && (c) <= 'z'))
3907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3915 for (i = 0; i < 256; i++)
3916 if (XOR (islower (i), ISLOWER (i))
3917 || toupper (i) != TOUPPER (i))
3922 rm -f conftest$ac_exeext
3923 if { (ac_try="$ac_link"
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_link") 2>&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3933 { (case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938 (eval "$ac_try") 2>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3944 echo "$as_me: program exited with status $ac_status" >&5
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3949 ac_cv_header_stdc=no
3951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3957 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3958 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3959 if test $ac_cv_header_stdc = yes; then
3961 cat >>confdefs.h <<\_ACEOF
3962 #define STDC_HEADERS 1
3967 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3977 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3978 inttypes.h stdint.h unistd.h
3980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 cat >conftest.$ac_ext <<_ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3992 $ac_includes_default
3994 #include <$ac_header>
3996 rm -f conftest.$ac_objext
3997 if { (ac_try="$ac_compile"
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_compile") 2>conftest.er1
4005 grep -v '^ *+' conftest.er1 >conftest.err
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4011 { (case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_try") 2>&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026 (eval "$ac_try") 2>&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; }; then
4030 eval "$as_ac_Header=yes"
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4035 eval "$as_ac_Header=no"
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 ac_res=`eval echo '${'$as_ac_Header'}'`
4041 { echo "$as_me:$LINENO: result: $ac_res" >&5
4042 echo "${ECHO_T}$ac_res" >&6; }
4043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4044 cat >>confdefs.h <<_ACEOF
4045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4053 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4054 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4055 if test "${ac_cv_c_bigendian+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 # See if sys/param.h defines the BYTE_ORDER macro.
4059 cat >conftest.$ac_ext <<_ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 #include <sys/types.h>
4066 #include <sys/param.h>
4071 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4094 { (case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_try") 2>&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
4113 # It does; now see whether it defined to BIG_ENDIAN or not.
4114 cat >conftest.$ac_ext <<_ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <sys/types.h>
4121 #include <sys/param.h>
4126 #if BYTE_ORDER != BIG_ENDIAN
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 ac_cv_c_bigendian=yes
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 ac_cv_c_bigendian=no
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4181 # It does not; compile a test program.
4182 if test "$cross_compiling" = yes; then
4183 # try to guess the endianness by grepping values into an object file
4184 ac_cv_c_bigendian=unknown
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4192 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4193 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4194 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4195 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4196 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4200 _ascii (); _ebcdic ();
4205 rm -f conftest.$ac_objext
4206 if { (ac_try="$ac_compile"
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4220 { (case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_try") 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_try") 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4240 ac_cv_c_bigendian=yes
4242 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4243 if test "$ac_cv_c_bigendian" = unknown; then
4244 ac_cv_c_bigendian=no
4246 # finding both strings is unlikely to happen, but who knows?
4247 ac_cv_c_bigendian=unknown
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 $ac_includes_default
4270 /* Are we little or big endian? From Harbison&Steele. */
4274 char c[sizeof (long int)];
4277 return u.c[sizeof (long int) - 1] == 1;
4283 rm -f conftest$ac_exeext
4284 if { (ac_try="$ac_link"
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_link") 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4294 { (case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_try") 2>&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 ac_cv_c_bigendian=no
4305 echo "$as_me: program exited with status $ac_status" >&5
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4310 ac_cv_c_bigendian=yes
4312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4321 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4322 case $ac_cv_c_bigendian in
4330 { { echo "$as_me:$LINENO: error: unknown endianness
4331 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4332 echo "$as_me: error: unknown endianness
4333 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4334 { (exit 1); exit 1; }; } ;;
4338 if test "$cross_compiling" = yes; then
4339 LLVM_CROSS_COMPILING=1
4342 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4343 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4344 if test "${ac_cv_build_exeext+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4348 ac_cv_build_exeext=.exe
4350 ac_build_prefix=${build_alias}-
4352 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4353 set dummy ${ac_build_prefix}gcc; ac_word=$2
4354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4356 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 if test -n "$BUILD_CC"; then
4360 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 BUILD_CC=$ac_cv_prog_BUILD_CC
4380 if test -n "$BUILD_CC"; then
4381 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4382 echo "${ECHO_T}$BUILD_CC" >&6; }
4384 { echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6; }
4389 if test -z "$BUILD_CC"; then
4390 # Extract the first word of "gcc", so it can be a program name with args.
4391 set dummy gcc; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_BUILD_CC="gcc"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 BUILD_CC=$ac_cv_prog_BUILD_CC
4418 if test -n "$BUILD_CC"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420 echo "${ECHO_T}$BUILD_CC" >&6; }
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4427 if test -z "$BUILD_CC"; then
4428 # Extract the first word of "cc", so it can be a program name with args.
4429 set dummy cc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4447 ac_prog_rejected=yes
4450 ac_cv_prog_BUILD_CC="cc"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 if test $ac_prog_rejected = yes; then
4459 # We found a bogon in the path, so make sure we never use it.
4460 set dummy $ac_cv_prog_BUILD_CC
4462 if test $# != 0; then
4463 # We chose a different compiler from the bogus one.
4464 # However, it has the same basename, so the bogon will be chosen
4465 # first if we set BUILD_CC to just the basename; use the full file name.
4467 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4472 BUILD_CC=$ac_cv_prog_BUILD_CC
4473 if test -n "$BUILD_CC"; then
4474 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4475 echo "${ECHO_T}$BUILD_CC" >&6; }
4477 { echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6; }
4484 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4485 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4486 { (exit 1); exit 1; }; }
4487 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4489 echo 'int main () { return 0; }' > conftest.$ac_ext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4492 (eval $ac_build_link) 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; then
4496 for file in conftest.*; do
4498 *.c | *.o | *.obj) ;;
4499 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4503 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4504 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4505 { (exit 1); exit 1; }; }
4508 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4513 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4514 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4515 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4516 ac_build_exeext=$BUILD_EXEEXT
4519 LLVM_CROSS_COMPILING=0
4523 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4534 # Check whether --enable-optimized was given.
4535 if test "${enable_optimized+set}" = set; then
4536 enableval=$enable_optimized;
4541 if test ${enableval} = "no" ; then
4545 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4549 # Check whether --enable-assertions was given.
4550 if test "${enable_assertions+set}" = set; then
4551 enableval=$enable_assertions;
4556 if test ${enableval} = "yes" ; then
4560 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4564 # Check whether --enable-jit was given.
4565 if test "${enable_jit+set}" = set; then
4566 enableval=$enable_jit;
4571 if test ${enableval} = "no"
4576 case "$llvm_cv_target_arch" in
4577 x86) TARGET_HAS_JIT=1
4579 Sparc) TARGET_HAS_JIT=1
4581 PowerPC) TARGET_HAS_JIT=1
4583 x86_64) TARGET_HAS_JIT=0
4585 Alpha) TARGET_HAS_JIT=1
4587 IA64) TARGET_HAS_JIT=0
4594 # Check whether --enable-doxygen was given.
4595 if test "${enable_doxygen+set}" = set; then
4596 enableval=$enable_doxygen;
4601 case "$enableval" in
4602 yes) ENABLE_DOXYGEN=1
4604 no) ENABLE_DOXYGEN=0
4606 default) ENABLE_DOXYGEN=0
4608 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4609 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4610 { (exit 1); exit 1; }; } ;;
4613 # Check whether --enable-threads was given.
4614 if test "${enable_threads+set}" = set; then
4615 enableval=$enable_threads;
4620 case "$enableval" in
4621 yes) ENABLE_THREADS=1
4623 no) ENABLE_THREADS=0
4625 default) ENABLE_THREADS=1
4627 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4628 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4629 { (exit 1); exit 1; }; } ;;
4632 cat >>confdefs.h <<_ACEOF
4633 #define ENABLE_THREADS $ENABLE_THREADS
4638 # Check whether --enable-targets was given.
4639 if test "${enable_targets+set}" = set; then
4640 enableval=$enable_targets;
4645 case "$enableval" in
4646 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4648 case "$llvm_cv_target_arch" in
4649 x86) TARGETS_TO_BUILD="X86" ;;
4650 x86_64) TARGETS_TO_BUILD="X86" ;;
4651 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4652 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4653 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4654 IA64) TARGETS_TO_BUILD="IA64" ;;
4655 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4656 echo "$as_me: error: Can not set target to build" >&2;}
4657 { (exit 1); exit 1; }; } ;;
4660 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4662 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4663 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4664 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4665 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4666 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4667 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4668 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4669 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4670 { (exit 1); exit 1; }; } ;;
4675 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4676 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4679 # Check whether --enable-cbe-printf-a was given.
4680 if test "${enable_cbe_printf_a+set}" = set; then
4681 enableval=$enable_cbe_printf_a;
4686 case "$enableval" in
4687 yes) ENABLE_CBE_PRINTF_A=1
4689 no) ENABLE_CBE_PRINTF_A=0
4691 default) ENABLE_CBE_PRINTF_A=1
4693 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4694 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4695 { (exit 1); exit 1; }; } ;;
4698 cat >>confdefs.h <<_ACEOF
4699 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4704 # Check whether --with-llvmgccdir was given.
4705 if test "${with_llvmgccdir+set}" = set; then
4706 withval=$with_llvmgccdir;
4712 default) WITH_LLVMGCCDIR=default ;;
4713 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4714 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4715 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4716 { (exit 1); exit 1; }; } ;;
4720 # Check whether --with-extra-options was given.
4721 if test "${with_extra_options+set}" = set; then
4722 withval=$with_extra_options;
4728 default) EXTRA_OPTIONS= ;;
4729 *) EXTRA_OPTIONS=$withval ;;
4731 EXTRA_OPTIONS=$EXTRA_OPTIONS
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4741 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4742 # On Suns, sometimes $CPP names a directory.
4743 if test -n "$CPP" && test -d "$CPP"; then
4746 if test -z "$CPP"; then
4747 if test "${ac_cv_prog_CPP+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 # Double quotes because CPP needs to be expanded
4751 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4754 for ac_c_preproc_warn_flag in '' yes
4756 # Use a header file that comes with gcc, so configuring glibc
4757 # with a fresh cross-compiler works.
4758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4759 # <limits.h> exists even on freestanding compilers.
4760 # On the NeXT, cc -E runs the code through the compiler's parser,
4761 # not just through cpp. "Syntax error" is here to catch this case.
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4769 # include <limits.h>
4771 # include <assert.h>
4775 if { (ac_try="$ac_cpp conftest.$ac_ext"
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4783 grep -v '^ *+' conftest.er1 >conftest.err
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } >/dev/null; then
4788 if test -s conftest.err; then
4789 ac_cpp_err=$ac_c_preproc_warn_flag
4790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4797 if test -z "$ac_cpp_err"; then
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4803 # Broken: fails on valid input.
4807 rm -f conftest.err conftest.$ac_ext
4809 # OK, works on sane cases. Now check whether nonexistent headers
4810 # can be detected and how.
4811 cat >conftest.$ac_ext <<_ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 #include <ac_nonexistent.h>
4819 if { (ac_try="$ac_cpp conftest.$ac_ext"
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4827 grep -v '^ *+' conftest.er1 >conftest.err
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } >/dev/null; then
4832 if test -s conftest.err; then
4833 ac_cpp_err=$ac_c_preproc_warn_flag
4834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4841 if test -z "$ac_cpp_err"; then
4842 # Broken: success on invalid input.
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4848 # Passes both tests.
4853 rm -f conftest.err conftest.$ac_ext
4856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4857 rm -f conftest.err conftest.$ac_ext
4858 if $ac_preproc_ok; then
4870 { echo "$as_me:$LINENO: result: $CPP" >&5
4871 echo "${ECHO_T}$CPP" >&6; }
4873 for ac_c_preproc_warn_flag in '' yes
4875 # Use a header file that comes with gcc, so configuring glibc
4876 # with a fresh cross-compiler works.
4877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4878 # <limits.h> exists even on freestanding compilers.
4879 # On the NeXT, cc -E runs the code through the compiler's parser,
4880 # not just through cpp. "Syntax error" is here to catch this case.
4881 cat >conftest.$ac_ext <<_ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4888 # include <limits.h>
4890 # include <assert.h>
4894 if { (ac_try="$ac_cpp conftest.$ac_ext"
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4902 grep -v '^ *+' conftest.er1 >conftest.err
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev/null; then
4907 if test -s conftest.err; then
4908 ac_cpp_err=$ac_c_preproc_warn_flag
4909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4916 if test -z "$ac_cpp_err"; then
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 # Broken: fails on valid input.
4926 rm -f conftest.err conftest.$ac_ext
4928 # OK, works on sane cases. Now check whether nonexistent headers
4929 # can be detected and how.
4930 cat >conftest.$ac_ext <<_ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936 #include <ac_nonexistent.h>
4938 if { (ac_try="$ac_cpp conftest.$ac_ext"
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4946 grep -v '^ *+' conftest.er1 >conftest.err
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } >/dev/null; then
4951 if test -s conftest.err; then
4952 ac_cpp_err=$ac_c_preproc_warn_flag
4953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4960 if test -z "$ac_cpp_err"; then
4961 # Broken: success on invalid input.
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 # Passes both tests.
4972 rm -f conftest.err conftest.$ac_ext
4975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4976 rm -f conftest.err conftest.$ac_ext
4977 if $ac_preproc_ok; then
4980 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4981 See \`config.log' for more details." >&5
4982 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4983 See \`config.log' for more details." >&2;}
4984 { (exit 1); exit 1; }; }
4988 ac_cpp='$CPP $CPPFLAGS'
4989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4998 if test -n "$ac_tool_prefix"; then
5001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5005 if test "${ac_cv_prog_CC+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 if test -n "$CC"; then
5009 ac_cv_prog_CC="$CC" # Let the user override the test.
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 if test -n "$CC"; then
5030 { echo "$as_me:$LINENO: result: $CC" >&5
5031 echo "${ECHO_T}$CC" >&6; }
5033 { echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6; }
5038 test -n "$CC" && break
5041 if test -z "$CC"; then
5045 # Extract the first word of "$ac_prog", so it can be a program name with args.
5046 set dummy $ac_prog; ac_word=$2
5047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 if test -n "$ac_ct_CC"; then
5053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_ac_ct_CC="$ac_prog"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5073 if test -n "$ac_ct_CC"; then
5074 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5075 echo "${ECHO_T}$ac_ct_CC" >&6; }
5077 { echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6; }
5082 test -n "$ac_ct_CC" && break
5085 if test "x$ac_ct_CC" = x; then
5088 case $cross_compiling:$ac_tool_warned in
5090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5091 whose name does not start with the host triplet. If you think this
5092 configuration is useful to you, please write to autoconf@gnu.org." >&5
5093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5094 whose name does not start with the host triplet. If you think this
5095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5096 ac_tool_warned=yes ;;
5103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5104 See \`config.log' for more details." >&5
5105 echo "$as_me: error: no acceptable C compiler found in \$PATH
5106 See \`config.log' for more details." >&2;}
5107 { (exit 1); exit 1; }; }
5109 # Provide some information about the compiler.
5110 echo "$as_me:$LINENO: checking for C compiler version" >&5
5111 ac_compiler=`set X $ac_compile; echo $2`
5112 { (ac_try="$ac_compiler --version >&5"
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_compiler --version >&5") 2>&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }
5122 { (ac_try="$ac_compiler -v >&5"
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_compiler -v >&5") 2>&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }
5132 { (ac_try="$ac_compiler -V >&5"
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_compiler -V >&5") 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }
5143 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5144 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5145 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 cat >conftest.$ac_ext <<_ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5166 rm -f conftest.$ac_objext
5167 if { (ac_try="$ac_compile"
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_compile") 2>conftest.er1
5175 grep -v '^ *+' conftest.er1 >conftest.err
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5181 { (case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_try") 2>&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest.$ac_objext'
5191 { (case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_try") 2>&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5212 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5213 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5214 GCC=`test $ac_compiler_gnu = yes && echo yes`
5215 ac_test_CFLAGS=${CFLAGS+set}
5216 ac_save_CFLAGS=$CFLAGS
5217 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5218 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5219 if test "${ac_cv_prog_cc_g+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 ac_save_c_werror_flag=$ac_c_werror_flag
5223 ac_c_werror_flag=yes
5226 cat >conftest.$ac_ext <<_ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5241 rm -f conftest.$ac_objext
5242 if { (ac_try="$ac_compile"
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_compile") 2>conftest.er1
5250 grep -v '^ *+' conftest.er1 >conftest.err
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5256 { (case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261 (eval "$ac_try") 2>&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest.$ac_objext'
5266 { (case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_try") 2>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5281 cat >conftest.$ac_ext <<_ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5296 rm -f conftest.$ac_objext
5297 if { (ac_try="$ac_compile"
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_compile") 2>conftest.er1
5305 grep -v '^ *+' conftest.er1 >conftest.err
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5311 { (case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_try") 2>&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; } &&
5320 { ac_try='test -s conftest.$ac_objext'
5321 { (case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_try") 2>&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ac_c_werror_flag=$ac_save_c_werror_flag
5337 cat >conftest.$ac_ext <<_ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5352 rm -f conftest.$ac_objext
5353 if { (ac_try="$ac_compile"
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_compile") 2>conftest.er1
5361 grep -v '^ *+' conftest.er1 >conftest.err
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5376 { ac_try='test -s conftest.$ac_objext'
5377 { (case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_try") 2>&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 ac_c_werror_flag=$ac_save_c_werror_flag
5403 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5404 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5405 if test "$ac_test_CFLAGS" = set; then
5406 CFLAGS=$ac_save_CFLAGS
5407 elif test $ac_cv_prog_cc_g = yes; then
5408 if test "$GCC" = yes; then
5414 if test "$GCC" = yes; then
5420 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5421 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5422 if test "${ac_cv_prog_cc_c89+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 ac_cv_prog_cc_c89=no
5427 cat >conftest.$ac_ext <<_ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5435 #include <sys/types.h>
5436 #include <sys/stat.h>
5437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5438 struct buf { int x; };
5439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5440 static char *e (p, i)
5446 static char *f (char * (*g) (char **, int), char **p, ...)
5451 s = g (p, va_arg (v,int));
5456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5457 function prototypes and stuff, but not '\xHH' hex character constants.
5458 These don't provoke an error unfortunately, instead are silently treated
5459 as 'x'. The following induces an error, until -std is added to get
5460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5461 array size at least. It's necessary to write '\x00'==0 to get something
5462 that's true only with -std. */
5463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5466 inside strings and character constants. */
5468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5470 int test (int i, double x);
5471 struct s1 {int (*f) (int a);};
5472 struct s2 {int (*f) (double a);};
5473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5487 CC="$ac_save_CC $ac_arg"
5488 rm -f conftest.$ac_objext
5489 if { (ac_try="$ac_compile"
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compile") 2>conftest.er1
5497 grep -v '^ *+' conftest.er1 >conftest.err
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5503 { (case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_try") 2>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; } &&
5512 { ac_try='test -s conftest.$ac_objext'
5513 { (case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_try") 2>&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
5522 ac_cv_prog_cc_c89=$ac_arg
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5530 rm -f core conftest.err conftest.$ac_objext
5531 test "x$ac_cv_prog_cc_c89" != "xno" && break
5533 rm -f conftest.$ac_ext
5538 case "x$ac_cv_prog_cc_c89" in
5540 { echo "$as_me:$LINENO: result: none needed" >&5
5541 echo "${ECHO_T}none needed" >&6; } ;;
5543 { echo "$as_me:$LINENO: result: unsupported" >&5
5544 echo "${ECHO_T}unsupported" >&6; } ;;
5546 CC="$CC $ac_cv_prog_cc_c89"
5547 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5548 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5559 ac_cpp='$CXXCPP $CPPFLAGS'
5560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5563 if test -z "$CXX"; then
5564 if test -n "$CCC"; then
5567 if test -n "$ac_tool_prefix"; then
5570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5574 if test "${ac_cv_prog_CXX+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 if test -n "$CXX"; then
5578 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 if test -n "$CXX"; then
5599 { echo "$as_me:$LINENO: result: $CXX" >&5
5600 echo "${ECHO_T}$CXX" >&6; }
5602 { echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6; }
5607 test -n "$CXX" && break
5610 if test -z "$CXX"; then
5614 # Extract the first word of "$ac_prog", so it can be a program name with args.
5615 set dummy $ac_prog; ac_word=$2
5616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5618 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 if test -n "$ac_ct_CXX"; then
5622 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_CXX="$ac_prog"
5632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5642 if test -n "$ac_ct_CXX"; then
5643 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5644 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5646 { echo "$as_me:$LINENO: result: no" >&5
5647 echo "${ECHO_T}no" >&6; }
5651 test -n "$ac_ct_CXX" && break
5654 if test "x$ac_ct_CXX" = x; then
5657 case $cross_compiling:$ac_tool_warned in
5659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5660 whose name does not start with the host triplet. If you think this
5661 configuration is useful to you, please write to autoconf@gnu.org." >&5
5662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5663 whose name does not start with the host triplet. If you think this
5664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5665 ac_tool_warned=yes ;;
5673 # Provide some information about the compiler.
5674 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5675 ac_compiler=`set X $ac_compile; echo $2`
5676 { (ac_try="$ac_compiler --version >&5"
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compiler --version >&5") 2>&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }
5686 { (ac_try="$ac_compiler -v >&5"
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_compiler -v >&5") 2>&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }
5696 { (ac_try="$ac_compiler -V >&5"
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702 (eval "$ac_compiler -V >&5") 2>&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }
5707 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5708 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5709 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5739 grep -v '^ *+' conftest.er1 >conftest.err
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5745 { (case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_try") 2>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try='test -s conftest.$ac_objext'
5755 { (case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_try") 2>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5776 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5777 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5778 GXX=`test $ac_compiler_gnu = yes && echo yes`
5779 ac_test_CXXFLAGS=${CXXFLAGS+set}
5780 ac_save_CXXFLAGS=$CXXFLAGS
5781 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5782 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5783 if test "${ac_cv_prog_cxx_g+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5787 ac_cxx_werror_flag=yes
5790 cat >conftest.$ac_ext <<_ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5805 rm -f conftest.$ac_objext
5806 if { (ac_try="$ac_compile"
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_compile") 2>conftest.er1
5814 grep -v '^ *+' conftest.er1 >conftest.err
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5820 { (case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_try") 2>&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; } &&
5829 { ac_try='test -s conftest.$ac_objext'
5830 { (case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_try") 2>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_prog_cxx_g=yes
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5845 cat >conftest.$ac_ext <<_ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5869 grep -v '^ *+' conftest.er1 >conftest.err
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5875 { (case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$ac_try") 2>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; } &&
5884 { ac_try='test -s conftest.$ac_objext'
5885 { (case "(($ac_try" in
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_try") 2>&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5901 cat >conftest.$ac_ext <<_ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compile") 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
5940 { ac_try='test -s conftest.$ac_objext'
5941 { (case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_try") 2>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_prog_cxx_g=yes
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5967 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5968 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5969 if test "$ac_test_CXXFLAGS" = set; then
5970 CXXFLAGS=$ac_save_CXXFLAGS
5971 elif test $ac_cv_prog_cxx_g = yes; then
5972 if test "$GXX" = yes; then
5978 if test "$GXX" = yes; then
5985 ac_cpp='$CPP $CPPFLAGS'
5986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5990 { echo "$as_me:$LINENO: checking " >&5
5991 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5992 if test "${ac_cv_has_flex+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 for ac_prog in flex lex
5997 # Extract the first word of "$ac_prog", so it can be a program name with args.
5998 set dummy $ac_prog; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_prog_LEX+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 if test -n "$LEX"; then
6005 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_LEX="$ac_prog"
6015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 if test -n "$LEX"; then
6026 { echo "$as_me:$LINENO: result: $LEX" >&5
6027 echo "${ECHO_T}$LEX" >&6; }
6029 { echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6; }
6034 test -n "$LEX" && break
6036 test -n "$LEX" || LEX=":"
6038 if test -z "$LEXLIB"
6040 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6041 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6042 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 ac_check_lib_save_LIBS=$LIBS
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6054 /* Override any GCC internal prototype to avoid an error.
6055 Use char because int might match the return type of a GCC
6056 builtin and then its argument prototype would still apply. */
6069 rm -f conftest.$ac_objext conftest$ac_exeext
6070 if { (ac_try="$ac_link"
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_link") 2>conftest.er1
6078 grep -v '^ *+' conftest.er1 >conftest.err
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6084 { (case "(($ac_try" in
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_try") 2>&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; } &&
6093 { ac_try='test -s conftest$ac_exeext'
6094 { (case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_try") 2>&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; }; then
6103 ac_cv_lib_fl_yywrap=yes
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ac_cv_lib_fl_yywrap=no
6111 rm -f core conftest.err conftest.$ac_objext \
6112 conftest$ac_exeext conftest.$ac_ext
6113 LIBS=$ac_check_lib_save_LIBS
6115 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6116 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6117 if test $ac_cv_lib_fl_yywrap = yes; then
6120 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6121 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6122 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 ac_check_lib_save_LIBS=$LIBS
6127 cat >conftest.$ac_ext <<_ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6134 /* Override any GCC internal prototype to avoid an error.
6135 Use char because int might match the return type of a GCC
6136 builtin and then its argument prototype would still apply. */
6149 rm -f conftest.$ac_objext conftest$ac_exeext
6150 if { (ac_try="$ac_link"
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_link") 2>conftest.er1
6158 grep -v '^ *+' conftest.er1 >conftest.err
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6164 { (case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_try") 2>&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest$ac_exeext'
6174 { (case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_try") 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6183 ac_cv_lib_l_yywrap=yes
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6188 ac_cv_lib_l_yywrap=no
6191 rm -f core conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193 LIBS=$ac_check_lib_save_LIBS
6195 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6196 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6197 if test $ac_cv_lib_l_yywrap = yes; then
6205 if test "x$LEX" != "x:"; then
6206 { echo "$as_me:$LINENO: checking lex output file root" >&5
6207 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6208 if test "${ac_cv_prog_lex_root+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 # The minimal lex program is just a single line: %%. But some broken lexes
6212 # (Solaris, I think it was) want two %% lines, so accommodate them.
6213 cat >conftest.l <<_ACEOF
6217 { (ac_try="$LEX conftest.l"
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$LEX conftest.l") 2>&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }
6227 if test -f lex.yy.c; then
6228 ac_cv_prog_lex_root=lex.yy
6229 elif test -f lexyy.c; then
6230 ac_cv_prog_lex_root=lexyy
6232 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6233 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6234 { (exit 1); exit 1; }; }
6237 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6238 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6240 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6242 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6243 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 # POSIX says lex can declare yytext either as a pointer or an array; the
6248 # default is implementation-dependent. Figure out which it is, since
6249 # not all implementations provide the %pointer and %array declarations.
6250 ac_cv_prog_lex_yytext_pointer=no
6251 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6253 LIBS="$LIBS $LEXLIB"
6254 cat >conftest.$ac_ext <<_ACEOF
6255 `cat $LEX_OUTPUT_ROOT.c`
6257 rm -f conftest.$ac_objext conftest$ac_exeext
6258 if { (ac_try="$ac_link"
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_link") 2>conftest.er1
6266 grep -v '^ *+' conftest.er1 >conftest.err
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } &&
6271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6272 { (case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_try") 2>&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; } &&
6281 { ac_try='test -s conftest$ac_exeext'
6282 { (case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_try") 2>&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_cv_prog_lex_yytext_pointer=yes
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6299 rm -f core conftest.err conftest.$ac_objext \
6300 conftest$ac_exeext conftest.$ac_ext
6302 rm -f "${LEX_OUTPUT_ROOT}.c"
6305 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6306 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6307 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6309 cat >>confdefs.h <<\_ACEOF
6310 #define YYTEXT_POINTER 1
6318 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6319 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6320 if test "$LEX" != "flex"; then
6321 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6322 echo "$as_me: error: flex not found but required" >&2;}
6323 { (exit 1); exit 1; }; }
6329 { echo "$as_me:$LINENO: checking " >&5
6330 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6331 if test "${llvm_cv_has_bison+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 for ac_prog in 'bison -y' byacc
6336 # Extract the first word of "$ac_prog", so it can be a program name with args.
6337 set dummy $ac_prog; ac_word=$2
6338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6340 if test "${ac_cv_prog_YACC+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 if test -n "$YACC"; then
6344 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6353 ac_cv_prog_YACC="$ac_prog"
6354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 YACC=$ac_cv_prog_YACC
6364 if test -n "$YACC"; then
6365 { echo "$as_me:$LINENO: result: $YACC" >&5
6366 echo "${ECHO_T}$YACC" >&6; }
6368 { echo "$as_me:$LINENO: result: no" >&5
6369 echo "${ECHO_T}no" >&6; }
6373 test -n "$YACC" && break
6375 test -n "$YACC" || YACC="yacc"
6378 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6379 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6380 if test "$YACC" != "bison -y"; then
6382 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6383 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6389 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6390 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6391 if test "${lt_cv_path_NM+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 if test -n "$NM"; then
6395 # Let the user override the test.
6398 lt_nm_to_check="${ac_tool_prefix}nm"
6399 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6400 lt_nm_to_check="$lt_nm_to_check nm"
6402 for lt_tmp_nm in $lt_nm_to_check; do
6403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6404 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6406 test -z "$ac_dir" && ac_dir=.
6407 tmp_nm="$ac_dir/$lt_tmp_nm"
6408 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6409 # Check to see if the nm accepts a BSD-compat flag.
6410 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6411 # nm: unknown option "B" ignored
6412 # Tru64's nm complains that /dev/null is an invalid object file
6413 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6414 */dev/null* | *'Invalid file or object type'*)
6415 lt_cv_path_NM="$tmp_nm -B"
6419 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6421 lt_cv_path_NM="$tmp_nm -p"
6425 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6426 continue # so that we can try to find one that supports BSD flags
6435 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6438 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6439 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6444 { echo "$as_me:$LINENO: checking for GNU make" >&5
6445 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6446 if test "${llvm_cv_gnu_make_command+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 llvm_cv_gnu_make_command=''
6450 for a in "$MAKE" make gmake gnumake ; do
6451 if test -z "$a" ; then continue ; fi ;
6452 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6454 llvm_cv_gnu_make_command=$a ;
6459 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6460 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6461 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6465 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6466 echo "${ECHO_T}\"Not found\"" >&6; };
6470 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6471 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6473 if test "$LN_S" = "ln -s"; then
6474 { echo "$as_me:$LINENO: result: yes" >&5
6475 echo "${ECHO_T}yes" >&6; }
6477 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6478 echo "${ECHO_T}no, using $LN_S" >&6; }
6481 # Extract the first word of "cmp", so it can be a program name with args.
6482 set dummy cmp; ac_word=$2
6483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6485 if test "${ac_cv_path_CMP+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6513 if test -n "$CMP"; then
6514 { echo "$as_me:$LINENO: result: $CMP" >&5
6515 echo "${ECHO_T}$CMP" >&6; }
6517 { echo "$as_me:$LINENO: result: no" >&5
6518 echo "${ECHO_T}no" >&6; }
6522 # Extract the first word of "cp", so it can be a program name with args.
6523 set dummy cp; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_CP+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6554 if test -n "$CP"; then
6555 { echo "$as_me:$LINENO: result: $CP" >&5
6556 echo "${ECHO_T}$CP" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6563 # Extract the first word of "date", so it can be a program name with args.
6564 set dummy date; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_path_DATE+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6594 DATE=$ac_cv_path_DATE
6595 if test -n "$DATE"; then
6596 { echo "$as_me:$LINENO: result: $DATE" >&5
6597 echo "${ECHO_T}$DATE" >&6; }
6599 { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6604 # Extract the first word of "find", so it can be a program name with args.
6605 set dummy find; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_FIND+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6635 FIND=$ac_cv_path_FIND
6636 if test -n "$FIND"; then
6637 { echo "$as_me:$LINENO: result: $FIND" >&5
6638 echo "${ECHO_T}$FIND" >&6; }
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6645 # Extract the first word of "grep", so it can be a program name with args.
6646 set dummy grep; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_GREP+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6676 GREP=$ac_cv_path_GREP
6677 if test -n "$GREP"; then
6678 { echo "$as_me:$LINENO: result: $GREP" >&5
6679 echo "${ECHO_T}$GREP" >&6; }
6681 { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6686 # Extract the first word of "mkdir", so it can be a program name with args.
6687 set dummy mkdir; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_MKDIR+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6717 MKDIR=$ac_cv_path_MKDIR
6718 if test -n "$MKDIR"; then
6719 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6720 echo "${ECHO_T}$MKDIR" >&6; }
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6727 # Extract the first word of "mv", so it can be a program name with args.
6728 set dummy mv; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_MV+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6759 if test -n "$MV"; then
6760 { echo "$as_me:$LINENO: result: $MV" >&5
6761 echo "${ECHO_T}$MV" >&6; }
6763 { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_RANLIB+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 if test -n "$RANLIB"; then
6777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 RANLIB=$ac_cv_prog_RANLIB
6797 if test -n "$RANLIB"; then
6798 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6799 echo "${ECHO_T}$RANLIB" >&6; }
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6807 if test -z "$ac_cv_prog_RANLIB"; then
6808 ac_ct_RANLIB=$RANLIB
6809 # Extract the first word of "ranlib", so it can be a program name with args.
6810 set dummy ranlib; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 if test -n "$ac_ct_RANLIB"; then
6817 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_ac_ct_RANLIB="ranlib"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6837 if test -n "$ac_ct_RANLIB"; then
6838 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6839 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6845 if test "x$ac_ct_RANLIB" = x; then
6848 case $cross_compiling:$ac_tool_warned in
6850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6851 whose name does not start with the host triplet. If you think this
6852 configuration is useful to you, please write to autoconf@gnu.org." >&5
6853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6854 whose name does not start with the host triplet. If you think this
6855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6856 ac_tool_warned=yes ;;
6858 RANLIB=$ac_ct_RANLIB
6861 RANLIB="$ac_cv_prog_RANLIB"
6864 # Extract the first word of "rm", so it can be a program name with args.
6865 set dummy rm; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_path_RM+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6883 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6896 if test -n "$RM"; then
6897 { echo "$as_me:$LINENO: result: $RM" >&5
6898 echo "${ECHO_T}$RM" >&6; }
6900 { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6905 # Extract the first word of "sed", so it can be a program name with args.
6906 set dummy sed; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_SED+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6937 if test -n "$SED"; then
6938 { echo "$as_me:$LINENO: result: $SED" >&5
6939 echo "${ECHO_T}$SED" >&6; }
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6946 # Extract the first word of "tar", so it can be a program name with args.
6947 set dummy tar; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_path_TAR+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6978 if test -n "$TAR"; then
6979 { echo "$as_me:$LINENO: result: $TAR" >&5
6980 echo "${ECHO_T}$TAR" >&6; }
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6987 # Extract the first word of "pwd", so it can be a program name with args.
6988 set dummy pwd; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_path_BINPWD+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7018 BINPWD=$ac_cv_path_BINPWD
7019 if test -n "$BINPWD"; then
7020 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7021 echo "${ECHO_T}$BINPWD" >&6; }
7023 { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7029 # Extract the first word of "Graphviz", so it can be a program name with args.
7030 set dummy Graphviz; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7060 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7061 if test -n "$GRAPHVIZ"; then
7062 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7063 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7065 { echo "$as_me:$LINENO: result: no" >&5
7066 echo "${ECHO_T}no" >&6; }
7070 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7072 cat >>confdefs.h <<\_ACEOF
7073 #define HAVE_GRAPHVIZ 1
7076 if test "$llvm_cv_os_type" == "MingW" ; then
7077 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7080 cat >>confdefs.h <<_ACEOF
7081 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7085 # Extract the first word of "dot", so it can be a program name with args.
7086 set dummy dot; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_DOT+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7117 if test -n "$DOT"; then
7118 { echo "$as_me:$LINENO: result: $DOT" >&5
7119 echo "${ECHO_T}$DOT" >&6; }
7121 { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7126 if test "$DOT" != "echo dot" ; then
7128 cat >>confdefs.h <<\_ACEOF
7132 if test "$llvm_cv_os_type" == "MingW" ; then
7133 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7136 cat >>confdefs.h <<_ACEOF
7137 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7141 for ac_prog in gv gsview32
7143 # Extract the first word of "$ac_prog", so it can be a program name with args.
7144 set dummy $ac_prog; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_path_GV+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 if test -n "$GV"; then
7175 { echo "$as_me:$LINENO: result: $GV" >&5
7176 echo "${ECHO_T}$GV" >&6; }
7178 { echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6; }
7183 test -n "$GV" && break
7185 test -n "$GV" || GV="echo gv"
7187 if test "$GV" != "echo gv" ; then
7189 cat >>confdefs.h <<\_ACEOF
7193 if test "$llvm_cv_os_type" == "MingW" ; then
7194 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7197 cat >>confdefs.h <<_ACEOF
7198 #define LLVM_PATH_GV "$GV${EXEEXT}"
7202 # Extract the first word of "dotty", so it can be a program name with args.
7203 set dummy dotty; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_DOTTY+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7233 DOTTY=$ac_cv_path_DOTTY
7234 if test -n "$DOTTY"; then
7235 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7236 echo "${ECHO_T}$DOTTY" >&6; }
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7243 if test "$DOTTY" != "echo dotty" ; then
7245 cat >>confdefs.h <<\_ACEOF
7246 #define HAVE_DOTTY 1
7249 if test "$llvm_cv_os_type" == "MingW" ; then
7250 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7253 cat >>confdefs.h <<_ACEOF
7254 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7260 # Extract the first word of "perl", so it can be a program name with args.
7261 set dummy perl; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_PERL+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7291 PERL=$ac_cv_path_PERL
7292 if test -n "$PERL"; then
7293 { echo "$as_me:$LINENO: result: $PERL" >&5
7294 echo "${ECHO_T}$PERL" >&6; }
7296 { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7301 if test "$PERL" != "none"; then
7302 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7303 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7304 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7305 { echo "$as_me:$LINENO: result: yes" >&5
7306 echo "${ECHO_T}yes" >&6; }
7309 { echo "$as_me:$LINENO: result: not found" >&5
7310 echo "${ECHO_T}not found" >&6; }
7315 if test x"$PERL" = xnone; then
7323 # Find a good install program. We prefer a C program (faster),
7324 # so one script is as good as another. But avoid the broken or
7325 # incompatible versions:
7326 # SysV /etc/install, /usr/sbin/install
7327 # SunOS /usr/etc/install
7328 # IRIX /sbin/install
7330 # AmigaOS /C/install, which installs bootblocks on floppy discs
7331 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7332 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7333 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7334 # OS/2's system install, which has a completely different semantic
7335 # ./install, which can be erroneously created by make from ./install.sh.
7336 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7337 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7338 if test -z "$INSTALL"; then
7339 if test "${ac_cv_path_install+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 test -z "$as_dir" && as_dir=.
7347 # Account for people who put trailing slashes in PATH elements.
7349 ./ | .// | /cC/* | \
7350 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7351 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7354 # OSF1 and SCO ODT 3.0 have their own names for install.
7355 # Don't use installbsd from OSF since it installs stuff as root
7357 for ac_prog in ginstall scoinst install; do
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7360 if test $ac_prog = install &&
7361 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7362 # AIX install. It has an incompatible calling convention.
7364 elif test $ac_prog = install &&
7365 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7366 # program-specific install script used by HP pwplus--don't use.
7369 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7382 if test "${ac_cv_path_install+set}" = set; then
7383 INSTALL=$ac_cv_path_install
7385 # As a last resort, use the slow shell script. Don't cache a
7386 # value for INSTALL within a source directory, because that will
7387 # break other packages using the cache if that directory is
7388 # removed, or if the value is a relative name.
7389 INSTALL=$ac_install_sh
7392 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7393 echo "${ECHO_T}$INSTALL" >&6; }
7395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7396 # It thinks the first close brace ends the variable substitution.
7397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7404 # Extract the first word of "bzip2", so it can be a program name with args.
7405 set dummy bzip2; ac_word=$2
7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408 if test "${ac_cv_path_BZIP2+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7423 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7435 BZIP2=$ac_cv_path_BZIP2
7436 if test -n "$BZIP2"; then
7437 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7438 echo "${ECHO_T}$BZIP2" >&6; }
7440 { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7445 # Extract the first word of "doxygen", so it can be a program name with args.
7446 set dummy doxygen; ac_word=$2
7447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7476 DOXYGEN=$ac_cv_path_DOXYGEN
7477 if test -n "$DOXYGEN"; then
7478 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7479 echo "${ECHO_T}$DOXYGEN" >&6; }
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7486 # Extract the first word of "groff", so it can be a program name with args.
7487 set dummy groff; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_path_GROFF+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7517 GROFF=$ac_cv_path_GROFF
7518 if test -n "$GROFF"; then
7519 { echo "$as_me:$LINENO: result: $GROFF" >&5
7520 echo "${ECHO_T}$GROFF" >&6; }
7522 { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7527 # Extract the first word of "gzip", so it can be a program name with args.
7528 set dummy gzip; ac_word=$2
7529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531 if test "${ac_cv_path_GZIP+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7558 GZIP=$ac_cv_path_GZIP
7559 if test -n "$GZIP"; then
7560 { echo "$as_me:$LINENO: result: $GZIP" >&5
7561 echo "${ECHO_T}$GZIP" >&6; }
7563 { echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6; }
7568 # Extract the first word of "pod2html", so it can be a program name with args.
7569 set dummy pod2html; ac_word=$2
7570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572 if test "${ac_cv_path_POD2HTML+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7587 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7599 POD2HTML=$ac_cv_path_POD2HTML
7600 if test -n "$POD2HTML"; then
7601 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7602 echo "${ECHO_T}$POD2HTML" >&6; }
7604 { echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6; }
7609 # Extract the first word of "pod2man", so it can be a program name with args.
7610 set dummy pod2man; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_POD2MAN+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7640 POD2MAN=$ac_cv_path_POD2MAN
7641 if test -n "$POD2MAN"; then
7642 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7643 echo "${ECHO_T}$POD2MAN" >&6; }
7645 { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7650 # Extract the first word of "runtest", so it can be a program name with args.
7651 set dummy runtest; ac_word=$2
7652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7654 if test "${ac_cv_path_RUNTEST+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7681 RUNTEST=$ac_cv_path_RUNTEST
7682 if test -n "$RUNTEST"; then
7683 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7684 echo "${ECHO_T}$RUNTEST" >&6; }
7686 { echo "$as_me:$LINENO: result: no" >&5
7687 echo "${ECHO_T}no" >&6; }
7693 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7694 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7696 # Check whether --with-tclinclude was given.
7697 if test "${with_tclinclude+set}" = set; then
7698 withval=$with_tclinclude; with_tclinclude=${withval}
7703 if test "${ac_cv_path_tclsh+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 if test x"${with_tclinclude}" != x ; then
7708 if test -f ${with_tclinclude}/tclsh ; then
7709 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7710 elif test -f ${with_tclinclude}/src/tclsh ; then
7711 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7713 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7714 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7715 { (exit 1); exit 1; }; }
7719 if test x"${ac_cv_path_tclsh}" = x ; then
7720 { echo "$as_me:$LINENO: result: none" >&5
7721 echo "${ECHO_T}none" >&6; }
7722 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
7724 # Extract the first word of "$ac_prog", so it can be a program name with args.
7725 set dummy $ac_prog; ac_word=$2
7726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7728 if test "${ac_cv_path_TCLSH+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7743 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 TCLSH=$ac_cv_path_TCLSH
7755 if test -n "$TCLSH"; then
7756 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7757 echo "${ECHO_T}$TCLSH" >&6; }
7759 { echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6; }
7764 test -n "$TCLSH" && break
7767 if test x"${TCLSH}" = x ; then
7768 ac_cv_path_tclsh='';
7770 ac_cv_path_tclsh="${TCLSH}";
7773 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7774 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7775 TCLSH="${ac_cv_path_tclsh}"
7781 # Extract the first word of "zip", so it can be a program name with args.
7782 set dummy zip; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_ZIP+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7813 if test -n "$ZIP"; then
7814 { echo "$as_me:$LINENO: result: $ZIP" >&5
7815 echo "${ECHO_T}$ZIP" >&6; }
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7823 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7824 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7825 if test "${llvm_cv_link_use_r+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 ac_cpp='$CPP $CPPFLAGS'
7830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7835 CFLAGS="$CFLAGS -Wl,-R."
7836 cat >conftest.$ac_ext <<_ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7846 int main() { return 0; }
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_link") 2>conftest.er1
7860 grep -v '^ *+' conftest.er1 >conftest.err
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7866 { (case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_try") 2>&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest$ac_exeext'
7876 { (case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_try") 2>&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 llvm_cv_link_use_r=yes
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 llvm_cv_link_use_r=no
7893 rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7905 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7906 if test "$llvm_cv_link_use_r" = yes ; then
7908 cat >>confdefs.h <<\_ACEOF
7909 #define HAVE_LINK_R 1
7917 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7918 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7919 if test "${ac_cv_c_const+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7932 /* FIXME: Include the comments suggested by Paul. */
7934 /* Ultrix mips cc rejects this. */
7935 typedef int charset[2];
7937 /* SunOS 4.1.1 cc rejects this. */
7938 char const *const *ccp;
7940 /* NEC SVR4.0.2 mips cc rejects this. */
7941 struct point {int x, y;};
7942 static struct point const zero = {0,0};
7943 /* AIX XL C 1.02.0.0 rejects this.
7944 It does not let you subtract one const X* pointer from another in
7945 an arm of an if-expression whose if-part is not a constant
7947 const char *g = "string";
7948 ccp = &g + (g ? g-g : 0);
7949 /* HPUX 7.0 cc rejects these. */
7952 ccp = (char const *const *) p;
7953 { /* SCO 3.2v4 cc rejects this. */
7955 char const *s = 0 ? (char *) 0 : (char const *) 0;
7960 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7962 const int *foo = &x[0];
7965 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7966 typedef const int *iptr;
7970 { /* AIX XL C 1.02.0.0 rejects this saying
7971 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7972 struct s { int j; const int *ap[3]; };
7973 struct s *b; b->j = 5;
7975 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7979 return !x[0] && !zero.x;
7986 rm -f conftest.$ac_objext
7987 if { (ac_try="$ac_compile"
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_compile") 2>conftest.er1
7995 grep -v '^ *+' conftest.er1 >conftest.err
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8001 { (case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_try") 2>&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest.$ac_objext'
8011 { (case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_try") 2>&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8031 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8032 if test $ac_cv_c_const = no; then
8034 cat >>confdefs.h <<\_ACEOF
8046 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8047 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8048 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8049 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 #include <sys/types.h>
8071 rm -f conftest.$ac_objext
8072 if { (ac_try="$ac_compile"
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_compile") 2>conftest.er1
8080 grep -v '^ *+' conftest.er1 >conftest.err
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086 { (case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_try") 2>&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest.$ac_objext'
8096 { (case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_try") 2>&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 eval "$as_ac_Header=yes"
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 eval "$as_ac_Header=no"
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115 ac_res=`eval echo '${'$as_ac_Header'}'`
8116 { echo "$as_me:$LINENO: result: $ac_res" >&5
8117 echo "${ECHO_T}$ac_res" >&6; }
8118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8119 cat >>confdefs.h <<_ACEOF
8120 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8123 ac_header_dirent=$ac_hdr; break
8127 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8128 if test $ac_header_dirent = dirent.h; then
8129 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8130 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8131 if test "${ac_cv_search_opendir+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 ac_func_search_save_LIBS=$LIBS
8135 cat >conftest.$ac_ext <<_ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8142 /* Override any GCC internal prototype to avoid an error.
8143 Use char because int might match the return type of a GCC
8144 builtin and then its argument prototype would still apply. */
8157 for ac_lib in '' dir; do
8158 if test -z "$ac_lib"; then
8159 ac_res="none required"
8162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_link") 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest$ac_exeext'
8189 { (case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_try") 2>&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 ac_cv_search_opendir=$ac_res
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8206 rm -f core conftest.err conftest.$ac_objext \
8208 if test "${ac_cv_search_opendir+set}" = set; then
8212 if test "${ac_cv_search_opendir+set}" = set; then
8215 ac_cv_search_opendir=no
8218 LIBS=$ac_func_search_save_LIBS
8220 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8221 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8222 ac_res=$ac_cv_search_opendir
8223 if test "$ac_res" != no; then
8224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8229 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8230 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8231 if test "${ac_cv_search_opendir+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 ac_func_search_save_LIBS=$LIBS
8235 cat >conftest.$ac_ext <<_ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8242 /* Override any GCC internal prototype to avoid an error.
8243 Use char because int might match the return type of a GCC
8244 builtin and then its argument prototype would still apply. */
8257 for ac_lib in '' x; do
8258 if test -z "$ac_lib"; then
8259 ac_res="none required"
8262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (ac_try="$ac_link"
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_link") 2>conftest.er1
8273 grep -v '^ *+' conftest.er1 >conftest.err
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8279 { (case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_try") 2>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try='test -s conftest$ac_exeext'
8289 { (case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_try") 2>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 ac_cv_search_opendir=$ac_res
8300 echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8306 rm -f core conftest.err conftest.$ac_objext \
8308 if test "${ac_cv_search_opendir+set}" = set; then
8312 if test "${ac_cv_search_opendir+set}" = set; then
8315 ac_cv_search_opendir=no
8318 LIBS=$ac_func_search_save_LIBS
8320 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8321 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8322 ac_res=$ac_cv_search_opendir
8323 if test "$ac_res" != no; then
8324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8331 for ac_header in dlfcn.h
8333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 ac_res=`eval echo '${'$as_ac_Header'}'`
8341 { echo "$as_me:$LINENO: result: $ac_res" >&5
8342 echo "${ECHO_T}$ac_res" >&6; }
8344 # Is the header compilable?
8345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8347 cat >conftest.$ac_ext <<_ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 $ac_includes_default
8354 #include <$ac_header>
8356 rm -f conftest.$ac_objext
8357 if { (ac_try="$ac_compile"
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_compile") 2>conftest.er1
8365 grep -v '^ *+' conftest.er1 >conftest.err
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
8370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8371 { (case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_try") 2>&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; } &&
8380 { ac_try='test -s conftest.$ac_objext'
8381 { (case "(($ac_try" in
8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_try") 2>&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 ac_header_compiler=yes
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8395 ac_header_compiler=no
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8400 echo "${ECHO_T}$ac_header_compiler" >&6; }
8402 # Is the header present?
8403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8405 cat >conftest.$ac_ext <<_ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 #include <$ac_header>
8413 if { (ac_try="$ac_cpp conftest.$ac_ext"
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8421 grep -v '^ *+' conftest.er1 >conftest.err
8423 cat conftest.err >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } >/dev/null; then
8426 if test -s conftest.err; then
8427 ac_cpp_err=$ac_c_preproc_warn_flag
8428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8435 if test -z "$ac_cpp_err"; then
8436 ac_header_preproc=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_header_preproc=no
8444 rm -f conftest.err conftest.$ac_ext
8445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8446 echo "${ECHO_T}$ac_header_preproc" >&6; }
8448 # So? What about this header?
8449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8455 ac_header_preproc=yes
8458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8471 ## ----------------------------------- ##
8472 ## Report this to llvmbugs@cs.uiuc.edu ##
8473 ## ----------------------------------- ##
8475 ) | sed "s/^/$as_me: WARNING: /" >&2
8478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 eval "$as_ac_Header=\$ac_header_preproc"
8485 ac_res=`eval echo '${'$as_ac_Header'}'`
8486 { echo "$as_me:$LINENO: result: $ac_res" >&5
8487 echo "${ECHO_T}$ac_res" >&6; }
8490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8491 cat >>confdefs.h <<_ACEOF
8492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8499 # Check whether --enable-ltdl-install was given.
8500 if test "${enable_ltdl_install+set}" = set; then
8501 enableval=$enable_ltdl_install;
8507 if test x"${enable_ltdl_install-no}" != xno; then
8509 INSTALL_LTDL_FALSE='#'
8511 INSTALL_LTDL_TRUE='#'
8517 if test x"${enable_ltdl_convenience-no}" != xno; then
8518 CONVENIENCE_LTDL_TRUE=
8519 CONVENIENCE_LTDL_FALSE='#'
8521 CONVENIENCE_LTDL_TRUE='#'
8522 CONVENIENCE_LTDL_FALSE=
8526 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8527 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8529 libname_spec='lib$name'
8537 shlibpath_overrides_runpath=unknown
8539 dynamic_linker="$host_os ld.so"
8540 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8541 if test "$GCC" = yes; then
8542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8543 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8544 # if the path contains ";" then we assume it to be the separator
8545 # otherwise default to the standard path separator (i.e. ":") - it is
8546 # assumed that no part of a normal pathname contains ";" but that should
8547 # okay in the real world where ";" in dirpaths is itself problematic.
8548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8553 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8555 need_lib_prefix=unknown
8556 hardcode_into_libs=no
8558 # when you set need_version to no, make sure it does not cause -set_version
8559 # flags to be left without arguments
8560 need_version=unknown
8565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8566 shlibpath_var=LIBPATH
8568 # AIX 3 has no versioning support, so we append a major version to the name.
8569 soname_spec='${libname}${release}${shared_ext}$major'
8576 hardcode_into_libs=yes
8577 if test "$host_cpu" = ia64; then
8578 # AIX 5 supports IA64
8579 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8580 shlibpath_var=LD_LIBRARY_PATH
8582 # With GCC up to 2.95.x, collect2 would create an import file
8583 # for dependence libraries. The import file would start with
8584 # the line `#! .'. This would cause the generated library to
8585 # depend on `.', always an invalid library. This was fixed in
8586 # development snapshots of GCC prior to 3.0.
8588 aix4 | aix4.[01] | aix4.[01].*)
8589 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8591 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8598 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8599 # soname into executable. Probably we can add versioning support to
8600 # collect2, so additional links can be useful in future.
8601 if test "$aix_use_runtimelinking" = yes; then
8602 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8603 # instead of lib<name>.a to let people know that these are not
8604 # typical AIX shared libraries.
8605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8607 # We preserve .a as extension for shared libraries through AIX4.2
8608 # and later when we are not doing run time linking.
8609 library_names_spec='${libname}${release}.a $libname.a'
8610 soname_spec='${libname}${release}${shared_ext}$major'
8612 shlibpath_var=LIBPATH
8617 library_names_spec='$libname.ixlibrary $libname.a'
8618 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8619 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'
8623 library_names_spec='${libname}${shared_ext}'
8624 dynamic_linker="$host_os ld.so"
8625 shlibpath_var=LIBRARY_PATH
8631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8632 soname_spec='${libname}${release}${shared_ext}$major'
8633 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8634 shlibpath_var=LD_LIBRARY_PATH
8635 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8636 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8637 # the default ld.so.conf also contains /usr/contrib/lib and
8638 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8639 # libtool to hard-code these into programs
8642 cygwin* | mingw* | pw32*)
8643 version_type=windows
8648 case $GCC,$host_os in
8649 yes,cygwin* | yes,mingw* | yes,pw32*)
8650 library_names_spec='$libname.dll.a'
8651 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8652 postinstall_cmds='base_file=`basename \${file}`~
8653 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8654 dldir=$destdir/`dirname \$dlpath`~
8655 test -d \$dldir || mkdir -p \$dldir~
8656 $install_prog $dir/$dlname \$dldir/$dlname~
8657 chmod a+x \$dldir/$dlname'
8658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8659 dlpath=$dir/\$dldll~
8661 shlibpath_overrides_runpath=yes
8665 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8666 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8667 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8670 # MinGW DLLs use traditional 'lib' prefix
8671 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8672 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8673 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8674 # It is most probably a Windows format PATH printed by
8675 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8676 # path with ; separators, and with drive letters. We can handle the
8677 # drive letters (cygwin fileutils understands them), so leave them,
8678 # especially as we might pass files found there to a mingw objdump,
8679 # which wouldn't understand a cygwinified path. Ahh.
8680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8686 # pw32 DLLs use 'pw' prefix rather than 'lib'
8687 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8693 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8696 dynamic_linker='Win32 ld.exe'
8697 # FIXME: first we should search . and the directory the executable is in
8701 darwin* | rhapsody*)
8702 dynamic_linker="$host_os dyld"
8706 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8707 soname_spec='${libname}${release}${major}$shared_ext'
8708 shlibpath_overrides_runpath=yes
8709 shlibpath_var=DYLD_LIBRARY_PATH
8710 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8711 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8712 if test "$GCC" = yes; then
8713 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"`
8715 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8717 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8725 soname_spec='${libname}${release}${shared_ext}$major'
8726 shlibpath_var=LD_LIBRARY_PATH
8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8738 soname_spec='${libname}${release}${shared_ext}$major'
8739 shlibpath_var=LD_LIBRARY_PATH
8740 shlibpath_overrides_runpath=no
8741 hardcode_into_libs=yes
8742 dynamic_linker='GNU ld.so'
8745 freebsd* | dragonfly*)
8746 # DragonFly does not have aout. When/if they implement a new
8747 # versioning mechanism, adjust this.
8748 if test -x /usr/bin/objformat; then
8749 objformat=`/usr/bin/objformat`
8752 freebsd[123]*) objformat=aout ;;
8756 version_type=freebsd-$objformat
8757 case $version_type in
8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8768 shlibpath_var=LD_LIBRARY_PATH
8771 shlibpath_overrides_runpath=yes
8773 freebsd3.[01]* | freebsdelf3.[01]*)
8774 shlibpath_overrides_runpath=yes
8775 hardcode_into_libs=yes
8777 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8778 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8779 shlibpath_overrides_runpath=no
8780 hardcode_into_libs=yes
8782 freebsd*) # from 4.6 on
8783 shlibpath_overrides_runpath=yes
8784 hardcode_into_libs=yes
8793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8794 soname_spec='${libname}${release}${shared_ext}$major'
8795 shlibpath_var=LD_LIBRARY_PATH
8796 hardcode_into_libs=yes
8799 hpux9* | hpux10* | hpux11*)
8800 # Give a soname corresponding to the major version so that dld.sl refuses to
8801 # link against other versions.
8808 hardcode_into_libs=yes
8809 dynamic_linker="$host_os dld.so"
8810 shlibpath_var=LD_LIBRARY_PATH
8811 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 if test "X$HPUX_IA64_MODE" = X32; then
8815 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8817 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8823 hardcode_into_libs=yes
8824 dynamic_linker="$host_os dld.sl"
8825 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8834 dynamic_linker="$host_os dld.sl"
8835 shlibpath_var=SHLIB_PATH
8836 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8841 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8842 postinstall_cmds='chmod 555 $lib'
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8850 soname_spec='${libname}${release}${shared_ext}$major'
8851 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8852 shlibpath_var=LD_LIBRARY_PATH
8853 shlibpath_overrides_runpath=no
8854 hardcode_into_libs=yes
8857 irix5* | irix6* | nonstopux*)
8859 nonstopux*) version_type=nonstopux ;;
8861 if test "$lt_cv_prog_gnu_ld" = yes; then
8869 soname_spec='${libname}${release}${shared_ext}$major'
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8872 irix5* | nonstopux*)
8876 case $LD in # libtool.m4 will add one of these switches to LD
8877 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8878 libsuff= shlibsuff= libmagic=32-bit;;
8879 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8880 libsuff=32 shlibsuff=N32 libmagic=N32;;
8881 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8882 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8883 *) libsuff= shlibsuff= libmagic=never-match;;
8887 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8888 shlibpath_overrides_runpath=no
8889 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8890 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8891 hardcode_into_libs=yes
8894 # No shared lib support for Linux oldld, aout, or coff.
8895 linux*oldld* | linux*aout* | linux*coff*)
8899 # This must be Linux ELF.
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 shlibpath_overrides_runpath=no
8909 # This implies no fast_install, which is unacceptable.
8910 # Some rework will be needed to allow for fast_install
8911 # before this can be enabled.
8912 hardcode_into_libs=yes
8914 # Append ld.so.conf contents to the search path
8915 if test -f /etc/ld.so.conf; then
8916 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' ' '`
8917 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8920 # We used to test for /lib/ld.so.1 and disable shared libraries on
8921 # powerpc, because MkLinux only supported shared libraries with the
8922 # GNU dynamic linker. Since this was broken with cross compilers,
8923 # most powerpc-linux boxes support dynamic linking these days and
8924 # people can always --disable-shared, the test was removed, and we
8925 # assume the GNU/Linux dynamic linker is in use.
8926 dynamic_linker='GNU/Linux ld.so'
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 shlibpath_var=LD_LIBRARY_PATH
8936 shlibpath_overrides_runpath=no
8937 hardcode_into_libs=yes
8938 dynamic_linker='GNU ld.so'
8945 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8948 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
8954 shlibpath_var=LD_LIBRARY_PATH
8955 shlibpath_overrides_runpath=yes
8956 hardcode_into_libs=yes
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 shlibpath_overrides_runpath=yes
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 shlibpath_overrides_runpath=yes
8978 sys_lib_dlsearch_path_spec="/usr/lib"
8980 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8982 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8983 *) need_version=no ;;
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8990 openbsd2.[89] | openbsd2.[89].*)
8991 shlibpath_overrides_runpath=no
8994 shlibpath_overrides_runpath=yes
8998 shlibpath_overrides_runpath=yes
9003 libname_spec='$name'
9006 library_names_spec='$libname${shared_ext} $libname.a'
9007 dynamic_linker='OS/2 ld.exe'
9008 shlibpath_var=LIBPATH
9011 osf3* | osf4* | osf5*)
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 shlibpath_var=LD_LIBRARY_PATH
9018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=yes
9030 hardcode_into_libs=yes
9031 # ldd complains unless libraries are executable
9032 postinstall_cmds='chmod +x $lib'
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9041 if test "$with_gnu_ld" = yes; then
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050 soname_spec='${libname}${release}${shared_ext}$major'
9051 shlibpath_var=LD_LIBRARY_PATH
9052 case $host_vendor in
9054 shlibpath_overrides_runpath=no
9056 export_dynamic_flag_spec='${wl}-Blargedynsym'
9057 runpath_var=LD_RUN_PATH
9065 shlibpath_overrides_runpath=no
9066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9072 if test -d /usr/nec ;then
9074 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9075 soname_spec='$libname${shared_ext}.$major'
9076 shlibpath_var=LD_LIBRARY_PATH
9080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9081 version_type=freebsd-elf
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 hardcode_into_libs=yes
9088 if test "$with_gnu_ld" = yes; then
9089 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9090 shlibpath_overrides_runpath=no
9092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9093 shlibpath_overrides_runpath=yes
9096 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9100 sys_lib_dlsearch_path_spec='/usr/lib'
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 shlibpath_var=LD_LIBRARY_PATH
9114 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9115 echo "${ECHO_T}$dynamic_linker" >&6; }
9116 test "$dynamic_linker" = no && can_build_shared=no
9118 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9119 if test "$GCC" = yes; then
9120 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9124 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9125 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9126 if test "${libltdl_cv_shlibext+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 eval libltdl_cv_shlibext=$shrext_cmds
9134 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9135 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9136 if test -n "$libltdl_cv_shlibext"; then
9138 cat >>confdefs.h <<_ACEOF
9139 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9145 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9146 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9147 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 libltdl_cv_shlibpath_var="$shlibpath_var"
9152 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9153 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9154 if test -n "$libltdl_cv_shlibpath_var"; then
9156 cat >>confdefs.h <<_ACEOF
9157 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9163 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9164 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9165 if test "${libltdl_cv_sys_search_path+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9170 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9171 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9172 if test -n "$libltdl_cv_sys_search_path"; then
9174 for dir in $libltdl_cv_sys_search_path; do
9175 if test -z "$sys_search_path"; then
9176 sys_search_path="$dir"
9178 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9182 cat >>confdefs.h <<_ACEOF
9183 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9188 { echo "$as_me:$LINENO: checking for objdir" >&5
9189 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9190 if test "${libltdl_cv_objdir+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 libltdl_cv_objdir="$objdir"
9194 if test -n "$objdir"; then
9197 rm -f .libs 2>/dev/null
9198 mkdir .libs 2>/dev/null
9199 if test -d .libs; then
9200 libltdl_cv_objdir=.libs
9202 # MS-DOS does not allow filenames that begin with a dot.
9203 libltdl_cv_objdir=_libs
9205 rmdir .libs 2>/dev/null
9209 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9210 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9212 cat >>confdefs.h <<_ACEOF
9213 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9221 # Check for command to grab the raw symbol name followed by C symbol from nm.
9222 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9223 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9224 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 # These are sane defaults that work on at least a few old systems.
9229 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9231 # Character class describing NM global symbol codes.
9232 symcode='[BCDEGRST]'
9234 # Regexp to match symbols that can be accessed directly from C.
9235 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9237 # Transform an extracted symbol line into a proper C declaration
9238 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9240 # Transform an extracted symbol line into symbol name and symbol address
9241 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'"
9243 # Define system-specific variables.
9248 cygwin* | mingw* | pw32*)
9249 symcode='[ABCDGISTW]'
9251 hpux*) # Its linker distinguishes data from code symbols
9252 if test "$host_cpu" = ia64; then
9253 symcode='[ABCDEGRST]'
9255 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9256 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'"
9259 if test "$host_cpu" = ia64; then
9260 symcode='[ABCDGIRSTW]'
9261 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9262 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'"
9266 symcode='[BCDEGRST]'
9269 symcode='[BCDEGQRST]'
9280 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9288 # Handle CRLF in mingw tool chain
9292 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9296 # If we're using GNU nm, then use its standard symbol codes.
9297 case `$NM -V 2>&1` in
9298 *GNU* | *'with BFD'*)
9299 symcode='[ABCDGIRSTW]' ;;
9302 # Try without a prefix undercore, then with it.
9303 for ac_symprfx in "" "_"; do
9305 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9306 symxfrm="\\1 $ac_symprfx\\2 \\2"
9308 # Write the raw and C identifiers.
9309 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9311 # Check to see that the pipe works correctly.
9315 cat > conftest.$ac_ext <<EOF
9320 void nm_test_func(){}
9324 int main(){nm_test_var='a';nm_test_func();return(0);}
9327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9328 (eval $ac_compile) 2>&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; then
9332 # Now try to grab the symbols.
9334 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9335 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } && test -s "$nlist"; then
9339 # Try sorting and uniquifying the output.
9340 if sort "$nlist" | uniq > "$nlist"T; then
9341 mv -f "$nlist"T "$nlist"
9346 # Make sure that we snagged all the symbols we need.
9347 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9348 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9349 cat <<EOF > conftest.$ac_ext
9355 # Now generate the symbol file.
9356 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9358 cat <<EOF >> conftest.$ac_ext
9359 #if defined (__STDC__) && __STDC__
9360 # define lt_ptr_t void *
9362 # define lt_ptr_t char *
9366 /* The mapping between symbol names and symbols. */
9371 lt_preloaded_symbols[] =
9374 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9375 cat <<\EOF >> conftest.$ac_ext
9383 # Now try linking the two files.
9384 mv conftest.$ac_objext conftstm.$ac_objext
9385 lt_save_LIBS="$LIBS"
9386 lt_save_CFLAGS="$CFLAGS"
9387 LIBS="conftstm.$ac_objext"
9388 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390 (eval $ac_link) 2>&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9396 LIBS="$lt_save_LIBS"
9397 CFLAGS="$lt_save_CFLAGS"
9399 echo "cannot find nm_test_func in $nlist" >&5
9402 echo "cannot find nm_test_var in $nlist" >&5
9405 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9408 echo "$progname: failed program was:" >&5
9409 cat conftest.$ac_ext >&5
9411 rm -f conftest* conftst*
9413 # Do not use the global_symbol_pipe unless it works.
9414 if test "$pipe_works" = yes; then
9417 lt_cv_sys_global_symbol_pipe=
9423 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9424 lt_cv_sys_global_symbol_to_cdecl=
9426 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9427 { echo "$as_me:$LINENO: result: failed" >&5
9428 echo "${ECHO_T}failed" >&6; }
9430 { echo "$as_me:$LINENO: result: ok" >&5
9431 echo "${ECHO_T}ok" >&6; }
9435 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9436 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9437 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9441 libltdl_cv_preloaded_symbols=yes
9443 libltdl_cv_preloaded_symbols=no
9447 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9448 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9449 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9451 cat >>confdefs.h <<\_ACEOF
9452 #define HAVE_PRELOADED_SYMBOLS 1
9460 ac_cpp='$CPP $CPPFLAGS'
9461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9466 { echo "$as_me:$LINENO: checking for shl_load" >&5
9467 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9468 if test "${ac_cv_func_shl_load+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 cat >conftest.$ac_ext <<_ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9477 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9479 #define shl_load innocuous_shl_load
9481 /* System header to define __stub macros and hopefully few prototypes,
9482 which can conflict with char shl_load (); below.
9483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9484 <limits.h> exists even on freestanding compilers. */
9487 # include <limits.h>
9489 # include <assert.h>
9494 /* Override any GCC internal prototype to avoid an error.
9495 Use char because int might match the return type of a GCC
9496 builtin and then its argument prototype would still apply. */
9501 /* The GNU C library defines this for functions which it implements
9502 to always fail with ENOSYS. Some functions are actually named
9503 something starting with __ and the normal name is an alias. */
9504 #if defined __stub_shl_load || defined __stub___shl_load
9516 rm -f conftest.$ac_objext conftest$ac_exeext
9517 if { (ac_try="$ac_link"
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_link") 2>conftest.er1
9525 grep -v '^ *+' conftest.er1 >conftest.err
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } &&
9530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9531 { (case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_try") 2>&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; } &&
9540 { ac_try='test -s conftest$ac_exeext'
9541 { (case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_try") 2>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; }; then
9550 ac_cv_func_shl_load=yes
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 ac_cv_func_shl_load=no
9558 rm -f core conftest.err conftest.$ac_objext \
9559 conftest$ac_exeext conftest.$ac_ext
9561 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9562 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9563 if test $ac_cv_func_shl_load = yes; then
9565 cat >>confdefs.h <<\_ACEOF
9566 #define HAVE_SHL_LOAD 1
9570 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9571 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9572 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 ac_check_lib_save_LIBS=$LIBS
9577 cat >conftest.$ac_ext <<_ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9584 /* Override any GCC internal prototype to avoid an error.
9585 Use char because int might match the return type of a GCC
9586 builtin and then its argument prototype would still apply. */
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (ac_try="$ac_link"
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_link") 2>conftest.er1
9608 grep -v '^ *+' conftest.er1 >conftest.err
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9614 { (case "(($ac_try" in
9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_try") 2>&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; } &&
9623 { ac_try='test -s conftest$ac_exeext'
9624 { (case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_try") 2>&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_lib_dld_shl_load=yes
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 ac_cv_lib_dld_shl_load=no
9641 rm -f core conftest.err conftest.$ac_objext \
9642 conftest$ac_exeext conftest.$ac_ext
9643 LIBS=$ac_check_lib_save_LIBS
9645 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9646 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9647 if test $ac_cv_lib_dld_shl_load = yes; then
9649 cat >>confdefs.h <<\_ACEOF
9650 #define HAVE_SHL_LOAD 1
9653 LIBADD_DL="$LIBADD_DL -ldld"
9655 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9656 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 ac_check_lib_save_LIBS=$LIBS
9662 cat >conftest.$ac_ext <<_ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_link") 2>conftest.er1
9693 grep -v '^ *+' conftest.er1 >conftest.err
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9699 { (case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704 (eval "$ac_try") 2>&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_try") 2>&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_lib_dl_dlopen=yes
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9723 ac_cv_lib_dl_dlopen=no
9726 rm -f core conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9730 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9731 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9732 if test $ac_cv_lib_dl_dlopen = yes; then
9734 cat >>confdefs.h <<\_ACEOF
9735 #define HAVE_LIBDL 1
9738 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9740 cat >conftest.$ac_ext <<_ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9758 rm -f conftest.$ac_objext conftest$ac_exeext
9759 if { (ac_try="$ac_link"
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_link") 2>conftest.er1
9767 grep -v '^ *+' conftest.er1 >conftest.err
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } &&
9772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9773 { (case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_try") 2>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; } &&
9782 { ac_try='test -s conftest$ac_exeext'
9783 { (case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_try") 2>&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9793 cat >>confdefs.h <<\_ACEOF
9794 #define HAVE_LIBDL 1
9796 libltdl_cv_func_dlopen="yes"
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9801 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9802 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9803 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 ac_check_lib_save_LIBS=$LIBS
9808 cat >conftest.$ac_ext <<_ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9815 /* Override any GCC internal prototype to avoid an error.
9816 Use char because int might match the return type of a GCC
9817 builtin and then its argument prototype would still apply. */
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_link") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; } &&
9854 { ac_try='test -s conftest$ac_exeext'
9855 { (case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_try") 2>&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_lib_svld_dlopen=yes
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9869 ac_cv_lib_svld_dlopen=no
9872 rm -f core conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 LIBS=$ac_check_lib_save_LIBS
9876 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9877 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9878 if test $ac_cv_lib_svld_dlopen = yes; then
9880 cat >>confdefs.h <<\_ACEOF
9881 #define HAVE_LIBDL 1
9884 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9886 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9887 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9888 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 ac_check_lib_save_LIBS=$LIBS
9893 cat >conftest.$ac_ext <<_ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9900 /* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
9924 grep -v '^ *+' conftest.er1 >conftest.err
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9930 { (case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_try") 2>&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try='test -s conftest$ac_exeext'
9940 { (case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_try") 2>&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_lib_dld_dld_link=yes
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_cv_lib_dld_dld_link=no
9957 rm -f core conftest.err conftest.$ac_objext \
9958 conftest$ac_exeext conftest.$ac_ext
9959 LIBS=$ac_check_lib_save_LIBS
9961 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9962 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9963 if test $ac_cv_lib_dld_dld_link = yes; then
9965 cat >>confdefs.h <<\_ACEOF
9969 LIBADD_DL="$LIBADD_DL -ldld"
9971 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9972 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9973 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9984 #define _dyld_func_lookup innocuous__dyld_func_lookup
9986 /* System header to define __stub macros and hopefully few prototypes,
9987 which can conflict with char _dyld_func_lookup (); below.
9988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9989 <limits.h> exists even on freestanding compilers. */
9992 # include <limits.h>
9994 # include <assert.h>
9997 #undef _dyld_func_lookup
9999 /* Override any GCC internal prototype to avoid an error.
10000 Use char because int might match the return type of a GCC
10001 builtin and then its argument prototype would still apply. */
10005 char _dyld_func_lookup ();
10006 /* The GNU C library defines this for functions which it implements
10007 to always fail with ENOSYS. Some functions are actually named
10008 something starting with __ and the normal name is an alias. */
10009 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10016 return _dyld_func_lookup ();
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (ac_try="$ac_link"
10023 case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_link") 2>conftest.er1
10030 grep -v '^ *+' conftest.er1 >conftest.err
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10036 { (case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_try") 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest$ac_exeext'
10046 { (case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_try") 2>&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_cv_func__dyld_func_lookup=yes
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10060 ac_cv_func__dyld_func_lookup=no
10063 rm -f core conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10066 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10067 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10068 if test $ac_cv_func__dyld_func_lookup = yes; then
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_DYLD 1
10085 rm -f core conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10097 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10099 lt_save_LIBS="$LIBS"
10100 LIBS="$LIBS $LIBADD_DL"
10102 for ac_func in dlerror
10104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10118 #define $ac_func innocuous_$ac_func
10120 /* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char $ac_func (); below.
10122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123 <limits.h> exists even on freestanding compilers. */
10126 # include <limits.h>
10128 # include <assert.h>
10133 /* Override any GCC internal prototype to avoid an error.
10134 Use char because int might match the return type of a GCC
10135 builtin and then its argument prototype would still apply. */
10140 /* The GNU C library defines this for functions which it implements
10141 to always fail with ENOSYS. Some functions are actually named
10142 something starting with __ and the normal name is an alias. */
10143 #if defined __stub_$ac_func || defined __stub___$ac_func
10150 return $ac_func ();
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_link") 2>conftest.er1
10164 grep -v '^ *+' conftest.er1 >conftest.err
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; } &&
10179 { ac_try='test -s conftest$ac_exeext'
10180 { (case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_try") 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 eval "$as_ac_var=yes"
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 eval "$as_ac_var=no"
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10200 ac_res=`eval echo '${'$as_ac_var'}'`
10201 { echo "$as_me:$LINENO: result: $ac_res" >&5
10202 echo "${ECHO_T}$ac_res" >&6; }
10203 if test `eval echo '${'$as_ac_var'}'` = yes; then
10204 cat >>confdefs.h <<_ACEOF
10205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10211 LIBS="$lt_save_LIBS"
10214 ac_cpp='$CPP $CPPFLAGS'
10215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10221 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10222 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10223 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 ac_cv_sys_symbol_underscore=no
10227 cat > conftest.$ac_ext <<EOF
10228 void nm_test_func(){}
10229 int main(){nm_test_func;return 0;}
10231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 (eval $ac_compile) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; then
10236 # Now try to grab the symbols.
10237 ac_nlist=conftest.nm
10238 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10239 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } && test -s "$ac_nlist"; then
10243 # See whether the symbols have a leading underscore.
10244 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10245 ac_cv_sys_symbol_underscore=yes
10247 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10250 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10254 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10257 echo "configure: failed program was:" >&5
10263 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10264 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10267 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10268 if test x"$libltdl_cv_func_dlopen" = xyes ||
10269 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10270 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10271 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10272 if test "${libltdl_cv_need_uscore+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 libltdl_cv_need_uscore=unknown
10277 LIBS="$LIBS $LIBADD_DL"
10278 if test "$cross_compiling" = yes; then :
10279 libltdl_cv_need_uscore=cross
10281 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10282 lt_status=$lt_dlunknown
10283 cat > conftest.$ac_ext <<EOF
10284 #line 10284 "configure"
10285 #include "confdefs.h"
10294 # define LT_DLGLOBAL RTLD_GLOBAL
10297 # define LT_DLGLOBAL DL_GLOBAL
10299 # define LT_DLGLOBAL 0
10303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10304 find out it does not work in some platform. */
10305 #ifndef LT_DLLAZY_OR_NOW
10307 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10310 # define LT_DLLAZY_OR_NOW DL_LAZY
10313 # define LT_DLLAZY_OR_NOW RTLD_NOW
10316 # define LT_DLLAZY_OR_NOW DL_NOW
10318 # define LT_DLLAZY_OR_NOW 0
10326 extern "C" void exit (int);
10329 void fnord() { int i=42;}
10332 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10333 int status = $lt_dlunknown;
10337 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10338 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10339 /* dlclose (self); */
10347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348 (eval $ac_link) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10352 (./conftest; exit; ) >&5 2>/dev/null
10354 case x$lt_status in
10355 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10356 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10357 x$lt_dlunknown|x*) ;;
10360 # compilation failed
10369 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10370 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10374 if test x"$libltdl_cv_need_uscore" = xyes; then
10376 cat >>confdefs.h <<\_ACEOF
10377 #define NEED_USCORE 1
10383 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10384 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10385 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 # PORTME does your system automatically load deplibs for dlopen?
10389 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10390 # For now, we just catch OSes we know something about -- in the
10391 # future, we'll try test this programmatically.
10392 libltdl_cv_sys_dlopen_deplibs=unknown
10394 aix3*|aix4.1.*|aix4.2.*)
10395 # Unknown whether this is true for these versions of AIX, but
10396 # we want this `case' here to explicitly catch those versions.
10397 libltdl_cv_sys_dlopen_deplibs=unknown
10400 libltdl_cv_sys_dlopen_deplibs=yes
10403 # Assuming the user has installed a libdl from somewhere, this is true
10404 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10405 libltdl_cv_sys_dlopen_deplibs=yes
10407 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10408 # GNU and its variants, using gnu ld.so (Glibc)
10409 libltdl_cv_sys_dlopen_deplibs=yes
10412 libltdl_cv_sys_dlopen_deplibs=yes
10415 libltdl_cv_sys_dlopen_deplibs=yes
10417 irix[12345]*|irix6.[01]*)
10418 # Catch all versions of IRIX before 6.2, and indicate that we don't
10419 # know how it worked for any of those versions.
10420 libltdl_cv_sys_dlopen_deplibs=unknown
10423 # The case above catches anything before 6.2, and it's known that
10424 # at 6.2 and later dlopen does load deplibs.
10425 libltdl_cv_sys_dlopen_deplibs=yes
10428 libltdl_cv_sys_dlopen_deplibs=yes
10431 libltdl_cv_sys_dlopen_deplibs=yes
10434 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10435 # it did *not* use an RPATH in a shared library to find objects the
10436 # library depends on, so we explictly say `no'.
10437 libltdl_cv_sys_dlopen_deplibs=no
10439 osf5.0|osf5.0a|osf5.1)
10440 # dlopen *does* load deplibs and with the right loader patch applied
10441 # it even uses RPATH in a shared library to search for shared objects
10442 # that the library depends on, but there's no easy way to know if that
10443 # patch is installed. Since this is the case, all we can really
10444 # say is unknown -- it depends on the patch being installed. If
10445 # it is, this changes to `yes'. Without it, it would be `no'.
10446 libltdl_cv_sys_dlopen_deplibs=unknown
10449 # the two cases above should catch all versions of osf <= 5.1. Read
10450 # the comments above for what we know about them.
10451 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10452 # is used to find them so we can finally say `yes'.
10453 libltdl_cv_sys_dlopen_deplibs=yes
10456 libltdl_cv_sys_dlopen_deplibs=yes
10458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10459 libltdl_cv_sys_dlopen_deplibs=yes
10464 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10465 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10466 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10468 cat >>confdefs.h <<\_ACEOF
10469 #define LTDL_DLOPEN_DEPLIBS 1
10475 for ac_header in argz.h
10477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 ac_res=`eval echo '${'$as_ac_Header'}'`
10485 { echo "$as_me:$LINENO: result: $ac_res" >&5
10486 echo "${ECHO_T}$ac_res" >&6; }
10488 # Is the header compilable?
10489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10491 cat >conftest.$ac_ext <<_ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 $ac_includes_default
10498 #include <$ac_header>
10500 rm -f conftest.$ac_objext
10501 if { (ac_try="$ac_compile"
10502 case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_compile") 2>conftest.er1
10509 grep -v '^ *+' conftest.er1 >conftest.err
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } &&
10514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10515 { (case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_try") 2>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; } &&
10524 { ac_try='test -s conftest.$ac_objext'
10525 { (case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_try") 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10534 ac_header_compiler=yes
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 ac_header_compiler=no
10542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10544 echo "${ECHO_T}$ac_header_compiler" >&6; }
10546 # Is the header present?
10547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10549 cat >conftest.$ac_ext <<_ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 #include <$ac_header>
10557 if { (ac_try="$ac_cpp conftest.$ac_ext"
10558 case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10565 grep -v '^ *+' conftest.er1 >conftest.err
10567 cat conftest.err >&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } >/dev/null; then
10570 if test -s conftest.err; then
10571 ac_cpp_err=$ac_c_preproc_warn_flag
10572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10579 if test -z "$ac_cpp_err"; then
10580 ac_header_preproc=yes
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 ac_header_preproc=no
10588 rm -f conftest.err conftest.$ac_ext
10589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10590 echo "${ECHO_T}$ac_header_preproc" >&6; }
10592 # So? What about this header?
10593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10599 ac_header_preproc=yes
10602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10615 ## ----------------------------------- ##
10616 ## Report this to llvmbugs@cs.uiuc.edu ##
10617 ## ----------------------------------- ##
10619 ) | sed "s/^/$as_me: WARNING: /" >&2
10622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 eval "$as_ac_Header=\$ac_header_preproc"
10629 ac_res=`eval echo '${'$as_ac_Header'}'`
10630 { echo "$as_me:$LINENO: result: $ac_res" >&5
10631 echo "${ECHO_T}$ac_res" >&6; }
10634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10635 cat >>confdefs.h <<_ACEOF
10636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10644 { echo "$as_me:$LINENO: checking for error_t" >&5
10645 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10646 if test "${ac_cv_type_error_t+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 cat >conftest.$ac_ext <<_ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10659 typedef error_t ac__type_new_;
10663 if ((ac__type_new_ *) 0)
10665 if (sizeof (ac__type_new_))
10671 rm -f conftest.$ac_objext
10672 if { (ac_try="$ac_compile"
10673 case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_compile") 2>conftest.er1
10680 grep -v '^ *+' conftest.er1 >conftest.err
10682 cat conftest.err >&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
10685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10686 { (case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_try") 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; } &&
10695 { ac_try='test -s conftest.$ac_objext'
10696 { (case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_try") 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_cv_type_error_t=yes
10707 echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10710 ac_cv_type_error_t=no
10713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10716 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10717 if test $ac_cv_type_error_t = yes; then
10719 cat >>confdefs.h <<_ACEOF
10720 #define HAVE_ERROR_T 1
10726 cat >>confdefs.h <<\_ACEOF
10727 #define error_t int
10738 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 cat >conftest.$ac_ext <<_ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10754 #define $ac_func innocuous_$ac_func
10756 /* System header to define __stub macros and hopefully few prototypes,
10757 which can conflict with char $ac_func (); below.
10758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10759 <limits.h> exists even on freestanding compilers. */
10762 # include <limits.h>
10764 # include <assert.h>
10769 /* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
10776 /* The GNU C library defines this for functions which it implements
10777 to always fail with ENOSYS. Some functions are actually named
10778 something starting with __ and the normal name is an alias. */
10779 #if defined __stub_$ac_func || defined __stub___$ac_func
10786 return $ac_func ();
10791 rm -f conftest.$ac_objext conftest$ac_exeext
10792 if { (ac_try="$ac_link"
10793 case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_link") 2>conftest.er1
10800 grep -v '^ *+' conftest.er1 >conftest.err
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10806 { (case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_try") 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; } &&
10815 { ac_try='test -s conftest$ac_exeext'
10816 { (case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_try") 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 eval "$as_ac_var=yes"
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 eval "$as_ac_var=no"
10833 rm -f core conftest.err conftest.$ac_objext \
10834 conftest$ac_exeext conftest.$ac_ext
10836 ac_res=`eval echo '${'$as_ac_var'}'`
10837 { echo "$as_me:$LINENO: result: $ac_res" >&5
10838 echo "${ECHO_T}$ac_res" >&6; }
10839 if test `eval echo '${'$as_ac_var'}'` = yes; then
10840 cat >>confdefs.h <<_ACEOF
10841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10874 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 ac_res=`eval echo '${'$as_ac_Header'}'`
10885 { echo "$as_me:$LINENO: result: $ac_res" >&5
10886 echo "${ECHO_T}$ac_res" >&6; }
10888 # Is the header compilable?
10889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10891 cat >conftest.$ac_ext <<_ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 $ac_includes_default
10898 #include <$ac_header>
10900 rm -f conftest.$ac_objext
10901 if { (ac_try="$ac_compile"
10902 case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_compile") 2>conftest.er1
10909 grep -v '^ *+' conftest.er1 >conftest.err
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } &&
10914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10915 { (case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_try") 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; } &&
10924 { ac_try='test -s conftest.$ac_objext'
10925 { (case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930 (eval "$ac_try") 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 ac_header_compiler=yes
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 ac_header_compiler=no
10942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10944 echo "${ECHO_T}$ac_header_compiler" >&6; }
10946 # Is the header present?
10947 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10949 cat >conftest.$ac_ext <<_ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955 #include <$ac_header>
10957 if { (ac_try="$ac_cpp conftest.$ac_ext"
10958 case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10965 grep -v '^ *+' conftest.er1 >conftest.err
10967 cat conftest.err >&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } >/dev/null; then
10970 if test -s conftest.err; then
10971 ac_cpp_err=$ac_c_preproc_warn_flag
10972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10979 if test -z "$ac_cpp_err"; then
10980 ac_header_preproc=yes
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10985 ac_header_preproc=no
10988 rm -f conftest.err conftest.$ac_ext
10989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10990 echo "${ECHO_T}$ac_header_preproc" >&6; }
10992 # So? What about this header?
10993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10999 ac_header_preproc=yes
11002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11009 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11015 ## ----------------------------------- ##
11016 ## Report this to llvmbugs@cs.uiuc.edu ##
11017 ## ----------------------------------- ##
11019 ) | sed "s/^/$as_me: WARNING: /" >&2
11022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 eval "$as_ac_Header=\$ac_header_preproc"
11029 ac_res=`eval echo '${'$as_ac_Header'}'`
11030 { echo "$as_me:$LINENO: result: $ac_res" >&5
11031 echo "${ECHO_T}$ac_res" >&6; }
11034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11035 cat >>confdefs.h <<_ACEOF
11036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11047 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 ac_res=`eval echo '${'$as_ac_Header'}'`
11057 { echo "$as_me:$LINENO: result: $ac_res" >&5
11058 echo "${ECHO_T}$ac_res" >&6; }
11060 # Is the header compilable?
11061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11063 cat >conftest.$ac_ext <<_ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 $ac_includes_default
11070 #include <$ac_header>
11072 rm -f conftest.$ac_objext
11073 if { (ac_try="$ac_compile"
11074 case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_compile") 2>conftest.er1
11081 grep -v '^ *+' conftest.er1 >conftest.err
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } &&
11086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11087 { (case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_try") 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; } &&
11096 { ac_try='test -s conftest.$ac_objext'
11097 { (case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_try") 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 ac_header_compiler=yes
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11111 ac_header_compiler=no
11114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11116 echo "${ECHO_T}$ac_header_compiler" >&6; }
11118 # Is the header present?
11119 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11121 cat >conftest.$ac_ext <<_ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 #include <$ac_header>
11129 if { (ac_try="$ac_cpp conftest.$ac_ext"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11137 grep -v '^ *+' conftest.er1 >conftest.err
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } >/dev/null; then
11142 if test -s conftest.err; then
11143 ac_cpp_err=$ac_c_preproc_warn_flag
11144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11151 if test -z "$ac_cpp_err"; then
11152 ac_header_preproc=yes
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_header_preproc=no
11160 rm -f conftest.err conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11162 echo "${ECHO_T}$ac_header_preproc" >&6; }
11164 # So? What about this header?
11165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11171 ac_header_preproc=yes
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11187 ## ----------------------------------- ##
11188 ## Report this to llvmbugs@cs.uiuc.edu ##
11189 ## ----------------------------------- ##
11191 ) | sed "s/^/$as_me: WARNING: /" >&2
11194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 eval "$as_ac_Header=\$ac_header_preproc"
11201 ac_res=`eval echo '${'$as_ac_Header'}'`
11202 { echo "$as_me:$LINENO: result: $ac_res" >&5
11203 echo "${ECHO_T}$ac_res" >&6; }
11206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11207 cat >>confdefs.h <<_ACEOF
11208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11217 for ac_header in string.h strings.h
11219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 ac_res=`eval echo '${'$as_ac_Header'}'`
11227 { echo "$as_me:$LINENO: result: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11230 # Is the header compilable?
11231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11233 cat >conftest.$ac_ext <<_ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 $ac_includes_default
11240 #include <$ac_header>
11242 rm -f conftest.$ac_objext
11243 if { (ac_try="$ac_compile"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_compile") 2>conftest.er1
11251 grep -v '^ *+' conftest.er1 >conftest.err
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11257 { (case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_try") 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; } &&
11266 { ac_try='test -s conftest.$ac_objext'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 ac_header_compiler=yes
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 ac_header_compiler=no
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11286 echo "${ECHO_T}$ac_header_compiler" >&6; }
11288 # Is the header present?
11289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11291 cat >conftest.$ac_ext <<_ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 #include <$ac_header>
11299 if { (ac_try="$ac_cpp conftest.$ac_ext"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11307 grep -v '^ *+' conftest.er1 >conftest.err
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } >/dev/null; then
11312 if test -s conftest.err; then
11313 ac_cpp_err=$ac_c_preproc_warn_flag
11314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11321 if test -z "$ac_cpp_err"; then
11322 ac_header_preproc=yes
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_header_preproc=no
11330 rm -f conftest.err conftest.$ac_ext
11331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11332 echo "${ECHO_T}$ac_header_preproc" >&6; }
11334 # So? What about this header?
11335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11341 ac_header_preproc=yes
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11357 ## ----------------------------------- ##
11358 ## Report this to llvmbugs@cs.uiuc.edu ##
11359 ## ----------------------------------- ##
11361 ) | sed "s/^/$as_me: WARNING: /" >&2
11364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 eval "$as_ac_Header=\$ac_header_preproc"
11371 ac_res=`eval echo '${'$as_ac_Header'}'`
11372 { echo "$as_me:$LINENO: result: $ac_res" >&5
11373 echo "${ECHO_T}$ac_res" >&6; }
11376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11377 cat >>confdefs.h <<_ACEOF
11378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11388 for ac_func in strchr index
11390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 cat >conftest.$ac_ext <<_ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11404 #define $ac_func innocuous_$ac_func
11406 /* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char $ac_func (); below.
11408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409 <limits.h> exists even on freestanding compilers. */
11412 # include <limits.h>
11414 # include <assert.h>
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11426 /* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429 #if defined __stub_$ac_func || defined __stub___$ac_func
11436 return $ac_func ();
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_link") 2>conftest.er1
11450 grep -v '^ *+' conftest.er1 >conftest.err
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } &&
11455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11456 { (case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_try") 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; } &&
11465 { ac_try='test -s conftest$ac_exeext'
11466 { (case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_try") 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
11475 eval "$as_ac_var=yes"
11477 echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11480 eval "$as_ac_var=no"
11483 rm -f core conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11486 ac_res=`eval echo '${'$as_ac_var'}'`
11487 { echo "$as_me:$LINENO: result: $ac_res" >&5
11488 echo "${ECHO_T}$ac_res" >&6; }
11489 if test `eval echo '${'$as_ac_var'}'` = yes; then
11490 cat >>confdefs.h <<_ACEOF
11491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11499 for ac_func in strrchr rindex
11501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11515 #define $ac_func innocuous_$ac_func
11517 /* System header to define __stub macros and hopefully few prototypes,
11518 which can conflict with char $ac_func (); below.
11519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520 <limits.h> exists even on freestanding compilers. */
11523 # include <limits.h>
11525 # include <assert.h>
11530 /* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11537 /* The GNU C library defines this for functions which it implements
11538 to always fail with ENOSYS. Some functions are actually named
11539 something starting with __ and the normal name is an alias. */
11540 #if defined __stub_$ac_func || defined __stub___$ac_func
11547 return $ac_func ();
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (ac_try="$ac_link"
11554 case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_link") 2>conftest.er1
11561 grep -v '^ *+' conftest.er1 >conftest.err
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11567 { (case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_try") 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; } &&
11576 { ac_try='test -s conftest$ac_exeext'
11577 { (case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_try") 2>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 eval "$as_ac_var=yes"
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11591 eval "$as_ac_var=no"
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11597 ac_res=`eval echo '${'$as_ac_var'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599 echo "${ECHO_T}$ac_res" >&6; }
11600 if test `eval echo '${'$as_ac_var'}'` = yes; then
11601 cat >>confdefs.h <<_ACEOF
11602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11610 for ac_func in memcpy bcopy
11612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 cat >conftest.$ac_ext <<_ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11626 #define $ac_func innocuous_$ac_func
11628 /* System header to define __stub macros and hopefully few prototypes,
11629 which can conflict with char $ac_func (); below.
11630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11631 <limits.h> exists even on freestanding compilers. */
11634 # include <limits.h>
11636 # include <assert.h>
11641 /* Override any GCC internal prototype to avoid an error.
11642 Use char because int might match the return type of a GCC
11643 builtin and then its argument prototype would still apply. */
11648 /* The GNU C library defines this for functions which it implements
11649 to always fail with ENOSYS. Some functions are actually named
11650 something starting with __ and the normal name is an alias. */
11651 #if defined __stub_$ac_func || defined __stub___$ac_func
11658 return $ac_func ();
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (ac_try="$ac_link"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_link") 2>conftest.er1
11672 grep -v '^ *+' conftest.er1 >conftest.err
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11678 { (case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; } &&
11687 { ac_try='test -s conftest$ac_exeext'
11688 { (case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_try") 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 eval "$as_ac_var=yes"
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11702 eval "$as_ac_var=no"
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11708 ac_res=`eval echo '${'$as_ac_var'}'`
11709 { echo "$as_me:$LINENO: result: $ac_res" >&5
11710 echo "${ECHO_T}$ac_res" >&6; }
11711 if test `eval echo '${'$as_ac_var'}'` = yes; then
11712 cat >>confdefs.h <<_ACEOF
11713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11721 for ac_func in memmove strcmp
11723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 cat >conftest.$ac_ext <<_ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11737 #define $ac_func innocuous_$ac_func
11739 /* System header to define __stub macros and hopefully few prototypes,
11740 which can conflict with char $ac_func (); below.
11741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11742 <limits.h> exists even on freestanding compilers. */
11745 # include <limits.h>
11747 # include <assert.h>
11752 /* Override any GCC internal prototype to avoid an error.
11753 Use char because int might match the return type of a GCC
11754 builtin and then its argument prototype would still apply. */
11759 /* The GNU C library defines this for functions which it implements
11760 to always fail with ENOSYS. Some functions are actually named
11761 something starting with __ and the normal name is an alias. */
11762 #if defined __stub_$ac_func || defined __stub___$ac_func
11769 return $ac_func ();
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (ac_try="$ac_link"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_link") 2>conftest.er1
11783 grep -v '^ *+' conftest.er1 >conftest.err
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11789 { (case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_try") 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; } &&
11798 { ac_try='test -s conftest$ac_exeext'
11799 { (case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 eval "$as_ac_var=yes"
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11813 eval "$as_ac_var=no"
11816 rm -f core conftest.err conftest.$ac_objext \
11817 conftest$ac_exeext conftest.$ac_ext
11819 ac_res=`eval echo '${'$as_ac_var'}'`
11820 { echo "$as_me:$LINENO: result: $ac_res" >&5
11821 echo "${ECHO_T}$ac_res" >&6; }
11822 if test `eval echo '${'$as_ac_var'}'` = yes; then
11823 cat >>confdefs.h <<_ACEOF
11824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11833 for ac_func in closedir opendir readdir
11835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 cat >conftest.$ac_ext <<_ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11849 #define $ac_func innocuous_$ac_func
11851 /* System header to define __stub macros and hopefully few prototypes,
11852 which can conflict with char $ac_func (); below.
11853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11854 <limits.h> exists even on freestanding compilers. */
11857 # include <limits.h>
11859 # include <assert.h>
11864 /* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11871 /* The GNU C library defines this for functions which it implements
11872 to always fail with ENOSYS. Some functions are actually named
11873 something starting with __ and the normal name is an alias. */
11874 #if defined __stub_$ac_func || defined __stub___$ac_func
11881 return $ac_func ();
11886 rm -f conftest.$ac_objext conftest$ac_exeext
11887 if { (ac_try="$ac_link"
11888 case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893 (eval "$ac_link") 2>conftest.er1
11895 grep -v '^ *+' conftest.er1 >conftest.err
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11901 { (case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_try") 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest$ac_exeext'
11911 { (case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_try") 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 eval "$as_ac_var=yes"
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 eval "$as_ac_var=no"
11928 rm -f core conftest.err conftest.$ac_objext \
11929 conftest$ac_exeext conftest.$ac_ext
11931 ac_res=`eval echo '${'$as_ac_var'}'`
11932 { echo "$as_me:$LINENO: result: $ac_res" >&5
11933 echo "${ECHO_T}$ac_res" >&6; }
11934 if test `eval echo '${'$as_ac_var'}'` = yes; then
11935 cat >>confdefs.h <<_ACEOF
11936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11943 # Check whether --enable-shared was given.
11944 if test "${enable_shared+set}" = set; then
11945 enableval=$enable_shared; p=${PACKAGE-default}
11947 yes) enable_shared=yes ;;
11948 no) enable_shared=no ;;
11951 # Look at the argument we got. We use all the common list separators.
11952 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11953 for pkg in $enableval; do
11955 if test "X$pkg" = "X$p"; then
11967 # Check whether --enable-static was given.
11968 if test "${enable_static+set}" = set; then
11969 enableval=$enable_static; p=${PACKAGE-default}
11971 yes) enable_static=yes ;;
11972 no) enable_static=no ;;
11975 # Look at the argument we got. We use all the common list separators.
11976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11977 for pkg in $enableval; do
11979 if test "X$pkg" = "X$p"; then
11991 # Check whether --enable-fast-install was given.
11992 if test "${enable_fast_install+set}" = set; then
11993 enableval=$enable_fast_install; p=${PACKAGE-default}
11995 yes) enable_fast_install=yes ;;
11996 no) enable_fast_install=no ;;
11998 enable_fast_install=no
11999 # Look at the argument we got. We use all the common list separators.
12000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12001 for pkg in $enableval; do
12003 if test "X$pkg" = "X$p"; then
12004 enable_fast_install=yes
12011 enable_fast_install=yes
12015 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12016 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12017 if test "${lt_cv_path_SED+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 # Loop through the user's path and test for sed and gsed.
12021 # Then use that list of sed's as ones to test for truncation.
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12026 test -z "$as_dir" && as_dir=.
12027 for lt_ac_prog in sed gsed; do
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12030 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12037 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12038 # along with /bin/sed that truncates output.
12039 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12040 test ! -f $lt_ac_sed && continue
12041 cat /dev/null > conftest.in
12043 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12044 # Check for GNU sed and select it if it is found.
12045 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12046 lt_cv_path_SED=$lt_ac_sed
12050 cat conftest.in conftest.in >conftest.tmp
12051 mv conftest.tmp conftest.in
12052 cp conftest.in conftest.nl
12054 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12055 cmp -s conftest.out conftest.nl || break
12056 # 10000 chars as input seems more than enough
12057 test $lt_ac_count -gt 10 && break
12058 lt_ac_count=`expr $lt_ac_count + 1`
12059 if test $lt_ac_count -gt $lt_ac_max; then
12060 lt_ac_max=$lt_ac_count
12061 lt_cv_path_SED=$lt_ac_sed
12068 SED=$lt_cv_path_SED
12069 { echo "$as_me:$LINENO: result: $SED" >&5
12070 echo "${ECHO_T}$SED" >&6; }
12073 # Check whether --with-gnu-ld was given.
12074 if test "${with_gnu_ld+set}" = set; then
12075 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12081 if test "$GCC" = yes; then
12082 # Check if gcc -print-prog-name=ld gives a path.
12083 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12084 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12087 # gcc leaves a trailing carriage return which upsets mingw
12088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12093 # Accept absolute paths.
12095 re_direlt='/[^/][^/]*/\.\./'
12096 # Canonicalize the pathname of ld
12097 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12098 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12099 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12101 test -z "$LD" && LD="$ac_prog"
12104 # If it fails, then pretend we aren't using GCC.
12108 # If it is relative, then search for the first ld in PATH.
12109 with_gnu_ld=unknown
12112 elif test "$with_gnu_ld" = yes; then
12113 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12114 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12116 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12117 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12119 if test "${lt_cv_path_LD+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 if test -z "$LD"; then
12123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12124 for ac_dir in $PATH; do
12126 test -z "$ac_dir" && ac_dir=.
12127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12128 lt_cv_path_LD="$ac_dir/$ac_prog"
12129 # Check to see if the program is GNU ld. I'd rather use --version,
12130 # but apparently some variants of GNU ld only accept -v.
12131 # Break only if it was the GNU/non-GNU ld that we prefer.
12132 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12133 *GNU* | *'with BFD'*)
12134 test "$with_gnu_ld" != no && break
12137 test "$with_gnu_ld" != yes && break
12144 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12148 LD="$lt_cv_path_LD"
12149 if test -n "$LD"; then
12150 { echo "$as_me:$LINENO: result: $LD" >&5
12151 echo "${ECHO_T}$LD" >&6; }
12153 { echo "$as_me:$LINENO: result: no" >&5
12154 echo "${ECHO_T}no" >&6; }
12156 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12157 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12158 { (exit 1); exit 1; }; }
12159 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12160 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12161 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12165 case `$LD -v 2>&1 </dev/null` in
12166 *GNU* | *'with BFD'*)
12167 lt_cv_prog_gnu_ld=yes
12170 lt_cv_prog_gnu_ld=no
12174 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12175 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12176 with_gnu_ld=$lt_cv_prog_gnu_ld
12179 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12180 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12181 if test "${lt_cv_ld_reload_flag+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 lt_cv_ld_reload_flag='-r'
12186 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12187 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12188 reload_flag=$lt_cv_ld_reload_flag
12189 case $reload_flag in
12191 *) reload_flag=" $reload_flag" ;;
12193 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12196 if test "$GCC" = yes; then
12197 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12204 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12205 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12206 if test "${lt_cv_deplibs_check_method+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 lt_cv_file_magic_cmd='$MAGIC_CMD'
12210 lt_cv_file_magic_test_file=
12211 lt_cv_deplibs_check_method='unknown'
12212 # Need to set the preceding variable on all platforms that support
12213 # interlibrary dependencies.
12214 # 'none' -- dependencies not supported.
12215 # `unknown' -- same as none, but documents that we really don't know.
12216 # 'pass_all' -- all dependencies passed with no checks.
12217 # 'test_compile' -- check by making test program.
12218 # 'file_magic [[regex]]' -- check by looking for files in library path
12219 # which responds to the $file_magic_cmd with a given extended regex.
12220 # If you have `file' or equivalent on your system and you're not sure
12221 # whether `pass_all' will *always* work, you probably want this one.
12225 lt_cv_deplibs_check_method=pass_all
12229 lt_cv_deplibs_check_method=pass_all
12233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12234 lt_cv_file_magic_cmd='/usr/bin/file -L'
12235 lt_cv_file_magic_test_file=/shlib/libc.so
12239 # func_win32_libid is a shell function defined in ltmain.sh
12240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12241 lt_cv_file_magic_cmd='func_win32_libid'
12245 # Base MSYS/MinGW do not provide the 'file' command needed by
12246 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12247 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12248 lt_cv_file_magic_cmd='$OBJDUMP -f'
12251 darwin* | rhapsody*)
12252 lt_cv_deplibs_check_method=pass_all
12255 freebsd* | kfreebsd*-gnu | dragonfly*)
12256 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12259 # Not sure whether the presence of OpenBSD here was a mistake.
12260 # Let's accept both of them until this is cleared up.
12261 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12262 lt_cv_file_magic_cmd=/usr/bin/file
12263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12267 lt_cv_deplibs_check_method=pass_all
12272 lt_cv_deplibs_check_method=pass_all
12275 hpux10.20* | hpux11*)
12276 lt_cv_file_magic_cmd=/usr/bin/file
12279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12280 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12283 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]'
12284 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12287 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12288 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12294 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12298 irix5* | irix6* | nonstopux*)
12300 *-32|*"-32 ") libmagic=32-bit;;
12301 *-n32|*"-n32 ") libmagic=N32;;
12302 *-64|*"-64 ") libmagic=64-bit;;
12303 *) libmagic=never-match;;
12305 lt_cv_deplibs_check_method=pass_all
12308 # This must be Linux ELF.
12310 lt_cv_deplibs_check_method=pass_all
12314 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12323 lt_cv_file_magic_cmd=/usr/bin/file
12324 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12328 lt_cv_deplibs_check_method=unknown
12332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12339 osf3* | osf4* | osf5*)
12340 lt_cv_deplibs_check_method=pass_all
12344 lt_cv_deplibs_check_method=pass_all
12348 case $host_vendor in
12350 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]'
12351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12354 lt_cv_deplibs_check_method=pass_all
12357 lt_cv_file_magic_cmd='/bin/file'
12358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12361 lt_cv_file_magic_cmd='/bin/file'
12362 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12363 lt_cv_file_magic_test_file=/lib/libc.so
12366 lt_cv_deplibs_check_method=pass_all
12369 lt_cv_deplibs_check_method=pass_all
12374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12375 lt_cv_deplibs_check_method=pass_all
12380 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12381 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12382 file_magic_cmd=$lt_cv_file_magic_cmd
12383 deplibs_check_method=$lt_cv_deplibs_check_method
12384 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12388 # If no C compiler was specified, use CC.
12391 # If no C compiler flags were specified, use CFLAGS.
12392 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12394 # Allow CC to be a program name with arguments.
12397 # Check whether --enable-libtool-lock was given.
12398 if test "${enable_libtool_lock+set}" = set; then
12399 enableval=$enable_libtool_lock;
12402 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12404 # Some flags need to be propagated to the compiler or linker for good
12408 # Find out which ABI we are using.
12409 echo 'int i;' > conftest.$ac_ext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12411 (eval $ac_compile) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; then
12415 case `/usr/bin/file conftest.$ac_objext` in
12417 HPUX_IA64_MODE="32"
12420 HPUX_IA64_MODE="64"
12427 # Find out which ABI we are using.
12428 echo '#line 12428 "configure"' > conftest.$ac_ext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430 (eval $ac_compile) 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; then
12434 if test "$lt_cv_prog_gnu_ld" = yes; then
12435 case `/usr/bin/file conftest.$ac_objext` in
12437 LD="${LD-ld} -melf32bsmip"
12440 LD="${LD-ld} -melf32bmipn32"
12443 LD="${LD-ld} -melf64bmip"
12447 case `/usr/bin/file conftest.$ac_objext` in
12463 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12464 # Find out which ABI we are using.
12465 echo 'int i;' > conftest.$ac_ext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467 (eval $ac_compile) 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; then
12471 case `/usr/bin/file conftest.o` in
12475 LD="${LD-ld} -m elf_i386"
12477 ppc64-*linux*|powerpc64-*linux*)
12478 LD="${LD-ld} -m elf32ppclinux"
12481 LD="${LD-ld} -m elf_s390"
12484 LD="${LD-ld} -m elf32_sparc"
12491 LD="${LD-ld} -m elf_x86_64"
12493 ppc*-*linux*|powerpc*-*linux*)
12494 LD="${LD-ld} -m elf64ppc"
12497 LD="${LD-ld} -m elf64_s390"
12500 LD="${LD-ld} -m elf64_sparc"
12510 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12511 SAVE_CFLAGS="$CFLAGS"
12512 CFLAGS="$CFLAGS -belf"
12513 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12514 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12515 if test "${lt_cv_cc_needs_belf+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 ac_cpp='$CPP $CPPFLAGS'
12520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12539 rm -f conftest.$ac_objext conftest$ac_exeext
12540 if { (ac_try="$ac_link"
12541 case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_link") 2>conftest.er1
12548 grep -v '^ *+' conftest.er1 >conftest.err
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } &&
12553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12554 { (case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_try") 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; } &&
12563 { ac_try='test -s conftest$ac_exeext'
12564 { (case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_try") 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 lt_cv_cc_needs_belf=yes
12575 echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12578 lt_cv_cc_needs_belf=no
12581 rm -f core conftest.err conftest.$ac_objext \
12582 conftest$ac_exeext conftest.$ac_ext
12584 ac_cpp='$CPP $CPPFLAGS'
12585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12590 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12591 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12592 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12593 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12594 CFLAGS="$SAVE_CFLAGS"
12598 # Find out which ABI we are using.
12599 echo 'int i;' > conftest.$ac_ext
12600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; then
12605 case `/usr/bin/file conftest.o` in
12607 case $lt_cv_prog_gnu_ld in
12608 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12609 *) LD="${LD-ld} -64" ;;
12620 need_locks="$enable_libtool_lock"
12625 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12626 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12627 (test "X$CXX" != "Xg++"))) ; then
12629 ac_cpp='$CXXCPP $CPPFLAGS'
12630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12633 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12634 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12635 if test -z "$CXXCPP"; then
12636 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 # Double quotes because CXXCPP needs to be expanded
12640 for CXXCPP in "$CXX -E" "/lib/cpp"
12642 ac_preproc_ok=false
12643 for ac_cxx_preproc_warn_flag in '' yes
12645 # Use a header file that comes with gcc, so configuring glibc
12646 # with a fresh cross-compiler works.
12647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12648 # <limits.h> exists even on freestanding compilers.
12649 # On the NeXT, cc -E runs the code through the compiler's parser,
12650 # not just through cpp. "Syntax error" is here to catch this case.
12651 cat >conftest.$ac_ext <<_ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12658 # include <limits.h>
12660 # include <assert.h>
12664 if { (ac_try="$ac_cpp conftest.$ac_ext"
12665 case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12672 grep -v '^ *+' conftest.er1 >conftest.err
12674 cat conftest.err >&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } >/dev/null; then
12677 if test -s conftest.err; then
12678 ac_cpp_err=$ac_cxx_preproc_warn_flag
12679 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12686 if test -z "$ac_cpp_err"; then
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12692 # Broken: fails on valid input.
12696 rm -f conftest.err conftest.$ac_ext
12698 # OK, works on sane cases. Now check whether nonexistent headers
12699 # can be detected and how.
12700 cat >conftest.$ac_ext <<_ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12706 #include <ac_nonexistent.h>
12708 if { (ac_try="$ac_cpp conftest.$ac_ext"
12709 case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12716 grep -v '^ *+' conftest.er1 >conftest.err
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } >/dev/null; then
12721 if test -s conftest.err; then
12722 ac_cpp_err=$ac_cxx_preproc_warn_flag
12723 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12730 if test -z "$ac_cpp_err"; then
12731 # Broken: success on invalid input.
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12737 # Passes both tests.
12742 rm -f conftest.err conftest.$ac_ext
12745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12746 rm -f conftest.err conftest.$ac_ext
12747 if $ac_preproc_ok; then
12752 ac_cv_prog_CXXCPP=$CXXCPP
12755 CXXCPP=$ac_cv_prog_CXXCPP
12757 ac_cv_prog_CXXCPP=$CXXCPP
12759 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12760 echo "${ECHO_T}$CXXCPP" >&6; }
12761 ac_preproc_ok=false
12762 for ac_cxx_preproc_warn_flag in '' yes
12764 # Use a header file that comes with gcc, so configuring glibc
12765 # with a fresh cross-compiler works.
12766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12767 # <limits.h> exists even on freestanding compilers.
12768 # On the NeXT, cc -E runs the code through the compiler's parser,
12769 # not just through cpp. "Syntax error" is here to catch this case.
12770 cat >conftest.$ac_ext <<_ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12777 # include <limits.h>
12779 # include <assert.h>
12783 if { (ac_try="$ac_cpp conftest.$ac_ext"
12784 case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12791 grep -v '^ *+' conftest.er1 >conftest.err
12793 cat conftest.err >&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } >/dev/null; then
12796 if test -s conftest.err; then
12797 ac_cpp_err=$ac_cxx_preproc_warn_flag
12798 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12805 if test -z "$ac_cpp_err"; then
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12811 # Broken: fails on valid input.
12815 rm -f conftest.err conftest.$ac_ext
12817 # OK, works on sane cases. Now check whether nonexistent headers
12818 # can be detected and how.
12819 cat >conftest.$ac_ext <<_ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12825 #include <ac_nonexistent.h>
12827 if { (ac_try="$ac_cpp conftest.$ac_ext"
12828 case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12835 grep -v '^ *+' conftest.er1 >conftest.err
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } >/dev/null; then
12840 if test -s conftest.err; then
12841 ac_cpp_err=$ac_cxx_preproc_warn_flag
12842 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12849 if test -z "$ac_cpp_err"; then
12850 # Broken: success on invalid input.
12853 echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12856 # Passes both tests.
12861 rm -f conftest.err conftest.$ac_ext
12864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12865 rm -f conftest.err conftest.$ac_ext
12866 if $ac_preproc_ok; then
12869 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12870 See \`config.log' for more details." >&5
12871 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12872 See \`config.log' for more details." >&2;}
12873 { (exit 1); exit 1; }; }
12877 ac_cpp='$CXXCPP $CPPFLAGS'
12878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12886 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12887 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12889 if test -n "$ac_tool_prefix"; then
12890 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
12892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12896 if test "${ac_cv_prog_F77+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 if test -n "$F77"; then
12900 ac_cv_prog_F77="$F77" # Let the user override the test.
12902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903 for as_dir in $PATH
12906 test -z "$as_dir" && as_dir=.
12907 for ac_exec_ext in '' $ac_executable_extensions; do
12908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12909 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12919 F77=$ac_cv_prog_F77
12920 if test -n "$F77"; then
12921 { echo "$as_me:$LINENO: result: $F77" >&5
12922 echo "${ECHO_T}$F77" >&6; }
12924 { echo "$as_me:$LINENO: result: no" >&5
12925 echo "${ECHO_T}no" >&6; }
12929 test -n "$F77" && break
12932 if test -z "$F77"; then
12934 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
12936 # Extract the first word of "$ac_prog", so it can be a program name with args.
12937 set dummy $ac_prog; ac_word=$2
12938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12940 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 if test -n "$ac_ct_F77"; then
12944 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12953 ac_cv_prog_ac_ct_F77="$ac_prog"
12954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12963 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12964 if test -n "$ac_ct_F77"; then
12965 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12966 echo "${ECHO_T}$ac_ct_F77" >&6; }
12968 { echo "$as_me:$LINENO: result: no" >&5
12969 echo "${ECHO_T}no" >&6; }
12973 test -n "$ac_ct_F77" && break
12976 if test "x$ac_ct_F77" = x; then
12979 case $cross_compiling:$ac_tool_warned in
12981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12982 whose name does not start with the host triplet. If you think this
12983 configuration is useful to you, please write to autoconf@gnu.org." >&5
12984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12985 whose name does not start with the host triplet. If you think this
12986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12987 ac_tool_warned=yes ;;
12994 # Provide some information about the compiler.
12995 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12996 ac_compiler=`set X $ac_compile; echo $2`
12997 { (ac_try="$ac_compiler --version >&5"
12998 case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_compiler --version >&5") 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }
13007 { (ac_try="$ac_compiler -v >&5"
13008 case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_compiler -v >&5") 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }
13017 { (ac_try="$ac_compiler -V >&5"
13018 case "(($ac_try" in
13019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020 *) ac_try_echo=$ac_try;;
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023 (eval "$ac_compiler -V >&5") 2>&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }
13029 # If we don't use `.F' as extension, the preprocessor is not run on the
13030 # input file. (Note that this only needs to work for GNU compilers.)
13031 ac_save_ext=$ac_ext
13033 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13034 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13035 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 cat >conftest.$ac_ext <<_ACEOF
13046 rm -f conftest.$ac_objext
13047 if { (ac_try="$ac_compile"
13048 case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_compile") 2>conftest.er1
13055 grep -v '^ *+' conftest.er1 >conftest.err
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13061 { (case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_try") 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest.$ac_objext'
13071 { (case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_try") 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 ac_compiler_gnu=yes
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13092 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13093 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13094 ac_ext=$ac_save_ext
13095 ac_test_FFLAGS=${FFLAGS+set}
13096 ac_save_FFLAGS=$FFLAGS
13098 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13099 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13100 if test "${ac_cv_prog_f77_g+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 cat >conftest.$ac_ext <<_ACEOF
13109 rm -f conftest.$ac_objext
13110 if { (ac_try="$ac_compile"
13111 case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_compile") 2>conftest.er1
13118 grep -v '^ *+' conftest.er1 >conftest.err
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13124 { (case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_try") 2>&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; } &&
13133 { ac_try='test -s conftest.$ac_objext'
13134 { (case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_try") 2>&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143 ac_cv_prog_f77_g=yes
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 ac_cv_prog_f77_g=no
13151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13155 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13156 if test "$ac_test_FFLAGS" = set; then
13157 FFLAGS=$ac_save_FFLAGS
13158 elif test $ac_cv_prog_f77_g = yes; then
13159 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13165 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13172 G77=`test $ac_compiler_gnu = yes && echo yes`
13174 ac_cpp='$CPP $CPPFLAGS'
13175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13181 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13183 # find the maximum length of command line arguments
13184 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13185 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13186 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 # On DJGPP, this test can blow up pretty badly due to problems in libc
13195 # (any single argument exceeding 2000 bytes causes a buffer overrun
13196 # during glob expansion). Even if it were fixed, the result of this
13197 # check would be larger than it should be.
13198 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13202 # Under GNU Hurd, this test is not required because there is
13203 # no limit to the length of command line arguments.
13204 # Libtool will interpret -1 as no limit whatsoever
13205 lt_cv_sys_max_cmd_len=-1;
13209 # On Win9x/ME, this test blows up -- it succeeds, but takes
13210 # about 5 minutes as the teststring grows exponentially.
13211 # Worse, since 9x/ME are not pre-emptively multitasking,
13212 # you end up with a "frozen" computer, even though with patience
13213 # the test eventually succeeds (with a max line length of 256k).
13214 # Instead, let's just punt: use the minimum linelength reported by
13215 # all of the supported platforms: 8192 (on NT/2K/XP).
13216 lt_cv_sys_max_cmd_len=8192;
13220 # On AmigaOS with pdksh, this test takes hours, literally.
13221 # So we just punt and use a minimum line length of 8192.
13222 lt_cv_sys_max_cmd_len=8192;
13225 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13226 # This has been around since 386BSD, at least. Likely further.
13227 if test -x /sbin/sysctl; then
13228 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13229 elif test -x /usr/sbin/sysctl; then
13230 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13232 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13234 # And add a safety zone
13235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13240 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13241 lt_cv_sys_max_cmd_len=196608
13245 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13246 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13247 # nice to cause kernel panics so lets avoid the loop below.
13248 # First set a reasonable default.
13249 lt_cv_sys_max_cmd_len=16384
13251 if test -x /sbin/sysconfig; then
13252 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13253 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13258 lt_cv_sys_max_cmd_len=102400
13260 sysv5* | sco5v6* | sysv4.2uw2*)
13261 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13262 if test -n "$kargmax"; then
13263 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13265 lt_cv_sys_max_cmd_len=32768
13269 # If test is not a shell built-in, we'll probably end up computing a
13270 # maximum length that is only half of the actual maximum length, but
13272 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13273 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13274 = "XX$teststring") >/dev/null 2>&1 &&
13275 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13276 lt_cv_sys_max_cmd_len=$new_result &&
13277 test $i != 17 # 1/2 MB should be enough
13280 teststring=$teststring$teststring
13283 # Add a significant safety factor because C++ compilers can tack on massive
13284 # amounts of additional arguments before passing them to the linker.
13285 # It appears as though 1/2 is a usable value.
13286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13292 if test -n $lt_cv_sys_max_cmd_len ; then
13293 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13294 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13296 { echo "$as_me:$LINENO: result: none" >&5
13297 echo "${ECHO_T}none" >&6; }
13303 # Check for command to grab the raw symbol name followed by C symbol from nm.
13304 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13305 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13306 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 # These are sane defaults that work on at least a few old systems.
13311 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13313 # Character class describing NM global symbol codes.
13314 symcode='[BCDEGRST]'
13316 # Regexp to match symbols that can be accessed directly from C.
13317 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13319 # Transform an extracted symbol line into a proper C declaration
13320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13322 # Transform an extracted symbol line into symbol name and symbol address
13323 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'"
13325 # Define system-specific variables.
13330 cygwin* | mingw* | pw32*)
13331 symcode='[ABCDGISTW]'
13333 hpux*) # Its linker distinguishes data from code symbols
13334 if test "$host_cpu" = ia64; then
13335 symcode='[ABCDEGRST]'
13337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13338 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'"
13341 if test "$host_cpu" = ia64; then
13342 symcode='[ABCDGIRSTW]'
13343 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13344 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'"
13347 irix* | nonstopux*)
13348 symcode='[BCDEGRST]'
13351 symcode='[BCDEGQRST]'
13362 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13370 # Handle CRLF in mingw tool chain
13374 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13378 # If we're using GNU nm, then use its standard symbol codes.
13379 case `$NM -V 2>&1` in
13380 *GNU* | *'with BFD'*)
13381 symcode='[ABCDGIRSTW]' ;;
13384 # Try without a prefix undercore, then with it.
13385 for ac_symprfx in "" "_"; do
13387 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13388 symxfrm="\\1 $ac_symprfx\\2 \\2"
13390 # Write the raw and C identifiers.
13391 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13393 # Check to see that the pipe works correctly.
13397 cat > conftest.$ac_ext <<EOF
13402 void nm_test_func(){}
13406 int main(){nm_test_var='a';nm_test_func();return(0);}
13409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13410 (eval $ac_compile) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; then
13414 # Now try to grab the symbols.
13416 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13417 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && test -s "$nlist"; then
13421 # Try sorting and uniquifying the output.
13422 if sort "$nlist" | uniq > "$nlist"T; then
13423 mv -f "$nlist"T "$nlist"
13428 # Make sure that we snagged all the symbols we need.
13429 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13430 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13431 cat <<EOF > conftest.$ac_ext
13437 # Now generate the symbol file.
13438 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13440 cat <<EOF >> conftest.$ac_ext
13441 #if defined (__STDC__) && __STDC__
13442 # define lt_ptr_t void *
13444 # define lt_ptr_t char *
13448 /* The mapping between symbol names and symbols. */
13453 lt_preloaded_symbols[] =
13456 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13457 cat <<\EOF >> conftest.$ac_ext
13465 # Now try linking the two files.
13466 mv conftest.$ac_objext conftstm.$ac_objext
13467 lt_save_LIBS="$LIBS"
13468 lt_save_CFLAGS="$CFLAGS"
13469 LIBS="conftstm.$ac_objext"
13470 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13478 LIBS="$lt_save_LIBS"
13479 CFLAGS="$lt_save_CFLAGS"
13481 echo "cannot find nm_test_func in $nlist" >&5
13484 echo "cannot find nm_test_var in $nlist" >&5
13487 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13490 echo "$progname: failed program was:" >&5
13491 cat conftest.$ac_ext >&5
13493 rm -f conftest* conftst*
13495 # Do not use the global_symbol_pipe unless it works.
13496 if test "$pipe_works" = yes; then
13499 lt_cv_sys_global_symbol_pipe=
13505 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13506 lt_cv_sys_global_symbol_to_cdecl=
13508 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13509 { echo "$as_me:$LINENO: result: failed" >&5
13510 echo "${ECHO_T}failed" >&6; }
13512 { echo "$as_me:$LINENO: result: ok" >&5
13513 echo "${ECHO_T}ok" >&6; }
13516 { echo "$as_me:$LINENO: checking for objdir" >&5
13517 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13518 if test "${lt_cv_objdir+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 rm -f .libs 2>/dev/null
13522 mkdir .libs 2>/dev/null
13523 if test -d .libs; then
13526 # MS-DOS does not allow filenames that begin with a dot.
13529 rmdir .libs 2>/dev/null
13531 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13532 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13533 objdir=$lt_cv_objdir
13541 # AIX sometimes has problems with the GCC collect2 program. For some
13542 # reason, if we set the COLLECT_NAMES environment variable, the problems
13543 # vanish in a puff of smoke.
13544 if test "X${COLLECT_NAMES+set}" != Xset; then
13546 export COLLECT_NAMES
13551 # Sed substitution that helps us do robust quoting. It backslashifies
13552 # metacharacters that are still active within double-quoted strings.
13553 Xsed='sed -e 1s/^X//'
13554 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13556 # Same as above, but do not quote variable references.
13557 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13559 # Sed substitution to delay expansion of an escaped shell variable in a
13560 # double_quote_subst'ed string.
13561 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13563 # Sed substitution to avoid accidental globbing in evaled expressions
13564 no_glob_subst='s/\*/\\\*/g'
13569 # Global variables:
13570 default_ofile=mklib
13571 can_build_shared=yes
13573 # All known linkers require a `.a' archive for static linking (except MSVC,
13574 # which needs '.lib').
13576 ltmain="$ac_aux_dir/ltmain.sh"
13577 ofile="$default_ofile"
13578 with_gnu_ld="$lt_cv_prog_gnu_ld"
13580 if test -n "$ac_tool_prefix"; then
13581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13582 set dummy ${ac_tool_prefix}ar; ac_word=$2
13583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13585 if test "${ac_cv_prog_AR+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 if test -n "$AR"; then
13589 ac_cv_prog_AR="$AR" # Let the user override the test.
13591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592 for as_dir in $PATH
13595 test -z "$as_dir" && as_dir=.
13596 for ac_exec_ext in '' $ac_executable_extensions; do
13597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13598 ac_cv_prog_AR="${ac_tool_prefix}ar"
13599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13609 if test -n "$AR"; then
13610 { echo "$as_me:$LINENO: result: $AR" >&5
13611 echo "${ECHO_T}$AR" >&6; }
13613 { echo "$as_me:$LINENO: result: no" >&5
13614 echo "${ECHO_T}no" >&6; }
13619 if test -z "$ac_cv_prog_AR"; then
13621 # Extract the first word of "ar", so it can be a program name with args.
13622 set dummy ar; ac_word=$2
13623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13625 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 if test -n "$ac_ct_AR"; then
13629 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13632 for as_dir in $PATH
13635 test -z "$as_dir" && as_dir=.
13636 for ac_exec_ext in '' $ac_executable_extensions; do
13637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13638 ac_cv_prog_ac_ct_AR="ar"
13639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13648 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13649 if test -n "$ac_ct_AR"; then
13650 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13651 echo "${ECHO_T}$ac_ct_AR" >&6; }
13653 { echo "$as_me:$LINENO: result: no" >&5
13654 echo "${ECHO_T}no" >&6; }
13657 if test "x$ac_ct_AR" = x; then
13660 case $cross_compiling:$ac_tool_warned in
13662 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13663 whose name does not start with the host triplet. If you think this
13664 configuration is useful to you, please write to autoconf@gnu.org." >&5
13665 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13666 whose name does not start with the host triplet. If you think this
13667 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13668 ac_tool_warned=yes ;;
13673 AR="$ac_cv_prog_AR"
13676 if test -n "$ac_tool_prefix"; then
13677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13678 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13681 if test "${ac_cv_prog_RANLIB+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 if test -n "$RANLIB"; then
13685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688 for as_dir in $PATH
13691 test -z "$as_dir" && as_dir=.
13692 for ac_exec_ext in '' $ac_executable_extensions; do
13693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13704 RANLIB=$ac_cv_prog_RANLIB
13705 if test -n "$RANLIB"; then
13706 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13707 echo "${ECHO_T}$RANLIB" >&6; }
13709 { echo "$as_me:$LINENO: result: no" >&5
13710 echo "${ECHO_T}no" >&6; }
13715 if test -z "$ac_cv_prog_RANLIB"; then
13716 ac_ct_RANLIB=$RANLIB
13717 # Extract the first word of "ranlib", so it can be a program name with args.
13718 set dummy ranlib; ac_word=$2
13719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13721 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 if test -n "$ac_ct_RANLIB"; then
13725 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13728 for as_dir in $PATH
13731 test -z "$as_dir" && as_dir=.
13732 for ac_exec_ext in '' $ac_executable_extensions; do
13733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13734 ac_cv_prog_ac_ct_RANLIB="ranlib"
13735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13744 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13745 if test -n "$ac_ct_RANLIB"; then
13746 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13747 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13749 { echo "$as_me:$LINENO: result: no" >&5
13750 echo "${ECHO_T}no" >&6; }
13753 if test "x$ac_ct_RANLIB" = x; then
13756 case $cross_compiling:$ac_tool_warned in
13758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13759 whose name does not start with the host triplet. If you think this
13760 configuration is useful to you, please write to autoconf@gnu.org." >&5
13761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13762 whose name does not start with the host triplet. If you think this
13763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13764 ac_tool_warned=yes ;;
13766 RANLIB=$ac_ct_RANLIB
13769 RANLIB="$ac_cv_prog_RANLIB"
13772 if test -n "$ac_tool_prefix"; then
13773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13774 set dummy ${ac_tool_prefix}strip; ac_word=$2
13775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13777 if test "${ac_cv_prog_STRIP+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 if test -n "$STRIP"; then
13781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 for as_dir in $PATH
13787 test -z "$as_dir" && as_dir=.
13788 for ac_exec_ext in '' $ac_executable_extensions; do
13789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13800 STRIP=$ac_cv_prog_STRIP
13801 if test -n "$STRIP"; then
13802 { echo "$as_me:$LINENO: result: $STRIP" >&5
13803 echo "${ECHO_T}$STRIP" >&6; }
13805 { echo "$as_me:$LINENO: result: no" >&5
13806 echo "${ECHO_T}no" >&6; }
13811 if test -z "$ac_cv_prog_STRIP"; then
13813 # Extract the first word of "strip", so it can be a program name with args.
13814 set dummy strip; ac_word=$2
13815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13817 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 if test -n "$ac_ct_STRIP"; then
13821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
13829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13830 ac_cv_prog_ac_ct_STRIP="strip"
13831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13841 if test -n "$ac_ct_STRIP"; then
13842 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13843 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13845 { echo "$as_me:$LINENO: result: no" >&5
13846 echo "${ECHO_T}no" >&6; }
13849 if test "x$ac_ct_STRIP" = x; then
13852 case $cross_compiling:$ac_tool_warned in
13854 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13855 whose name does not start with the host triplet. If you think this
13856 configuration is useful to you, please write to autoconf@gnu.org." >&5
13857 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13858 whose name does not start with the host triplet. If you think this
13859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13860 ac_tool_warned=yes ;;
13865 STRIP="$ac_cv_prog_STRIP"
13870 old_CFLAGS="$CFLAGS"
13872 # Set sane defaults for various variables
13873 test -z "$AR" && AR=ar
13874 test -z "$AR_FLAGS" && AR_FLAGS=cru
13875 test -z "$AS" && AS=as
13876 test -z "$CC" && CC=cc
13877 test -z "$LTCC" && LTCC=$CC
13878 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13879 test -z "$DLLTOOL" && DLLTOOL=dlltool
13880 test -z "$LD" && LD=ld
13881 test -z "$LN_S" && LN_S="ln -s"
13882 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13883 test -z "$NM" && NM=nm
13884 test -z "$SED" && SED=sed
13885 test -z "$OBJDUMP" && OBJDUMP=objdump
13886 test -z "$RANLIB" && RANLIB=:
13887 test -z "$STRIP" && STRIP=:
13888 test -z "$ac_objext" && ac_objext=o
13890 # Determine commands to create old-style static archives.
13891 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13892 old_postinstall_cmds='chmod 644 $oldlib'
13893 old_postuninstall_cmds=
13895 if test -n "$RANLIB"; then
13898 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13901 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13904 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13907 for cc_temp in $compiler""; do
13909 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13910 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13915 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13918 # Only perform the check for file, if the check method requires it
13919 case $deplibs_check_method in
13921 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13922 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13923 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13924 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13932 lt_save_MAGIC_CMD="$MAGIC_CMD"
13933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13934 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13935 for ac_dir in $ac_dummy; do
13937 test -z "$ac_dir" && ac_dir=.
13938 if test -f $ac_dir/${ac_tool_prefix}file; then
13939 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13940 if test -n "$file_magic_test_file"; then
13941 case $deplibs_check_method in
13943 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13945 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13946 $EGREP "$file_magic_regex" > /dev/null; then
13951 *** Warning: the command libtool uses to detect shared libraries,
13952 *** $file_magic_cmd, produces output that libtool cannot recognize.
13953 *** The result is that libtool may fail to recognize shared libraries
13954 *** as such. This will affect the creation of libtool libraries that
13955 *** depend on shared libraries, but programs linked with such libtool
13956 *** libraries will work regardless of this problem. Nevertheless, you
13957 *** may want to report the problem to your system manager and/or to
13958 *** bug-libtool@gnu.org
13968 MAGIC_CMD="$lt_save_MAGIC_CMD"
13973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13974 if test -n "$MAGIC_CMD"; then
13975 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13976 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13978 { echo "$as_me:$LINENO: result: no" >&5
13979 echo "${ECHO_T}no" >&6; }
13982 if test -z "$lt_cv_path_MAGIC_CMD"; then
13983 if test -n "$ac_tool_prefix"; then
13984 { echo "$as_me:$LINENO: checking for file" >&5
13985 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13986 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13994 lt_save_MAGIC_CMD="$MAGIC_CMD"
13995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13997 for ac_dir in $ac_dummy; do
13999 test -z "$ac_dir" && ac_dir=.
14000 if test -f $ac_dir/file; then
14001 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14002 if test -n "$file_magic_test_file"; then
14003 case $deplibs_check_method in
14005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14008 $EGREP "$file_magic_regex" > /dev/null; then
14013 *** Warning: the command libtool uses to detect shared libraries,
14014 *** $file_magic_cmd, produces output that libtool cannot recognize.
14015 *** The result is that libtool may fail to recognize shared libraries
14016 *** as such. This will affect the creation of libtool libraries that
14017 *** depend on shared libraries, but programs linked with such libtool
14018 *** libraries will work regardless of this problem. Nevertheless, you
14019 *** may want to report the problem to your system manager and/or to
14020 *** bug-libtool@gnu.org
14030 MAGIC_CMD="$lt_save_MAGIC_CMD"
14035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14036 if test -n "$MAGIC_CMD"; then
14037 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14038 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14040 { echo "$as_me:$LINENO: result: no" >&5
14041 echo "${ECHO_T}no" >&6; }
14054 enable_win32_dll=no
14056 # Check whether --enable-libtool-lock was given.
14057 if test "${enable_libtool_lock+set}" = set; then
14058 enableval=$enable_libtool_lock;
14061 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14064 # Check whether --with-pic was given.
14065 if test "${with_pic+set}" = set; then
14066 withval=$with_pic; pic_mode="$withval"
14071 test -z "$pic_mode" && pic_mode=default
14073 # Use C for the default configuration in the libtool script
14077 ac_cpp='$CPP $CPPFLAGS'
14078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14083 # Source file extension for C test sources.
14086 # Object file extension for compiled C test sources.
14090 # Code to be used in simple compile tests
14091 lt_simple_compile_test_code="int some_variable = 0;\n"
14093 # Code to be used in simple link tests
14094 lt_simple_link_test_code='int main(){return(0);}\n'
14097 # If no C compiler was specified, use CC.
14100 # If no C compiler flags were specified, use CFLAGS.
14101 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14103 # Allow CC to be a program name with arguments.
14107 # save warnings/boilerplate of simple test code
14108 ac_outfile=conftest.$ac_objext
14109 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14110 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14111 _lt_compiler_boilerplate=`cat conftest.err`
14114 ac_outfile=conftest.$ac_objext
14115 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14116 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14117 _lt_linker_boilerplate=`cat conftest.err`
14122 lt_prog_compiler_no_builtin_flag=
14124 if test "$GCC" = yes; then
14125 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14128 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14129 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14130 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 lt_cv_prog_compiler_rtti_exceptions=no
14134 ac_outfile=conftest.$ac_objext
14135 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14136 lt_compiler_flag="-fno-rtti -fno-exceptions"
14137 # Insert the option either (1) after the last *FLAGS variable, or
14138 # (2) before a word containing "conftest.", or (3) at the end.
14139 # Note that $ac_compile itself does not contain backslashes and begins
14140 # with a dollar sign (not a hyphen), so the echo should work correctly.
14141 # The option is referenced via a variable to avoid confusing sed.
14142 lt_compile=`echo "$ac_compile" | $SED \
14143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14145 -e 's:$: $lt_compiler_flag:'`
14146 (eval echo "\"\$as_me:14146: $lt_compile\"" >&5)
14147 (eval "$lt_compile" 2>conftest.err)
14149 cat conftest.err >&5
14150 echo "$as_me:14150: \$? = $ac_status" >&5
14151 if (exit $ac_status) && test -s "$ac_outfile"; then
14152 # The compiler can only warn and ignore the option if not recognized
14153 # So say no if there are warnings other than the usual output.
14154 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14157 lt_cv_prog_compiler_rtti_exceptions=yes
14163 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14164 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14166 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14167 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14174 lt_prog_compiler_wl=
14175 lt_prog_compiler_pic=
14176 lt_prog_compiler_static=
14178 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14179 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14181 if test "$GCC" = yes; then
14182 lt_prog_compiler_wl='-Wl,'
14183 lt_prog_compiler_static='-static'
14187 # All AIX code is PIC.
14188 if test "$host_cpu" = ia64; then
14189 # AIX 5 now supports IA64 processor
14190 lt_prog_compiler_static='-Bstatic'
14195 # FIXME: we need at least 68020 code to build shared libraries, but
14196 # adding the `-m68020' flag to GCC prevents building anything better,
14198 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14201 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14202 # PIC is the default for these OSes.
14205 mingw* | pw32* | os2*)
14206 # This hack is so that the source file can tell whether it is being
14207 # built for inclusion in a dll (and should export symbols for example).
14208 lt_prog_compiler_pic='-DDLL_EXPORT'
14211 darwin* | rhapsody*)
14212 # PIC is the default on this platform
14213 # Common symbols not allowed in MH_DYLIB files
14214 lt_prog_compiler_pic='-fno-common'
14218 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14219 # Instead, we relocate shared libraries at runtime.
14223 # Just because we use GCC doesn't mean we suddenly get shared libraries
14224 # on systems that don't support them.
14225 lt_prog_compiler_can_build_shared=no
14230 if test -d /usr/nec; then
14231 lt_prog_compiler_pic=-Kconform_pic
14236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14237 # not for PA HP-UX.
14243 lt_prog_compiler_pic='-fPIC'
14249 lt_prog_compiler_pic='-fPIC'
14253 # PORTME Check for flag to pass linker flags through the system compiler.
14256 lt_prog_compiler_wl='-Wl,'
14257 if test "$host_cpu" = ia64; then
14258 # AIX 5 now supports IA64 processor
14259 lt_prog_compiler_static='-Bstatic'
14261 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14265 # PIC is the default on this platform
14266 # Common symbols not allowed in MH_DYLIB files
14267 case $cc_basename in
14269 lt_prog_compiler_pic='-qnocommon'
14270 lt_prog_compiler_wl='-Wl,'
14275 mingw* | pw32* | os2*)
14276 # This hack is so that the source file can tell whether it is being
14277 # built for inclusion in a dll (and should export symbols for example).
14278 lt_prog_compiler_pic='-DDLL_EXPORT'
14281 hpux9* | hpux10* | hpux11*)
14282 lt_prog_compiler_wl='-Wl,'
14283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14284 # not for PA HP-UX.
14290 lt_prog_compiler_pic='+Z'
14293 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14294 lt_prog_compiler_static='${wl}-a ${wl}archive'
14297 irix5* | irix6* | nonstopux*)
14298 lt_prog_compiler_wl='-Wl,'
14299 # PIC (with -KPIC) is the default.
14300 lt_prog_compiler_static='-non_shared'
14304 lt_prog_compiler_pic='-KPIC'
14305 lt_prog_compiler_static='-Bstatic'
14309 case $cc_basename in
14311 lt_prog_compiler_wl='-Wl,'
14312 lt_prog_compiler_pic='-KPIC'
14313 lt_prog_compiler_static='-static'
14315 pgcc* | pgf77* | pgf90* | pgf95*)
14316 # Portland Group compilers (*not* the Pentium gcc compiler,
14317 # which looks to be a dead project)
14318 lt_prog_compiler_wl='-Wl,'
14319 lt_prog_compiler_pic='-fpic'
14320 lt_prog_compiler_static='-Bstatic'
14323 lt_prog_compiler_wl='-Wl,'
14324 # All Alpha code is PIC.
14325 lt_prog_compiler_static='-non_shared'
14330 osf3* | osf4* | osf5*)
14331 lt_prog_compiler_wl='-Wl,'
14332 # All OSF/1 code is PIC.
14333 lt_prog_compiler_static='-non_shared'
14337 lt_prog_compiler_pic='-KPIC'
14338 lt_prog_compiler_static='-Bstatic'
14339 case $cc_basename in
14340 f77* | f90* | f95*)
14341 lt_prog_compiler_wl='-Qoption ld ';;
14343 lt_prog_compiler_wl='-Wl,';;
14348 lt_prog_compiler_wl='-Qoption ld '
14349 lt_prog_compiler_pic='-PIC'
14350 lt_prog_compiler_static='-Bstatic'
14353 sysv4 | sysv4.2uw2* | sysv4.3*)
14354 lt_prog_compiler_wl='-Wl,'
14355 lt_prog_compiler_pic='-KPIC'
14356 lt_prog_compiler_static='-Bstatic'
14360 if test -d /usr/nec ;then
14361 lt_prog_compiler_pic='-Kconform_pic'
14362 lt_prog_compiler_static='-Bstatic'
14366 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14367 lt_prog_compiler_wl='-Wl,'
14368 lt_prog_compiler_pic='-KPIC'
14369 lt_prog_compiler_static='-Bstatic'
14373 lt_prog_compiler_wl='-Wl,'
14374 lt_prog_compiler_can_build_shared=no
14378 lt_prog_compiler_pic='-pic'
14379 lt_prog_compiler_static='-Bstatic'
14383 lt_prog_compiler_can_build_shared=no
14388 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14389 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14392 # Check to make sure the PIC flag actually works.
14394 if test -n "$lt_prog_compiler_pic"; then
14396 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14397 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14398 if test "${lt_prog_compiler_pic_works+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 lt_prog_compiler_pic_works=no
14402 ac_outfile=conftest.$ac_objext
14403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14404 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14405 # Insert the option either (1) after the last *FLAGS variable, or
14406 # (2) before a word containing "conftest.", or (3) at the end.
14407 # Note that $ac_compile itself does not contain backslashes and begins
14408 # with a dollar sign (not a hyphen), so the echo should work correctly.
14409 # The option is referenced via a variable to avoid confusing sed.
14410 lt_compile=`echo "$ac_compile" | $SED \
14411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14413 -e 's:$: $lt_compiler_flag:'`
14414 (eval echo "\"\$as_me:14414: $lt_compile\"" >&5)
14415 (eval "$lt_compile" 2>conftest.err)
14417 cat conftest.err >&5
14418 echo "$as_me:14418: \$? = $ac_status" >&5
14419 if (exit $ac_status) && test -s "$ac_outfile"; then
14420 # The compiler can only warn and ignore the option if not recognized
14421 # So say no if there are warnings other than the usual output.
14422 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14425 lt_prog_compiler_pic_works=yes
14431 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14432 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14434 if test x"$lt_prog_compiler_pic_works" = xyes; then
14435 case $lt_prog_compiler_pic in
14437 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14440 lt_prog_compiler_pic=
14441 lt_prog_compiler_can_build_shared=no
14446 # For platforms which do not support PIC, -DPIC is meaningless:
14448 lt_prog_compiler_pic=
14451 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14456 # Check to make sure the static flag actually works.
14458 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14459 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14460 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14461 if test "${lt_prog_compiler_static_works+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 lt_prog_compiler_static_works=no
14465 save_LDFLAGS="$LDFLAGS"
14466 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14467 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14469 # The linker can only warn and ignore the option if not recognized
14470 # So say no if there are warnings
14471 if test -s conftest.err; then
14472 # Append any errors to the config.log.
14473 cat conftest.err 1>&5
14474 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14476 if diff conftest.exp conftest.er2 >/dev/null; then
14477 lt_prog_compiler_static_works=yes
14480 lt_prog_compiler_static_works=yes
14484 LDFLAGS="$save_LDFLAGS"
14487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14488 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14490 if test x"$lt_prog_compiler_static_works" = xyes; then
14493 lt_prog_compiler_static=
14497 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14498 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14499 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 lt_cv_prog_compiler_c_o=no
14503 $rm -r conftest 2>/dev/null
14507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14509 lt_compiler_flag="-o out/conftest2.$ac_objext"
14510 # Insert the option either (1) after the last *FLAGS variable, or
14511 # (2) before a word containing "conftest.", or (3) at the end.
14512 # Note that $ac_compile itself does not contain backslashes and begins
14513 # with a dollar sign (not a hyphen), so the echo should work correctly.
14514 lt_compile=`echo "$ac_compile" | $SED \
14515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14517 -e 's:$: $lt_compiler_flag:'`
14518 (eval echo "\"\$as_me:14518: $lt_compile\"" >&5)
14519 (eval "$lt_compile" 2>out/conftest.err)
14521 cat out/conftest.err >&5
14522 echo "$as_me:14522: \$? = $ac_status" >&5
14523 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14525 # The compiler can only warn and ignore the option if not recognized
14526 # So say no if there are warnings
14527 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14530 lt_cv_prog_compiler_c_o=yes
14535 # SGI C++ compiler will create directory out/ii_files/ for
14536 # template instantiation
14537 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14538 $rm out/* && rmdir out
14544 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14545 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14548 hard_links="nottested"
14549 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14550 # do not overwrite the value of need_locks provided by the user
14551 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14552 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14557 ln conftest.a conftest.b 2>&5 || hard_links=no
14558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14559 { echo "$as_me:$LINENO: result: $hard_links" >&5
14560 echo "${ECHO_T}$hard_links" >&6; }
14561 if test "$hard_links" = no; then
14562 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14563 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14570 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14571 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14574 allow_undefined_flag=
14575 enable_shared_with_static_runtimes=no
14577 archive_expsym_cmds=
14578 old_archive_From_new_cmds=
14579 old_archive_from_expsyms_cmds=
14580 export_dynamic_flag_spec=
14581 whole_archive_flag_spec=
14582 thread_safe_flag_spec=
14583 hardcode_libdir_flag_spec=
14584 hardcode_libdir_flag_spec_ld=
14585 hardcode_libdir_separator=
14587 hardcode_minus_L=no
14588 hardcode_shlibpath_var=unsupported
14589 link_all_deplibs=unknown
14590 hardcode_automatic=no
14592 module_expsym_cmds=
14593 always_export_symbols=no
14594 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14595 # include_expsyms should be a list of space-separated symbols to be *always*
14596 # included in the symbol list
14598 # exclude_expsyms can be an extended regexp of symbols to exclude
14599 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14600 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14601 # as well as any symbol that contains `d'.
14602 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14604 # platforms (ab)use it in PIC code, but their linkers get confused if
14605 # the symbol is explicitly referenced. Since portable code cannot
14606 # rely on this symbol name, it's probably fine to never include it in
14607 # preloaded symbol tables.
14608 extract_expsyms_cmds=
14609 # Just being paranoid about ensuring that cc_basename is set.
14610 for cc_temp in $compiler""; do
14612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14618 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14621 cygwin* | mingw* | pw32*)
14622 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14623 # When not using gcc, we currently assume that we are using
14624 # Microsoft Visual C++.
14625 if test "$GCC" != yes; then
14630 # we just hope/assume this is gcc and not c89 (= MSVC++)
14639 if test "$with_gnu_ld" = yes; then
14640 # If archive_cmds runs LD, not CC, wlarc should be empty
14643 # Set some defaults for GNU ld with shared library support. These
14644 # are reset later if shared libraries are not supported. Putting them
14645 # here allows them to be overridden if necessary.
14646 runpath_var=LD_RUN_PATH
14647 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14648 export_dynamic_flag_spec='${wl}--export-dynamic'
14649 # ancient GNU ld didn't support --whole-archive et. al.
14650 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14651 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14653 whole_archive_flag_spec=
14655 supports_anon_versioning=no
14656 case `$LD -v 2>/dev/null` in
14657 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14658 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14659 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14660 *\ 2.11.*) ;; # other 2.11 versions
14661 *) supports_anon_versioning=yes ;;
14664 # See if GNU ld supports shared libraries.
14666 aix3* | aix4* | aix5*)
14667 # On AIX/PPC, the GNU linker is very broken
14668 if test "$host_cpu" != ia64; then
14672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14673 *** to be unable to reliably create shared libraries on AIX.
14674 *** Therefore, libtool is disabling shared libraries support. If you
14675 *** really care for shared libraries, you may want to modify your PATH
14676 *** so that a non-GNU linker is found, and then restart.
14683 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)'
14684 hardcode_libdir_flag_spec='-L$libdir'
14685 hardcode_minus_L=yes
14687 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14688 # that the semantics of dynamic libraries on AmigaOS, at least up
14689 # to version 4, is to share data among multiple programs linked
14690 # with the same dynamic library. Since this doesn't match the
14691 # behavior of shared libraries on other platforms, we can't use
14697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14698 allow_undefined_flag=unsupported
14699 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14700 # support --undefined. This deserves some investigation. FIXME
14701 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14707 cygwin* | mingw* | pw32*)
14708 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14709 # as there is no search path for DLLs.
14710 hardcode_libdir_flag_spec='-L$libdir'
14711 allow_undefined_flag=unsupported
14712 always_export_symbols=no
14713 enable_shared_with_static_runtimes=yes
14714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14716 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14718 # If the export-symbols file already is a .def file (1st line
14719 # is EXPORTS), use it as is; otherwise, prepend...
14720 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14721 cp $export_symbols $output_objdir/$soname.def;
14723 echo EXPORTS > $output_objdir/$soname.def;
14724 cat $export_symbols >> $output_objdir/$soname.def;
14726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14734 hardcode_shlibpath_var=no
14735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14736 export_dynamic_flag_spec='${wl}-E'
14737 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14738 # Instead, shared libraries are loaded at an image base (0x10000000 by
14739 # default) and relocated if they conflict, which is a slow very memory
14740 # consuming and fragmenting process. To avoid this, we pick a random,
14741 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14742 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14743 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14744 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'
14748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14750 case $cc_basename,$host_cpu in
14751 pgcc*) # Portland Group C compiler
14752 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'
14753 tmp_addflag=' $pic_flag'
14755 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14756 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'
14757 tmp_addflag=' $pic_flag -Mnomain' ;;
14758 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14759 tmp_addflag=' -i_dynamic' ;;
14760 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14761 tmp_addflag=' -i_dynamic -nofor_main' ;;
14762 ifc* | ifort*) # Intel Fortran compiler
14763 tmp_addflag=' -nofor_main' ;;
14765 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14767 if test $supports_anon_versioning = yes; then
14768 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14770 $echo "local: *; };" >> $output_objdir/$libname.ver~
14771 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14780 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14789 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14793 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14794 *** create shared libraries on Solaris systems. Therefore, libtool
14795 *** is disabling shared libraries support. We urge you to upgrade GNU
14796 *** binutils to release 2.9.1 or newer. Another option is to modify
14797 *** your PATH or compiler configuration so that the native linker is
14798 *** used, and then restart.
14801 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14810 case `$LD -v 2>&1` in
14811 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14815 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14816 *** reliably create shared libraries on SCO systems. Therefore, libtool
14817 *** is disabling shared libraries support. We urge you to upgrade GNU
14818 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14819 *** your PATH or compiler configuration so that the native linker is
14820 *** used, and then restart.
14825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14826 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14837 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14839 hardcode_direct=yes
14840 hardcode_shlibpath_var=no
14844 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14853 if test "$ld_shlibs" = no; then
14855 hardcode_libdir_flag_spec=
14856 export_dynamic_flag_spec=
14857 whole_archive_flag_spec=
14860 # PORTME fill in a description of your system's linker (not GNU ld)
14863 allow_undefined_flag=unsupported
14864 always_export_symbols=yes
14865 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'
14866 # Note: this linker hardcodes the directories in LIBPATH if there
14867 # are no directories specified by -L.
14868 hardcode_minus_L=yes
14869 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14870 # Neither direct hardcoding nor static linking is supported with a
14872 hardcode_direct=unsupported
14877 if test "$host_cpu" = ia64; then
14878 # On IA64, the linker does run time linking by default, so we don't
14879 # have to do anything special.
14880 aix_use_runtimelinking=no
14881 exp_sym_flag='-Bexport'
14884 # If we're using GNU nm, then we don't want the "-C" option.
14885 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14886 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14887 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'
14889 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'
14891 aix_use_runtimelinking=no
14893 # Test if we are trying to use run time linking or normal
14894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14895 # need to do runtime linking.
14896 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14897 for ld_flag in $LDFLAGS; do
14898 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14899 aix_use_runtimelinking=yes
14906 exp_sym_flag='-bexport'
14907 no_entry_flag='-bnoentry'
14910 # When large executables or shared objects are built, AIX ld can
14911 # have problems creating the table of contents. If linking a library
14912 # or program results in "error TOC overflow" add -mminimal-toc to
14913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14917 hardcode_direct=yes
14918 hardcode_libdir_separator=':'
14919 link_all_deplibs=yes
14921 if test "$GCC" = yes; then
14922 case $host_os in aix4.[012]|aix4.[012].*)
14923 # We only want to do this on AIX 4.2 and lower, the check
14924 # below for broken collect2 doesn't work under 4.3+
14925 collect2name=`${CC} -print-prog-name=collect2`
14926 if test -f "$collect2name" && \
14927 strings "$collect2name" | grep resolve_lib_name >/dev/null
14929 # We have reworked collect2
14930 hardcode_direct=yes
14932 # We have old collect2
14933 hardcode_direct=unsupported
14934 # It fails to find uninstalled libraries when the uninstalled
14935 # path is not listed in the libpath. Setting hardcode_minus_L
14936 # to unsupported forces relinking
14937 hardcode_minus_L=yes
14938 hardcode_libdir_flag_spec='-L$libdir'
14939 hardcode_libdir_separator=
14943 shared_flag='-shared'
14944 if test "$aix_use_runtimelinking" = yes; then
14945 shared_flag="$shared_flag "'${wl}-G'
14949 if test "$host_cpu" = ia64; then
14950 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14951 # chokes on -Wl,-G. The following line is correct:
14954 if test "$aix_use_runtimelinking" = yes; then
14955 shared_flag='${wl}-G'
14957 shared_flag='${wl}-bM:SRE'
14962 # It seems that -bexpall does not export symbols beginning with
14963 # underscore (_), so it is better to generate a list of symbols to export.
14964 always_export_symbols=yes
14965 if test "$aix_use_runtimelinking" = yes; then
14966 # Warning - without using the other runtime loading flags (-brtl),
14967 # -berok will link without error, but may produce a broken library.
14968 allow_undefined_flag='-berok'
14969 # Determine the default libpath from the value encoded in an empty executable.
14970 cat >conftest.$ac_ext <<_ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14985 rm -f conftest.$ac_objext conftest$ac_exeext
14986 if { (ac_try="$ac_link"
14987 case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_link") 2>conftest.er1
14994 grep -v '^ *+' conftest.er1 >conftest.err
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15000 { (case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_try") 2>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest$ac_exeext'
15010 { (case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_try") 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15022 # Check for a 64-bit object if we didn't find anything.
15023 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; }
15026 echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15032 rm -f core conftest.err conftest.$ac_objext \
15033 conftest$ac_exeext conftest.$ac_ext
15034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15037 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"
15039 if test "$host_cpu" = ia64; then
15040 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15041 allow_undefined_flag="-z nodefs"
15042 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"
15044 # Determine the default libpath from the value encoded in an empty executable.
15045 cat >conftest.$ac_ext <<_ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15060 rm -f conftest.$ac_objext conftest$ac_exeext
15061 if { (ac_try="$ac_link"
15062 case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_link") 2>conftest.er1
15069 grep -v '^ *+' conftest.er1 >conftest.err
15071 cat conftest.err >&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15075 { (case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_try") 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; } &&
15084 { ac_try='test -s conftest$ac_exeext'
15085 { (case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_try") 2>&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; }; then
15095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15097 # Check for a 64-bit object if we didn't find anything.
15098 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; }
15101 echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15107 rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
15109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15111 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15112 # Warning - without using the other run time loading flags,
15113 # -berok will link without error, but may produce a broken library.
15114 no_undefined_flag=' ${wl}-bernotok'
15115 allow_undefined_flag=' ${wl}-berok'
15116 # Exported symbols can be pulled into shared objects from archives
15117 whole_archive_flag_spec='$convenience'
15118 archive_cmds_need_lc=yes
15119 # This is similar to how AIX traditionally builds its shared libraries.
15120 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'
15126 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)'
15127 hardcode_libdir_flag_spec='-L$libdir'
15128 hardcode_minus_L=yes
15129 # see comment about different semantics on the GNU ld section
15134 export_dynamic_flag_spec=-rdynamic
15137 cygwin* | mingw* | pw32*)
15138 # When not using gcc, we currently assume that we are using
15139 # Microsoft Visual C++.
15140 # hardcode_libdir_flag_spec is actually meaningless, as there is
15141 # no search path for DLLs.
15142 hardcode_libdir_flag_spec=' '
15143 allow_undefined_flag=unsupported
15144 # Tell ltmain to make .lib files, not .a files.
15146 # Tell ltmain to make .dll files, not .so files.
15148 # FIXME: Setting linknames here is a bad hack.
15149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15150 # The linker will automatically build a .lib file if we build a DLL.
15151 old_archive_From_new_cmds='true'
15152 # FIXME: Should let the user specify the lib program.
15153 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15154 fix_srcfile_path='`cygpath -w "$srcfile"`'
15155 enable_shared_with_static_runtimes=yes
15158 darwin* | rhapsody*)
15160 rhapsody* | darwin1.[012])
15161 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15164 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15165 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15167 case ${MACOSX_DEPLOYMENT_TARGET} in
15169 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15172 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15178 archive_cmds_need_lc=no
15180 hardcode_automatic=yes
15181 hardcode_shlibpath_var=unsupported
15182 whole_archive_flag_spec=''
15183 link_all_deplibs=yes
15184 if test "$GCC" = yes ; then
15185 output_verbose_link_cmd='echo'
15186 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15187 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15188 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15189 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}'
15190 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}'
15192 case $cc_basename in
15194 output_verbose_link_cmd='echo'
15195 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15196 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15197 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15198 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}'
15199 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}'
15209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15210 hardcode_libdir_flag_spec='-L$libdir'
15211 hardcode_shlibpath_var=no
15218 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15219 # support. Future versions do this automatically, but an explicit c++rt0.o
15220 # does not break anything, and helps significantly (at the cost of a little
15223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15224 hardcode_libdir_flag_spec='-R$libdir'
15225 hardcode_direct=yes
15226 hardcode_shlibpath_var=no
15229 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15232 hardcode_direct=yes
15233 hardcode_minus_L=yes
15234 hardcode_shlibpath_var=no
15237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15238 freebsd* | kfreebsd*-gnu | dragonfly*)
15239 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15240 hardcode_libdir_flag_spec='-R$libdir'
15241 hardcode_direct=yes
15242 hardcode_shlibpath_var=no
15246 if test "$GCC" = yes; then
15247 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'
15249 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'
15251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15252 hardcode_libdir_separator=:
15253 hardcode_direct=yes
15255 # hardcode_minus_L: Not really in the search PATH,
15256 # but as the default location of the library.
15257 hardcode_minus_L=yes
15258 export_dynamic_flag_spec='${wl}-E'
15262 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15263 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15265 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15267 if test "$with_gnu_ld" = no; then
15268 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15269 hardcode_libdir_separator=:
15271 hardcode_direct=yes
15272 export_dynamic_flag_spec='${wl}-E'
15274 # hardcode_minus_L: Not really in the search PATH,
15275 # but as the default location of the library.
15276 hardcode_minus_L=yes
15281 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15284 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15287 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15290 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15296 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15299 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15302 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15306 if test "$with_gnu_ld" = no; then
15307 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15308 hardcode_libdir_separator=:
15312 hardcode_libdir_flag_spec_ld='+b $libdir'
15314 hardcode_shlibpath_var=no
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
15328 irix5* | irix6* | nonstopux*)
15329 if test "$GCC" = yes; then
15330 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'
15332 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'
15333 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15336 hardcode_libdir_separator=:
15337 link_all_deplibs=yes
15341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15344 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15346 hardcode_libdir_flag_spec='-R$libdir'
15347 hardcode_direct=yes
15348 hardcode_shlibpath_var=no
15352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15353 hardcode_direct=yes
15354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15355 hardcode_libdir_separator=:
15356 hardcode_shlibpath_var=no
15360 hardcode_direct=yes
15361 hardcode_shlibpath_var=no
15362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15364 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15365 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15366 export_dynamic_flag_spec='${wl}-E'
15369 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15371 hardcode_libdir_flag_spec='-R$libdir'
15374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15375 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15382 hardcode_libdir_flag_spec='-L$libdir'
15383 hardcode_minus_L=yes
15384 allow_undefined_flag=unsupported
15385 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'
15386 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15390 if test "$GCC" = yes; then
15391 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15392 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'
15394 allow_undefined_flag=' -expect_unresolved \*'
15395 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'
15397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15398 hardcode_libdir_separator=:
15401 osf4* | osf5*) # as osf3* with the addition of -msym flag
15402 if test "$GCC" = yes; then
15403 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15404 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'
15405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15407 allow_undefined_flag=' -expect_unresolved \*'
15408 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'
15409 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15410 $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'
15412 # Both c and cxx compiler support -rpath directly
15413 hardcode_libdir_flag_spec='-rpath $libdir'
15415 hardcode_libdir_separator=:
15419 no_undefined_flag=' -z text'
15420 if test "$GCC" = yes; then
15422 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15423 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15424 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15427 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15429 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15431 hardcode_libdir_flag_spec='-R$libdir'
15432 hardcode_shlibpath_var=no
15434 solaris2.[0-5] | solaris2.[0-5].*) ;;
15436 # The compiler driver will combine linker options so we
15437 # cannot just pass the convience library names through
15438 # without $wl, iff we do not link with $LD.
15439 # Luckily, gcc supports the same syntax we need for Sun Studio.
15440 # Supported since Solaris 2.6 (maybe 2.5.1?)
15443 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15445 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' ;;
15448 link_all_deplibs=yes
15452 if test "x$host_vendor" = xsequent; then
15453 # Use $CC to link under sequent, because it throws in some extra .o
15454 # files that make .init and .fini sections work.
15455 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15457 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15459 hardcode_libdir_flag_spec='-L$libdir'
15460 hardcode_direct=yes
15461 hardcode_minus_L=yes
15462 hardcode_shlibpath_var=no
15466 case $host_vendor in
15468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15469 hardcode_direct=yes # is this really true???
15472 ## LD is ld it makes a PLAMLIB
15473 ## CC just makes a GrossModule.
15474 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15475 reload_cmds='$CC -r -o $output$reload_objs'
15479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15480 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15483 runpath_var='LD_RUN_PATH'
15484 hardcode_shlibpath_var=no
15488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15489 hardcode_shlibpath_var=no
15490 export_dynamic_flag_spec='-Bexport'
15494 if test -d /usr/nec; then
15495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15496 hardcode_shlibpath_var=no
15497 runpath_var=LD_RUN_PATH
15498 hardcode_runpath_var=yes
15503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15504 no_undefined_flag='${wl}-z,text'
15505 archive_cmds_need_lc=no
15506 hardcode_shlibpath_var=no
15507 runpath_var='LD_RUN_PATH'
15509 if test "$GCC" = yes; then
15510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15518 sysv5* | sco3.2v5* | sco5v6*)
15519 # Note: We can NOT use -z defs as we might desire, because we do not
15520 # link with -lc, and that would cause any symbols used from libc to
15521 # always be unresolved, which means just about no library would
15522 # ever link correctly. If we're not using GNU ld we use -z text
15523 # though, which does catch some bad symbols but isn't as heavy-handed
15525 no_undefined_flag='${wl}-z,text'
15526 allow_undefined_flag='${wl}-z,nodefs'
15527 archive_cmds_need_lc=no
15528 hardcode_shlibpath_var=no
15529 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15530 hardcode_libdir_separator=':'
15531 link_all_deplibs=yes
15532 export_dynamic_flag_spec='${wl}-Bexport'
15533 runpath_var='LD_RUN_PATH'
15535 if test "$GCC" = yes; then
15536 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15539 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_libdir_flag_spec='-L$libdir'
15547 hardcode_shlibpath_var=no
15556 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15557 echo "${ECHO_T}$ld_shlibs" >&6; }
15558 test "$ld_shlibs" = no && can_build_shared=no
15561 # Do we need to explicitly link libc?
15563 case "x$archive_cmds_need_lc" in
15565 # Assume -lc should be added
15566 archive_cmds_need_lc=yes
15568 if test "$enable_shared" = yes && test "$GCC" = yes; then
15569 case $archive_cmds in
15571 # FIXME: we may have to deal with multi-command sequences.
15574 # Test whether the compiler implicitly links with -lc since on some
15575 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15576 # to ld, don't add -lc before -lgcc.
15577 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15578 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15583 (eval $ac_compile) 2>&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } 2>conftest.err; then
15589 libobjs=conftest.$ac_objext
15591 wl=$lt_prog_compiler_wl
15592 pic_flag=$lt_prog_compiler_pic
15598 lt_save_allow_undefined_flag=$allow_undefined_flag
15599 allow_undefined_flag=
15600 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15601 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }
15606 archive_cmds_need_lc=no
15608 archive_cmds_need_lc=yes
15610 allow_undefined_flag=$lt_save_allow_undefined_flag
15612 cat conftest.err 1>&5
15615 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15616 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15623 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15624 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15625 library_names_spec=
15626 libname_spec='lib$name'
15630 postuninstall_cmds=
15634 shlibpath_overrides_runpath=unknown
15636 dynamic_linker="$host_os ld.so"
15637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15638 if test "$GCC" = yes; then
15639 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15640 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15641 # if the path contains ";" then we assume it to be the separator
15642 # otherwise default to the standard path separator (i.e. ":") - it is
15643 # assumed that no part of a normal pathname contains ";" but that should
15644 # okay in the real world where ";" in dirpaths is itself problematic.
15645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15652 need_lib_prefix=unknown
15653 hardcode_into_libs=no
15655 # when you set need_version to no, make sure it does not cause -set_version
15656 # flags to be left without arguments
15657 need_version=unknown
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15663 shlibpath_var=LIBPATH
15665 # AIX 3 has no versioning support, so we append a major version to the name.
15666 soname_spec='${libname}${release}${shared_ext}$major'
15673 hardcode_into_libs=yes
15674 if test "$host_cpu" = ia64; then
15675 # AIX 5 supports IA64
15676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15677 shlibpath_var=LD_LIBRARY_PATH
15679 # With GCC up to 2.95.x, collect2 would create an import file
15680 # for dependence libraries. The import file would start with
15681 # the line `#! .'. This would cause the generated library to
15682 # depend on `.', always an invalid library. This was fixed in
15683 # development snapshots of GCC prior to 3.0.
15685 aix4 | aix4.[01] | aix4.[01].*)
15686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15691 can_build_shared=no
15695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15696 # soname into executable. Probably we can add versioning support to
15697 # collect2, so additional links can be useful in future.
15698 if test "$aix_use_runtimelinking" = yes; then
15699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15700 # instead of lib<name>.a to let people know that these are not
15701 # typical AIX shared libraries.
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704 # We preserve .a as extension for shared libraries through AIX4.2
15705 # and later when we are not doing run time linking.
15706 library_names_spec='${libname}${release}.a $libname.a'
15707 soname_spec='${libname}${release}${shared_ext}$major'
15709 shlibpath_var=LIBPATH
15714 library_names_spec='$libname.ixlibrary $libname.a'
15715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15716 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'
15720 library_names_spec='${libname}${shared_ext}'
15721 dynamic_linker="$host_os ld.so"
15722 shlibpath_var=LIBRARY_PATH
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 soname_spec='${libname}${release}${shared_ext}$major'
15730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15731 shlibpath_var=LD_LIBRARY_PATH
15732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15734 # the default ld.so.conf also contains /usr/contrib/lib and
15735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15736 # libtool to hard-code these into programs
15739 cygwin* | mingw* | pw32*)
15740 version_type=windows
15745 case $GCC,$host_os in
15746 yes,cygwin* | yes,mingw* | yes,pw32*)
15747 library_names_spec='$libname.dll.a'
15748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15749 postinstall_cmds='base_file=`basename \${file}`~
15750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15751 dldir=$destdir/`dirname \$dlpath`~
15752 test -d \$dldir || mkdir -p \$dldir~
15753 $install_prog $dir/$dlname \$dldir/$dlname~
15754 chmod a+x \$dldir/$dlname'
15755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15756 dlpath=$dir/\$dldll~
15758 shlibpath_overrides_runpath=yes
15762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15767 # MinGW DLLs use traditional 'lib' prefix
15768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15771 # It is most probably a Windows format PATH printed by
15772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15773 # path with ; separators, and with drive letters. We can handle the
15774 # drive letters (cygwin fileutils understands them), so leave them,
15775 # especially as we might pass files found there to a mingw objdump,
15776 # which wouldn't understand a cygwinified path. Ahh.
15777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15783 # pw32 DLLs use 'pw' prefix rather than 'lib'
15784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15793 dynamic_linker='Win32 ld.exe'
15794 # FIXME: first we should search . and the directory the executable is in
15798 darwin* | rhapsody*)
15799 dynamic_linker="$host_os dyld"
15800 version_type=darwin
15803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15804 soname_spec='${libname}${release}${major}$shared_ext'
15805 shlibpath_overrides_runpath=yes
15806 shlibpath_var=DYLD_LIBRARY_PATH
15807 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15809 if test "$GCC" = yes; then
15810 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"`
15812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 shlibpath_var=LD_LIBRARY_PATH
15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15835 soname_spec='${libname}${release}${shared_ext}$major'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 shlibpath_overrides_runpath=no
15838 hardcode_into_libs=yes
15839 dynamic_linker='GNU ld.so'
15842 freebsd* | dragonfly*)
15843 # DragonFly does not have aout. When/if they implement a new
15844 # versioning mechanism, adjust this.
15845 if test -x /usr/bin/objformat; then
15846 objformat=`/usr/bin/objformat`
15849 freebsd[123]*) objformat=aout ;;
15850 *) objformat=elf ;;
15853 version_type=freebsd-$objformat
15854 case $version_type in
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15865 shlibpath_var=LD_LIBRARY_PATH
15868 shlibpath_overrides_runpath=yes
15870 freebsd3.[01]* | freebsdelf3.[01]*)
15871 shlibpath_overrides_runpath=yes
15872 hardcode_into_libs=yes
15874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15876 shlibpath_overrides_runpath=no
15877 hardcode_into_libs=yes
15879 freebsd*) # from 4.6 on
15880 shlibpath_overrides_runpath=yes
15881 hardcode_into_libs=yes
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15891 soname_spec='${libname}${release}${shared_ext}$major'
15892 shlibpath_var=LD_LIBRARY_PATH
15893 hardcode_into_libs=yes
15896 hpux9* | hpux10* | hpux11*)
15897 # Give a soname corresponding to the major version so that dld.sl refuses to
15898 # link against other versions.
15905 hardcode_into_libs=yes
15906 dynamic_linker="$host_os dld.so"
15907 shlibpath_var=LD_LIBRARY_PATH
15908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 if test "X$HPUX_IA64_MODE" = X32; then
15912 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15914 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15920 hardcode_into_libs=yes
15921 dynamic_linker="$host_os dld.sl"
15922 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925 soname_spec='${libname}${release}${shared_ext}$major'
15926 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15931 dynamic_linker="$host_os dld.sl"
15932 shlibpath_var=SHLIB_PATH
15933 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15938 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15939 postinstall_cmds='chmod 555 $lib'
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 shlibpath_overrides_runpath=no
15951 hardcode_into_libs=yes
15954 irix5* | irix6* | nonstopux*)
15956 nonstopux*) version_type=nonstopux ;;
15958 if test "$lt_cv_prog_gnu_ld" = yes; then
15966 soname_spec='${libname}${release}${shared_ext}$major'
15967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15969 irix5* | nonstopux*)
15970 libsuff= shlibsuff=
15973 case $LD in # libtool.m4 will add one of these switches to LD
15974 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15975 libsuff= shlibsuff= libmagic=32-bit;;
15976 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15977 libsuff=32 shlibsuff=N32 libmagic=N32;;
15978 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15979 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15980 *) libsuff= shlibsuff= libmagic=never-match;;
15984 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15985 shlibpath_overrides_runpath=no
15986 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15987 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15988 hardcode_into_libs=yes
15991 # No shared lib support for Linux oldld, aout, or coff.
15992 linux*oldld* | linux*aout* | linux*coff*)
15996 # This must be Linux ELF.
16001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002 soname_spec='${libname}${release}${shared_ext}$major'
16003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16004 shlibpath_var=LD_LIBRARY_PATH
16005 shlibpath_overrides_runpath=no
16006 # This implies no fast_install, which is unacceptable.
16007 # Some rework will be needed to allow for fast_install
16008 # before this can be enabled.
16009 hardcode_into_libs=yes
16011 # Append ld.so.conf contents to the search path
16012 if test -f /etc/ld.so.conf; then
16013 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' ' '`
16014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16017 # We used to test for /lib/ld.so.1 and disable shared libraries on
16018 # powerpc, because MkLinux only supported shared libraries with the
16019 # GNU dynamic linker. Since this was broken with cross compilers,
16020 # most powerpc-linux boxes support dynamic linking these days and
16021 # people can always --disable-shared, the test was removed, and we
16022 # assume the GNU/Linux dynamic linker is in use.
16023 dynamic_linker='GNU/Linux ld.so'
16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16031 soname_spec='${libname}${release}${shared_ext}$major'
16032 shlibpath_var=LD_LIBRARY_PATH
16033 shlibpath_overrides_runpath=no
16034 hardcode_into_libs=yes
16035 dynamic_linker='GNU ld.so'
16042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16045 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
16051 shlibpath_var=LD_LIBRARY_PATH
16052 shlibpath_overrides_runpath=yes
16053 hardcode_into_libs=yes
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059 shlibpath_var=LD_LIBRARY_PATH
16060 shlibpath_overrides_runpath=yes
16067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16068 soname_spec='${libname}${release}${shared_ext}$major'
16069 shlibpath_var=LD_LIBRARY_PATH
16070 shlibpath_overrides_runpath=yes
16075 sys_lib_dlsearch_path_spec="/usr/lib"
16077 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16079 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16080 *) need_version=no ;;
16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16084 shlibpath_var=LD_LIBRARY_PATH
16085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16087 openbsd2.[89] | openbsd2.[89].*)
16088 shlibpath_overrides_runpath=no
16091 shlibpath_overrides_runpath=yes
16095 shlibpath_overrides_runpath=yes
16100 libname_spec='$name'
16103 library_names_spec='$libname${shared_ext} $libname.a'
16104 dynamic_linker='OS/2 ld.exe'
16105 shlibpath_var=LIBPATH
16108 osf3* | osf4* | osf5*)
16112 soname_spec='${libname}${release}${shared_ext}$major'
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114 shlibpath_var=LD_LIBRARY_PATH
16115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124 soname_spec='${libname}${release}${shared_ext}$major'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 shlibpath_overrides_runpath=yes
16127 hardcode_into_libs=yes
16128 # ldd complains unless libraries are executable
16129 postinstall_cmds='chmod +x $lib'
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16135 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16136 shlibpath_var=LD_LIBRARY_PATH
16137 shlibpath_overrides_runpath=yes
16138 if test "$with_gnu_ld" = yes; then
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 soname_spec='${libname}${release}${shared_ext}$major'
16148 shlibpath_var=LD_LIBRARY_PATH
16149 case $host_vendor in
16151 shlibpath_overrides_runpath=no
16153 export_dynamic_flag_spec='${wl}-Blargedynsym'
16154 runpath_var=LD_RUN_PATH
16162 shlibpath_overrides_runpath=no
16163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16169 if test -d /usr/nec ;then
16171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16172 soname_spec='$libname${shared_ext}.$major'
16173 shlibpath_var=LD_LIBRARY_PATH
16177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16178 version_type=freebsd-elf
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 hardcode_into_libs=yes
16185 if test "$with_gnu_ld" = yes; then
16186 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16187 shlibpath_overrides_runpath=no
16189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16190 shlibpath_overrides_runpath=yes
16193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16197 sys_lib_dlsearch_path_spec='/usr/lib'
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203 soname_spec='${libname}${release}${shared_ext}$major'
16204 shlibpath_var=LD_LIBRARY_PATH
16211 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16212 echo "${ECHO_T}$dynamic_linker" >&6; }
16213 test "$dynamic_linker" = no && can_build_shared=no
16215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16216 if test "$GCC" = yes; then
16217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16220 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16221 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16223 if test -n "$hardcode_libdir_flag_spec" || \
16224 test -n "$runpath_var" || \
16225 test "X$hardcode_automatic" = "Xyes" ; then
16227 # We can hardcode non-existant directories.
16228 if test "$hardcode_direct" != no &&
16229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16230 # have to relink, otherwise we might link with an installed library
16231 # when we should be linking with a yet-to-be-installed one
16232 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16233 test "$hardcode_minus_L" != no; then
16234 # Linking always hardcodes the temporary library directory.
16235 hardcode_action=relink
16237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16238 hardcode_action=immediate
16241 # We cannot hardcode anything, or else we can only hardcode existing
16243 hardcode_action=unsupported
16245 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16246 echo "${ECHO_T}$hardcode_action" >&6; }
16248 if test "$hardcode_action" = relink; then
16249 # Fast installation is not supported
16250 enable_fast_install=no
16251 elif test "$shlibpath_overrides_runpath" = yes ||
16252 test "$enable_shared" = no; then
16253 # Fast installation is not necessary
16254 enable_fast_install=needless
16259 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16260 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16261 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16262 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16263 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16264 { echo "$as_me:$LINENO: result: yes" >&5
16265 echo "${ECHO_T}yes" >&6; }
16267 # FIXME - insert some real tests, host_os isn't really good enough
16270 if test -n "$STRIP" ; then
16271 striplib="$STRIP -x"
16272 { echo "$as_me:$LINENO: result: yes" >&5
16273 echo "${ECHO_T}yes" >&6; }
16275 { echo "$as_me:$LINENO: result: no" >&5
16276 echo "${ECHO_T}no" >&6; }
16280 { echo "$as_me:$LINENO: result: no" >&5
16281 echo "${ECHO_T}no" >&6; }
16286 if test "x$enable_dlopen" != xyes; then
16287 enable_dlopen=unknown
16288 enable_dlopen_self=unknown
16289 enable_dlopen_self_static=unknown
16296 lt_cv_dlopen="load_add_on"
16298 lt_cv_dlopen_self=yes
16302 lt_cv_dlopen="LoadLibrary"
16307 lt_cv_dlopen="dlopen"
16312 # if libdl is installed we need to link against it
16313 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16314 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16315 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 ac_check_lib_save_LIBS=$LIBS
16320 cat >conftest.$ac_ext <<_ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h. */
16327 /* Override any GCC internal prototype to avoid an error.
16328 Use char because int might match the return type of a GCC
16329 builtin and then its argument prototype would still apply. */
16342 rm -f conftest.$ac_objext conftest$ac_exeext
16343 if { (ac_try="$ac_link"
16344 case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_link") 2>conftest.er1
16351 grep -v '^ *+' conftest.er1 >conftest.err
16353 cat conftest.err >&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
16356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16357 { (case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_try") 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; } &&
16366 { ac_try='test -s conftest$ac_exeext'
16367 { (case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372 (eval "$ac_try") 2>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; }; then
16376 ac_cv_lib_dl_dlopen=yes
16378 echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16381 ac_cv_lib_dl_dlopen=no
16384 rm -f core conftest.err conftest.$ac_objext \
16385 conftest$ac_exeext conftest.$ac_ext
16386 LIBS=$ac_check_lib_save_LIBS
16388 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16389 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16390 if test $ac_cv_lib_dl_dlopen = yes; then
16391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16394 lt_cv_dlopen="dyld"
16396 lt_cv_dlopen_self=yes
16403 { echo "$as_me:$LINENO: checking for shl_load" >&5
16404 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16405 if test "${ac_cv_func_shl_load+set}" = set; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16408 cat >conftest.$ac_ext <<_ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16414 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16416 #define shl_load innocuous_shl_load
16418 /* System header to define __stub macros and hopefully few prototypes,
16419 which can conflict with char shl_load (); below.
16420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16421 <limits.h> exists even on freestanding compilers. */
16424 # include <limits.h>
16426 # include <assert.h>
16431 /* Override any GCC internal prototype to avoid an error.
16432 Use char because int might match the return type of a GCC
16433 builtin and then its argument prototype would still apply. */
16438 /* The GNU C library defines this for functions which it implements
16439 to always fail with ENOSYS. Some functions are actually named
16440 something starting with __ and the normal name is an alias. */
16441 #if defined __stub_shl_load || defined __stub___shl_load
16448 return shl_load ();
16453 rm -f conftest.$ac_objext conftest$ac_exeext
16454 if { (ac_try="$ac_link"
16455 case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_link") 2>conftest.er1
16462 grep -v '^ *+' conftest.er1 >conftest.err
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; } &&
16477 { ac_try='test -s conftest$ac_exeext'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_func_shl_load=yes
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 ac_cv_func_shl_load=no
16495 rm -f core conftest.err conftest.$ac_objext \
16496 conftest$ac_exeext conftest.$ac_ext
16498 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16499 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16500 if test $ac_cv_func_shl_load = yes; then
16501 lt_cv_dlopen="shl_load"
16503 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16504 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16505 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16508 ac_check_lib_save_LIBS=$LIBS
16510 cat >conftest.$ac_ext <<_ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16517 /* Override any GCC internal prototype to avoid an error.
16518 Use char because int might match the return type of a GCC
16519 builtin and then its argument prototype would still apply. */
16527 return shl_load ();
16532 rm -f conftest.$ac_objext conftest$ac_exeext
16533 if { (ac_try="$ac_link"
16534 case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_link") 2>conftest.er1
16541 grep -v '^ *+' conftest.er1 >conftest.err
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
16546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16547 { (case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552 (eval "$ac_try") 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; } &&
16556 { ac_try='test -s conftest$ac_exeext'
16557 { (case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_try") 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_lib_dld_shl_load=yes
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571 ac_cv_lib_dld_shl_load=no
16574 rm -f core conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext conftest.$ac_ext
16576 LIBS=$ac_check_lib_save_LIBS
16578 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16579 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16580 if test $ac_cv_lib_dld_shl_load = yes; then
16581 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16583 { echo "$as_me:$LINENO: checking for dlopen" >&5
16584 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16585 if test "${ac_cv_func_dlopen+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 cat >conftest.$ac_ext <<_ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16596 #define dlopen innocuous_dlopen
16598 /* System header to define __stub macros and hopefully few prototypes,
16599 which can conflict with char dlopen (); below.
16600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16601 <limits.h> exists even on freestanding compilers. */
16604 # include <limits.h>
16606 # include <assert.h>
16611 /* Override any GCC internal prototype to avoid an error.
16612 Use char because int might match the return type of a GCC
16613 builtin and then its argument prototype would still apply. */
16618 /* The GNU C library defines this for functions which it implements
16619 to always fail with ENOSYS. Some functions are actually named
16620 something starting with __ and the normal name is an alias. */
16621 #if defined __stub_dlopen || defined __stub___dlopen
16633 rm -f conftest.$ac_objext conftest$ac_exeext
16634 if { (ac_try="$ac_link"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_link") 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest$ac_exeext'
16658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 ac_cv_func_dlopen=yes
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_cv_func_dlopen=no
16675 rm -f core conftest.err conftest.$ac_objext \
16676 conftest$ac_exeext conftest.$ac_ext
16678 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16679 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16680 if test $ac_cv_func_dlopen = yes; then
16681 lt_cv_dlopen="dlopen"
16683 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16684 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16685 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 ac_check_lib_save_LIBS=$LIBS
16690 cat >conftest.$ac_ext <<_ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16697 /* Override any GCC internal prototype to avoid an error.
16698 Use char because int might match the return type of a GCC
16699 builtin and then its argument prototype would still apply. */
16712 rm -f conftest.$ac_objext conftest$ac_exeext
16713 if { (ac_try="$ac_link"
16714 case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_link") 2>conftest.er1
16721 grep -v '^ *+' conftest.er1 >conftest.err
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } &&
16736 { ac_try='test -s conftest$ac_exeext'
16737 { (case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_try") 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_lib_dl_dlopen=yes
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_lib_dl_dlopen=no
16754 rm -f core conftest.err conftest.$ac_objext \
16755 conftest$ac_exeext conftest.$ac_ext
16756 LIBS=$ac_check_lib_save_LIBS
16758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16759 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16760 if test $ac_cv_lib_dl_dlopen = yes; then
16761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16763 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16764 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16765 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 ac_check_lib_save_LIBS=$LIBS
16769 LIBS="-lsvld $LIBS"
16770 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16777 /* Override any GCC internal prototype to avoid an error.
16778 Use char because int might match the return type of a GCC
16779 builtin and then its argument prototype would still apply. */
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (ac_try="$ac_link"
16794 case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_link") 2>conftest.er1
16801 grep -v '^ *+' conftest.er1 >conftest.err
16803 cat conftest.err >&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
16806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16807 { (case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_try") 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } &&
16816 { ac_try='test -s conftest$ac_exeext'
16817 { (case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_try") 2>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 ac_cv_lib_svld_dlopen=yes
16828 echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16831 ac_cv_lib_svld_dlopen=no
16834 rm -f core conftest.err conftest.$ac_objext \
16835 conftest$ac_exeext conftest.$ac_ext
16836 LIBS=$ac_check_lib_save_LIBS
16838 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16839 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16840 if test $ac_cv_lib_svld_dlopen = yes; then
16841 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16843 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16844 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16845 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16848 ac_check_lib_save_LIBS=$LIBS
16850 cat >conftest.$ac_ext <<_ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16857 /* Override any GCC internal prototype to avoid an error.
16858 Use char because int might match the return type of a GCC
16859 builtin and then its argument prototype would still apply. */
16867 return dld_link ();
16872 rm -f conftest.$ac_objext conftest$ac_exeext
16873 if { (ac_try="$ac_link"
16874 case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_link") 2>conftest.er1
16881 grep -v '^ *+' conftest.er1 >conftest.err
16883 cat conftest.err >&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
16886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16887 { (case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_try") 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; } &&
16896 { ac_try='test -s conftest$ac_exeext'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 ac_cv_lib_dld_dld_link=yes
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 ac_cv_lib_dld_dld_link=no
16914 rm -f core conftest.err conftest.$ac_objext \
16915 conftest$ac_exeext conftest.$ac_ext
16916 LIBS=$ac_check_lib_save_LIBS
16918 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16919 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16920 if test $ac_cv_lib_dld_dld_link = yes; then
16921 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16942 if test "x$lt_cv_dlopen" != xno; then
16948 case $lt_cv_dlopen in
16950 save_CPPFLAGS="$CPPFLAGS"
16951 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16953 save_LDFLAGS="$LDFLAGS"
16954 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16957 LIBS="$lt_cv_dlopen_libs $LIBS"
16959 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16960 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16961 if test "${lt_cv_dlopen_self+set}" = set; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 if test "$cross_compiling" = yes; then :
16965 lt_cv_dlopen_self=cross
16967 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16968 lt_status=$lt_dlunknown
16969 cat > conftest.$ac_ext <<EOF
16970 #line 16970 "configure"
16971 #include "confdefs.h"
16980 # define LT_DLGLOBAL RTLD_GLOBAL
16983 # define LT_DLGLOBAL DL_GLOBAL
16985 # define LT_DLGLOBAL 0
16989 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16990 find out it does not work in some platform. */
16991 #ifndef LT_DLLAZY_OR_NOW
16993 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16996 # define LT_DLLAZY_OR_NOW DL_LAZY
16999 # define LT_DLLAZY_OR_NOW RTLD_NOW
17002 # define LT_DLLAZY_OR_NOW DL_NOW
17004 # define LT_DLLAZY_OR_NOW 0
17012 extern "C" void exit (int);
17015 void fnord() { int i=42;}
17018 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17019 int status = $lt_dlunknown;
17023 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17024 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17025 /* dlclose (self); */
17033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17034 (eval $ac_link) 2>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17038 (./conftest; exit; ) >&5 2>/dev/null
17040 case x$lt_status in
17041 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17042 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17043 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17046 # compilation failed
17047 lt_cv_dlopen_self=no
17054 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17055 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17057 if test "x$lt_cv_dlopen_self" = xyes; then
17058 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17059 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17060 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17061 if test "${lt_cv_dlopen_self_static+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 if test "$cross_compiling" = yes; then :
17065 lt_cv_dlopen_self_static=cross
17067 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17068 lt_status=$lt_dlunknown
17069 cat > conftest.$ac_ext <<EOF
17070 #line 17070 "configure"
17071 #include "confdefs.h"
17080 # define LT_DLGLOBAL RTLD_GLOBAL
17083 # define LT_DLGLOBAL DL_GLOBAL
17085 # define LT_DLGLOBAL 0
17089 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17090 find out it does not work in some platform. */
17091 #ifndef LT_DLLAZY_OR_NOW
17093 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17096 # define LT_DLLAZY_OR_NOW DL_LAZY
17099 # define LT_DLLAZY_OR_NOW RTLD_NOW
17102 # define LT_DLLAZY_OR_NOW DL_NOW
17104 # define LT_DLLAZY_OR_NOW 0
17112 extern "C" void exit (int);
17115 void fnord() { int i=42;}
17118 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17119 int status = $lt_dlunknown;
17123 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17124 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17125 /* dlclose (self); */
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17138 (./conftest; exit; ) >&5 2>/dev/null
17140 case x$lt_status in
17141 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17142 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17143 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17146 # compilation failed
17147 lt_cv_dlopen_self_static=no
17154 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17155 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17158 CPPFLAGS="$save_CPPFLAGS"
17159 LDFLAGS="$save_LDFLAGS"
17164 case $lt_cv_dlopen_self in
17165 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17166 *) enable_dlopen_self=unknown ;;
17169 case $lt_cv_dlopen_self_static in
17170 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17171 *) enable_dlopen_self_static=unknown ;;
17176 # Report which library types will actually be built
17177 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17178 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17179 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17180 echo "${ECHO_T}$can_build_shared" >&6; }
17182 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17183 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17184 test "$can_build_shared" = "no" && enable_shared=no
17186 # On AIX, shared libraries and static libraries use the same namespace, and
17187 # are all built from PIC.
17190 test "$enable_shared" = yes && enable_static=no
17191 if test -n "$RANLIB"; then
17192 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17193 postinstall_cmds='$RANLIB $lib'
17198 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17199 test "$enable_shared" = yes && enable_static=no
17203 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17204 echo "${ECHO_T}$enable_shared" >&6; }
17206 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17207 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17208 # Make sure either enable_shared or enable_static is yes.
17209 test "$enable_shared" = yes || enable_static=yes
17210 { echo "$as_me:$LINENO: result: $enable_static" >&5
17211 echo "${ECHO_T}$enable_static" >&6; }
17213 # The else clause should only fire when bootstrapping the
17214 # libtool distribution, otherwise you forgot to ship ltmain.sh
17215 # with your package, and you will get complaints that there are
17216 # no rules to generate ltmain.sh.
17217 if test -f "$ltmain"; then
17218 # See if we are running on zsh, and set the options which allow our commands through
17219 # without removal of \ escapes.
17220 if test -n "${ZSH_VERSION+set}" ; then
17221 setopt NO_GLOB_SUBST
17223 # Now quote all the things that may contain metacharacters while being
17224 # careful not to overquote the AC_SUBSTed values. We take copies of the
17225 # variables and quote the copies for generation of the libtool script.
17226 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17228 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17229 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17230 deplibs_check_method reload_flag reload_cmds need_locks \
17231 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17232 lt_cv_sys_global_symbol_to_c_name_address \
17233 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17234 old_postinstall_cmds old_postuninstall_cmds \
17238 lt_prog_compiler_wl \
17239 lt_prog_compiler_pic \
17240 lt_prog_compiler_static \
17241 lt_prog_compiler_no_builtin_flag \
17242 export_dynamic_flag_spec \
17243 thread_safe_flag_spec \
17244 whole_archive_flag_spec \
17245 enable_shared_with_static_runtimes \
17247 old_archive_from_new_cmds \
17252 compiler_lib_search_path \
17254 archive_expsym_cmds \
17256 postuninstall_cmds \
17257 old_archive_from_expsyms_cmds \
17258 allow_undefined_flag \
17259 no_undefined_flag \
17260 export_symbols_cmds \
17261 hardcode_libdir_flag_spec \
17262 hardcode_libdir_flag_spec_ld \
17263 hardcode_libdir_separator \
17264 hardcode_automatic \
17266 module_expsym_cmds \
17267 lt_cv_prog_compiler_c_o \
17269 include_expsyms; do
17272 old_archive_cmds | \
17273 old_archive_from_new_cmds | \
17275 archive_expsym_cmds | \
17277 module_expsym_cmds | \
17278 old_archive_from_expsyms_cmds | \
17279 export_symbols_cmds | \
17280 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17281 postinstall_cmds | postuninstall_cmds | \
17282 old_postinstall_cmds | old_postuninstall_cmds | \
17283 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17284 # Double-quote double-evaled strings.
17285 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17288 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17294 *'\$0 --fallback-echo"')
17295 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17299 cfgfile="${ofile}T"
17300 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17302 { echo "$as_me:$LINENO: creating $ofile" >&5
17303 echo "$as_me: creating $ofile" >&6;}
17305 cat <<__EOF__ >> "$cfgfile"
17308 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17309 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17310 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17312 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17313 # Free Software Foundation, Inc.
17315 # This file is part of GNU Libtool:
17316 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17318 # This program is free software; you can redistribute it and/or modify
17319 # it under the terms of the GNU General Public License as published by
17320 # the Free Software Foundation; either version 2 of the License, or
17321 # (at your option) any later version.
17323 # This program is distributed in the hope that it will be useful, but
17324 # WITHOUT ANY WARRANTY; without even the implied warranty of
17325 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17326 # General Public License for more details.
17328 # You should have received a copy of the GNU General Public License
17329 # along with this program; if not, write to the Free Software
17330 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17332 # As a special exception to the GNU General Public License, if you
17333 # distribute this file as part of a program that contains a
17334 # configuration script generated by Autoconf, you may include it under
17335 # the same distribution terms that you use for the rest of that program.
17337 # A sed program that does not truncate output.
17340 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17341 Xsed="$SED -e 1s/^X//"
17343 # The HP-UX ksh and POSIX shell print the target directory to stdout
17344 # if CDPATH is set.
17345 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17347 # The names of the tagged configurations supported by this script.
17350 # ### BEGIN LIBTOOL CONFIG
17352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17354 # Shell to use when invoking shell scripts.
17357 # Whether or not to build shared libraries.
17358 build_libtool_libs=$enable_shared
17360 # Whether or not to build static libraries.
17361 build_old_libs=$enable_static
17363 # Whether or not to add -lc for building shared libraries.
17364 build_libtool_need_lc=$archive_cmds_need_lc
17366 # Whether or not to disallow shared libs when runtime libs are static
17367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17369 # Whether or not to optimize for fast installation.
17370 fast_install=$enable_fast_install
17373 host_alias=$host_alias
17377 # The build system.
17378 build_alias=$build_alias
17382 # An echo program that does not interpret backslashes.
17387 AR_FLAGS=$lt_AR_FLAGS
17392 # LTCC compiler flags.
17393 LTCFLAGS=$lt_LTCFLAGS
17395 # A language-specific compiler.
17398 # Is the compiler the GNU C compiler?
17404 # The linker used to build libraries.
17407 # Whether we need hard or soft links.
17410 # A BSD-compatible nm program.
17413 # A symbol stripping program
17416 # Used to examine libraries when file_magic_cmd begins "file"
17417 MAGIC_CMD=$MAGIC_CMD
17419 # Used on cygwin: DLL creation program.
17422 # Used on cygwin: object dumper.
17425 # Used on cygwin: assembler.
17428 # The name of the directory that contains temporary libtool files.
17431 # How to create reloadable object files.
17432 reload_flag=$lt_reload_flag
17433 reload_cmds=$lt_reload_cmds
17435 # How to pass a linker flag through the compiler.
17436 wl=$lt_lt_prog_compiler_wl
17438 # Object file suffix (normally "o").
17439 objext="$ac_objext"
17441 # Old archive suffix (normally "a").
17444 # Shared library suffix (normally ".so").
17445 shrext_cmds='$shrext_cmds'
17447 # Executable file suffix (normally "").
17450 # Additional compiler flags for building library objects.
17451 pic_flag=$lt_lt_prog_compiler_pic
17454 # What is the maximum length of a command?
17455 max_cmd_len=$lt_cv_sys_max_cmd_len
17457 # Does compiler simultaneously support -c and -o options?
17458 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17460 # Must we lock files when doing compilation?
17461 need_locks=$lt_need_locks
17463 # Do we need the lib prefix for modules?
17464 need_lib_prefix=$need_lib_prefix
17466 # Do we need a version for libraries?
17467 need_version=$need_version
17469 # Whether dlopen is supported.
17470 dlopen_support=$enable_dlopen
17472 # Whether dlopen of programs is supported.
17473 dlopen_self=$enable_dlopen_self
17475 # Whether dlopen of statically linked programs is supported.
17476 dlopen_self_static=$enable_dlopen_self_static
17478 # Compiler flag to prevent dynamic linking.
17479 link_static_flag=$lt_lt_prog_compiler_static
17481 # Compiler flag to turn off builtin functions.
17482 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17484 # Compiler flag to allow reflexive dlopens.
17485 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17487 # Compiler flag to generate shared objects directly from archives.
17488 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17490 # Compiler flag to generate thread-safe objects.
17491 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17493 # Library versioning type.
17494 version_type=$version_type
17496 # Format of library name prefix.
17497 libname_spec=$lt_libname_spec
17499 # List of archive names. First name is the real one, the rest are links.
17500 # The last name is the one that the linker finds with -lNAME.
17501 library_names_spec=$lt_library_names_spec
17503 # The coded name of the library, if different from the real name.
17504 soname_spec=$lt_soname_spec
17506 # Commands used to build and install an old-style archive.
17508 old_archive_cmds=$lt_old_archive_cmds
17509 old_postinstall_cmds=$lt_old_postinstall_cmds
17510 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17512 # Create an old-style archive from a shared archive.
17513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17515 # Create a temporary old-style archive to link instead of a shared archive.
17516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17518 # Commands used to build and install a shared archive.
17519 archive_cmds=$lt_archive_cmds
17520 archive_expsym_cmds=$lt_archive_expsym_cmds
17521 postinstall_cmds=$lt_postinstall_cmds
17522 postuninstall_cmds=$lt_postuninstall_cmds
17524 # Commands used to build a loadable module (assumed same as above if empty)
17525 module_cmds=$lt_module_cmds
17526 module_expsym_cmds=$lt_module_expsym_cmds
17528 # Commands to strip libraries.
17529 old_striplib=$lt_old_striplib
17530 striplib=$lt_striplib
17532 # Dependencies to place before the objects being linked to create a
17534 predep_objects=$lt_predep_objects
17536 # Dependencies to place after the objects being linked to create a
17538 postdep_objects=$lt_postdep_objects
17540 # Dependencies to place before the objects being linked to create a
17542 predeps=$lt_predeps
17544 # Dependencies to place after the objects being linked to create a
17546 postdeps=$lt_postdeps
17548 # The library search path used internally by the compiler when linking
17549 # a shared library.
17550 compiler_lib_search_path=$lt_compiler_lib_search_path
17552 # Method to check whether dependent libraries are shared objects.
17553 deplibs_check_method=$lt_deplibs_check_method
17555 # Command to use when deplibs_check_method == file_magic.
17556 file_magic_cmd=$lt_file_magic_cmd
17558 # Flag that allows shared libraries with undefined symbols to be built.
17559 allow_undefined_flag=$lt_allow_undefined_flag
17561 # Flag that forces no undefined symbols.
17562 no_undefined_flag=$lt_no_undefined_flag
17564 # Commands used to finish a libtool library installation in a directory.
17565 finish_cmds=$lt_finish_cmds
17567 # Same as above, but a single script fragment to be evaled but not shown.
17568 finish_eval=$lt_finish_eval
17570 # Take the output of nm and produce a listing of raw symbols and C names.
17571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17573 # Transform the output of nm in a proper C declaration
17574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17576 # Transform the output of nm in a C name address pair
17577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17579 # This is the shared library runtime path variable.
17580 runpath_var=$runpath_var
17582 # This is the shared library path variable.
17583 shlibpath_var=$shlibpath_var
17585 # Is shlibpath searched before the hard-coded library search path?
17586 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17588 # How to hardcode a shared library path into an executable.
17589 hardcode_action=$hardcode_action
17591 # Whether we should hardcode library paths into libraries.
17592 hardcode_into_libs=$hardcode_into_libs
17594 # Flag to hardcode \$libdir into a binary during linking.
17595 # This must work even if \$libdir does not exist.
17596 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17598 # If ld is used when linking, flag to hardcode \$libdir into
17599 # a binary during linking. This must work even if \$libdir does
17601 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17603 # Whether we need a single -rpath flag with a separated argument.
17604 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17606 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17607 # resulting binary.
17608 hardcode_direct=$hardcode_direct
17610 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17611 # resulting binary.
17612 hardcode_minus_L=$hardcode_minus_L
17614 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17615 # the resulting binary.
17616 hardcode_shlibpath_var=$hardcode_shlibpath_var
17618 # Set to yes if building a shared library automatically hardcodes DIR into the library
17619 # and all subsequent libraries and executables linked against it.
17620 hardcode_automatic=$hardcode_automatic
17622 # Variables whose values should be saved in libtool wrapper scripts and
17623 # restored at relink time.
17624 variables_saved_for_relink="$variables_saved_for_relink"
17626 # Whether libtool must link a program against all its dependency libraries.
17627 link_all_deplibs=$link_all_deplibs
17629 # Compile-time system search path for libraries
17630 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17632 # Run-time system search path for libraries
17633 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17635 # Fix the shell variable \$srcfile for the compiler.
17636 fix_srcfile_path="$fix_srcfile_path"
17638 # Set to yes if exported symbols are required.
17639 always_export_symbols=$always_export_symbols
17641 # The commands to list exported symbols.
17642 export_symbols_cmds=$lt_export_symbols_cmds
17644 # The commands to extract the exported symbol list from a shared archive.
17645 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17647 # Symbols that should not be listed in the preloaded symbols.
17648 exclude_expsyms=$lt_exclude_expsyms
17650 # Symbols that must always be exported.
17651 include_expsyms=$lt_include_expsyms
17653 # ### END LIBTOOL CONFIG
17660 cat <<\EOF >> "$cfgfile"
17662 # AIX sometimes has problems with the GCC collect2 program. For some
17663 # reason, if we set the COLLECT_NAMES environment variable, the problems
17664 # vanish in a puff of smoke.
17665 if test "X${COLLECT_NAMES+set}" != Xset; then
17667 export COLLECT_NAMES
17673 # We use sed instead of cat because bash on DJGPP gets confused if
17674 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17675 # text mode, it properly converts lines to CR/LF. This bash problem
17676 # is reportedly fixed, but why not run on old versions too?
17677 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17679 mv -f "$cfgfile" "$ofile" || \
17680 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17684 # If there is no Makefile yet, we rely on a make rule to execute
17685 # `config.status --recheck' to rerun these tests and create the
17686 # libtool script then.
17687 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17688 if test -f "$ltmain_in"; then
17689 test -f Makefile && make "$ltmain"
17695 ac_cpp='$CPP $CPPFLAGS'
17696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17703 # Check whether --with-tags was given.
17704 if test "${with_tags+set}" = set; then
17705 withval=$with_tags; tagnames="$withval"
17709 if test -f "$ltmain" && test -n "$tagnames"; then
17710 if test ! -f "${ofile}"; then
17711 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17712 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17715 if test -z "$LTCC"; then
17716 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17717 if test -z "$LTCC"; then
17718 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17719 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17721 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17722 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17725 if test -z "$LTCFLAGS"; then
17726 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17729 # Extract list of available tagged configurations in $ofile.
17730 # Note that this assumes the entire list is on one line.
17731 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17734 for tagname in $tagnames; do
17736 # Check whether tagname contains only valid characters
17737 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17739 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17740 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17741 { (exit 1); exit 1; }; }
17745 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17747 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17748 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17749 { (exit 1); exit 1; }; }
17752 # Update the list of available tags.
17753 if test -n "$tagname"; then
17754 echo appending configuration tag \"$tagname\" to $ofile
17758 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17759 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17760 (test "X$CXX" != "Xg++"))) ; then
17762 ac_cpp='$CXXCPP $CPPFLAGS'
17763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17770 archive_cmds_need_lc_CXX=no
17771 allow_undefined_flag_CXX=
17772 always_export_symbols_CXX=no
17773 archive_expsym_cmds_CXX=
17774 export_dynamic_flag_spec_CXX=
17775 hardcode_direct_CXX=no
17776 hardcode_libdir_flag_spec_CXX=
17777 hardcode_libdir_flag_spec_ld_CXX=
17778 hardcode_libdir_separator_CXX=
17779 hardcode_minus_L_CXX=no
17780 hardcode_shlibpath_var_CXX=unsupported
17781 hardcode_automatic_CXX=no
17783 module_expsym_cmds_CXX=
17784 link_all_deplibs_CXX=unknown
17785 old_archive_cmds_CXX=$old_archive_cmds
17786 no_undefined_flag_CXX=
17787 whole_archive_flag_spec_CXX=
17788 enable_shared_with_static_runtimes_CXX=no
17790 # Dependencies to place before and after the object being linked:
17791 predep_objects_CXX=
17792 postdep_objects_CXX=
17795 compiler_lib_search_path_CXX=
17797 # Source file extension for C++ test sources.
17800 # Object file extension for compiled C++ test sources.
17804 # Code to be used in simple compile tests
17805 lt_simple_compile_test_code="int some_variable = 0;\n"
17807 # Code to be used in simple link tests
17808 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17810 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17812 # If no C compiler was specified, use CC.
17815 # If no C compiler flags were specified, use CFLAGS.
17816 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17818 # Allow CC to be a program name with arguments.
17822 # save warnings/boilerplate of simple test code
17823 ac_outfile=conftest.$ac_objext
17824 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17825 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17826 _lt_compiler_boilerplate=`cat conftest.err`
17829 ac_outfile=conftest.$ac_objext
17830 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17831 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17832 _lt_linker_boilerplate=`cat conftest.err`
17836 # Allow CC to be a program name with arguments.
17841 lt_save_with_gnu_ld=$with_gnu_ld
17842 lt_save_path_LD=$lt_cv_path_LD
17843 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17844 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17846 $as_unset lt_cv_prog_gnu_ld
17848 if test -n "${lt_cv_path_LDCXX+set}"; then
17849 lt_cv_path_LD=$lt_cv_path_LDCXX
17851 $as_unset lt_cv_path_LD
17853 test -z "${LDCXX+set}" || LD=$LDCXX
17857 for cc_temp in $compiler""; do
17859 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17860 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17865 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17868 # We don't want -fno-exception wen compiling C++ code, so set the
17869 # no_builtin_flag separately
17870 if test "$GXX" = yes; then
17871 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17873 lt_prog_compiler_no_builtin_flag_CXX=
17876 if test "$GXX" = yes; then
17877 # Set up default GNU C++ configuration
17880 # Check whether --with-gnu-ld was given.
17881 if test "${with_gnu_ld+set}" = set; then
17882 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17888 if test "$GCC" = yes; then
17889 # Check if gcc -print-prog-name=ld gives a path.
17890 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17891 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17894 # gcc leaves a trailing carriage return which upsets mingw
17895 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17897 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17900 # Accept absolute paths.
17902 re_direlt='/[^/][^/]*/\.\./'
17903 # Canonicalize the pathname of ld
17904 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17905 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17906 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17908 test -z "$LD" && LD="$ac_prog"
17911 # If it fails, then pretend we aren't using GCC.
17915 # If it is relative, then search for the first ld in PATH.
17916 with_gnu_ld=unknown
17919 elif test "$with_gnu_ld" = yes; then
17920 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17921 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17923 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17924 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17926 if test "${lt_cv_path_LD+set}" = set; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17929 if test -z "$LD"; then
17930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17931 for ac_dir in $PATH; do
17933 test -z "$ac_dir" && ac_dir=.
17934 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17935 lt_cv_path_LD="$ac_dir/$ac_prog"
17936 # Check to see if the program is GNU ld. I'd rather use --version,
17937 # but apparently some variants of GNU ld only accept -v.
17938 # Break only if it was the GNU/non-GNU ld that we prefer.
17939 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17940 *GNU* | *'with BFD'*)
17941 test "$with_gnu_ld" != no && break
17944 test "$with_gnu_ld" != yes && break
17951 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17955 LD="$lt_cv_path_LD"
17956 if test -n "$LD"; then
17957 { echo "$as_me:$LINENO: result: $LD" >&5
17958 echo "${ECHO_T}$LD" >&6; }
17960 { echo "$as_me:$LINENO: result: no" >&5
17961 echo "${ECHO_T}no" >&6; }
17963 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17964 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17965 { (exit 1); exit 1; }; }
17966 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17967 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17968 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17972 case `$LD -v 2>&1 </dev/null` in
17973 *GNU* | *'with BFD'*)
17974 lt_cv_prog_gnu_ld=yes
17977 lt_cv_prog_gnu_ld=no
17981 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17982 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17983 with_gnu_ld=$lt_cv_prog_gnu_ld
17987 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17988 # archiving commands below assume that GNU ld is being used.
17989 if test "$with_gnu_ld" = yes; then
17990 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17991 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'
17993 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17994 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17996 # If archive_cmds runs LD, not CC, wlarc should be empty
17997 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17998 # investigate it a little bit more. (MM)
18001 # ancient GNU ld didn't support --whole-archive et. al.
18002 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18003 grep 'no-whole-archive' > /dev/null; then
18004 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18006 whole_archive_flag_spec_CXX=
18012 # A generic and very simple default shared library creation
18013 # command for GNU C++ for the case where it uses the native
18014 # linker, instead of GNU ld. If possible, this setting should
18015 # overridden to take advantage of the native linker features on
18016 # the platform it is being used on.
18017 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18020 # Commands to make compiler produce verbose output that lists
18021 # what "hidden" libraries, object files and flags are used when
18022 # linking a shared library.
18023 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18031 # PORTME: fill in a description of your system's C++ link characteristics
18032 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18033 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18037 # FIXME: insert proper C++ library support
18041 if test "$host_cpu" = ia64; then
18042 # On IA64, the linker does run time linking by default, so we don't
18043 # have to do anything special.
18044 aix_use_runtimelinking=no
18045 exp_sym_flag='-Bexport'
18048 aix_use_runtimelinking=no
18050 # Test if we are trying to use run time linking or normal
18051 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18052 # need to do runtime linking.
18053 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18054 for ld_flag in $LDFLAGS; do
18057 aix_use_runtimelinking=yes
18065 exp_sym_flag='-bexport'
18066 no_entry_flag='-bnoentry'
18069 # When large executables or shared objects are built, AIX ld can
18070 # have problems creating the table of contents. If linking a library
18071 # or program results in "error TOC overflow" add -mminimal-toc to
18072 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18073 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18075 archive_cmds_CXX=''
18076 hardcode_direct_CXX=yes
18077 hardcode_libdir_separator_CXX=':'
18078 link_all_deplibs_CXX=yes
18080 if test "$GXX" = yes; then
18081 case $host_os in aix4.[012]|aix4.[012].*)
18082 # We only want to do this on AIX 4.2 and lower, the check
18083 # below for broken collect2 doesn't work under 4.3+
18084 collect2name=`${CC} -print-prog-name=collect2`
18085 if test -f "$collect2name" && \
18086 strings "$collect2name" | grep resolve_lib_name >/dev/null
18088 # We have reworked collect2
18089 hardcode_direct_CXX=yes
18091 # We have old collect2
18092 hardcode_direct_CXX=unsupported
18093 # It fails to find uninstalled libraries when the uninstalled
18094 # path is not listed in the libpath. Setting hardcode_minus_L
18095 # to unsupported forces relinking
18096 hardcode_minus_L_CXX=yes
18097 hardcode_libdir_flag_spec_CXX='-L$libdir'
18098 hardcode_libdir_separator_CXX=
18102 shared_flag='-shared'
18103 if test "$aix_use_runtimelinking" = yes; then
18104 shared_flag="$shared_flag "'${wl}-G'
18108 if test "$host_cpu" = ia64; then
18109 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18110 # chokes on -Wl,-G. The following line is correct:
18113 if test "$aix_use_runtimelinking" = yes; then
18114 shared_flag='${wl}-G'
18116 shared_flag='${wl}-bM:SRE'
18121 # It seems that -bexpall does not export symbols beginning with
18122 # underscore (_), so it is better to generate a list of symbols to export.
18123 always_export_symbols_CXX=yes
18124 if test "$aix_use_runtimelinking" = yes; then
18125 # Warning - without using the other runtime loading flags (-brtl),
18126 # -berok will link without error, but may produce a broken library.
18127 allow_undefined_flag_CXX='-berok'
18128 # Determine the default libpath from the value encoded in an empty executable.
18129 cat >conftest.$ac_ext <<_ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18144 rm -f conftest.$ac_objext conftest$ac_exeext
18145 if { (ac_try="$ac_link"
18146 case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_link") 2>conftest.er1
18153 grep -v '^ *+' conftest.er1 >conftest.err
18155 cat conftest.err >&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } &&
18158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18159 { (case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_try") 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try='test -s conftest$ac_exeext'
18169 { (case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_try") 2>&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18179 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18181 # Check for a 64-bit object if we didn't find anything.
18182 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; }
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18191 rm -f core conftest.err conftest.$ac_objext \
18192 conftest$ac_exeext conftest.$ac_ext
18193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18195 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18197 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"
18199 if test "$host_cpu" = ia64; then
18200 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18201 allow_undefined_flag_CXX="-z nodefs"
18202 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"
18204 # Determine the default libpath from the value encoded in an empty executable.
18205 cat >conftest.$ac_ext <<_ACEOF
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h. */
18220 rm -f conftest.$ac_objext conftest$ac_exeext
18221 if { (ac_try="$ac_link"
18222 case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_link") 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18235 { (case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_try") 2>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; } &&
18244 { ac_try='test -s conftest$ac_exeext'
18245 { (case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_try") 2>&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18255 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18257 # Check for a 64-bit object if we didn't find anything.
18258 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; }
18261 echo "$as_me: failed program was:" >&5
18262 sed 's/^/| /' conftest.$ac_ext >&5
18267 rm -f core conftest.err conftest.$ac_objext \
18268 conftest$ac_exeext conftest.$ac_ext
18269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18271 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18272 # Warning - without using the other run time loading flags,
18273 # -berok will link without error, but may produce a broken library.
18274 no_undefined_flag_CXX=' ${wl}-bernotok'
18275 allow_undefined_flag_CXX=' ${wl}-berok'
18276 # Exported symbols can be pulled into shared objects from archives
18277 whole_archive_flag_spec_CXX='$convenience'
18278 archive_cmds_need_lc_CXX=yes
18279 # This is similar to how AIX traditionally builds its shared libraries.
18280 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'
18286 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18287 allow_undefined_flag_CXX=unsupported
18288 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18289 # support --undefined. This deserves some investigation. FIXME
18290 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18297 case $cc_basename in
18299 # FIXME: insert proper C++ library support
18305 cygwin* | mingw* | pw32*)
18306 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18307 # as there is no search path for DLLs.
18308 hardcode_libdir_flag_spec_CXX='-L$libdir'
18309 allow_undefined_flag_CXX=unsupported
18310 always_export_symbols_CXX=no
18311 enable_shared_with_static_runtimes_CXX=yes
18313 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18314 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'
18315 # If the export-symbols file already is a .def file (1st line
18316 # is EXPORTS), use it as is; otherwise, prepend...
18317 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18318 cp $export_symbols $output_objdir/$soname.def;
18320 echo EXPORTS > $output_objdir/$soname.def;
18321 cat $export_symbols >> $output_objdir/$soname.def;
18323 $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'
18328 darwin* | rhapsody*)
18330 rhapsody* | darwin1.[012])
18331 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18334 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18335 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18337 case ${MACOSX_DEPLOYMENT_TARGET} in
18339 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18342 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18348 archive_cmds_need_lc_CXX=no
18349 hardcode_direct_CXX=no
18350 hardcode_automatic_CXX=yes
18351 hardcode_shlibpath_var_CXX=unsupported
18352 whole_archive_flag_spec_CXX=''
18353 link_all_deplibs_CXX=yes
18355 if test "$GXX" = yes ; then
18356 lt_int_apple_cc_single_mod=no
18357 output_verbose_link_cmd='echo'
18358 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18359 lt_int_apple_cc_single_mod=yes
18361 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18362 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18364 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'
18366 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18367 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18368 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18369 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}'
18371 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}'
18373 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}'
18375 case $cc_basename in
18377 output_verbose_link_cmd='echo'
18378 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'
18379 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18380 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18381 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}'
18382 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}'
18392 case $cc_basename in
18394 # FIXME: insert proper C++ library support
18398 # Green Hills C++ Compiler
18399 # FIXME: insert proper C++ library support
18403 # FIXME: insert proper C++ library support
18409 # C++ shared libraries reported to be fairly broken before switch to ELF
18413 archive_cmds_need_lc_CXX=no
18415 freebsd* | kfreebsd*-gnu | dragonfly*)
18416 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18423 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18424 hardcode_libdir_separator_CXX=:
18425 export_dynamic_flag_spec_CXX='${wl}-E'
18426 hardcode_direct_CXX=yes
18427 hardcode_minus_L_CXX=yes # Not in the search PATH,
18428 # but as the default
18429 # location of the library.
18431 case $cc_basename in
18433 # FIXME: insert proper C++ library support
18437 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'
18438 # Commands to make compiler produce verbose output that lists
18439 # what "hidden" libraries, object files and flags are used when
18440 # linking a shared library.
18442 # There doesn't appear to be a way to prevent this compiler from
18443 # explicitly linking system object files so we need to strip them
18444 # from the output so that they don't get included in the library
18446 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'
18449 if test "$GXX" = yes; then
18450 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'
18452 # FIXME: insert proper C++ library support
18459 if test $with_gnu_ld = no; then
18460 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18461 hardcode_libdir_separator_CXX=:
18465 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18468 export_dynamic_flag_spec_CXX='${wl}-E'
18474 hardcode_direct_CXX=no
18475 hardcode_shlibpath_var_CXX=no
18478 hardcode_direct_CXX=yes
18479 hardcode_minus_L_CXX=yes # Not in the search PATH,
18480 # but as the default
18481 # location of the library.
18485 case $cc_basename in
18487 # FIXME: insert proper C++ library support
18493 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18496 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18499 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18502 # Commands to make compiler produce verbose output that lists
18503 # what "hidden" libraries, object files and flags are used when
18504 # linking a shared library.
18506 # There doesn't appear to be a way to prevent this compiler from
18507 # explicitly linking system object files so we need to strip them
18508 # from the output so that they don't get included in the library
18510 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'
18513 if test "$GXX" = yes; then
18514 if test $with_gnu_ld = no; then
18517 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18520 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18523 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'
18528 # FIXME: insert proper C++ library support
18535 hardcode_direct_CXX=no
18536 hardcode_shlibpath_var_CXX=no
18537 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18538 export_dynamic_flag_spec_CXX='${wl}-E'
18539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18540 # Instead, shared libraries are loaded at an image base (0x10000000 by
18541 # default) and relocated if they conflict, which is a slow very memory
18542 # consuming and fragmenting process. To avoid this, we pick a random,
18543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18545 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'
18546 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'
18549 case $cc_basename in
18552 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'
18554 # Archives containing C++ object files must be created using
18555 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18556 # necessary to make sure instantiated templates are included
18558 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18561 if test "$GXX" = yes; then
18562 if test "$with_gnu_ld" = no; then
18563 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'
18565 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'
18568 link_all_deplibs_CXX=yes
18571 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18572 hardcode_libdir_separator_CXX=:
18575 case $cc_basename in
18577 # Kuck and Associates, Inc. (KAI) C++ Compiler
18579 # KCC will only create a shared library if the output file
18580 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18581 # to its proper name (with version) after linking.
18582 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'
18583 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'
18584 # Commands to make compiler produce verbose output that lists
18585 # what "hidden" libraries, object files and flags are used when
18586 # linking a shared library.
18588 # There doesn't appear to be a way to prevent this compiler from
18589 # explicitly linking system object files so we need to strip them
18590 # from the output so that they don't get included in the library
18592 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'
18594 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18595 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18597 # Archives containing C++ object files must be created using
18598 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18599 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18604 # version 8.0 and above of icpc choke on multiply defined symbols
18605 # if we add $predep_objects and $postdep_objects, however 7.1 and
18606 # earlier do not add the objects themselves.
18607 case `$CC -V 2>&1` in
18609 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18610 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'
18612 *) # Version 8.0 or newer
18615 ia64*) tmp_idyn=' -i_dynamic';;
18617 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18618 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'
18621 archive_cmds_need_lc_CXX=no
18622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18623 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18624 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18627 # Portland Group C++ compiler
18628 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18629 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'
18631 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18632 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18633 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'
18637 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18638 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'
18640 runpath_var=LD_RUN_PATH
18641 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18642 hardcode_libdir_separator_CXX=:
18644 # Commands to make compiler produce verbose output that lists
18645 # what "hidden" libraries, object files and flags are used when
18646 # linking a shared library.
18648 # There doesn't appear to be a way to prevent this compiler from
18649 # explicitly linking system object files so we need to strip them
18650 # from the output so that they don't get included in the library
18652 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'
18657 # FIXME: insert proper C++ library support
18661 # FIXME: insert proper C++ library support
18665 case $cc_basename in
18667 # FIXME: insert proper C++ library support
18671 # FIXME: insert proper C++ library support
18677 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18678 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18680 hardcode_libdir_flag_spec_CXX='-R$libdir'
18681 hardcode_direct_CXX=yes
18682 hardcode_shlibpath_var_CXX=no
18684 # Workaround some broken pre-1.5 toolchains
18685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18688 # C++ shared libraries are fairly broken
18692 hardcode_direct_CXX=yes
18693 hardcode_shlibpath_var_CXX=no
18694 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18697 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18698 export_dynamic_flag_spec_CXX='${wl}-E'
18699 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18701 output_verbose_link_cmd='echo'
18704 case $cc_basename in
18706 # Kuck and Associates, Inc. (KAI) C++ Compiler
18708 # KCC will only create a shared library if the output file
18709 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18710 # to its proper name (with version) after linking.
18711 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'
18713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18714 hardcode_libdir_separator_CXX=:
18716 # Archives containing C++ object files must be created using
18717 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18718 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18722 # Rational C++ 2.4.1
18723 # FIXME: insert proper C++ library support
18727 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18728 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'
18730 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18731 hardcode_libdir_separator_CXX=:
18733 # Commands to make compiler produce verbose output that lists
18734 # what "hidden" libraries, object files and flags are used when
18735 # linking a shared library.
18737 # There doesn't appear to be a way to prevent this compiler from
18738 # explicitly linking system object files so we need to strip them
18739 # from the output so that they don't get included in the library
18741 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'
18744 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18745 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18746 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'
18748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18749 hardcode_libdir_separator_CXX=:
18751 # Commands to make compiler produce verbose output that lists
18752 # what "hidden" libraries, object files and flags are used when
18753 # linking a shared library.
18754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18757 # FIXME: insert proper C++ library support
18764 case $cc_basename in
18766 # Kuck and Associates, Inc. (KAI) C++ Compiler
18768 # KCC will only create a shared library if the output file
18769 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18770 # to its proper name (with version) after linking.
18771 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'
18773 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18774 hardcode_libdir_separator_CXX=:
18776 # Archives containing C++ object files must be created using
18777 # the KAI C++ compiler.
18778 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18781 # Rational C++ 2.4.1
18782 # FIXME: insert proper C++ library support
18786 allow_undefined_flag_CXX=' -expect_unresolved \*'
18787 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'
18788 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18789 echo "-hidden">> $lib.exp~
18790 $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~
18793 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18794 hardcode_libdir_separator_CXX=:
18796 # Commands to make compiler produce verbose output that lists
18797 # what "hidden" libraries, object files and flags are used when
18798 # linking a shared library.
18800 # There doesn't appear to be a way to prevent this compiler from
18801 # explicitly linking system object files so we need to strip them
18802 # from the output so that they don't get included in the library
18804 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'
18807 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18808 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18809 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'
18811 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18812 hardcode_libdir_separator_CXX=:
18814 # Commands to make compiler produce verbose output that lists
18815 # what "hidden" libraries, object files and flags are used when
18816 # linking a shared library.
18817 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18820 # FIXME: insert proper C++ library support
18827 # FIXME: insert proper C++ library support
18831 case $cc_basename in
18834 # FIXME: insert proper C++ library support
18839 # FIXME: insert proper C++ library support
18843 # FIXME: insert proper C++ library support
18849 case $cc_basename in
18851 # Sun C++ 4.2, 5.x and Centerline C++
18852 archive_cmds_need_lc_CXX=yes
18853 no_undefined_flag_CXX=' -zdefs'
18854 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18855 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18856 $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'
18858 hardcode_libdir_flag_spec_CXX='-R$libdir'
18859 hardcode_shlibpath_var_CXX=no
18861 solaris2.[0-5] | solaris2.[0-5].*) ;;
18863 # The C++ compiler is used as linker so we must use $wl
18864 # flag to pass the commands to the underlying system
18865 # linker. We must also pass each convience library through
18866 # to the system linker between allextract/defaultextract.
18867 # The C++ compiler will combine linker options so we
18868 # cannot just pass the convience library names through
18870 # Supported since Solaris 2.6 (maybe 2.5.1?)
18871 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'
18874 link_all_deplibs_CXX=yes
18876 output_verbose_link_cmd='echo'
18878 # Archives containing C++ object files must be created using
18879 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18880 # necessary to make sure instantiated templates are included
18882 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18885 # Green Hills C++ Compiler
18886 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18888 # The C++ compiler must be used to create the archive.
18889 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18892 # GNU C++ compiler with Solaris linker
18893 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18894 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18895 if $CC --version | grep -v '^2\.7' > /dev/null; then
18896 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18897 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18898 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18900 # Commands to make compiler produce verbose output that lists
18901 # what "hidden" libraries, object files and flags are used when
18902 # linking a shared library.
18903 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18905 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18907 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18908 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18909 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18911 # Commands to make compiler produce verbose output that lists
18912 # what "hidden" libraries, object files and flags are used when
18913 # linking a shared library.
18914 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18917 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18922 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18923 no_undefined_flag_CXX='${wl}-z,text'
18924 archive_cmds_need_lc_CXX=no
18925 hardcode_shlibpath_var_CXX=no
18926 runpath_var='LD_RUN_PATH'
18928 case $cc_basename in
18930 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18931 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18934 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18935 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18939 sysv5* | sco3.2v5* | sco5v6*)
18940 # Note: We can NOT use -z defs as we might desire, because we do not
18941 # link with -lc, and that would cause any symbols used from libc to
18942 # always be unresolved, which means just about no library would
18943 # ever link correctly. If we're not using GNU ld we use -z text
18944 # though, which does catch some bad symbols but isn't as heavy-handed
18946 # For security reasons, it is highly recommended that you always
18947 # use absolute paths for naming shared libraries, and exclude the
18948 # DT_RUNPATH tag from executables and libraries. But doing so
18949 # requires that you compile everything twice, which is a pain.
18950 # So that behaviour is only enabled if SCOABSPATH is set to a
18951 # non-empty value in the environment. Most likely only useful for
18952 # creating official distributions of packages.
18953 # This is a hack until libtool officially supports absolute path
18954 # names for shared libraries.
18955 no_undefined_flag_CXX='${wl}-z,text'
18956 allow_undefined_flag_CXX='${wl}-z,nodefs'
18957 archive_cmds_need_lc_CXX=no
18958 hardcode_shlibpath_var_CXX=no
18959 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18960 hardcode_libdir_separator_CXX=':'
18961 link_all_deplibs_CXX=yes
18962 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18963 runpath_var='LD_RUN_PATH'
18965 case $cc_basename in
18967 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18968 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18971 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18972 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18977 case $cc_basename in
18979 # NonStop-UX NCC 3.20
18980 # FIXME: insert proper C++ library support
18984 # FIXME: insert proper C++ library support
18990 # FIXME: insert proper C++ library support
18994 # FIXME: insert proper C++ library support
18998 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18999 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19000 test "$ld_shlibs_CXX" = no && can_build_shared=no
19006 cat > conftest.$ac_ext <<EOF
19010 Foo (void) { a = 0; }
19016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19017 (eval $ac_compile) 2>&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; then
19021 # Parse the compiler output and extract the necessary
19022 # objects, libraries and library flags.
19024 # Sentinel used to keep track of whether or not we are before
19025 # the conftest object file.
19026 pre_test_object_deps_done=no
19028 # The `*' in the case matches for architectures that use `case' in
19029 # $output_verbose_cmd can trigger glob expansion during the loop
19030 # eval without this substitution.
19031 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19033 for p in `eval $output_verbose_link_cmd`; do
19037 # Some compilers place space between "-{L,R}" and the path.
19038 # Remove the space.
19039 if test $p = "-L" \
19040 || test $p = "-R"; then
19047 if test "$pre_test_object_deps_done" = no; then
19050 # Internal compiler library paths should come after those
19051 # provided the user. The postdeps already come after the
19052 # user supplied libs so there is no need to process them.
19053 if test -z "$compiler_lib_search_path_CXX"; then
19054 compiler_lib_search_path_CXX="${prev}${p}"
19056 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19059 # The "-l" case would never come before the object being
19060 # linked, so don't bother handling this case.
19063 if test -z "$postdeps_CXX"; then
19064 postdeps_CXX="${prev}${p}"
19066 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19072 # This assumes that the test object file only shows up
19073 # once in the compiler output.
19074 if test "$p" = "conftest.$objext"; then
19075 pre_test_object_deps_done=yes
19079 if test "$pre_test_object_deps_done" = no; then
19080 if test -z "$predep_objects_CXX"; then
19081 predep_objects_CXX="$p"
19083 predep_objects_CXX="$predep_objects_CXX $p"
19086 if test -z "$postdep_objects_CXX"; then
19087 postdep_objects_CXX="$p"
19089 postdep_objects_CXX="$postdep_objects_CXX $p"
19094 *) ;; # Ignore the rest.
19102 echo "libtool.m4: error: problem compiling CXX test program"
19105 $rm -f confest.$objext
19107 # PORTME: override above test on systems where it is broken
19110 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19111 # hack all around it, let's just trust "g++" to DTRT.
19112 predep_objects_CXX=
19113 postdep_objects_CXX=
19118 case $cc_basename in
19120 # Adding this requires a known-good setup of shared libraries for
19121 # Sun compiler versions before 5.6, else PIC objects from an old
19122 # archive will be linked into the output, leading to subtle bugs.
19123 postdeps_CXX='-lCstd -lCrun'
19130 case " $postdeps_CXX " in
19131 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19134 lt_prog_compiler_wl_CXX=
19135 lt_prog_compiler_pic_CXX=
19136 lt_prog_compiler_static_CXX=
19138 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19139 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19141 # C++ specific cases for pic, static, wl, etc.
19142 if test "$GXX" = yes; then
19143 lt_prog_compiler_wl_CXX='-Wl,'
19144 lt_prog_compiler_static_CXX='-static'
19148 # All AIX code is PIC.
19149 if test "$host_cpu" = ia64; then
19150 # AIX 5 now supports IA64 processor
19151 lt_prog_compiler_static_CXX='-Bstatic'
19155 # FIXME: we need at least 68020 code to build shared libraries, but
19156 # adding the `-m68020' flag to GCC prevents building anything better,
19158 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19160 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19161 # PIC is the default for these OSes.
19163 mingw* | os2* | pw32*)
19164 # This hack is so that the source file can tell whether it is being
19165 # built for inclusion in a dll (and should export symbols for example).
19166 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19168 darwin* | rhapsody*)
19169 # PIC is the default on this platform
19170 # Common symbols not allowed in MH_DYLIB files
19171 lt_prog_compiler_pic_CXX='-fno-common'
19174 # DJGPP does not support shared libraries at all
19175 lt_prog_compiler_pic_CXX=
19178 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19179 # Instead, we relocate shared libraries at runtime.
19182 if test -d /usr/nec; then
19183 lt_prog_compiler_pic_CXX=-Kconform_pic
19187 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19188 # not for PA HP-UX.
19193 lt_prog_compiler_pic_CXX='-fPIC'
19198 lt_prog_compiler_pic_CXX='-fPIC'
19204 # All AIX code is PIC.
19205 if test "$host_cpu" = ia64; then
19206 # AIX 5 now supports IA64 processor
19207 lt_prog_compiler_static_CXX='-Bstatic'
19209 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19213 case $cc_basename in
19215 # Green Hills C++ Compiler
19216 # _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"
19221 # PIC is the default on this platform
19222 # Common symbols not allowed in MH_DYLIB files
19223 case $cc_basename in
19225 lt_prog_compiler_pic_CXX='-qnocommon'
19226 lt_prog_compiler_wl_CXX='-Wl,'
19231 case $cc_basename in
19233 lt_prog_compiler_pic_CXX='-KPIC'
19236 # Green Hills C++ Compiler
19237 lt_prog_compiler_pic_CXX='-pic'
19243 freebsd* | kfreebsd*-gnu | dragonfly*)
19244 # FreeBSD uses GNU C++
19246 hpux9* | hpux10* | hpux11*)
19247 case $cc_basename in
19249 lt_prog_compiler_wl_CXX='-Wl,'
19250 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19251 if test "$host_cpu" != ia64; then
19252 lt_prog_compiler_pic_CXX='+Z'
19256 lt_prog_compiler_wl_CXX='-Wl,'
19257 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19263 lt_prog_compiler_pic_CXX='+Z'
19272 # This is c89, which is MS Visual C++ (no shared libs)
19273 # Anyone wants to do a port?
19275 irix5* | irix6* | nonstopux*)
19276 case $cc_basename in
19278 lt_prog_compiler_wl_CXX='-Wl,'
19279 lt_prog_compiler_static_CXX='-non_shared'
19280 # CC pic flag -KPIC is the default.
19287 case $cc_basename in
19290 lt_prog_compiler_wl_CXX='--backend -Wl,'
19291 lt_prog_compiler_pic_CXX='-fPIC'
19295 lt_prog_compiler_wl_CXX='-Wl,'
19296 lt_prog_compiler_pic_CXX='-KPIC'
19297 lt_prog_compiler_static_CXX='-static'
19300 # Portland Group C++ compiler.
19301 lt_prog_compiler_wl_CXX='-Wl,'
19302 lt_prog_compiler_pic_CXX='-fpic'
19303 lt_prog_compiler_static_CXX='-Bstatic'
19307 # Make sure the PIC flag is empty. It appears that all Alpha
19308 # Linux and Compaq Tru64 Unix objects are PIC.
19309 lt_prog_compiler_pic_CXX=
19310 lt_prog_compiler_static_CXX='-non_shared'
19321 case $cc_basename in
19323 lt_prog_compiler_pic_CXX='-W c,exportall'
19331 osf3* | osf4* | osf5*)
19332 case $cc_basename in
19334 lt_prog_compiler_wl_CXX='--backend -Wl,'
19337 # Rational C++ 2.4.1
19338 lt_prog_compiler_pic_CXX='-pic'
19341 # Digital/Compaq C++
19342 lt_prog_compiler_wl_CXX='-Wl,'
19343 # Make sure the PIC flag is empty. It appears that all Alpha
19344 # Linux and Compaq Tru64 Unix objects are PIC.
19345 lt_prog_compiler_pic_CXX=
19346 lt_prog_compiler_static_CXX='-non_shared'
19355 case $cc_basename in
19357 # Sun C++ 4.2, 5.x and Centerline C++
19358 lt_prog_compiler_pic_CXX='-KPIC'
19359 lt_prog_compiler_static_CXX='-Bstatic'
19360 lt_prog_compiler_wl_CXX='-Qoption ld '
19363 # Green Hills C++ Compiler
19364 lt_prog_compiler_pic_CXX='-PIC'
19371 case $cc_basename in
19374 lt_prog_compiler_pic_CXX='-pic'
19375 lt_prog_compiler_static_CXX='-Bstatic'
19379 lt_prog_compiler_pic_CXX='-pic'
19386 case $cc_basename in
19388 # NonStop-UX NCC 3.20
19389 lt_prog_compiler_pic_CXX='-KPIC'
19395 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19396 case $cc_basename in
19398 lt_prog_compiler_wl_CXX='-Wl,'
19399 lt_prog_compiler_pic_CXX='-KPIC'
19400 lt_prog_compiler_static_CXX='-Bstatic'
19407 lt_prog_compiler_can_build_shared_CXX=no
19412 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19413 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19416 # Check to make sure the PIC flag actually works.
19418 if test -n "$lt_prog_compiler_pic_CXX"; then
19420 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19421 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19422 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19425 lt_prog_compiler_pic_works_CXX=no
19426 ac_outfile=conftest.$ac_objext
19427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19428 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19429 # Insert the option either (1) after the last *FLAGS variable, or
19430 # (2) before a word containing "conftest.", or (3) at the end.
19431 # Note that $ac_compile itself does not contain backslashes and begins
19432 # with a dollar sign (not a hyphen), so the echo should work correctly.
19433 # The option is referenced via a variable to avoid confusing sed.
19434 lt_compile=`echo "$ac_compile" | $SED \
19435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19437 -e 's:$: $lt_compiler_flag:'`
19438 (eval echo "\"\$as_me:19438: $lt_compile\"" >&5)
19439 (eval "$lt_compile" 2>conftest.err)
19441 cat conftest.err >&5
19442 echo "$as_me:19442: \$? = $ac_status" >&5
19443 if (exit $ac_status) && test -s "$ac_outfile"; then
19444 # The compiler can only warn and ignore the option if not recognized
19445 # So say no if there are warnings other than the usual output.
19446 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19449 lt_prog_compiler_pic_works_CXX=yes
19455 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19456 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19458 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19459 case $lt_prog_compiler_pic_CXX in
19461 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19464 lt_prog_compiler_pic_CXX=
19465 lt_prog_compiler_can_build_shared_CXX=no
19470 # For platforms which do not support PIC, -DPIC is meaningless:
19472 lt_prog_compiler_pic_CXX=
19475 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19480 # Check to make sure the static flag actually works.
19482 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19483 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19484 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19485 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 lt_prog_compiler_static_works_CXX=no
19489 save_LDFLAGS="$LDFLAGS"
19490 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19491 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19493 # The linker can only warn and ignore the option if not recognized
19494 # So say no if there are warnings
19495 if test -s conftest.err; then
19496 # Append any errors to the config.log.
19497 cat conftest.err 1>&5
19498 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19500 if diff conftest.exp conftest.er2 >/dev/null; then
19501 lt_prog_compiler_static_works_CXX=yes
19504 lt_prog_compiler_static_works_CXX=yes
19508 LDFLAGS="$save_LDFLAGS"
19511 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19512 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19514 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19517 lt_prog_compiler_static_CXX=
19521 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19522 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19523 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 lt_cv_prog_compiler_c_o_CXX=no
19527 $rm -r conftest 2>/dev/null
19531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19533 lt_compiler_flag="-o out/conftest2.$ac_objext"
19534 # Insert the option either (1) after the last *FLAGS variable, or
19535 # (2) before a word containing "conftest.", or (3) at the end.
19536 # Note that $ac_compile itself does not contain backslashes and begins
19537 # with a dollar sign (not a hyphen), so the echo should work correctly.
19538 lt_compile=`echo "$ac_compile" | $SED \
19539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19541 -e 's:$: $lt_compiler_flag:'`
19542 (eval echo "\"\$as_me:19542: $lt_compile\"" >&5)
19543 (eval "$lt_compile" 2>out/conftest.err)
19545 cat out/conftest.err >&5
19546 echo "$as_me:19546: \$? = $ac_status" >&5
19547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19549 # The compiler can only warn and ignore the option if not recognized
19550 # So say no if there are warnings
19551 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19552 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19553 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19554 lt_cv_prog_compiler_c_o_CXX=yes
19559 # SGI C++ compiler will create directory out/ii_files/ for
19560 # template instantiation
19561 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19562 $rm out/* && rmdir out
19568 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19569 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19572 hard_links="nottested"
19573 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19574 # do not overwrite the value of need_locks provided by the user
19575 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19576 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19581 ln conftest.a conftest.b 2>&5 || hard_links=no
19582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19583 { echo "$as_me:$LINENO: result: $hard_links" >&5
19584 echo "${ECHO_T}$hard_links" >&6; }
19585 if test "$hard_links" = no; then
19586 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19587 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19594 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19595 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19597 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19600 # If we're using GNU nm, then we don't want the "-C" option.
19601 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19602 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19603 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'
19605 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'
19609 export_symbols_cmds_CXX="$ltdll_cmds"
19612 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'
19615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19619 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19620 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19621 test "$ld_shlibs_CXX" = no && can_build_shared=no
19624 # Do we need to explicitly link libc?
19626 case "x$archive_cmds_need_lc_CXX" in
19628 # Assume -lc should be added
19629 archive_cmds_need_lc_CXX=yes
19631 if test "$enable_shared" = yes && test "$GCC" = yes; then
19632 case $archive_cmds_CXX in
19634 # FIXME: we may have to deal with multi-command sequences.
19637 # Test whether the compiler implicitly links with -lc since on some
19638 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19639 # to ld, don't add -lc before -lgcc.
19640 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19641 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19646 (eval $ac_compile) 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } 2>conftest.err; then
19652 libobjs=conftest.$ac_objext
19654 wl=$lt_prog_compiler_wl_CXX
19655 pic_flag=$lt_prog_compiler_pic_CXX
19661 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19662 allow_undefined_flag_CXX=
19663 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19664 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }
19669 archive_cmds_need_lc_CXX=no
19671 archive_cmds_need_lc_CXX=yes
19673 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19675 cat conftest.err 1>&5
19678 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19679 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19686 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19687 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19688 library_names_spec=
19689 libname_spec='lib$name'
19693 postuninstall_cmds=
19697 shlibpath_overrides_runpath=unknown
19699 dynamic_linker="$host_os ld.so"
19700 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19701 if test "$GCC" = yes; then
19702 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19703 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19704 # if the path contains ";" then we assume it to be the separator
19705 # otherwise default to the standard path separator (i.e. ":") - it is
19706 # assumed that no part of a normal pathname contains ";" but that should
19707 # okay in the real world where ";" in dirpaths is itself problematic.
19708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19713 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19715 need_lib_prefix=unknown
19716 hardcode_into_libs=no
19718 # when you set need_version to no, make sure it does not cause -set_version
19719 # flags to be left without arguments
19720 need_version=unknown
19725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19726 shlibpath_var=LIBPATH
19728 # AIX 3 has no versioning support, so we append a major version to the name.
19729 soname_spec='${libname}${release}${shared_ext}$major'
19736 hardcode_into_libs=yes
19737 if test "$host_cpu" = ia64; then
19738 # AIX 5 supports IA64
19739 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19740 shlibpath_var=LD_LIBRARY_PATH
19742 # With GCC up to 2.95.x, collect2 would create an import file
19743 # for dependence libraries. The import file would start with
19744 # the line `#! .'. This would cause the generated library to
19745 # depend on `.', always an invalid library. This was fixed in
19746 # development snapshots of GCC prior to 3.0.
19748 aix4 | aix4.[01] | aix4.[01].*)
19749 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19751 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19754 can_build_shared=no
19758 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19759 # soname into executable. Probably we can add versioning support to
19760 # collect2, so additional links can be useful in future.
19761 if test "$aix_use_runtimelinking" = yes; then
19762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19763 # instead of lib<name>.a to let people know that these are not
19764 # typical AIX shared libraries.
19765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19767 # We preserve .a as extension for shared libraries through AIX4.2
19768 # and later when we are not doing run time linking.
19769 library_names_spec='${libname}${release}.a $libname.a'
19770 soname_spec='${libname}${release}${shared_ext}$major'
19772 shlibpath_var=LIBPATH
19777 library_names_spec='$libname.ixlibrary $libname.a'
19778 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19779 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'
19783 library_names_spec='${libname}${shared_ext}'
19784 dynamic_linker="$host_os ld.so"
19785 shlibpath_var=LIBRARY_PATH
19791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19792 soname_spec='${libname}${release}${shared_ext}$major'
19793 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19794 shlibpath_var=LD_LIBRARY_PATH
19795 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19796 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19797 # the default ld.so.conf also contains /usr/contrib/lib and
19798 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19799 # libtool to hard-code these into programs
19802 cygwin* | mingw* | pw32*)
19803 version_type=windows
19808 case $GCC,$host_os in
19809 yes,cygwin* | yes,mingw* | yes,pw32*)
19810 library_names_spec='$libname.dll.a'
19811 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19812 postinstall_cmds='base_file=`basename \${file}`~
19813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19814 dldir=$destdir/`dirname \$dlpath`~
19815 test -d \$dldir || mkdir -p \$dldir~
19816 $install_prog $dir/$dlname \$dldir/$dlname~
19817 chmod a+x \$dldir/$dlname'
19818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19819 dlpath=$dir/\$dldll~
19821 shlibpath_overrides_runpath=yes
19825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19826 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19827 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19830 # MinGW DLLs use traditional 'lib' prefix
19831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19833 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19834 # It is most probably a Windows format PATH printed by
19835 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19836 # path with ; separators, and with drive letters. We can handle the
19837 # drive letters (cygwin fileutils understands them), so leave them,
19838 # especially as we might pass files found there to a mingw objdump,
19839 # which wouldn't understand a cygwinified path. Ahh.
19840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19846 # pw32 DLLs use 'pw' prefix rather than 'lib'
19847 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19853 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19856 dynamic_linker='Win32 ld.exe'
19857 # FIXME: first we should search . and the directory the executable is in
19861 darwin* | rhapsody*)
19862 dynamic_linker="$host_os dyld"
19863 version_type=darwin
19866 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19867 soname_spec='${libname}${release}${major}$shared_ext'
19868 shlibpath_overrides_runpath=yes
19869 shlibpath_var=DYLD_LIBRARY_PATH
19870 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19871 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19872 if test "$GCC" = yes; then
19873 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"`
19875 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19877 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19885 soname_spec='${libname}${release}${shared_ext}$major'
19886 shlibpath_var=LD_LIBRARY_PATH
19897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19898 soname_spec='${libname}${release}${shared_ext}$major'
19899 shlibpath_var=LD_LIBRARY_PATH
19900 shlibpath_overrides_runpath=no
19901 hardcode_into_libs=yes
19902 dynamic_linker='GNU ld.so'
19905 freebsd* | dragonfly*)
19906 # DragonFly does not have aout. When/if they implement a new
19907 # versioning mechanism, adjust this.
19908 if test -x /usr/bin/objformat; then
19909 objformat=`/usr/bin/objformat`
19912 freebsd[123]*) objformat=aout ;;
19913 *) objformat=elf ;;
19916 version_type=freebsd-$objformat
19917 case $version_type in
19919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19928 shlibpath_var=LD_LIBRARY_PATH
19931 shlibpath_overrides_runpath=yes
19933 freebsd3.[01]* | freebsdelf3.[01]*)
19934 shlibpath_overrides_runpath=yes
19935 hardcode_into_libs=yes
19937 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19938 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19939 shlibpath_overrides_runpath=no
19940 hardcode_into_libs=yes
19942 freebsd*) # from 4.6 on
19943 shlibpath_overrides_runpath=yes
19944 hardcode_into_libs=yes
19953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19954 soname_spec='${libname}${release}${shared_ext}$major'
19955 shlibpath_var=LD_LIBRARY_PATH
19956 hardcode_into_libs=yes
19959 hpux9* | hpux10* | hpux11*)
19960 # Give a soname corresponding to the major version so that dld.sl refuses to
19961 # link against other versions.
19968 hardcode_into_libs=yes
19969 dynamic_linker="$host_os dld.so"
19970 shlibpath_var=LD_LIBRARY_PATH
19971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19973 soname_spec='${libname}${release}${shared_ext}$major'
19974 if test "X$HPUX_IA64_MODE" = X32; then
19975 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19977 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19983 hardcode_into_libs=yes
19984 dynamic_linker="$host_os dld.sl"
19985 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19988 soname_spec='${libname}${release}${shared_ext}$major'
19989 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19994 dynamic_linker="$host_os dld.sl"
19995 shlibpath_var=SHLIB_PATH
19996 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19998 soname_spec='${libname}${release}${shared_ext}$major'
20001 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20002 postinstall_cmds='chmod 555 $lib'
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20010 soname_spec='${libname}${release}${shared_ext}$major'
20011 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20012 shlibpath_var=LD_LIBRARY_PATH
20013 shlibpath_overrides_runpath=no
20014 hardcode_into_libs=yes
20017 irix5* | irix6* | nonstopux*)
20019 nonstopux*) version_type=nonstopux ;;
20021 if test "$lt_cv_prog_gnu_ld" = yes; then
20029 soname_spec='${libname}${release}${shared_ext}$major'
20030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20032 irix5* | nonstopux*)
20033 libsuff= shlibsuff=
20036 case $LD in # libtool.m4 will add one of these switches to LD
20037 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20038 libsuff= shlibsuff= libmagic=32-bit;;
20039 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20040 libsuff=32 shlibsuff=N32 libmagic=N32;;
20041 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20042 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20043 *) libsuff= shlibsuff= libmagic=never-match;;
20047 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20048 shlibpath_overrides_runpath=no
20049 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20050 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20051 hardcode_into_libs=yes
20054 # No shared lib support for Linux oldld, aout, or coff.
20055 linux*oldld* | linux*aout* | linux*coff*)
20059 # This must be Linux ELF.
20064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20065 soname_spec='${libname}${release}${shared_ext}$major'
20066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20067 shlibpath_var=LD_LIBRARY_PATH
20068 shlibpath_overrides_runpath=no
20069 # This implies no fast_install, which is unacceptable.
20070 # Some rework will be needed to allow for fast_install
20071 # before this can be enabled.
20072 hardcode_into_libs=yes
20074 # Append ld.so.conf contents to the search path
20075 if test -f /etc/ld.so.conf; then
20076 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' ' '`
20077 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20080 # We used to test for /lib/ld.so.1 and disable shared libraries on
20081 # powerpc, because MkLinux only supported shared libraries with the
20082 # GNU dynamic linker. Since this was broken with cross compilers,
20083 # most powerpc-linux boxes support dynamic linking these days and
20084 # people can always --disable-shared, the test was removed, and we
20085 # assume the GNU/Linux dynamic linker is in use.
20086 dynamic_linker='GNU/Linux ld.so'
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20094 soname_spec='${libname}${release}${shared_ext}$major'
20095 shlibpath_var=LD_LIBRARY_PATH
20096 shlibpath_overrides_runpath=no
20097 hardcode_into_libs=yes
20098 dynamic_linker='GNU ld.so'
20105 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20108 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
20114 shlibpath_var=LD_LIBRARY_PATH
20115 shlibpath_overrides_runpath=yes
20116 hardcode_into_libs=yes
20121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20122 shlibpath_var=LD_LIBRARY_PATH
20123 shlibpath_overrides_runpath=yes
20130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20131 soname_spec='${libname}${release}${shared_ext}$major'
20132 shlibpath_var=LD_LIBRARY_PATH
20133 shlibpath_overrides_runpath=yes
20138 sys_lib_dlsearch_path_spec="/usr/lib"
20140 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20142 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20143 *) need_version=no ;;
20145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20147 shlibpath_var=LD_LIBRARY_PATH
20148 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20150 openbsd2.[89] | openbsd2.[89].*)
20151 shlibpath_overrides_runpath=no
20154 shlibpath_overrides_runpath=yes
20158 shlibpath_overrides_runpath=yes
20163 libname_spec='$name'
20166 library_names_spec='$libname${shared_ext} $libname.a'
20167 dynamic_linker='OS/2 ld.exe'
20168 shlibpath_var=LIBPATH
20171 osf3* | osf4* | osf5*)
20175 soname_spec='${libname}${release}${shared_ext}$major'
20176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20177 shlibpath_var=LD_LIBRARY_PATH
20178 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20179 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20187 soname_spec='${libname}${release}${shared_ext}$major'
20188 shlibpath_var=LD_LIBRARY_PATH
20189 shlibpath_overrides_runpath=yes
20190 hardcode_into_libs=yes
20191 # ldd complains unless libraries are executable
20192 postinstall_cmds='chmod +x $lib'
20197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20198 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20199 shlibpath_var=LD_LIBRARY_PATH
20200 shlibpath_overrides_runpath=yes
20201 if test "$with_gnu_ld" = yes; then
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210 soname_spec='${libname}${release}${shared_ext}$major'
20211 shlibpath_var=LD_LIBRARY_PATH
20212 case $host_vendor in
20214 shlibpath_overrides_runpath=no
20216 export_dynamic_flag_spec='${wl}-Blargedynsym'
20217 runpath_var=LD_RUN_PATH
20225 shlibpath_overrides_runpath=no
20226 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20232 if test -d /usr/nec ;then
20234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20235 soname_spec='$libname${shared_ext}.$major'
20236 shlibpath_var=LD_LIBRARY_PATH
20240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20241 version_type=freebsd-elf
20244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20245 soname_spec='${libname}${release}${shared_ext}$major'
20246 shlibpath_var=LD_LIBRARY_PATH
20247 hardcode_into_libs=yes
20248 if test "$with_gnu_ld" = yes; then
20249 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20250 shlibpath_overrides_runpath=no
20252 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20253 shlibpath_overrides_runpath=yes
20256 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20260 sys_lib_dlsearch_path_spec='/usr/lib'
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266 soname_spec='${libname}${release}${shared_ext}$major'
20267 shlibpath_var=LD_LIBRARY_PATH
20274 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20275 echo "${ECHO_T}$dynamic_linker" >&6; }
20276 test "$dynamic_linker" = no && can_build_shared=no
20278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20279 if test "$GCC" = yes; then
20280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20283 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20284 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20285 hardcode_action_CXX=
20286 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20287 test -n "$runpath_var_CXX" || \
20288 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20290 # We can hardcode non-existant directories.
20291 if test "$hardcode_direct_CXX" != no &&
20292 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20293 # have to relink, otherwise we might link with an installed library
20294 # when we should be linking with a yet-to-be-installed one
20295 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20296 test "$hardcode_minus_L_CXX" != no; then
20297 # Linking always hardcodes the temporary library directory.
20298 hardcode_action_CXX=relink
20300 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20301 hardcode_action_CXX=immediate
20304 # We cannot hardcode anything, or else we can only hardcode existing
20306 hardcode_action_CXX=unsupported
20308 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20309 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20311 if test "$hardcode_action_CXX" = relink; then
20312 # Fast installation is not supported
20313 enable_fast_install=no
20314 elif test "$shlibpath_overrides_runpath" = yes ||
20315 test "$enable_shared" = no; then
20316 # Fast installation is not necessary
20317 enable_fast_install=needless
20321 # The else clause should only fire when bootstrapping the
20322 # libtool distribution, otherwise you forgot to ship ltmain.sh
20323 # with your package, and you will get complaints that there are
20324 # no rules to generate ltmain.sh.
20325 if test -f "$ltmain"; then
20326 # See if we are running on zsh, and set the options which allow our commands through
20327 # without removal of \ escapes.
20328 if test -n "${ZSH_VERSION+set}" ; then
20329 setopt NO_GLOB_SUBST
20331 # Now quote all the things that may contain metacharacters while being
20332 # careful not to overquote the AC_SUBSTed values. We take copies of the
20333 # variables and quote the copies for generation of the libtool script.
20334 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20336 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20337 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20338 deplibs_check_method reload_flag reload_cmds need_locks \
20339 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20340 lt_cv_sys_global_symbol_to_c_name_address \
20341 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20342 old_postinstall_cmds old_postuninstall_cmds \
20346 lt_prog_compiler_wl_CXX \
20347 lt_prog_compiler_pic_CXX \
20348 lt_prog_compiler_static_CXX \
20349 lt_prog_compiler_no_builtin_flag_CXX \
20350 export_dynamic_flag_spec_CXX \
20351 thread_safe_flag_spec_CXX \
20352 whole_archive_flag_spec_CXX \
20353 enable_shared_with_static_runtimes_CXX \
20354 old_archive_cmds_CXX \
20355 old_archive_from_new_cmds_CXX \
20356 predep_objects_CXX \
20357 postdep_objects_CXX \
20360 compiler_lib_search_path_CXX \
20362 archive_expsym_cmds_CXX \
20363 postinstall_cmds_CXX \
20364 postuninstall_cmds_CXX \
20365 old_archive_from_expsyms_cmds_CXX \
20366 allow_undefined_flag_CXX \
20367 no_undefined_flag_CXX \
20368 export_symbols_cmds_CXX \
20369 hardcode_libdir_flag_spec_CXX \
20370 hardcode_libdir_flag_spec_ld_CXX \
20371 hardcode_libdir_separator_CXX \
20372 hardcode_automatic_CXX \
20374 module_expsym_cmds_CXX \
20375 lt_cv_prog_compiler_c_o_CXX \
20376 exclude_expsyms_CXX \
20377 include_expsyms_CXX; do
20380 old_archive_cmds_CXX | \
20381 old_archive_from_new_cmds_CXX | \
20382 archive_cmds_CXX | \
20383 archive_expsym_cmds_CXX | \
20384 module_cmds_CXX | \
20385 module_expsym_cmds_CXX | \
20386 old_archive_from_expsyms_cmds_CXX | \
20387 export_symbols_cmds_CXX | \
20388 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20389 postinstall_cmds | postuninstall_cmds | \
20390 old_postinstall_cmds | old_postuninstall_cmds | \
20391 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20392 # Double-quote double-evaled strings.
20393 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20396 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20402 *'\$0 --fallback-echo"')
20403 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20409 cat <<__EOF__ >> "$cfgfile"
20410 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20412 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20414 # Shell to use when invoking shell scripts.
20417 # Whether or not to build shared libraries.
20418 build_libtool_libs=$enable_shared
20420 # Whether or not to build static libraries.
20421 build_old_libs=$enable_static
20423 # Whether or not to add -lc for building shared libraries.
20424 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20426 # Whether or not to disallow shared libs when runtime libs are static
20427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20429 # Whether or not to optimize for fast installation.
20430 fast_install=$enable_fast_install
20433 host_alias=$host_alias
20437 # The build system.
20438 build_alias=$build_alias
20442 # An echo program that does not interpret backslashes.
20447 AR_FLAGS=$lt_AR_FLAGS
20452 # LTCC compiler flags.
20453 LTCFLAGS=$lt_LTCFLAGS
20455 # A language-specific compiler.
20456 CC=$lt_compiler_CXX
20458 # Is the compiler the GNU C compiler?
20464 # The linker used to build libraries.
20467 # Whether we need hard or soft links.
20470 # A BSD-compatible nm program.
20473 # A symbol stripping program
20476 # Used to examine libraries when file_magic_cmd begins "file"
20477 MAGIC_CMD=$MAGIC_CMD
20479 # Used on cygwin: DLL creation program.
20482 # Used on cygwin: object dumper.
20485 # Used on cygwin: assembler.
20488 # The name of the directory that contains temporary libtool files.
20491 # How to create reloadable object files.
20492 reload_flag=$lt_reload_flag
20493 reload_cmds=$lt_reload_cmds
20495 # How to pass a linker flag through the compiler.
20496 wl=$lt_lt_prog_compiler_wl_CXX
20498 # Object file suffix (normally "o").
20499 objext="$ac_objext"
20501 # Old archive suffix (normally "a").
20504 # Shared library suffix (normally ".so").
20505 shrext_cmds='$shrext_cmds'
20507 # Executable file suffix (normally "").
20510 # Additional compiler flags for building library objects.
20511 pic_flag=$lt_lt_prog_compiler_pic_CXX
20514 # What is the maximum length of a command?
20515 max_cmd_len=$lt_cv_sys_max_cmd_len
20517 # Does compiler simultaneously support -c and -o options?
20518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20520 # Must we lock files when doing compilation?
20521 need_locks=$lt_need_locks
20523 # Do we need the lib prefix for modules?
20524 need_lib_prefix=$need_lib_prefix
20526 # Do we need a version for libraries?
20527 need_version=$need_version
20529 # Whether dlopen is supported.
20530 dlopen_support=$enable_dlopen
20532 # Whether dlopen of programs is supported.
20533 dlopen_self=$enable_dlopen_self
20535 # Whether dlopen of statically linked programs is supported.
20536 dlopen_self_static=$enable_dlopen_self_static
20538 # Compiler flag to prevent dynamic linking.
20539 link_static_flag=$lt_lt_prog_compiler_static_CXX
20541 # Compiler flag to turn off builtin functions.
20542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20544 # Compiler flag to allow reflexive dlopens.
20545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20547 # Compiler flag to generate shared objects directly from archives.
20548 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20550 # Compiler flag to generate thread-safe objects.
20551 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20553 # Library versioning type.
20554 version_type=$version_type
20556 # Format of library name prefix.
20557 libname_spec=$lt_libname_spec
20559 # List of archive names. First name is the real one, the rest are links.
20560 # The last name is the one that the linker finds with -lNAME.
20561 library_names_spec=$lt_library_names_spec
20563 # The coded name of the library, if different from the real name.
20564 soname_spec=$lt_soname_spec
20566 # Commands used to build and install an old-style archive.
20568 old_archive_cmds=$lt_old_archive_cmds_CXX
20569 old_postinstall_cmds=$lt_old_postinstall_cmds
20570 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20572 # Create an old-style archive from a shared archive.
20573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20575 # Create a temporary old-style archive to link instead of a shared archive.
20576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20578 # Commands used to build and install a shared archive.
20579 archive_cmds=$lt_archive_cmds_CXX
20580 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20581 postinstall_cmds=$lt_postinstall_cmds
20582 postuninstall_cmds=$lt_postuninstall_cmds
20584 # Commands used to build a loadable module (assumed same as above if empty)
20585 module_cmds=$lt_module_cmds_CXX
20586 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20588 # Commands to strip libraries.
20589 old_striplib=$lt_old_striplib
20590 striplib=$lt_striplib
20592 # Dependencies to place before the objects being linked to create a
20594 predep_objects=$lt_predep_objects_CXX
20596 # Dependencies to place after the objects being linked to create a
20598 postdep_objects=$lt_postdep_objects_CXX
20600 # Dependencies to place before the objects being linked to create a
20602 predeps=$lt_predeps_CXX
20604 # Dependencies to place after the objects being linked to create a
20606 postdeps=$lt_postdeps_CXX
20608 # The library search path used internally by the compiler when linking
20609 # a shared library.
20610 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20612 # Method to check whether dependent libraries are shared objects.
20613 deplibs_check_method=$lt_deplibs_check_method
20615 # Command to use when deplibs_check_method == file_magic.
20616 file_magic_cmd=$lt_file_magic_cmd
20618 # Flag that allows shared libraries with undefined symbols to be built.
20619 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20621 # Flag that forces no undefined symbols.
20622 no_undefined_flag=$lt_no_undefined_flag_CXX
20624 # Commands used to finish a libtool library installation in a directory.
20625 finish_cmds=$lt_finish_cmds
20627 # Same as above, but a single script fragment to be evaled but not shown.
20628 finish_eval=$lt_finish_eval
20630 # Take the output of nm and produce a listing of raw symbols and C names.
20631 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20633 # Transform the output of nm in a proper C declaration
20634 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20636 # Transform the output of nm in a C name address pair
20637 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20639 # This is the shared library runtime path variable.
20640 runpath_var=$runpath_var
20642 # This is the shared library path variable.
20643 shlibpath_var=$shlibpath_var
20645 # Is shlibpath searched before the hard-coded library search path?
20646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20648 # How to hardcode a shared library path into an executable.
20649 hardcode_action=$hardcode_action_CXX
20651 # Whether we should hardcode library paths into libraries.
20652 hardcode_into_libs=$hardcode_into_libs
20654 # Flag to hardcode \$libdir into a binary during linking.
20655 # This must work even if \$libdir does not exist.
20656 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20658 # If ld is used when linking, flag to hardcode \$libdir into
20659 # a binary during linking. This must work even if \$libdir does
20661 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20663 # Whether we need a single -rpath flag with a separated argument.
20664 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20666 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20667 # resulting binary.
20668 hardcode_direct=$hardcode_direct_CXX
20670 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20671 # resulting binary.
20672 hardcode_minus_L=$hardcode_minus_L_CXX
20674 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20675 # the resulting binary.
20676 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20678 # Set to yes if building a shared library automatically hardcodes DIR into the library
20679 # and all subsequent libraries and executables linked against it.
20680 hardcode_automatic=$hardcode_automatic_CXX
20682 # Variables whose values should be saved in libtool wrapper scripts and
20683 # restored at relink time.
20684 variables_saved_for_relink="$variables_saved_for_relink"
20686 # Whether libtool must link a program against all its dependency libraries.
20687 link_all_deplibs=$link_all_deplibs_CXX
20689 # Compile-time system search path for libraries
20690 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20692 # Run-time system search path for libraries
20693 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20695 # Fix the shell variable \$srcfile for the compiler.
20696 fix_srcfile_path="$fix_srcfile_path_CXX"
20698 # Set to yes if exported symbols are required.
20699 always_export_symbols=$always_export_symbols_CXX
20701 # The commands to list exported symbols.
20702 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20704 # The commands to extract the exported symbol list from a shared archive.
20705 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20707 # Symbols that should not be listed in the preloaded symbols.
20708 exclude_expsyms=$lt_exclude_expsyms_CXX
20710 # Symbols that must always be exported.
20711 include_expsyms=$lt_include_expsyms_CXX
20713 # ### END LIBTOOL TAG CONFIG: $tagname
20719 # If there is no Makefile yet, we rely on a make rule to execute
20720 # `config.status --recheck' to rerun these tests and create the
20721 # libtool script then.
20722 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20723 if test -f "$ltmain_in"; then
20724 test -f Makefile && make "$ltmain"
20730 ac_cpp='$CPP $CPPFLAGS'
20731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20739 with_gnu_ldcxx=$with_gnu_ld
20740 with_gnu_ld=$lt_save_with_gnu_ld
20741 lt_cv_path_LDCXX=$lt_cv_path_LD
20742 lt_cv_path_LD=$lt_save_path_LD
20743 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20744 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20752 if test -n "$F77" && test "X$F77" != "Xno"; then
20755 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20756 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20760 archive_cmds_need_lc_F77=no
20761 allow_undefined_flag_F77=
20762 always_export_symbols_F77=no
20763 archive_expsym_cmds_F77=
20764 export_dynamic_flag_spec_F77=
20765 hardcode_direct_F77=no
20766 hardcode_libdir_flag_spec_F77=
20767 hardcode_libdir_flag_spec_ld_F77=
20768 hardcode_libdir_separator_F77=
20769 hardcode_minus_L_F77=no
20770 hardcode_automatic_F77=no
20772 module_expsym_cmds_F77=
20773 link_all_deplibs_F77=unknown
20774 old_archive_cmds_F77=$old_archive_cmds
20775 no_undefined_flag_F77=
20776 whole_archive_flag_spec_F77=
20777 enable_shared_with_static_runtimes_F77=no
20779 # Source file extension for f77 test sources.
20782 # Object file extension for compiled f77 test sources.
20786 # Code to be used in simple compile tests
20787 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20789 # Code to be used in simple link tests
20790 lt_simple_link_test_code=" program t\n end\n"
20792 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20794 # If no C compiler was specified, use CC.
20797 # If no C compiler flags were specified, use CFLAGS.
20798 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20800 # Allow CC to be a program name with arguments.
20804 # save warnings/boilerplate of simple test code
20805 ac_outfile=conftest.$ac_objext
20806 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20807 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20808 _lt_compiler_boilerplate=`cat conftest.err`
20811 ac_outfile=conftest.$ac_objext
20812 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20813 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20814 _lt_linker_boilerplate=`cat conftest.err`
20818 # Allow CC to be a program name with arguments.
20823 for cc_temp in $compiler""; do
20825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20834 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20835 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20836 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20837 echo "${ECHO_T}$can_build_shared" >&6; }
20839 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20840 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20841 test "$can_build_shared" = "no" && enable_shared=no
20843 # On AIX, shared libraries and static libraries use the same namespace, and
20844 # are all built from PIC.
20847 test "$enable_shared" = yes && enable_static=no
20848 if test -n "$RANLIB"; then
20849 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20850 postinstall_cmds='$RANLIB $lib'
20854 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20855 test "$enable_shared" = yes && enable_static=no
20859 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20860 echo "${ECHO_T}$enable_shared" >&6; }
20862 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20863 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20864 # Make sure either enable_shared or enable_static is yes.
20865 test "$enable_shared" = yes || enable_static=yes
20866 { echo "$as_me:$LINENO: result: $enable_static" >&5
20867 echo "${ECHO_T}$enable_static" >&6; }
20872 lt_prog_compiler_wl_F77=
20873 lt_prog_compiler_pic_F77=
20874 lt_prog_compiler_static_F77=
20876 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20877 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20879 if test "$GCC" = yes; then
20880 lt_prog_compiler_wl_F77='-Wl,'
20881 lt_prog_compiler_static_F77='-static'
20885 # All AIX code is PIC.
20886 if test "$host_cpu" = ia64; then
20887 # AIX 5 now supports IA64 processor
20888 lt_prog_compiler_static_F77='-Bstatic'
20893 # FIXME: we need at least 68020 code to build shared libraries, but
20894 # adding the `-m68020' flag to GCC prevents building anything better,
20896 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20899 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20900 # PIC is the default for these OSes.
20903 mingw* | pw32* | os2*)
20904 # This hack is so that the source file can tell whether it is being
20905 # built for inclusion in a dll (and should export symbols for example).
20906 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20909 darwin* | rhapsody*)
20910 # PIC is the default on this platform
20911 # Common symbols not allowed in MH_DYLIB files
20912 lt_prog_compiler_pic_F77='-fno-common'
20916 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20917 # Instead, we relocate shared libraries at runtime.
20921 # Just because we use GCC doesn't mean we suddenly get shared libraries
20922 # on systems that don't support them.
20923 lt_prog_compiler_can_build_shared_F77=no
20928 if test -d /usr/nec; then
20929 lt_prog_compiler_pic_F77=-Kconform_pic
20934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20935 # not for PA HP-UX.
20941 lt_prog_compiler_pic_F77='-fPIC'
20947 lt_prog_compiler_pic_F77='-fPIC'
20951 # PORTME Check for flag to pass linker flags through the system compiler.
20954 lt_prog_compiler_wl_F77='-Wl,'
20955 if test "$host_cpu" = ia64; then
20956 # AIX 5 now supports IA64 processor
20957 lt_prog_compiler_static_F77='-Bstatic'
20959 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20963 # PIC is the default on this platform
20964 # Common symbols not allowed in MH_DYLIB files
20965 case $cc_basename in
20967 lt_prog_compiler_pic_F77='-qnocommon'
20968 lt_prog_compiler_wl_F77='-Wl,'
20973 mingw* | pw32* | os2*)
20974 # This hack is so that the source file can tell whether it is being
20975 # built for inclusion in a dll (and should export symbols for example).
20976 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20979 hpux9* | hpux10* | hpux11*)
20980 lt_prog_compiler_wl_F77='-Wl,'
20981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20982 # not for PA HP-UX.
20988 lt_prog_compiler_pic_F77='+Z'
20991 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20992 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20995 irix5* | irix6* | nonstopux*)
20996 lt_prog_compiler_wl_F77='-Wl,'
20997 # PIC (with -KPIC) is the default.
20998 lt_prog_compiler_static_F77='-non_shared'
21002 lt_prog_compiler_pic_F77='-KPIC'
21003 lt_prog_compiler_static_F77='-Bstatic'
21007 case $cc_basename in
21009 lt_prog_compiler_wl_F77='-Wl,'
21010 lt_prog_compiler_pic_F77='-KPIC'
21011 lt_prog_compiler_static_F77='-static'
21013 pgcc* | pgf77* | pgf90* | pgf95*)
21014 # Portland Group compilers (*not* the Pentium gcc compiler,
21015 # which looks to be a dead project)
21016 lt_prog_compiler_wl_F77='-Wl,'
21017 lt_prog_compiler_pic_F77='-fpic'
21018 lt_prog_compiler_static_F77='-Bstatic'
21021 lt_prog_compiler_wl_F77='-Wl,'
21022 # All Alpha code is PIC.
21023 lt_prog_compiler_static_F77='-non_shared'
21028 osf3* | osf4* | osf5*)
21029 lt_prog_compiler_wl_F77='-Wl,'
21030 # All OSF/1 code is PIC.
21031 lt_prog_compiler_static_F77='-non_shared'
21035 lt_prog_compiler_pic_F77='-KPIC'
21036 lt_prog_compiler_static_F77='-Bstatic'
21037 case $cc_basename in
21038 f77* | f90* | f95*)
21039 lt_prog_compiler_wl_F77='-Qoption ld ';;
21041 lt_prog_compiler_wl_F77='-Wl,';;
21046 lt_prog_compiler_wl_F77='-Qoption ld '
21047 lt_prog_compiler_pic_F77='-PIC'
21048 lt_prog_compiler_static_F77='-Bstatic'
21051 sysv4 | sysv4.2uw2* | sysv4.3*)
21052 lt_prog_compiler_wl_F77='-Wl,'
21053 lt_prog_compiler_pic_F77='-KPIC'
21054 lt_prog_compiler_static_F77='-Bstatic'
21058 if test -d /usr/nec ;then
21059 lt_prog_compiler_pic_F77='-Kconform_pic'
21060 lt_prog_compiler_static_F77='-Bstatic'
21064 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21065 lt_prog_compiler_wl_F77='-Wl,'
21066 lt_prog_compiler_pic_F77='-KPIC'
21067 lt_prog_compiler_static_F77='-Bstatic'
21071 lt_prog_compiler_wl_F77='-Wl,'
21072 lt_prog_compiler_can_build_shared_F77=no
21076 lt_prog_compiler_pic_F77='-pic'
21077 lt_prog_compiler_static_F77='-Bstatic'
21081 lt_prog_compiler_can_build_shared_F77=no
21086 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21087 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21090 # Check to make sure the PIC flag actually works.
21092 if test -n "$lt_prog_compiler_pic_F77"; then
21094 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21095 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21096 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 lt_prog_compiler_pic_works_F77=no
21100 ac_outfile=conftest.$ac_objext
21101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21102 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21103 # Insert the option either (1) after the last *FLAGS variable, or
21104 # (2) before a word containing "conftest.", or (3) at the end.
21105 # Note that $ac_compile itself does not contain backslashes and begins
21106 # with a dollar sign (not a hyphen), so the echo should work correctly.
21107 # The option is referenced via a variable to avoid confusing sed.
21108 lt_compile=`echo "$ac_compile" | $SED \
21109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21111 -e 's:$: $lt_compiler_flag:'`
21112 (eval echo "\"\$as_me:21112: $lt_compile\"" >&5)
21113 (eval "$lt_compile" 2>conftest.err)
21115 cat conftest.err >&5
21116 echo "$as_me:21116: \$? = $ac_status" >&5
21117 if (exit $ac_status) && test -s "$ac_outfile"; then
21118 # The compiler can only warn and ignore the option if not recognized
21119 # So say no if there are warnings other than the usual output.
21120 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21123 lt_prog_compiler_pic_works_F77=yes
21129 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21130 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21132 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21133 case $lt_prog_compiler_pic_F77 in
21135 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21138 lt_prog_compiler_pic_F77=
21139 lt_prog_compiler_can_build_shared_F77=no
21144 # For platforms which do not support PIC, -DPIC is meaningless:
21146 lt_prog_compiler_pic_F77=
21149 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21154 # Check to make sure the static flag actually works.
21156 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21157 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21158 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21159 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 lt_prog_compiler_static_works_F77=no
21163 save_LDFLAGS="$LDFLAGS"
21164 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21165 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21166 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21167 # The linker can only warn and ignore the option if not recognized
21168 # So say no if there are warnings
21169 if test -s conftest.err; then
21170 # Append any errors to the config.log.
21171 cat conftest.err 1>&5
21172 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21174 if diff conftest.exp conftest.er2 >/dev/null; then
21175 lt_prog_compiler_static_works_F77=yes
21178 lt_prog_compiler_static_works_F77=yes
21182 LDFLAGS="$save_LDFLAGS"
21185 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21186 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21188 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21191 lt_prog_compiler_static_F77=
21195 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21196 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21197 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21198 echo $ECHO_N "(cached) $ECHO_C" >&6
21200 lt_cv_prog_compiler_c_o_F77=no
21201 $rm -r conftest 2>/dev/null
21205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21207 lt_compiler_flag="-o out/conftest2.$ac_objext"
21208 # Insert the option either (1) after the last *FLAGS variable, or
21209 # (2) before a word containing "conftest.", or (3) at the end.
21210 # Note that $ac_compile itself does not contain backslashes and begins
21211 # with a dollar sign (not a hyphen), so the echo should work correctly.
21212 lt_compile=`echo "$ac_compile" | $SED \
21213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21215 -e 's:$: $lt_compiler_flag:'`
21216 (eval echo "\"\$as_me:21216: $lt_compile\"" >&5)
21217 (eval "$lt_compile" 2>out/conftest.err)
21219 cat out/conftest.err >&5
21220 echo "$as_me:21220: \$? = $ac_status" >&5
21221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21223 # The compiler can only warn and ignore the option if not recognized
21224 # So say no if there are warnings
21225 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21226 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21227 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21228 lt_cv_prog_compiler_c_o_F77=yes
21233 # SGI C++ compiler will create directory out/ii_files/ for
21234 # template instantiation
21235 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21236 $rm out/* && rmdir out
21242 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21243 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21246 hard_links="nottested"
21247 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21248 # do not overwrite the value of need_locks provided by the user
21249 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21250 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21255 ln conftest.a conftest.b 2>&5 || hard_links=no
21256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21257 { echo "$as_me:$LINENO: result: $hard_links" >&5
21258 echo "${ECHO_T}$hard_links" >&6; }
21259 if test "$hard_links" = no; then
21260 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21261 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21268 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21269 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21272 allow_undefined_flag_F77=
21273 enable_shared_with_static_runtimes_F77=no
21275 archive_expsym_cmds_F77=
21276 old_archive_From_new_cmds_F77=
21277 old_archive_from_expsyms_cmds_F77=
21278 export_dynamic_flag_spec_F77=
21279 whole_archive_flag_spec_F77=
21280 thread_safe_flag_spec_F77=
21281 hardcode_libdir_flag_spec_F77=
21282 hardcode_libdir_flag_spec_ld_F77=
21283 hardcode_libdir_separator_F77=
21284 hardcode_direct_F77=no
21285 hardcode_minus_L_F77=no
21286 hardcode_shlibpath_var_F77=unsupported
21287 link_all_deplibs_F77=unknown
21288 hardcode_automatic_F77=no
21290 module_expsym_cmds_F77=
21291 always_export_symbols_F77=no
21292 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21293 # include_expsyms should be a list of space-separated symbols to be *always*
21294 # included in the symbol list
21295 include_expsyms_F77=
21296 # exclude_expsyms can be an extended regexp of symbols to exclude
21297 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21298 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21299 # as well as any symbol that contains `d'.
21300 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21302 # platforms (ab)use it in PIC code, but their linkers get confused if
21303 # the symbol is explicitly referenced. Since portable code cannot
21304 # rely on this symbol name, it's probably fine to never include it in
21305 # preloaded symbol tables.
21306 extract_expsyms_cmds=
21307 # Just being paranoid about ensuring that cc_basename is set.
21308 for cc_temp in $compiler""; do
21310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21316 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21319 cygwin* | mingw* | pw32*)
21320 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21321 # When not using gcc, we currently assume that we are using
21322 # Microsoft Visual C++.
21323 if test "$GCC" != yes; then
21328 # we just hope/assume this is gcc and not c89 (= MSVC++)
21337 if test "$with_gnu_ld" = yes; then
21338 # If archive_cmds runs LD, not CC, wlarc should be empty
21341 # Set some defaults for GNU ld with shared library support. These
21342 # are reset later if shared libraries are not supported. Putting them
21343 # here allows them to be overridden if necessary.
21344 runpath_var=LD_RUN_PATH
21345 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21346 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21347 # ancient GNU ld didn't support --whole-archive et. al.
21348 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21349 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21351 whole_archive_flag_spec_F77=
21353 supports_anon_versioning=no
21354 case `$LD -v 2>/dev/null` in
21355 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21356 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21357 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21358 *\ 2.11.*) ;; # other 2.11 versions
21359 *) supports_anon_versioning=yes ;;
21362 # See if GNU ld supports shared libraries.
21364 aix3* | aix4* | aix5*)
21365 # On AIX/PPC, the GNU linker is very broken
21366 if test "$host_cpu" != ia64; then
21370 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21371 *** to be unable to reliably create shared libraries on AIX.
21372 *** Therefore, libtool is disabling shared libraries support. If you
21373 *** really care for shared libraries, you may want to modify your PATH
21374 *** so that a non-GNU linker is found, and then restart.
21381 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)'
21382 hardcode_libdir_flag_spec_F77='-L$libdir'
21383 hardcode_minus_L_F77=yes
21385 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21386 # that the semantics of dynamic libraries on AmigaOS, at least up
21387 # to version 4, is to share data among multiple programs linked
21388 # with the same dynamic library. Since this doesn't match the
21389 # behavior of shared libraries on other platforms, we can't use
21395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21396 allow_undefined_flag_F77=unsupported
21397 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21398 # support --undefined. This deserves some investigation. FIXME
21399 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21405 cygwin* | mingw* | pw32*)
21406 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21407 # as there is no search path for DLLs.
21408 hardcode_libdir_flag_spec_F77='-L$libdir'
21409 allow_undefined_flag_F77=unsupported
21410 always_export_symbols_F77=no
21411 enable_shared_with_static_runtimes_F77=yes
21412 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21414 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21415 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21416 # If the export-symbols file already is a .def file (1st line
21417 # is EXPORTS), use it as is; otherwise, prepend...
21418 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21419 cp $export_symbols $output_objdir/$soname.def;
21421 echo EXPORTS > $output_objdir/$soname.def;
21422 cat $export_symbols >> $output_objdir/$soname.def;
21424 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21431 hardcode_direct_F77=no
21432 hardcode_shlibpath_var_F77=no
21433 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21434 export_dynamic_flag_spec_F77='${wl}-E'
21435 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21436 # Instead, shared libraries are loaded at an image base (0x10000000 by
21437 # default) and relocated if they conflict, which is a slow very memory
21438 # consuming and fragmenting process. To avoid this, we pick a random,
21439 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21440 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21441 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'
21442 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'
21446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21448 case $cc_basename,$host_cpu in
21449 pgcc*) # Portland Group C compiler
21450 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'
21451 tmp_addflag=' $pic_flag'
21453 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21454 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'
21455 tmp_addflag=' $pic_flag -Mnomain' ;;
21456 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21457 tmp_addflag=' -i_dynamic' ;;
21458 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21459 tmp_addflag=' -i_dynamic -nofor_main' ;;
21460 ifc* | ifort*) # Intel Fortran compiler
21461 tmp_addflag=' -nofor_main' ;;
21463 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21465 if test $supports_anon_versioning = yes; then
21466 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21468 $echo "local: *; };" >> $output_objdir/$libname.ver~
21469 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21478 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21481 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21482 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21487 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21492 *** create shared libraries on Solaris systems. Therefore, libtool
21493 *** is disabling shared libraries support. We urge you to upgrade GNU
21494 *** binutils to release 2.9.1 or newer. Another option is to modify
21495 *** your PATH or compiler configuration so that the native linker is
21496 *** used, and then restart.
21499 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21500 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21501 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21508 case `$LD -v 2>&1` in
21509 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21513 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21514 *** reliably create shared libraries on SCO systems. Therefore, libtool
21515 *** is disabling shared libraries support. We urge you to upgrade GNU
21516 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21517 *** your PATH or compiler configuration so that the native linker is
21518 *** used, and then restart.
21523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21524 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21525 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21526 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21535 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21537 hardcode_direct_F77=yes
21538 hardcode_shlibpath_var_F77=no
21542 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21543 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21544 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21551 if test "$ld_shlibs_F77" = no; then
21553 hardcode_libdir_flag_spec_F77=
21554 export_dynamic_flag_spec_F77=
21555 whole_archive_flag_spec_F77=
21558 # PORTME fill in a description of your system's linker (not GNU ld)
21561 allow_undefined_flag_F77=unsupported
21562 always_export_symbols_F77=yes
21563 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'
21564 # Note: this linker hardcodes the directories in LIBPATH if there
21565 # are no directories specified by -L.
21566 hardcode_minus_L_F77=yes
21567 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21568 # Neither direct hardcoding nor static linking is supported with a
21570 hardcode_direct_F77=unsupported
21575 if test "$host_cpu" = ia64; then
21576 # On IA64, the linker does run time linking by default, so we don't
21577 # have to do anything special.
21578 aix_use_runtimelinking=no
21579 exp_sym_flag='-Bexport'
21582 # If we're using GNU nm, then we don't want the "-C" option.
21583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21584 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21585 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'
21587 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'
21589 aix_use_runtimelinking=no
21591 # Test if we are trying to use run time linking or normal
21592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21593 # need to do runtime linking.
21594 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21595 for ld_flag in $LDFLAGS; do
21596 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21597 aix_use_runtimelinking=yes
21604 exp_sym_flag='-bexport'
21605 no_entry_flag='-bnoentry'
21608 # When large executables or shared objects are built, AIX ld can
21609 # have problems creating the table of contents. If linking a library
21610 # or program results in "error TOC overflow" add -mminimal-toc to
21611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21614 archive_cmds_F77=''
21615 hardcode_direct_F77=yes
21616 hardcode_libdir_separator_F77=':'
21617 link_all_deplibs_F77=yes
21619 if test "$GCC" = yes; then
21620 case $host_os in aix4.[012]|aix4.[012].*)
21621 # We only want to do this on AIX 4.2 and lower, the check
21622 # below for broken collect2 doesn't work under 4.3+
21623 collect2name=`${CC} -print-prog-name=collect2`
21624 if test -f "$collect2name" && \
21625 strings "$collect2name" | grep resolve_lib_name >/dev/null
21627 # We have reworked collect2
21628 hardcode_direct_F77=yes
21630 # We have old collect2
21631 hardcode_direct_F77=unsupported
21632 # It fails to find uninstalled libraries when the uninstalled
21633 # path is not listed in the libpath. Setting hardcode_minus_L
21634 # to unsupported forces relinking
21635 hardcode_minus_L_F77=yes
21636 hardcode_libdir_flag_spec_F77='-L$libdir'
21637 hardcode_libdir_separator_F77=
21641 shared_flag='-shared'
21642 if test "$aix_use_runtimelinking" = yes; then
21643 shared_flag="$shared_flag "'${wl}-G'
21647 if test "$host_cpu" = ia64; then
21648 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21649 # chokes on -Wl,-G. The following line is correct:
21652 if test "$aix_use_runtimelinking" = yes; then
21653 shared_flag='${wl}-G'
21655 shared_flag='${wl}-bM:SRE'
21660 # It seems that -bexpall does not export symbols beginning with
21661 # underscore (_), so it is better to generate a list of symbols to export.
21662 always_export_symbols_F77=yes
21663 if test "$aix_use_runtimelinking" = yes; then
21664 # Warning - without using the other runtime loading flags (-brtl),
21665 # -berok will link without error, but may produce a broken library.
21666 allow_undefined_flag_F77='-berok'
21667 # Determine the default libpath from the value encoded in an empty executable.
21668 cat >conftest.$ac_ext <<_ACEOF
21673 rm -f conftest.$ac_objext conftest$ac_exeext
21674 if { (ac_try="$ac_link"
21675 case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680 (eval "$ac_link") 2>conftest.er1
21682 grep -v '^ *+' conftest.er1 >conftest.err
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } &&
21687 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21688 { (case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693 (eval "$ac_try") 2>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; } &&
21697 { ac_try='test -s conftest$ac_exeext'
21698 { (case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_try") 2>&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; }; then
21708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21710 # Check for a 64-bit object if we didn't find anything.
21711 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; }
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21720 rm -f core conftest.err conftest.$ac_objext \
21721 conftest$ac_exeext conftest.$ac_ext
21722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21724 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21725 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"
21727 if test "$host_cpu" = ia64; then
21728 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21729 allow_undefined_flag_F77="-z nodefs"
21730 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"
21732 # Determine the default libpath from the value encoded in an empty executable.
21733 cat >conftest.$ac_ext <<_ACEOF
21738 rm -f conftest.$ac_objext conftest$ac_exeext
21739 if { (ac_try="$ac_link"
21740 case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745 (eval "$ac_link") 2>conftest.er1
21747 grep -v '^ *+' conftest.er1 >conftest.err
21749 cat conftest.err >&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } &&
21752 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21753 { (case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758 (eval "$ac_try") 2>&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; } &&
21762 { ac_try='test -s conftest$ac_exeext'
21763 { (case "(($ac_try" in
21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765 *) ac_try_echo=$ac_try;;
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768 (eval "$ac_try") 2>&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; }; then
21773 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21775 # Check for a 64-bit object if we didn't find anything.
21776 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; }
21779 echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21785 rm -f core conftest.err conftest.$ac_objext \
21786 conftest$ac_exeext conftest.$ac_ext
21787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21789 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21790 # Warning - without using the other run time loading flags,
21791 # -berok will link without error, but may produce a broken library.
21792 no_undefined_flag_F77=' ${wl}-bernotok'
21793 allow_undefined_flag_F77=' ${wl}-berok'
21794 # Exported symbols can be pulled into shared objects from archives
21795 whole_archive_flag_spec_F77='$convenience'
21796 archive_cmds_need_lc_F77=yes
21797 # This is similar to how AIX traditionally builds its shared libraries.
21798 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'
21804 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)'
21805 hardcode_libdir_flag_spec_F77='-L$libdir'
21806 hardcode_minus_L_F77=yes
21807 # see comment about different semantics on the GNU ld section
21812 export_dynamic_flag_spec_F77=-rdynamic
21815 cygwin* | mingw* | pw32*)
21816 # When not using gcc, we currently assume that we are using
21817 # Microsoft Visual C++.
21818 # hardcode_libdir_flag_spec is actually meaningless, as there is
21819 # no search path for DLLs.
21820 hardcode_libdir_flag_spec_F77=' '
21821 allow_undefined_flag_F77=unsupported
21822 # Tell ltmain to make .lib files, not .a files.
21824 # Tell ltmain to make .dll files, not .so files.
21826 # FIXME: Setting linknames here is a bad hack.
21827 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21828 # The linker will automatically build a .lib file if we build a DLL.
21829 old_archive_From_new_cmds_F77='true'
21830 # FIXME: Should let the user specify the lib program.
21831 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21832 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21833 enable_shared_with_static_runtimes_F77=yes
21836 darwin* | rhapsody*)
21838 rhapsody* | darwin1.[012])
21839 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21842 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21843 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21845 case ${MACOSX_DEPLOYMENT_TARGET} in
21847 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21850 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21856 archive_cmds_need_lc_F77=no
21857 hardcode_direct_F77=no
21858 hardcode_automatic_F77=yes
21859 hardcode_shlibpath_var_F77=unsupported
21860 whole_archive_flag_spec_F77=''
21861 link_all_deplibs_F77=yes
21862 if test "$GCC" = yes ; then
21863 output_verbose_link_cmd='echo'
21864 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21865 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21866 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21867 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}'
21868 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}'
21870 case $cc_basename in
21872 output_verbose_link_cmd='echo'
21873 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21874 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21875 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21876 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}'
21877 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}'
21887 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21888 hardcode_libdir_flag_spec_F77='-L$libdir'
21889 hardcode_shlibpath_var_F77=no
21896 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21897 # support. Future versions do this automatically, but an explicit c++rt0.o
21898 # does not break anything, and helps significantly (at the cost of a little
21901 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21902 hardcode_libdir_flag_spec_F77='-R$libdir'
21903 hardcode_direct_F77=yes
21904 hardcode_shlibpath_var_F77=no
21907 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21909 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21910 hardcode_direct_F77=yes
21911 hardcode_minus_L_F77=yes
21912 hardcode_shlibpath_var_F77=no
21915 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21916 freebsd* | kfreebsd*-gnu | dragonfly*)
21917 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21918 hardcode_libdir_flag_spec_F77='-R$libdir'
21919 hardcode_direct_F77=yes
21920 hardcode_shlibpath_var_F77=no
21924 if test "$GCC" = yes; then
21925 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'
21927 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'
21929 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21930 hardcode_libdir_separator_F77=:
21931 hardcode_direct_F77=yes
21933 # hardcode_minus_L: Not really in the search PATH,
21934 # but as the default location of the library.
21935 hardcode_minus_L_F77=yes
21936 export_dynamic_flag_spec_F77='${wl}-E'
21940 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21941 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21943 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21945 if test "$with_gnu_ld" = no; then
21946 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21947 hardcode_libdir_separator_F77=:
21949 hardcode_direct_F77=yes
21950 export_dynamic_flag_spec_F77='${wl}-E'
21952 # hardcode_minus_L: Not really in the search PATH,
21953 # but as the default location of the library.
21954 hardcode_minus_L_F77=yes
21959 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21962 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21965 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21968 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21974 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21977 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21980 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21984 if test "$with_gnu_ld" = no; then
21985 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21986 hardcode_libdir_separator_F77=:
21990 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21991 hardcode_direct_F77=no
21992 hardcode_shlibpath_var_F77=no
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
22006 irix5* | irix6* | nonstopux*)
22007 if test "$GCC" = yes; then
22008 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'
22010 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'
22011 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22013 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22014 hardcode_libdir_separator_F77=:
22015 link_all_deplibs_F77=yes
22019 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22020 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22022 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22024 hardcode_libdir_flag_spec_F77='-R$libdir'
22025 hardcode_direct_F77=yes
22026 hardcode_shlibpath_var_F77=no
22030 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22031 hardcode_direct_F77=yes
22032 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22033 hardcode_libdir_separator_F77=:
22034 hardcode_shlibpath_var_F77=no
22038 hardcode_direct_F77=yes
22039 hardcode_shlibpath_var_F77=no
22040 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22041 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22042 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22043 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22044 export_dynamic_flag_spec_F77='${wl}-E'
22047 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22048 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22049 hardcode_libdir_flag_spec_F77='-R$libdir'
22052 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22053 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22060 hardcode_libdir_flag_spec_F77='-L$libdir'
22061 hardcode_minus_L_F77=yes
22062 allow_undefined_flag_F77=unsupported
22063 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'
22064 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22068 if test "$GCC" = yes; then
22069 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22070 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'
22072 allow_undefined_flag_F77=' -expect_unresolved \*'
22073 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'
22075 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22076 hardcode_libdir_separator_F77=:
22079 osf4* | osf5*) # as osf3* with the addition of -msym flag
22080 if test "$GCC" = yes; then
22081 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22082 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'
22083 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22085 allow_undefined_flag_F77=' -expect_unresolved \*'
22086 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'
22087 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~
22088 $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'
22090 # Both c and cxx compiler support -rpath directly
22091 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22093 hardcode_libdir_separator_F77=:
22097 no_undefined_flag_F77=' -z text'
22098 if test "$GCC" = yes; then
22100 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22101 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22102 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22105 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22106 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22107 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22109 hardcode_libdir_flag_spec_F77='-R$libdir'
22110 hardcode_shlibpath_var_F77=no
22112 solaris2.[0-5] | solaris2.[0-5].*) ;;
22114 # The compiler driver will combine linker options so we
22115 # cannot just pass the convience library names through
22116 # without $wl, iff we do not link with $LD.
22117 # Luckily, gcc supports the same syntax we need for Sun Studio.
22118 # Supported since Solaris 2.6 (maybe 2.5.1?)
22121 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22123 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' ;;
22126 link_all_deplibs_F77=yes
22130 if test "x$host_vendor" = xsequent; then
22131 # Use $CC to link under sequent, because it throws in some extra .o
22132 # files that make .init and .fini sections work.
22133 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22135 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22137 hardcode_libdir_flag_spec_F77='-L$libdir'
22138 hardcode_direct_F77=yes
22139 hardcode_minus_L_F77=yes
22140 hardcode_shlibpath_var_F77=no
22144 case $host_vendor in
22146 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22147 hardcode_direct_F77=yes # is this really true???
22150 ## LD is ld it makes a PLAMLIB
22151 ## CC just makes a GrossModule.
22152 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22153 reload_cmds_F77='$CC -r -o $output$reload_objs'
22154 hardcode_direct_F77=no
22157 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22158 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22161 runpath_var='LD_RUN_PATH'
22162 hardcode_shlibpath_var_F77=no
22166 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22167 hardcode_shlibpath_var_F77=no
22168 export_dynamic_flag_spec_F77='-Bexport'
22172 if test -d /usr/nec; then
22173 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22174 hardcode_shlibpath_var_F77=no
22175 runpath_var=LD_RUN_PATH
22176 hardcode_runpath_var=yes
22181 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22182 no_undefined_flag_F77='${wl}-z,text'
22183 archive_cmds_need_lc_F77=no
22184 hardcode_shlibpath_var_F77=no
22185 runpath_var='LD_RUN_PATH'
22187 if test "$GCC" = yes; then
22188 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22189 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22191 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22192 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22196 sysv5* | sco3.2v5* | sco5v6*)
22197 # Note: We can NOT use -z defs as we might desire, because we do not
22198 # link with -lc, and that would cause any symbols used from libc to
22199 # always be unresolved, which means just about no library would
22200 # ever link correctly. If we're not using GNU ld we use -z text
22201 # though, which does catch some bad symbols but isn't as heavy-handed
22203 no_undefined_flag_F77='${wl}-z,text'
22204 allow_undefined_flag_F77='${wl}-z,nodefs'
22205 archive_cmds_need_lc_F77=no
22206 hardcode_shlibpath_var_F77=no
22207 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22208 hardcode_libdir_separator_F77=':'
22209 link_all_deplibs_F77=yes
22210 export_dynamic_flag_spec_F77='${wl}-Bexport'
22211 runpath_var='LD_RUN_PATH'
22213 if test "$GCC" = yes; then
22214 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22215 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22217 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22218 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22223 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22224 hardcode_libdir_flag_spec_F77='-L$libdir'
22225 hardcode_shlibpath_var_F77=no
22234 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22235 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22236 test "$ld_shlibs_F77" = no && can_build_shared=no
22239 # Do we need to explicitly link libc?
22241 case "x$archive_cmds_need_lc_F77" in
22243 # Assume -lc should be added
22244 archive_cmds_need_lc_F77=yes
22246 if test "$enable_shared" = yes && test "$GCC" = yes; then
22247 case $archive_cmds_F77 in
22249 # FIXME: we may have to deal with multi-command sequences.
22252 # Test whether the compiler implicitly links with -lc since on some
22253 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22254 # to ld, don't add -lc before -lgcc.
22255 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22256 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22261 (eval $ac_compile) 2>&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } 2>conftest.err; then
22267 libobjs=conftest.$ac_objext
22269 wl=$lt_prog_compiler_wl_F77
22270 pic_flag=$lt_prog_compiler_pic_F77
22276 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22277 allow_undefined_flag_F77=
22278 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22279 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }
22284 archive_cmds_need_lc_F77=no
22286 archive_cmds_need_lc_F77=yes
22288 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22290 cat conftest.err 1>&5
22293 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22294 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22301 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22302 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22303 library_names_spec=
22304 libname_spec='lib$name'
22308 postuninstall_cmds=
22312 shlibpath_overrides_runpath=unknown
22314 dynamic_linker="$host_os ld.so"
22315 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22316 if test "$GCC" = yes; then
22317 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22318 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22319 # if the path contains ";" then we assume it to be the separator
22320 # otherwise default to the standard path separator (i.e. ":") - it is
22321 # assumed that no part of a normal pathname contains ";" but that should
22322 # okay in the real world where ";" in dirpaths is itself problematic.
22323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22328 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22330 need_lib_prefix=unknown
22331 hardcode_into_libs=no
22333 # when you set need_version to no, make sure it does not cause -set_version
22334 # flags to be left without arguments
22335 need_version=unknown
22340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22341 shlibpath_var=LIBPATH
22343 # AIX 3 has no versioning support, so we append a major version to the name.
22344 soname_spec='${libname}${release}${shared_ext}$major'
22351 hardcode_into_libs=yes
22352 if test "$host_cpu" = ia64; then
22353 # AIX 5 supports IA64
22354 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22355 shlibpath_var=LD_LIBRARY_PATH
22357 # With GCC up to 2.95.x, collect2 would create an import file
22358 # for dependence libraries. The import file would start with
22359 # the line `#! .'. This would cause the generated library to
22360 # depend on `.', always an invalid library. This was fixed in
22361 # development snapshots of GCC prior to 3.0.
22363 aix4 | aix4.[01] | aix4.[01].*)
22364 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22366 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22369 can_build_shared=no
22373 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22374 # soname into executable. Probably we can add versioning support to
22375 # collect2, so additional links can be useful in future.
22376 if test "$aix_use_runtimelinking" = yes; then
22377 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22378 # instead of lib<name>.a to let people know that these are not
22379 # typical AIX shared libraries.
22380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22382 # We preserve .a as extension for shared libraries through AIX4.2
22383 # and later when we are not doing run time linking.
22384 library_names_spec='${libname}${release}.a $libname.a'
22385 soname_spec='${libname}${release}${shared_ext}$major'
22387 shlibpath_var=LIBPATH
22392 library_names_spec='$libname.ixlibrary $libname.a'
22393 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22394 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'
22398 library_names_spec='${libname}${shared_ext}'
22399 dynamic_linker="$host_os ld.so"
22400 shlibpath_var=LIBRARY_PATH
22406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22407 soname_spec='${libname}${release}${shared_ext}$major'
22408 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22409 shlibpath_var=LD_LIBRARY_PATH
22410 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22411 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22412 # the default ld.so.conf also contains /usr/contrib/lib and
22413 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22414 # libtool to hard-code these into programs
22417 cygwin* | mingw* | pw32*)
22418 version_type=windows
22423 case $GCC,$host_os in
22424 yes,cygwin* | yes,mingw* | yes,pw32*)
22425 library_names_spec='$libname.dll.a'
22426 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22427 postinstall_cmds='base_file=`basename \${file}`~
22428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22429 dldir=$destdir/`dirname \$dlpath`~
22430 test -d \$dldir || mkdir -p \$dldir~
22431 $install_prog $dir/$dlname \$dldir/$dlname~
22432 chmod a+x \$dldir/$dlname'
22433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22434 dlpath=$dir/\$dldll~
22436 shlibpath_overrides_runpath=yes
22440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22441 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22442 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22445 # MinGW DLLs use traditional 'lib' prefix
22446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22448 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22449 # It is most probably a Windows format PATH printed by
22450 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22451 # path with ; separators, and with drive letters. We can handle the
22452 # drive letters (cygwin fileutils understands them), so leave them,
22453 # especially as we might pass files found there to a mingw objdump,
22454 # which wouldn't understand a cygwinified path. Ahh.
22455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22461 # pw32 DLLs use 'pw' prefix rather than 'lib'
22462 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22468 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22471 dynamic_linker='Win32 ld.exe'
22472 # FIXME: first we should search . and the directory the executable is in
22476 darwin* | rhapsody*)
22477 dynamic_linker="$host_os dyld"
22478 version_type=darwin
22481 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22482 soname_spec='${libname}${release}${major}$shared_ext'
22483 shlibpath_overrides_runpath=yes
22484 shlibpath_var=DYLD_LIBRARY_PATH
22485 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22486 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22487 if test "$GCC" = yes; then
22488 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"`
22490 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22500 soname_spec='${libname}${release}${shared_ext}$major'
22501 shlibpath_var=LD_LIBRARY_PATH
22512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22513 soname_spec='${libname}${release}${shared_ext}$major'
22514 shlibpath_var=LD_LIBRARY_PATH
22515 shlibpath_overrides_runpath=no
22516 hardcode_into_libs=yes
22517 dynamic_linker='GNU ld.so'
22520 freebsd* | dragonfly*)
22521 # DragonFly does not have aout. When/if they implement a new
22522 # versioning mechanism, adjust this.
22523 if test -x /usr/bin/objformat; then
22524 objformat=`/usr/bin/objformat`
22527 freebsd[123]*) objformat=aout ;;
22528 *) objformat=elf ;;
22531 version_type=freebsd-$objformat
22532 case $version_type in
22534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22543 shlibpath_var=LD_LIBRARY_PATH
22546 shlibpath_overrides_runpath=yes
22548 freebsd3.[01]* | freebsdelf3.[01]*)
22549 shlibpath_overrides_runpath=yes
22550 hardcode_into_libs=yes
22552 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22553 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22554 shlibpath_overrides_runpath=no
22555 hardcode_into_libs=yes
22557 freebsd*) # from 4.6 on
22558 shlibpath_overrides_runpath=yes
22559 hardcode_into_libs=yes
22568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22569 soname_spec='${libname}${release}${shared_ext}$major'
22570 shlibpath_var=LD_LIBRARY_PATH
22571 hardcode_into_libs=yes
22574 hpux9* | hpux10* | hpux11*)
22575 # Give a soname corresponding to the major version so that dld.sl refuses to
22576 # link against other versions.
22583 hardcode_into_libs=yes
22584 dynamic_linker="$host_os dld.so"
22585 shlibpath_var=LD_LIBRARY_PATH
22586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22588 soname_spec='${libname}${release}${shared_ext}$major'
22589 if test "X$HPUX_IA64_MODE" = X32; then
22590 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22592 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22598 hardcode_into_libs=yes
22599 dynamic_linker="$host_os dld.sl"
22600 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22603 soname_spec='${libname}${release}${shared_ext}$major'
22604 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22609 dynamic_linker="$host_os dld.sl"
22610 shlibpath_var=SHLIB_PATH
22611 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22613 soname_spec='${libname}${release}${shared_ext}$major'
22616 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22617 postinstall_cmds='chmod 555 $lib'
22624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22625 soname_spec='${libname}${release}${shared_ext}$major'
22626 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22627 shlibpath_var=LD_LIBRARY_PATH
22628 shlibpath_overrides_runpath=no
22629 hardcode_into_libs=yes
22632 irix5* | irix6* | nonstopux*)
22634 nonstopux*) version_type=nonstopux ;;
22636 if test "$lt_cv_prog_gnu_ld" = yes; then
22644 soname_spec='${libname}${release}${shared_ext}$major'
22645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22647 irix5* | nonstopux*)
22648 libsuff= shlibsuff=
22651 case $LD in # libtool.m4 will add one of these switches to LD
22652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22653 libsuff= shlibsuff= libmagic=32-bit;;
22654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22655 libsuff=32 shlibsuff=N32 libmagic=N32;;
22656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22658 *) libsuff= shlibsuff= libmagic=never-match;;
22662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22663 shlibpath_overrides_runpath=no
22664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22666 hardcode_into_libs=yes
22669 # No shared lib support for Linux oldld, aout, or coff.
22670 linux*oldld* | linux*aout* | linux*coff*)
22674 # This must be Linux ELF.
22679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22680 soname_spec='${libname}${release}${shared_ext}$major'
22681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22682 shlibpath_var=LD_LIBRARY_PATH
22683 shlibpath_overrides_runpath=no
22684 # This implies no fast_install, which is unacceptable.
22685 # Some rework will be needed to allow for fast_install
22686 # before this can be enabled.
22687 hardcode_into_libs=yes
22689 # Append ld.so.conf contents to the search path
22690 if test -f /etc/ld.so.conf; then
22691 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' ' '`
22692 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22695 # We used to test for /lib/ld.so.1 and disable shared libraries on
22696 # powerpc, because MkLinux only supported shared libraries with the
22697 # GNU dynamic linker. Since this was broken with cross compilers,
22698 # most powerpc-linux boxes support dynamic linking these days and
22699 # people can always --disable-shared, the test was removed, and we
22700 # assume the GNU/Linux dynamic linker is in use.
22701 dynamic_linker='GNU/Linux ld.so'
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22709 soname_spec='${libname}${release}${shared_ext}$major'
22710 shlibpath_var=LD_LIBRARY_PATH
22711 shlibpath_overrides_runpath=no
22712 hardcode_into_libs=yes
22713 dynamic_linker='GNU ld.so'
22720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22723 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
22729 shlibpath_var=LD_LIBRARY_PATH
22730 shlibpath_overrides_runpath=yes
22731 hardcode_into_libs=yes
22736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737 shlibpath_var=LD_LIBRARY_PATH
22738 shlibpath_overrides_runpath=yes
22745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22746 soname_spec='${libname}${release}${shared_ext}$major'
22747 shlibpath_var=LD_LIBRARY_PATH
22748 shlibpath_overrides_runpath=yes
22753 sys_lib_dlsearch_path_spec="/usr/lib"
22755 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22757 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22758 *) need_version=no ;;
22760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22762 shlibpath_var=LD_LIBRARY_PATH
22763 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22765 openbsd2.[89] | openbsd2.[89].*)
22766 shlibpath_overrides_runpath=no
22769 shlibpath_overrides_runpath=yes
22773 shlibpath_overrides_runpath=yes
22778 libname_spec='$name'
22781 library_names_spec='$libname${shared_ext} $libname.a'
22782 dynamic_linker='OS/2 ld.exe'
22783 shlibpath_var=LIBPATH
22786 osf3* | osf4* | osf5*)
22790 soname_spec='${libname}${release}${shared_ext}$major'
22791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792 shlibpath_var=LD_LIBRARY_PATH
22793 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22794 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22802 soname_spec='${libname}${release}${shared_ext}$major'
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=yes
22805 hardcode_into_libs=yes
22806 # ldd complains unless libraries are executable
22807 postinstall_cmds='chmod +x $lib'
22812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22813 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22814 shlibpath_var=LD_LIBRARY_PATH
22815 shlibpath_overrides_runpath=yes
22816 if test "$with_gnu_ld" = yes; then
22824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22825 soname_spec='${libname}${release}${shared_ext}$major'
22826 shlibpath_var=LD_LIBRARY_PATH
22827 case $host_vendor in
22829 shlibpath_overrides_runpath=no
22831 export_dynamic_flag_spec='${wl}-Blargedynsym'
22832 runpath_var=LD_RUN_PATH
22840 shlibpath_overrides_runpath=no
22841 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22847 if test -d /usr/nec ;then
22849 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22850 soname_spec='$libname${shared_ext}.$major'
22851 shlibpath_var=LD_LIBRARY_PATH
22855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22856 version_type=freebsd-elf
22859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22860 soname_spec='${libname}${release}${shared_ext}$major'
22861 shlibpath_var=LD_LIBRARY_PATH
22862 hardcode_into_libs=yes
22863 if test "$with_gnu_ld" = yes; then
22864 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22865 shlibpath_overrides_runpath=no
22867 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22868 shlibpath_overrides_runpath=yes
22871 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22875 sys_lib_dlsearch_path_spec='/usr/lib'
22880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22881 soname_spec='${libname}${release}${shared_ext}$major'
22882 shlibpath_var=LD_LIBRARY_PATH
22889 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22890 echo "${ECHO_T}$dynamic_linker" >&6; }
22891 test "$dynamic_linker" = no && can_build_shared=no
22893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22894 if test "$GCC" = yes; then
22895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22898 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22899 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22900 hardcode_action_F77=
22901 if test -n "$hardcode_libdir_flag_spec_F77" || \
22902 test -n "$runpath_var_F77" || \
22903 test "X$hardcode_automatic_F77" = "Xyes" ; then
22905 # We can hardcode non-existant directories.
22906 if test "$hardcode_direct_F77" != no &&
22907 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22908 # have to relink, otherwise we might link with an installed library
22909 # when we should be linking with a yet-to-be-installed one
22910 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22911 test "$hardcode_minus_L_F77" != no; then
22912 # Linking always hardcodes the temporary library directory.
22913 hardcode_action_F77=relink
22915 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22916 hardcode_action_F77=immediate
22919 # We cannot hardcode anything, or else we can only hardcode existing
22921 hardcode_action_F77=unsupported
22923 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22924 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22926 if test "$hardcode_action_F77" = relink; then
22927 # Fast installation is not supported
22928 enable_fast_install=no
22929 elif test "$shlibpath_overrides_runpath" = yes ||
22930 test "$enable_shared" = no; then
22931 # Fast installation is not necessary
22932 enable_fast_install=needless
22936 # The else clause should only fire when bootstrapping the
22937 # libtool distribution, otherwise you forgot to ship ltmain.sh
22938 # with your package, and you will get complaints that there are
22939 # no rules to generate ltmain.sh.
22940 if test -f "$ltmain"; then
22941 # See if we are running on zsh, and set the options which allow our commands through
22942 # without removal of \ escapes.
22943 if test -n "${ZSH_VERSION+set}" ; then
22944 setopt NO_GLOB_SUBST
22946 # Now quote all the things that may contain metacharacters while being
22947 # careful not to overquote the AC_SUBSTed values. We take copies of the
22948 # variables and quote the copies for generation of the libtool script.
22949 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22951 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22952 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22953 deplibs_check_method reload_flag reload_cmds need_locks \
22954 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22955 lt_cv_sys_global_symbol_to_c_name_address \
22956 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22957 old_postinstall_cmds old_postuninstall_cmds \
22961 lt_prog_compiler_wl_F77 \
22962 lt_prog_compiler_pic_F77 \
22963 lt_prog_compiler_static_F77 \
22964 lt_prog_compiler_no_builtin_flag_F77 \
22965 export_dynamic_flag_spec_F77 \
22966 thread_safe_flag_spec_F77 \
22967 whole_archive_flag_spec_F77 \
22968 enable_shared_with_static_runtimes_F77 \
22969 old_archive_cmds_F77 \
22970 old_archive_from_new_cmds_F77 \
22971 predep_objects_F77 \
22972 postdep_objects_F77 \
22975 compiler_lib_search_path_F77 \
22977 archive_expsym_cmds_F77 \
22978 postinstall_cmds_F77 \
22979 postuninstall_cmds_F77 \
22980 old_archive_from_expsyms_cmds_F77 \
22981 allow_undefined_flag_F77 \
22982 no_undefined_flag_F77 \
22983 export_symbols_cmds_F77 \
22984 hardcode_libdir_flag_spec_F77 \
22985 hardcode_libdir_flag_spec_ld_F77 \
22986 hardcode_libdir_separator_F77 \
22987 hardcode_automatic_F77 \
22989 module_expsym_cmds_F77 \
22990 lt_cv_prog_compiler_c_o_F77 \
22991 exclude_expsyms_F77 \
22992 include_expsyms_F77; do
22995 old_archive_cmds_F77 | \
22996 old_archive_from_new_cmds_F77 | \
22997 archive_cmds_F77 | \
22998 archive_expsym_cmds_F77 | \
22999 module_cmds_F77 | \
23000 module_expsym_cmds_F77 | \
23001 old_archive_from_expsyms_cmds_F77 | \
23002 export_symbols_cmds_F77 | \
23003 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23004 postinstall_cmds | postuninstall_cmds | \
23005 old_postinstall_cmds | old_postuninstall_cmds | \
23006 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23007 # Double-quote double-evaled strings.
23008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23017 *'\$0 --fallback-echo"')
23018 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23024 cat <<__EOF__ >> "$cfgfile"
23025 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23029 # Shell to use when invoking shell scripts.
23032 # Whether or not to build shared libraries.
23033 build_libtool_libs=$enable_shared
23035 # Whether or not to build static libraries.
23036 build_old_libs=$enable_static
23038 # Whether or not to add -lc for building shared libraries.
23039 build_libtool_need_lc=$archive_cmds_need_lc_F77
23041 # Whether or not to disallow shared libs when runtime libs are static
23042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23044 # Whether or not to optimize for fast installation.
23045 fast_install=$enable_fast_install
23048 host_alias=$host_alias
23052 # The build system.
23053 build_alias=$build_alias
23057 # An echo program that does not interpret backslashes.
23062 AR_FLAGS=$lt_AR_FLAGS
23067 # LTCC compiler flags.
23068 LTCFLAGS=$lt_LTCFLAGS
23070 # A language-specific compiler.
23071 CC=$lt_compiler_F77
23073 # Is the compiler the GNU C compiler?
23079 # The linker used to build libraries.
23082 # Whether we need hard or soft links.
23085 # A BSD-compatible nm program.
23088 # A symbol stripping program
23091 # Used to examine libraries when file_magic_cmd begins "file"
23092 MAGIC_CMD=$MAGIC_CMD
23094 # Used on cygwin: DLL creation program.
23097 # Used on cygwin: object dumper.
23100 # Used on cygwin: assembler.
23103 # The name of the directory that contains temporary libtool files.
23106 # How to create reloadable object files.
23107 reload_flag=$lt_reload_flag
23108 reload_cmds=$lt_reload_cmds
23110 # How to pass a linker flag through the compiler.
23111 wl=$lt_lt_prog_compiler_wl_F77
23113 # Object file suffix (normally "o").
23114 objext="$ac_objext"
23116 # Old archive suffix (normally "a").
23119 # Shared library suffix (normally ".so").
23120 shrext_cmds='$shrext_cmds'
23122 # Executable file suffix (normally "").
23125 # Additional compiler flags for building library objects.
23126 pic_flag=$lt_lt_prog_compiler_pic_F77
23129 # What is the maximum length of a command?
23130 max_cmd_len=$lt_cv_sys_max_cmd_len
23132 # Does compiler simultaneously support -c and -o options?
23133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23135 # Must we lock files when doing compilation?
23136 need_locks=$lt_need_locks
23138 # Do we need the lib prefix for modules?
23139 need_lib_prefix=$need_lib_prefix
23141 # Do we need a version for libraries?
23142 need_version=$need_version
23144 # Whether dlopen is supported.
23145 dlopen_support=$enable_dlopen
23147 # Whether dlopen of programs is supported.
23148 dlopen_self=$enable_dlopen_self
23150 # Whether dlopen of statically linked programs is supported.
23151 dlopen_self_static=$enable_dlopen_self_static
23153 # Compiler flag to prevent dynamic linking.
23154 link_static_flag=$lt_lt_prog_compiler_static_F77
23156 # Compiler flag to turn off builtin functions.
23157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23159 # Compiler flag to allow reflexive dlopens.
23160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23162 # Compiler flag to generate shared objects directly from archives.
23163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23165 # Compiler flag to generate thread-safe objects.
23166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23168 # Library versioning type.
23169 version_type=$version_type
23171 # Format of library name prefix.
23172 libname_spec=$lt_libname_spec
23174 # List of archive names. First name is the real one, the rest are links.
23175 # The last name is the one that the linker finds with -lNAME.
23176 library_names_spec=$lt_library_names_spec
23178 # The coded name of the library, if different from the real name.
23179 soname_spec=$lt_soname_spec
23181 # Commands used to build and install an old-style archive.
23183 old_archive_cmds=$lt_old_archive_cmds_F77
23184 old_postinstall_cmds=$lt_old_postinstall_cmds
23185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23187 # Create an old-style archive from a shared archive.
23188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23190 # Create a temporary old-style archive to link instead of a shared archive.
23191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23193 # Commands used to build and install a shared archive.
23194 archive_cmds=$lt_archive_cmds_F77
23195 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23196 postinstall_cmds=$lt_postinstall_cmds
23197 postuninstall_cmds=$lt_postuninstall_cmds
23199 # Commands used to build a loadable module (assumed same as above if empty)
23200 module_cmds=$lt_module_cmds_F77
23201 module_expsym_cmds=$lt_module_expsym_cmds_F77
23203 # Commands to strip libraries.
23204 old_striplib=$lt_old_striplib
23205 striplib=$lt_striplib
23207 # Dependencies to place before the objects being linked to create a
23209 predep_objects=$lt_predep_objects_F77
23211 # Dependencies to place after the objects being linked to create a
23213 postdep_objects=$lt_postdep_objects_F77
23215 # Dependencies to place before the objects being linked to create a
23217 predeps=$lt_predeps_F77
23219 # Dependencies to place after the objects being linked to create a
23221 postdeps=$lt_postdeps_F77
23223 # The library search path used internally by the compiler when linking
23224 # a shared library.
23225 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23227 # Method to check whether dependent libraries are shared objects.
23228 deplibs_check_method=$lt_deplibs_check_method
23230 # Command to use when deplibs_check_method == file_magic.
23231 file_magic_cmd=$lt_file_magic_cmd
23233 # Flag that allows shared libraries with undefined symbols to be built.
23234 allow_undefined_flag=$lt_allow_undefined_flag_F77
23236 # Flag that forces no undefined symbols.
23237 no_undefined_flag=$lt_no_undefined_flag_F77
23239 # Commands used to finish a libtool library installation in a directory.
23240 finish_cmds=$lt_finish_cmds
23242 # Same as above, but a single script fragment to be evaled but not shown.
23243 finish_eval=$lt_finish_eval
23245 # Take the output of nm and produce a listing of raw symbols and C names.
23246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23248 # Transform the output of nm in a proper C declaration
23249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23251 # Transform the output of nm in a C name address pair
23252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23254 # This is the shared library runtime path variable.
23255 runpath_var=$runpath_var
23257 # This is the shared library path variable.
23258 shlibpath_var=$shlibpath_var
23260 # Is shlibpath searched before the hard-coded library search path?
23261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23263 # How to hardcode a shared library path into an executable.
23264 hardcode_action=$hardcode_action_F77
23266 # Whether we should hardcode library paths into libraries.
23267 hardcode_into_libs=$hardcode_into_libs
23269 # Flag to hardcode \$libdir into a binary during linking.
23270 # This must work even if \$libdir does not exist.
23271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23273 # If ld is used when linking, flag to hardcode \$libdir into
23274 # a binary during linking. This must work even if \$libdir does
23276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23278 # Whether we need a single -rpath flag with a separated argument.
23279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23282 # resulting binary.
23283 hardcode_direct=$hardcode_direct_F77
23285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23286 # resulting binary.
23287 hardcode_minus_L=$hardcode_minus_L_F77
23289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23290 # the resulting binary.
23291 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23293 # Set to yes if building a shared library automatically hardcodes DIR into the library
23294 # and all subsequent libraries and executables linked against it.
23295 hardcode_automatic=$hardcode_automatic_F77
23297 # Variables whose values should be saved in libtool wrapper scripts and
23298 # restored at relink time.
23299 variables_saved_for_relink="$variables_saved_for_relink"
23301 # Whether libtool must link a program against all its dependency libraries.
23302 link_all_deplibs=$link_all_deplibs_F77
23304 # Compile-time system search path for libraries
23305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23307 # Run-time system search path for libraries
23308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23310 # Fix the shell variable \$srcfile for the compiler.
23311 fix_srcfile_path="$fix_srcfile_path_F77"
23313 # Set to yes if exported symbols are required.
23314 always_export_symbols=$always_export_symbols_F77
23316 # The commands to list exported symbols.
23317 export_symbols_cmds=$lt_export_symbols_cmds_F77
23319 # The commands to extract the exported symbol list from a shared archive.
23320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23322 # Symbols that should not be listed in the preloaded symbols.
23323 exclude_expsyms=$lt_exclude_expsyms_F77
23325 # Symbols that must always be exported.
23326 include_expsyms=$lt_include_expsyms_F77
23328 # ### END LIBTOOL TAG CONFIG: $tagname
23334 # If there is no Makefile yet, we rely on a make rule to execute
23335 # `config.status --recheck' to rerun these tests and create the
23336 # libtool script then.
23337 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23338 if test -f "$ltmain_in"; then
23339 test -f Makefile && make "$ltmain"
23345 ac_cpp='$CPP $CPPFLAGS'
23346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23358 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23360 ac_cpp='$CPP $CPPFLAGS'
23361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23366 # Source file extension for Java test sources.
23369 # Object file extension for compiled Java test sources.
23373 # Code to be used in simple compile tests
23374 lt_simple_compile_test_code="class foo {}\n"
23376 # Code to be used in simple link tests
23377 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23379 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23381 # If no C compiler was specified, use CC.
23384 # If no C compiler flags were specified, use CFLAGS.
23385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23387 # Allow CC to be a program name with arguments.
23391 # save warnings/boilerplate of simple test code
23392 ac_outfile=conftest.$ac_objext
23393 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23394 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23395 _lt_compiler_boilerplate=`cat conftest.err`
23398 ac_outfile=conftest.$ac_objext
23399 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23400 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23401 _lt_linker_boilerplate=`cat conftest.err`
23405 # Allow CC to be a program name with arguments.
23410 for cc_temp in $compiler""; do
23412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23418 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23421 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23422 archive_cmds_need_lc_GCJ=no
23424 old_archive_cmds_GCJ=$old_archive_cmds
23427 lt_prog_compiler_no_builtin_flag_GCJ=
23429 if test "$GCC" = yes; then
23430 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23433 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23434 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23435 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23438 lt_cv_prog_compiler_rtti_exceptions=no
23439 ac_outfile=conftest.$ac_objext
23440 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23441 lt_compiler_flag="-fno-rtti -fno-exceptions"
23442 # Insert the option either (1) after the last *FLAGS variable, or
23443 # (2) before a word containing "conftest.", or (3) at the end.
23444 # Note that $ac_compile itself does not contain backslashes and begins
23445 # with a dollar sign (not a hyphen), so the echo should work correctly.
23446 # The option is referenced via a variable to avoid confusing sed.
23447 lt_compile=`echo "$ac_compile" | $SED \
23448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23450 -e 's:$: $lt_compiler_flag:'`
23451 (eval echo "\"\$as_me:23451: $lt_compile\"" >&5)
23452 (eval "$lt_compile" 2>conftest.err)
23454 cat conftest.err >&5
23455 echo "$as_me:23455: \$? = $ac_status" >&5
23456 if (exit $ac_status) && test -s "$ac_outfile"; then
23457 # The compiler can only warn and ignore the option if not recognized
23458 # So say no if there are warnings other than the usual output.
23459 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23461 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23462 lt_cv_prog_compiler_rtti_exceptions=yes
23468 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23469 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23471 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23472 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23479 lt_prog_compiler_wl_GCJ=
23480 lt_prog_compiler_pic_GCJ=
23481 lt_prog_compiler_static_GCJ=
23483 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23484 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23486 if test "$GCC" = yes; then
23487 lt_prog_compiler_wl_GCJ='-Wl,'
23488 lt_prog_compiler_static_GCJ='-static'
23492 # All AIX code is PIC.
23493 if test "$host_cpu" = ia64; then
23494 # AIX 5 now supports IA64 processor
23495 lt_prog_compiler_static_GCJ='-Bstatic'
23500 # FIXME: we need at least 68020 code to build shared libraries, but
23501 # adding the `-m68020' flag to GCC prevents building anything better,
23503 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23506 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23507 # PIC is the default for these OSes.
23510 mingw* | pw32* | os2*)
23511 # This hack is so that the source file can tell whether it is being
23512 # built for inclusion in a dll (and should export symbols for example).
23513 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23516 darwin* | rhapsody*)
23517 # PIC is the default on this platform
23518 # Common symbols not allowed in MH_DYLIB files
23519 lt_prog_compiler_pic_GCJ='-fno-common'
23523 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23524 # Instead, we relocate shared libraries at runtime.
23528 # Just because we use GCC doesn't mean we suddenly get shared libraries
23529 # on systems that don't support them.
23530 lt_prog_compiler_can_build_shared_GCJ=no
23535 if test -d /usr/nec; then
23536 lt_prog_compiler_pic_GCJ=-Kconform_pic
23541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23542 # not for PA HP-UX.
23548 lt_prog_compiler_pic_GCJ='-fPIC'
23554 lt_prog_compiler_pic_GCJ='-fPIC'
23558 # PORTME Check for flag to pass linker flags through the system compiler.
23561 lt_prog_compiler_wl_GCJ='-Wl,'
23562 if test "$host_cpu" = ia64; then
23563 # AIX 5 now supports IA64 processor
23564 lt_prog_compiler_static_GCJ='-Bstatic'
23566 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23570 # PIC is the default on this platform
23571 # Common symbols not allowed in MH_DYLIB files
23572 case $cc_basename in
23574 lt_prog_compiler_pic_GCJ='-qnocommon'
23575 lt_prog_compiler_wl_GCJ='-Wl,'
23580 mingw* | pw32* | os2*)
23581 # This hack is so that the source file can tell whether it is being
23582 # built for inclusion in a dll (and should export symbols for example).
23583 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23586 hpux9* | hpux10* | hpux11*)
23587 lt_prog_compiler_wl_GCJ='-Wl,'
23588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23589 # not for PA HP-UX.
23595 lt_prog_compiler_pic_GCJ='+Z'
23598 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23599 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23602 irix5* | irix6* | nonstopux*)
23603 lt_prog_compiler_wl_GCJ='-Wl,'
23604 # PIC (with -KPIC) is the default.
23605 lt_prog_compiler_static_GCJ='-non_shared'
23609 lt_prog_compiler_pic_GCJ='-KPIC'
23610 lt_prog_compiler_static_GCJ='-Bstatic'
23614 case $cc_basename in
23616 lt_prog_compiler_wl_GCJ='-Wl,'
23617 lt_prog_compiler_pic_GCJ='-KPIC'
23618 lt_prog_compiler_static_GCJ='-static'
23620 pgcc* | pgf77* | pgf90* | pgf95*)
23621 # Portland Group compilers (*not* the Pentium gcc compiler,
23622 # which looks to be a dead project)
23623 lt_prog_compiler_wl_GCJ='-Wl,'
23624 lt_prog_compiler_pic_GCJ='-fpic'
23625 lt_prog_compiler_static_GCJ='-Bstatic'
23628 lt_prog_compiler_wl_GCJ='-Wl,'
23629 # All Alpha code is PIC.
23630 lt_prog_compiler_static_GCJ='-non_shared'
23635 osf3* | osf4* | osf5*)
23636 lt_prog_compiler_wl_GCJ='-Wl,'
23637 # All OSF/1 code is PIC.
23638 lt_prog_compiler_static_GCJ='-non_shared'
23642 lt_prog_compiler_pic_GCJ='-KPIC'
23643 lt_prog_compiler_static_GCJ='-Bstatic'
23644 case $cc_basename in
23645 f77* | f90* | f95*)
23646 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23648 lt_prog_compiler_wl_GCJ='-Wl,';;
23653 lt_prog_compiler_wl_GCJ='-Qoption ld '
23654 lt_prog_compiler_pic_GCJ='-PIC'
23655 lt_prog_compiler_static_GCJ='-Bstatic'
23658 sysv4 | sysv4.2uw2* | sysv4.3*)
23659 lt_prog_compiler_wl_GCJ='-Wl,'
23660 lt_prog_compiler_pic_GCJ='-KPIC'
23661 lt_prog_compiler_static_GCJ='-Bstatic'
23665 if test -d /usr/nec ;then
23666 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23667 lt_prog_compiler_static_GCJ='-Bstatic'
23671 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23672 lt_prog_compiler_wl_GCJ='-Wl,'
23673 lt_prog_compiler_pic_GCJ='-KPIC'
23674 lt_prog_compiler_static_GCJ='-Bstatic'
23678 lt_prog_compiler_wl_GCJ='-Wl,'
23679 lt_prog_compiler_can_build_shared_GCJ=no
23683 lt_prog_compiler_pic_GCJ='-pic'
23684 lt_prog_compiler_static_GCJ='-Bstatic'
23688 lt_prog_compiler_can_build_shared_GCJ=no
23693 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23694 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23697 # Check to make sure the PIC flag actually works.
23699 if test -n "$lt_prog_compiler_pic_GCJ"; then
23701 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23702 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23703 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23704 echo $ECHO_N "(cached) $ECHO_C" >&6
23706 lt_prog_compiler_pic_works_GCJ=no
23707 ac_outfile=conftest.$ac_objext
23708 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23709 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23710 # Insert the option either (1) after the last *FLAGS variable, or
23711 # (2) before a word containing "conftest.", or (3) at the end.
23712 # Note that $ac_compile itself does not contain backslashes and begins
23713 # with a dollar sign (not a hyphen), so the echo should work correctly.
23714 # The option is referenced via a variable to avoid confusing sed.
23715 lt_compile=`echo "$ac_compile" | $SED \
23716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23718 -e 's:$: $lt_compiler_flag:'`
23719 (eval echo "\"\$as_me:23719: $lt_compile\"" >&5)
23720 (eval "$lt_compile" 2>conftest.err)
23722 cat conftest.err >&5
23723 echo "$as_me:23723: \$? = $ac_status" >&5
23724 if (exit $ac_status) && test -s "$ac_outfile"; then
23725 # The compiler can only warn and ignore the option if not recognized
23726 # So say no if there are warnings other than the usual output.
23727 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23729 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23730 lt_prog_compiler_pic_works_GCJ=yes
23736 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23737 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23739 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23740 case $lt_prog_compiler_pic_GCJ in
23742 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23745 lt_prog_compiler_pic_GCJ=
23746 lt_prog_compiler_can_build_shared_GCJ=no
23751 # For platforms which do not support PIC, -DPIC is meaningless:
23753 lt_prog_compiler_pic_GCJ=
23756 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23761 # Check to make sure the static flag actually works.
23763 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23764 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23765 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23766 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23767 echo $ECHO_N "(cached) $ECHO_C" >&6
23769 lt_prog_compiler_static_works_GCJ=no
23770 save_LDFLAGS="$LDFLAGS"
23771 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23772 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23773 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23774 # The linker can only warn and ignore the option if not recognized
23775 # So say no if there are warnings
23776 if test -s conftest.err; then
23777 # Append any errors to the config.log.
23778 cat conftest.err 1>&5
23779 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23781 if diff conftest.exp conftest.er2 >/dev/null; then
23782 lt_prog_compiler_static_works_GCJ=yes
23785 lt_prog_compiler_static_works_GCJ=yes
23789 LDFLAGS="$save_LDFLAGS"
23792 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23793 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23795 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23798 lt_prog_compiler_static_GCJ=
23802 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23803 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23804 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23807 lt_cv_prog_compiler_c_o_GCJ=no
23808 $rm -r conftest 2>/dev/null
23812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23814 lt_compiler_flag="-o out/conftest2.$ac_objext"
23815 # Insert the option either (1) after the last *FLAGS variable, or
23816 # (2) before a word containing "conftest.", or (3) at the end.
23817 # Note that $ac_compile itself does not contain backslashes and begins
23818 # with a dollar sign (not a hyphen), so the echo should work correctly.
23819 lt_compile=`echo "$ac_compile" | $SED \
23820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23822 -e 's:$: $lt_compiler_flag:'`
23823 (eval echo "\"\$as_me:23823: $lt_compile\"" >&5)
23824 (eval "$lt_compile" 2>out/conftest.err)
23826 cat out/conftest.err >&5
23827 echo "$as_me:23827: \$? = $ac_status" >&5
23828 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23830 # The compiler can only warn and ignore the option if not recognized
23831 # So say no if there are warnings
23832 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23833 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23834 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23835 lt_cv_prog_compiler_c_o_GCJ=yes
23840 # SGI C++ compiler will create directory out/ii_files/ for
23841 # template instantiation
23842 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23843 $rm out/* && rmdir out
23849 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23850 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23853 hard_links="nottested"
23854 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23855 # do not overwrite the value of need_locks provided by the user
23856 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23857 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23862 ln conftest.a conftest.b 2>&5 || hard_links=no
23863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23864 { echo "$as_me:$LINENO: result: $hard_links" >&5
23865 echo "${ECHO_T}$hard_links" >&6; }
23866 if test "$hard_links" = no; then
23867 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23868 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23875 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23876 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23879 allow_undefined_flag_GCJ=
23880 enable_shared_with_static_runtimes_GCJ=no
23882 archive_expsym_cmds_GCJ=
23883 old_archive_From_new_cmds_GCJ=
23884 old_archive_from_expsyms_cmds_GCJ=
23885 export_dynamic_flag_spec_GCJ=
23886 whole_archive_flag_spec_GCJ=
23887 thread_safe_flag_spec_GCJ=
23888 hardcode_libdir_flag_spec_GCJ=
23889 hardcode_libdir_flag_spec_ld_GCJ=
23890 hardcode_libdir_separator_GCJ=
23891 hardcode_direct_GCJ=no
23892 hardcode_minus_L_GCJ=no
23893 hardcode_shlibpath_var_GCJ=unsupported
23894 link_all_deplibs_GCJ=unknown
23895 hardcode_automatic_GCJ=no
23897 module_expsym_cmds_GCJ=
23898 always_export_symbols_GCJ=no
23899 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23900 # include_expsyms should be a list of space-separated symbols to be *always*
23901 # included in the symbol list
23902 include_expsyms_GCJ=
23903 # exclude_expsyms can be an extended regexp of symbols to exclude
23904 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23905 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23906 # as well as any symbol that contains `d'.
23907 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23908 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23909 # platforms (ab)use it in PIC code, but their linkers get confused if
23910 # the symbol is explicitly referenced. Since portable code cannot
23911 # rely on this symbol name, it's probably fine to never include it in
23912 # preloaded symbol tables.
23913 extract_expsyms_cmds=
23914 # Just being paranoid about ensuring that cc_basename is set.
23915 for cc_temp in $compiler""; do
23917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23923 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23926 cygwin* | mingw* | pw32*)
23927 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23928 # When not using gcc, we currently assume that we are using
23929 # Microsoft Visual C++.
23930 if test "$GCC" != yes; then
23935 # we just hope/assume this is gcc and not c89 (= MSVC++)
23944 if test "$with_gnu_ld" = yes; then
23945 # If archive_cmds runs LD, not CC, wlarc should be empty
23948 # Set some defaults for GNU ld with shared library support. These
23949 # are reset later if shared libraries are not supported. Putting them
23950 # here allows them to be overridden if necessary.
23951 runpath_var=LD_RUN_PATH
23952 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23953 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23954 # ancient GNU ld didn't support --whole-archive et. al.
23955 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23956 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23958 whole_archive_flag_spec_GCJ=
23960 supports_anon_versioning=no
23961 case `$LD -v 2>/dev/null` in
23962 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23963 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23964 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23965 *\ 2.11.*) ;; # other 2.11 versions
23966 *) supports_anon_versioning=yes ;;
23969 # See if GNU ld supports shared libraries.
23971 aix3* | aix4* | aix5*)
23972 # On AIX/PPC, the GNU linker is very broken
23973 if test "$host_cpu" != ia64; then
23977 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23978 *** to be unable to reliably create shared libraries on AIX.
23979 *** Therefore, libtool is disabling shared libraries support. If you
23980 *** really care for shared libraries, you may want to modify your PATH
23981 *** so that a non-GNU linker is found, and then restart.
23988 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)'
23989 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23990 hardcode_minus_L_GCJ=yes
23992 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23993 # that the semantics of dynamic libraries on AmigaOS, at least up
23994 # to version 4, is to share data among multiple programs linked
23995 # with the same dynamic library. Since this doesn't match the
23996 # behavior of shared libraries on other platforms, we can't use
24002 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24003 allow_undefined_flag_GCJ=unsupported
24004 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24005 # support --undefined. This deserves some investigation. FIXME
24006 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24012 cygwin* | mingw* | pw32*)
24013 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24014 # as there is no search path for DLLs.
24015 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24016 allow_undefined_flag_GCJ=unsupported
24017 always_export_symbols_GCJ=no
24018 enable_shared_with_static_runtimes_GCJ=yes
24019 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24021 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24022 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24023 # If the export-symbols file already is a .def file (1st line
24024 # is EXPORTS), use it as is; otherwise, prepend...
24025 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24026 cp $export_symbols $output_objdir/$soname.def;
24028 echo EXPORTS > $output_objdir/$soname.def;
24029 cat $export_symbols >> $output_objdir/$soname.def;
24031 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24038 hardcode_direct_GCJ=no
24039 hardcode_shlibpath_var_GCJ=no
24040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24041 export_dynamic_flag_spec_GCJ='${wl}-E'
24042 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24043 # Instead, shared libraries are loaded at an image base (0x10000000 by
24044 # default) and relocated if they conflict, which is a slow very memory
24045 # consuming and fragmenting process. To avoid this, we pick a random,
24046 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24047 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24048 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'
24049 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'
24053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24055 case $cc_basename,$host_cpu in
24056 pgcc*) # Portland Group C compiler
24057 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'
24058 tmp_addflag=' $pic_flag'
24060 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24061 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'
24062 tmp_addflag=' $pic_flag -Mnomain' ;;
24063 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24064 tmp_addflag=' -i_dynamic' ;;
24065 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24066 tmp_addflag=' -i_dynamic -nofor_main' ;;
24067 ifc* | ifort*) # Intel Fortran compiler
24068 tmp_addflag=' -nofor_main' ;;
24070 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24072 if test $supports_anon_versioning = yes; then
24073 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24074 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24075 $echo "local: *; };" >> $output_objdir/$libname.ver~
24076 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24084 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24085 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24088 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24089 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24094 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24098 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24099 *** create shared libraries on Solaris systems. Therefore, libtool
24100 *** is disabling shared libraries support. We urge you to upgrade GNU
24101 *** binutils to release 2.9.1 or newer. Another option is to modify
24102 *** your PATH or compiler configuration so that the native linker is
24103 *** used, and then restart.
24106 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24107 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24108 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24115 case `$LD -v 2>&1` in
24116 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24120 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24121 *** reliably create shared libraries on SCO systems. Therefore, libtool
24122 *** is disabling shared libraries support. We urge you to upgrade GNU
24123 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24124 *** your PATH or compiler configuration so that the native linker is
24125 *** used, and then restart.
24130 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24131 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24132 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24133 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24142 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24144 hardcode_direct_GCJ=yes
24145 hardcode_shlibpath_var_GCJ=no
24149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24150 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24151 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24158 if test "$ld_shlibs_GCJ" = no; then
24160 hardcode_libdir_flag_spec_GCJ=
24161 export_dynamic_flag_spec_GCJ=
24162 whole_archive_flag_spec_GCJ=
24165 # PORTME fill in a description of your system's linker (not GNU ld)
24168 allow_undefined_flag_GCJ=unsupported
24169 always_export_symbols_GCJ=yes
24170 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'
24171 # Note: this linker hardcodes the directories in LIBPATH if there
24172 # are no directories specified by -L.
24173 hardcode_minus_L_GCJ=yes
24174 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24175 # Neither direct hardcoding nor static linking is supported with a
24177 hardcode_direct_GCJ=unsupported
24182 if test "$host_cpu" = ia64; then
24183 # On IA64, the linker does run time linking by default, so we don't
24184 # have to do anything special.
24185 aix_use_runtimelinking=no
24186 exp_sym_flag='-Bexport'
24189 # If we're using GNU nm, then we don't want the "-C" option.
24190 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24191 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24192 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'
24194 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'
24196 aix_use_runtimelinking=no
24198 # Test if we are trying to use run time linking or normal
24199 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24200 # need to do runtime linking.
24201 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24202 for ld_flag in $LDFLAGS; do
24203 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24204 aix_use_runtimelinking=yes
24211 exp_sym_flag='-bexport'
24212 no_entry_flag='-bnoentry'
24215 # When large executables or shared objects are built, AIX ld can
24216 # have problems creating the table of contents. If linking a library
24217 # or program results in "error TOC overflow" add -mminimal-toc to
24218 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24219 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24221 archive_cmds_GCJ=''
24222 hardcode_direct_GCJ=yes
24223 hardcode_libdir_separator_GCJ=':'
24224 link_all_deplibs_GCJ=yes
24226 if test "$GCC" = yes; then
24227 case $host_os in aix4.[012]|aix4.[012].*)
24228 # We only want to do this on AIX 4.2 and lower, the check
24229 # below for broken collect2 doesn't work under 4.3+
24230 collect2name=`${CC} -print-prog-name=collect2`
24231 if test -f "$collect2name" && \
24232 strings "$collect2name" | grep resolve_lib_name >/dev/null
24234 # We have reworked collect2
24235 hardcode_direct_GCJ=yes
24237 # We have old collect2
24238 hardcode_direct_GCJ=unsupported
24239 # It fails to find uninstalled libraries when the uninstalled
24240 # path is not listed in the libpath. Setting hardcode_minus_L
24241 # to unsupported forces relinking
24242 hardcode_minus_L_GCJ=yes
24243 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24244 hardcode_libdir_separator_GCJ=
24248 shared_flag='-shared'
24249 if test "$aix_use_runtimelinking" = yes; then
24250 shared_flag="$shared_flag "'${wl}-G'
24254 if test "$host_cpu" = ia64; then
24255 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24256 # chokes on -Wl,-G. The following line is correct:
24259 if test "$aix_use_runtimelinking" = yes; then
24260 shared_flag='${wl}-G'
24262 shared_flag='${wl}-bM:SRE'
24267 # It seems that -bexpall does not export symbols beginning with
24268 # underscore (_), so it is better to generate a list of symbols to export.
24269 always_export_symbols_GCJ=yes
24270 if test "$aix_use_runtimelinking" = yes; then
24271 # Warning - without using the other runtime loading flags (-brtl),
24272 # -berok will link without error, but may produce a broken library.
24273 allow_undefined_flag_GCJ='-berok'
24274 # Determine the default libpath from the value encoded in an empty executable.
24275 cat >conftest.$ac_ext <<_ACEOF
24278 cat confdefs.h >>conftest.$ac_ext
24279 cat >>conftest.$ac_ext <<_ACEOF
24280 /* end confdefs.h. */
24290 rm -f conftest.$ac_objext conftest$ac_exeext
24291 if { (ac_try="$ac_link"
24292 case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_link") 2>conftest.er1
24299 grep -v '^ *+' conftest.er1 >conftest.err
24301 cat conftest.err >&5
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); } &&
24304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24305 { (case "(($ac_try" in
24306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307 *) ac_try_echo=$ac_try;;
24309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24310 (eval "$ac_try") 2>&5
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); }; } &&
24314 { ac_try='test -s conftest$ac_exeext'
24315 { (case "(($ac_try" in
24316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317 *) ac_try_echo=$ac_try;;
24319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320 (eval "$ac_try") 2>&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); }; }; then
24325 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24327 # Check for a 64-bit object if we didn't find anything.
24328 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; }
24331 echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24337 rm -f core conftest.err conftest.$ac_objext \
24338 conftest$ac_exeext conftest.$ac_ext
24339 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24341 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24342 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"
24344 if test "$host_cpu" = ia64; then
24345 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24346 allow_undefined_flag_GCJ="-z nodefs"
24347 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"
24349 # Determine the default libpath from the value encoded in an empty executable.
24350 cat >conftest.$ac_ext <<_ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h. */
24365 rm -f conftest.$ac_objext conftest$ac_exeext
24366 if { (ac_try="$ac_link"
24367 case "(($ac_try" in
24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369 *) ac_try_echo=$ac_try;;
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372 (eval "$ac_link") 2>conftest.er1
24374 grep -v '^ *+' conftest.er1 >conftest.err
24376 cat conftest.err >&5
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } &&
24379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24380 { (case "(($ac_try" in
24381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382 *) ac_try_echo=$ac_try;;
24384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385 (eval "$ac_try") 2>&5
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; } &&
24389 { ac_try='test -s conftest$ac_exeext'
24390 { (case "(($ac_try" in
24391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392 *) ac_try_echo=$ac_try;;
24394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395 (eval "$ac_try") 2>&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; }; then
24400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24402 # Check for a 64-bit object if we didn't find anything.
24403 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; }
24406 echo "$as_me: failed program was:" >&5
24407 sed 's/^/| /' conftest.$ac_ext >&5
24412 rm -f core conftest.err conftest.$ac_objext \
24413 conftest$ac_exeext conftest.$ac_ext
24414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24416 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24417 # Warning - without using the other run time loading flags,
24418 # -berok will link without error, but may produce a broken library.
24419 no_undefined_flag_GCJ=' ${wl}-bernotok'
24420 allow_undefined_flag_GCJ=' ${wl}-berok'
24421 # Exported symbols can be pulled into shared objects from archives
24422 whole_archive_flag_spec_GCJ='$convenience'
24423 archive_cmds_need_lc_GCJ=yes
24424 # This is similar to how AIX traditionally builds its shared libraries.
24425 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'
24431 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)'
24432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24433 hardcode_minus_L_GCJ=yes
24434 # see comment about different semantics on the GNU ld section
24439 export_dynamic_flag_spec_GCJ=-rdynamic
24442 cygwin* | mingw* | pw32*)
24443 # When not using gcc, we currently assume that we are using
24444 # Microsoft Visual C++.
24445 # hardcode_libdir_flag_spec is actually meaningless, as there is
24446 # no search path for DLLs.
24447 hardcode_libdir_flag_spec_GCJ=' '
24448 allow_undefined_flag_GCJ=unsupported
24449 # Tell ltmain to make .lib files, not .a files.
24451 # Tell ltmain to make .dll files, not .so files.
24453 # FIXME: Setting linknames here is a bad hack.
24454 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24455 # The linker will automatically build a .lib file if we build a DLL.
24456 old_archive_From_new_cmds_GCJ='true'
24457 # FIXME: Should let the user specify the lib program.
24458 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24459 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24460 enable_shared_with_static_runtimes_GCJ=yes
24463 darwin* | rhapsody*)
24465 rhapsody* | darwin1.[012])
24466 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24469 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24470 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24472 case ${MACOSX_DEPLOYMENT_TARGET} in
24474 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24477 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24483 archive_cmds_need_lc_GCJ=no
24484 hardcode_direct_GCJ=no
24485 hardcode_automatic_GCJ=yes
24486 hardcode_shlibpath_var_GCJ=unsupported
24487 whole_archive_flag_spec_GCJ=''
24488 link_all_deplibs_GCJ=yes
24489 if test "$GCC" = yes ; then
24490 output_verbose_link_cmd='echo'
24491 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24492 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24493 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24494 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}'
24495 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}'
24497 case $cc_basename in
24499 output_verbose_link_cmd='echo'
24500 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24501 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24503 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}'
24504 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}'
24514 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24515 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24516 hardcode_shlibpath_var_GCJ=no
24523 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24524 # support. Future versions do this automatically, but an explicit c++rt0.o
24525 # does not break anything, and helps significantly (at the cost of a little
24528 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24529 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24530 hardcode_direct_GCJ=yes
24531 hardcode_shlibpath_var_GCJ=no
24534 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24536 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24537 hardcode_direct_GCJ=yes
24538 hardcode_minus_L_GCJ=yes
24539 hardcode_shlibpath_var_GCJ=no
24542 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24543 freebsd* | kfreebsd*-gnu | dragonfly*)
24544 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24545 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24546 hardcode_direct_GCJ=yes
24547 hardcode_shlibpath_var_GCJ=no
24551 if test "$GCC" = yes; then
24552 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'
24554 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'
24556 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24557 hardcode_libdir_separator_GCJ=:
24558 hardcode_direct_GCJ=yes
24560 # hardcode_minus_L: Not really in the search PATH,
24561 # but as the default location of the library.
24562 hardcode_minus_L_GCJ=yes
24563 export_dynamic_flag_spec_GCJ='${wl}-E'
24567 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24568 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24570 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24572 if test "$with_gnu_ld" = no; then
24573 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24574 hardcode_libdir_separator_GCJ=:
24576 hardcode_direct_GCJ=yes
24577 export_dynamic_flag_spec_GCJ='${wl}-E'
24579 # hardcode_minus_L: Not really in the search PATH,
24580 # but as the default location of the library.
24581 hardcode_minus_L_GCJ=yes
24586 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24589 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24592 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24595 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24601 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24604 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24607 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24611 if test "$with_gnu_ld" = no; then
24612 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24613 hardcode_libdir_separator_GCJ=:
24617 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24618 hardcode_direct_GCJ=no
24619 hardcode_shlibpath_var_GCJ=no
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
24633 irix5* | irix6* | nonstopux*)
24634 if test "$GCC" = yes; then
24635 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'
24637 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'
24638 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24640 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24641 hardcode_libdir_separator_GCJ=:
24642 link_all_deplibs_GCJ=yes
24646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24647 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24649 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24651 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24652 hardcode_direct_GCJ=yes
24653 hardcode_shlibpath_var_GCJ=no
24657 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24658 hardcode_direct_GCJ=yes
24659 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24660 hardcode_libdir_separator_GCJ=:
24661 hardcode_shlibpath_var_GCJ=no
24665 hardcode_direct_GCJ=yes
24666 hardcode_shlibpath_var_GCJ=no
24667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24668 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24669 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24670 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24671 export_dynamic_flag_spec_GCJ='${wl}-E'
24674 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24675 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24676 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24679 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24680 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24687 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24688 hardcode_minus_L_GCJ=yes
24689 allow_undefined_flag_GCJ=unsupported
24690 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'
24691 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24695 if test "$GCC" = yes; then
24696 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24697 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'
24699 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24700 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'
24702 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24703 hardcode_libdir_separator_GCJ=:
24706 osf4* | osf5*) # as osf3* with the addition of -msym flag
24707 if test "$GCC" = yes; then
24708 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24709 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'
24710 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24712 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24713 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'
24714 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~
24715 $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'
24717 # Both c and cxx compiler support -rpath directly
24718 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24720 hardcode_libdir_separator_GCJ=:
24724 no_undefined_flag_GCJ=' -z text'
24725 if test "$GCC" = yes; then
24727 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24728 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24729 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24732 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24733 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24734 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24736 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24737 hardcode_shlibpath_var_GCJ=no
24739 solaris2.[0-5] | solaris2.[0-5].*) ;;
24741 # The compiler driver will combine linker options so we
24742 # cannot just pass the convience library names through
24743 # without $wl, iff we do not link with $LD.
24744 # Luckily, gcc supports the same syntax we need for Sun Studio.
24745 # Supported since Solaris 2.6 (maybe 2.5.1?)
24748 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24750 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' ;;
24753 link_all_deplibs_GCJ=yes
24757 if test "x$host_vendor" = xsequent; then
24758 # Use $CC to link under sequent, because it throws in some extra .o
24759 # files that make .init and .fini sections work.
24760 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24762 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24764 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24765 hardcode_direct_GCJ=yes
24766 hardcode_minus_L_GCJ=yes
24767 hardcode_shlibpath_var_GCJ=no
24771 case $host_vendor in
24773 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24774 hardcode_direct_GCJ=yes # is this really true???
24777 ## LD is ld it makes a PLAMLIB
24778 ## CC just makes a GrossModule.
24779 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24780 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24781 hardcode_direct_GCJ=no
24784 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24785 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24788 runpath_var='LD_RUN_PATH'
24789 hardcode_shlibpath_var_GCJ=no
24793 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24794 hardcode_shlibpath_var_GCJ=no
24795 export_dynamic_flag_spec_GCJ='-Bexport'
24799 if test -d /usr/nec; then
24800 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24801 hardcode_shlibpath_var_GCJ=no
24802 runpath_var=LD_RUN_PATH
24803 hardcode_runpath_var=yes
24808 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24809 no_undefined_flag_GCJ='${wl}-z,text'
24810 archive_cmds_need_lc_GCJ=no
24811 hardcode_shlibpath_var_GCJ=no
24812 runpath_var='LD_RUN_PATH'
24814 if test "$GCC" = yes; then
24815 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24816 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24818 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24819 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24823 sysv5* | sco3.2v5* | sco5v6*)
24824 # Note: We can NOT use -z defs as we might desire, because we do not
24825 # link with -lc, and that would cause any symbols used from libc to
24826 # always be unresolved, which means just about no library would
24827 # ever link correctly. If we're not using GNU ld we use -z text
24828 # though, which does catch some bad symbols but isn't as heavy-handed
24830 no_undefined_flag_GCJ='${wl}-z,text'
24831 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24832 archive_cmds_need_lc_GCJ=no
24833 hardcode_shlibpath_var_GCJ=no
24834 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24835 hardcode_libdir_separator_GCJ=':'
24836 link_all_deplibs_GCJ=yes
24837 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24838 runpath_var='LD_RUN_PATH'
24840 if test "$GCC" = yes; then
24841 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24842 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24844 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24845 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24850 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24852 hardcode_shlibpath_var_GCJ=no
24861 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24862 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24863 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24866 # Do we need to explicitly link libc?
24868 case "x$archive_cmds_need_lc_GCJ" in
24870 # Assume -lc should be added
24871 archive_cmds_need_lc_GCJ=yes
24873 if test "$enable_shared" = yes && test "$GCC" = yes; then
24874 case $archive_cmds_GCJ in
24876 # FIXME: we may have to deal with multi-command sequences.
24879 # Test whether the compiler implicitly links with -lc since on some
24880 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24881 # to ld, don't add -lc before -lgcc.
24882 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24883 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24888 (eval $ac_compile) 2>&5
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); } 2>conftest.err; then
24894 libobjs=conftest.$ac_objext
24896 wl=$lt_prog_compiler_wl_GCJ
24897 pic_flag=$lt_prog_compiler_pic_GCJ
24903 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24904 allow_undefined_flag_GCJ=
24905 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24906 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); }
24911 archive_cmds_need_lc_GCJ=no
24913 archive_cmds_need_lc_GCJ=yes
24915 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24917 cat conftest.err 1>&5
24920 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24921 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24928 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24929 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24930 library_names_spec=
24931 libname_spec='lib$name'
24935 postuninstall_cmds=
24939 shlibpath_overrides_runpath=unknown
24941 dynamic_linker="$host_os ld.so"
24942 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24943 if test "$GCC" = yes; then
24944 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24945 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24946 # if the path contains ";" then we assume it to be the separator
24947 # otherwise default to the standard path separator (i.e. ":") - it is
24948 # assumed that no part of a normal pathname contains ";" but that should
24949 # okay in the real world where ";" in dirpaths is itself problematic.
24950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24955 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24957 need_lib_prefix=unknown
24958 hardcode_into_libs=no
24960 # when you set need_version to no, make sure it does not cause -set_version
24961 # flags to be left without arguments
24962 need_version=unknown
24967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24968 shlibpath_var=LIBPATH
24970 # AIX 3 has no versioning support, so we append a major version to the name.
24971 soname_spec='${libname}${release}${shared_ext}$major'
24978 hardcode_into_libs=yes
24979 if test "$host_cpu" = ia64; then
24980 # AIX 5 supports IA64
24981 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24982 shlibpath_var=LD_LIBRARY_PATH
24984 # With GCC up to 2.95.x, collect2 would create an import file
24985 # for dependence libraries. The import file would start with
24986 # the line `#! .'. This would cause the generated library to
24987 # depend on `.', always an invalid library. This was fixed in
24988 # development snapshots of GCC prior to 3.0.
24990 aix4 | aix4.[01] | aix4.[01].*)
24991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24993 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24996 can_build_shared=no
25000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25001 # soname into executable. Probably we can add versioning support to
25002 # collect2, so additional links can be useful in future.
25003 if test "$aix_use_runtimelinking" = yes; then
25004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25005 # instead of lib<name>.a to let people know that these are not
25006 # typical AIX shared libraries.
25007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25009 # We preserve .a as extension for shared libraries through AIX4.2
25010 # and later when we are not doing run time linking.
25011 library_names_spec='${libname}${release}.a $libname.a'
25012 soname_spec='${libname}${release}${shared_ext}$major'
25014 shlibpath_var=LIBPATH
25019 library_names_spec='$libname.ixlibrary $libname.a'
25020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25021 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'
25025 library_names_spec='${libname}${shared_ext}'
25026 dynamic_linker="$host_os ld.so"
25027 shlibpath_var=LIBRARY_PATH
25033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25034 soname_spec='${libname}${release}${shared_ext}$major'
25035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25036 shlibpath_var=LD_LIBRARY_PATH
25037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25039 # the default ld.so.conf also contains /usr/contrib/lib and
25040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25041 # libtool to hard-code these into programs
25044 cygwin* | mingw* | pw32*)
25045 version_type=windows
25050 case $GCC,$host_os in
25051 yes,cygwin* | yes,mingw* | yes,pw32*)
25052 library_names_spec='$libname.dll.a'
25053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25054 postinstall_cmds='base_file=`basename \${file}`~
25055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25056 dldir=$destdir/`dirname \$dlpath`~
25057 test -d \$dldir || mkdir -p \$dldir~
25058 $install_prog $dir/$dlname \$dldir/$dlname~
25059 chmod a+x \$dldir/$dlname'
25060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25061 dlpath=$dir/\$dldll~
25063 shlibpath_overrides_runpath=yes
25067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25068 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25069 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25072 # MinGW DLLs use traditional 'lib' prefix
25073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25075 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25076 # It is most probably a Windows format PATH printed by
25077 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25078 # path with ; separators, and with drive letters. We can handle the
25079 # drive letters (cygwin fileutils understands them), so leave them,
25080 # especially as we might pass files found there to a mingw objdump,
25081 # which wouldn't understand a cygwinified path. Ahh.
25082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25088 # pw32 DLLs use 'pw' prefix rather than 'lib'
25089 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25098 dynamic_linker='Win32 ld.exe'
25099 # FIXME: first we should search . and the directory the executable is in
25103 darwin* | rhapsody*)
25104 dynamic_linker="$host_os dyld"
25105 version_type=darwin
25108 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25109 soname_spec='${libname}${release}${major}$shared_ext'
25110 shlibpath_overrides_runpath=yes
25111 shlibpath_var=DYLD_LIBRARY_PATH
25112 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25113 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25114 if test "$GCC" = yes; then
25115 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"`
25117 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25127 soname_spec='${libname}${release}${shared_ext}$major'
25128 shlibpath_var=LD_LIBRARY_PATH
25139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25140 soname_spec='${libname}${release}${shared_ext}$major'
25141 shlibpath_var=LD_LIBRARY_PATH
25142 shlibpath_overrides_runpath=no
25143 hardcode_into_libs=yes
25144 dynamic_linker='GNU ld.so'
25147 freebsd* | dragonfly*)
25148 # DragonFly does not have aout. When/if they implement a new
25149 # versioning mechanism, adjust this.
25150 if test -x /usr/bin/objformat; then
25151 objformat=`/usr/bin/objformat`
25154 freebsd[123]*) objformat=aout ;;
25155 *) objformat=elf ;;
25158 version_type=freebsd-$objformat
25159 case $version_type in
25161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25170 shlibpath_var=LD_LIBRARY_PATH
25173 shlibpath_overrides_runpath=yes
25175 freebsd3.[01]* | freebsdelf3.[01]*)
25176 shlibpath_overrides_runpath=yes
25177 hardcode_into_libs=yes
25179 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25180 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25181 shlibpath_overrides_runpath=no
25182 hardcode_into_libs=yes
25184 freebsd*) # from 4.6 on
25185 shlibpath_overrides_runpath=yes
25186 hardcode_into_libs=yes
25195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25196 soname_spec='${libname}${release}${shared_ext}$major'
25197 shlibpath_var=LD_LIBRARY_PATH
25198 hardcode_into_libs=yes
25201 hpux9* | hpux10* | hpux11*)
25202 # Give a soname corresponding to the major version so that dld.sl refuses to
25203 # link against other versions.
25210 hardcode_into_libs=yes
25211 dynamic_linker="$host_os dld.so"
25212 shlibpath_var=LD_LIBRARY_PATH
25213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25215 soname_spec='${libname}${release}${shared_ext}$major'
25216 if test "X$HPUX_IA64_MODE" = X32; then
25217 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25225 hardcode_into_libs=yes
25226 dynamic_linker="$host_os dld.sl"
25227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25230 soname_spec='${libname}${release}${shared_ext}$major'
25231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25236 dynamic_linker="$host_os dld.sl"
25237 shlibpath_var=SHLIB_PATH
25238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25240 soname_spec='${libname}${release}${shared_ext}$major'
25243 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25244 postinstall_cmds='chmod 555 $lib'
25251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25252 soname_spec='${libname}${release}${shared_ext}$major'
25253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25254 shlibpath_var=LD_LIBRARY_PATH
25255 shlibpath_overrides_runpath=no
25256 hardcode_into_libs=yes
25259 irix5* | irix6* | nonstopux*)
25261 nonstopux*) version_type=nonstopux ;;
25263 if test "$lt_cv_prog_gnu_ld" = yes; then
25271 soname_spec='${libname}${release}${shared_ext}$major'
25272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25274 irix5* | nonstopux*)
25275 libsuff= shlibsuff=
25278 case $LD in # libtool.m4 will add one of these switches to LD
25279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25280 libsuff= shlibsuff= libmagic=32-bit;;
25281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25282 libsuff=32 shlibsuff=N32 libmagic=N32;;
25283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25285 *) libsuff= shlibsuff= libmagic=never-match;;
25289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25290 shlibpath_overrides_runpath=no
25291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25293 hardcode_into_libs=yes
25296 # No shared lib support for Linux oldld, aout, or coff.
25297 linux*oldld* | linux*aout* | linux*coff*)
25301 # This must be Linux ELF.
25306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25307 soname_spec='${libname}${release}${shared_ext}$major'
25308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25309 shlibpath_var=LD_LIBRARY_PATH
25310 shlibpath_overrides_runpath=no
25311 # This implies no fast_install, which is unacceptable.
25312 # Some rework will be needed to allow for fast_install
25313 # before this can be enabled.
25314 hardcode_into_libs=yes
25316 # Append ld.so.conf contents to the search path
25317 if test -f /etc/ld.so.conf; then
25318 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' ' '`
25319 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25322 # We used to test for /lib/ld.so.1 and disable shared libraries on
25323 # powerpc, because MkLinux only supported shared libraries with the
25324 # GNU dynamic linker. Since this was broken with cross compilers,
25325 # most powerpc-linux boxes support dynamic linking these days and
25326 # people can always --disable-shared, the test was removed, and we
25327 # assume the GNU/Linux dynamic linker is in use.
25328 dynamic_linker='GNU/Linux ld.so'
25335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25336 soname_spec='${libname}${release}${shared_ext}$major'
25337 shlibpath_var=LD_LIBRARY_PATH
25338 shlibpath_overrides_runpath=no
25339 hardcode_into_libs=yes
25340 dynamic_linker='GNU ld.so'
25347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25350 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
25356 shlibpath_var=LD_LIBRARY_PATH
25357 shlibpath_overrides_runpath=yes
25358 hardcode_into_libs=yes
25363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25364 shlibpath_var=LD_LIBRARY_PATH
25365 shlibpath_overrides_runpath=yes
25372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25373 soname_spec='${libname}${release}${shared_ext}$major'
25374 shlibpath_var=LD_LIBRARY_PATH
25375 shlibpath_overrides_runpath=yes
25380 sys_lib_dlsearch_path_spec="/usr/lib"
25382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25384 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25385 *) need_version=no ;;
25387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25389 shlibpath_var=LD_LIBRARY_PATH
25390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25392 openbsd2.[89] | openbsd2.[89].*)
25393 shlibpath_overrides_runpath=no
25396 shlibpath_overrides_runpath=yes
25400 shlibpath_overrides_runpath=yes
25405 libname_spec='$name'
25408 library_names_spec='$libname${shared_ext} $libname.a'
25409 dynamic_linker='OS/2 ld.exe'
25410 shlibpath_var=LIBPATH
25413 osf3* | osf4* | osf5*)
25417 soname_spec='${libname}${release}${shared_ext}$major'
25418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25419 shlibpath_var=LD_LIBRARY_PATH
25420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25429 soname_spec='${libname}${release}${shared_ext}$major'
25430 shlibpath_var=LD_LIBRARY_PATH
25431 shlibpath_overrides_runpath=yes
25432 hardcode_into_libs=yes
25433 # ldd complains unless libraries are executable
25434 postinstall_cmds='chmod +x $lib'
25439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25440 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25441 shlibpath_var=LD_LIBRARY_PATH
25442 shlibpath_overrides_runpath=yes
25443 if test "$with_gnu_ld" = yes; then
25451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25452 soname_spec='${libname}${release}${shared_ext}$major'
25453 shlibpath_var=LD_LIBRARY_PATH
25454 case $host_vendor in
25456 shlibpath_overrides_runpath=no
25458 export_dynamic_flag_spec='${wl}-Blargedynsym'
25459 runpath_var=LD_RUN_PATH
25467 shlibpath_overrides_runpath=no
25468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25474 if test -d /usr/nec ;then
25476 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25477 soname_spec='$libname${shared_ext}.$major'
25478 shlibpath_var=LD_LIBRARY_PATH
25482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25483 version_type=freebsd-elf
25486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25487 soname_spec='${libname}${release}${shared_ext}$major'
25488 shlibpath_var=LD_LIBRARY_PATH
25489 hardcode_into_libs=yes
25490 if test "$with_gnu_ld" = yes; then
25491 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25492 shlibpath_overrides_runpath=no
25494 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25495 shlibpath_overrides_runpath=yes
25498 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25502 sys_lib_dlsearch_path_spec='/usr/lib'
25507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25508 soname_spec='${libname}${release}${shared_ext}$major'
25509 shlibpath_var=LD_LIBRARY_PATH
25516 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25517 echo "${ECHO_T}$dynamic_linker" >&6; }
25518 test "$dynamic_linker" = no && can_build_shared=no
25520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25521 if test "$GCC" = yes; then
25522 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25525 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25526 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25527 hardcode_action_GCJ=
25528 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25529 test -n "$runpath_var_GCJ" || \
25530 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25532 # We can hardcode non-existant directories.
25533 if test "$hardcode_direct_GCJ" != no &&
25534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25535 # have to relink, otherwise we might link with an installed library
25536 # when we should be linking with a yet-to-be-installed one
25537 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25538 test "$hardcode_minus_L_GCJ" != no; then
25539 # Linking always hardcodes the temporary library directory.
25540 hardcode_action_GCJ=relink
25542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25543 hardcode_action_GCJ=immediate
25546 # We cannot hardcode anything, or else we can only hardcode existing
25548 hardcode_action_GCJ=unsupported
25550 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25551 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25553 if test "$hardcode_action_GCJ" = relink; then
25554 # Fast installation is not supported
25555 enable_fast_install=no
25556 elif test "$shlibpath_overrides_runpath" = yes ||
25557 test "$enable_shared" = no; then
25558 # Fast installation is not necessary
25559 enable_fast_install=needless
25563 # The else clause should only fire when bootstrapping the
25564 # libtool distribution, otherwise you forgot to ship ltmain.sh
25565 # with your package, and you will get complaints that there are
25566 # no rules to generate ltmain.sh.
25567 if test -f "$ltmain"; then
25568 # See if we are running on zsh, and set the options which allow our commands through
25569 # without removal of \ escapes.
25570 if test -n "${ZSH_VERSION+set}" ; then
25571 setopt NO_GLOB_SUBST
25573 # Now quote all the things that may contain metacharacters while being
25574 # careful not to overquote the AC_SUBSTed values. We take copies of the
25575 # variables and quote the copies for generation of the libtool script.
25576 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25578 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25579 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25580 deplibs_check_method reload_flag reload_cmds need_locks \
25581 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25582 lt_cv_sys_global_symbol_to_c_name_address \
25583 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25584 old_postinstall_cmds old_postuninstall_cmds \
25588 lt_prog_compiler_wl_GCJ \
25589 lt_prog_compiler_pic_GCJ \
25590 lt_prog_compiler_static_GCJ \
25591 lt_prog_compiler_no_builtin_flag_GCJ \
25592 export_dynamic_flag_spec_GCJ \
25593 thread_safe_flag_spec_GCJ \
25594 whole_archive_flag_spec_GCJ \
25595 enable_shared_with_static_runtimes_GCJ \
25596 old_archive_cmds_GCJ \
25597 old_archive_from_new_cmds_GCJ \
25598 predep_objects_GCJ \
25599 postdep_objects_GCJ \
25602 compiler_lib_search_path_GCJ \
25604 archive_expsym_cmds_GCJ \
25605 postinstall_cmds_GCJ \
25606 postuninstall_cmds_GCJ \
25607 old_archive_from_expsyms_cmds_GCJ \
25608 allow_undefined_flag_GCJ \
25609 no_undefined_flag_GCJ \
25610 export_symbols_cmds_GCJ \
25611 hardcode_libdir_flag_spec_GCJ \
25612 hardcode_libdir_flag_spec_ld_GCJ \
25613 hardcode_libdir_separator_GCJ \
25614 hardcode_automatic_GCJ \
25616 module_expsym_cmds_GCJ \
25617 lt_cv_prog_compiler_c_o_GCJ \
25618 exclude_expsyms_GCJ \
25619 include_expsyms_GCJ; do
25622 old_archive_cmds_GCJ | \
25623 old_archive_from_new_cmds_GCJ | \
25624 archive_cmds_GCJ | \
25625 archive_expsym_cmds_GCJ | \
25626 module_cmds_GCJ | \
25627 module_expsym_cmds_GCJ | \
25628 old_archive_from_expsyms_cmds_GCJ | \
25629 export_symbols_cmds_GCJ | \
25630 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25631 postinstall_cmds | postuninstall_cmds | \
25632 old_postinstall_cmds | old_postuninstall_cmds | \
25633 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25634 # Double-quote double-evaled strings.
25635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25644 *'\$0 --fallback-echo"')
25645 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25651 cat <<__EOF__ >> "$cfgfile"
25652 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25656 # Shell to use when invoking shell scripts.
25659 # Whether or not to build shared libraries.
25660 build_libtool_libs=$enable_shared
25662 # Whether or not to build static libraries.
25663 build_old_libs=$enable_static
25665 # Whether or not to add -lc for building shared libraries.
25666 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25668 # Whether or not to disallow shared libs when runtime libs are static
25669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25671 # Whether or not to optimize for fast installation.
25672 fast_install=$enable_fast_install
25675 host_alias=$host_alias
25679 # The build system.
25680 build_alias=$build_alias
25684 # An echo program that does not interpret backslashes.
25689 AR_FLAGS=$lt_AR_FLAGS
25694 # LTCC compiler flags.
25695 LTCFLAGS=$lt_LTCFLAGS
25697 # A language-specific compiler.
25698 CC=$lt_compiler_GCJ
25700 # Is the compiler the GNU C compiler?
25706 # The linker used to build libraries.
25709 # Whether we need hard or soft links.
25712 # A BSD-compatible nm program.
25715 # A symbol stripping program
25718 # Used to examine libraries when file_magic_cmd begins "file"
25719 MAGIC_CMD=$MAGIC_CMD
25721 # Used on cygwin: DLL creation program.
25724 # Used on cygwin: object dumper.
25727 # Used on cygwin: assembler.
25730 # The name of the directory that contains temporary libtool files.
25733 # How to create reloadable object files.
25734 reload_flag=$lt_reload_flag
25735 reload_cmds=$lt_reload_cmds
25737 # How to pass a linker flag through the compiler.
25738 wl=$lt_lt_prog_compiler_wl_GCJ
25740 # Object file suffix (normally "o").
25741 objext="$ac_objext"
25743 # Old archive suffix (normally "a").
25746 # Shared library suffix (normally ".so").
25747 shrext_cmds='$shrext_cmds'
25749 # Executable file suffix (normally "").
25752 # Additional compiler flags for building library objects.
25753 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25756 # What is the maximum length of a command?
25757 max_cmd_len=$lt_cv_sys_max_cmd_len
25759 # Does compiler simultaneously support -c and -o options?
25760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25762 # Must we lock files when doing compilation?
25763 need_locks=$lt_need_locks
25765 # Do we need the lib prefix for modules?
25766 need_lib_prefix=$need_lib_prefix
25768 # Do we need a version for libraries?
25769 need_version=$need_version
25771 # Whether dlopen is supported.
25772 dlopen_support=$enable_dlopen
25774 # Whether dlopen of programs is supported.
25775 dlopen_self=$enable_dlopen_self
25777 # Whether dlopen of statically linked programs is supported.
25778 dlopen_self_static=$enable_dlopen_self_static
25780 # Compiler flag to prevent dynamic linking.
25781 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25783 # Compiler flag to turn off builtin functions.
25784 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25786 # Compiler flag to allow reflexive dlopens.
25787 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25789 # Compiler flag to generate shared objects directly from archives.
25790 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25792 # Compiler flag to generate thread-safe objects.
25793 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25795 # Library versioning type.
25796 version_type=$version_type
25798 # Format of library name prefix.
25799 libname_spec=$lt_libname_spec
25801 # List of archive names. First name is the real one, the rest are links.
25802 # The last name is the one that the linker finds with -lNAME.
25803 library_names_spec=$lt_library_names_spec
25805 # The coded name of the library, if different from the real name.
25806 soname_spec=$lt_soname_spec
25808 # Commands used to build and install an old-style archive.
25810 old_archive_cmds=$lt_old_archive_cmds_GCJ
25811 old_postinstall_cmds=$lt_old_postinstall_cmds
25812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25814 # Create an old-style archive from a shared archive.
25815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25817 # Create a temporary old-style archive to link instead of a shared archive.
25818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25820 # Commands used to build and install a shared archive.
25821 archive_cmds=$lt_archive_cmds_GCJ
25822 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25823 postinstall_cmds=$lt_postinstall_cmds
25824 postuninstall_cmds=$lt_postuninstall_cmds
25826 # Commands used to build a loadable module (assumed same as above if empty)
25827 module_cmds=$lt_module_cmds_GCJ
25828 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25830 # Commands to strip libraries.
25831 old_striplib=$lt_old_striplib
25832 striplib=$lt_striplib
25834 # Dependencies to place before the objects being linked to create a
25836 predep_objects=$lt_predep_objects_GCJ
25838 # Dependencies to place after the objects being linked to create a
25840 postdep_objects=$lt_postdep_objects_GCJ
25842 # Dependencies to place before the objects being linked to create a
25844 predeps=$lt_predeps_GCJ
25846 # Dependencies to place after the objects being linked to create a
25848 postdeps=$lt_postdeps_GCJ
25850 # The library search path used internally by the compiler when linking
25851 # a shared library.
25852 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25854 # Method to check whether dependent libraries are shared objects.
25855 deplibs_check_method=$lt_deplibs_check_method
25857 # Command to use when deplibs_check_method == file_magic.
25858 file_magic_cmd=$lt_file_magic_cmd
25860 # Flag that allows shared libraries with undefined symbols to be built.
25861 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25863 # Flag that forces no undefined symbols.
25864 no_undefined_flag=$lt_no_undefined_flag_GCJ
25866 # Commands used to finish a libtool library installation in a directory.
25867 finish_cmds=$lt_finish_cmds
25869 # Same as above, but a single script fragment to be evaled but not shown.
25870 finish_eval=$lt_finish_eval
25872 # Take the output of nm and produce a listing of raw symbols and C names.
25873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25875 # Transform the output of nm in a proper C declaration
25876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25878 # Transform the output of nm in a C name address pair
25879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25881 # This is the shared library runtime path variable.
25882 runpath_var=$runpath_var
25884 # This is the shared library path variable.
25885 shlibpath_var=$shlibpath_var
25887 # Is shlibpath searched before the hard-coded library search path?
25888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25890 # How to hardcode a shared library path into an executable.
25891 hardcode_action=$hardcode_action_GCJ
25893 # Whether we should hardcode library paths into libraries.
25894 hardcode_into_libs=$hardcode_into_libs
25896 # Flag to hardcode \$libdir into a binary during linking.
25897 # This must work even if \$libdir does not exist.
25898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25900 # If ld is used when linking, flag to hardcode \$libdir into
25901 # a binary during linking. This must work even if \$libdir does
25903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25905 # Whether we need a single -rpath flag with a separated argument.
25906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25908 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25909 # resulting binary.
25910 hardcode_direct=$hardcode_direct_GCJ
25912 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25913 # resulting binary.
25914 hardcode_minus_L=$hardcode_minus_L_GCJ
25916 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25917 # the resulting binary.
25918 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25920 # Set to yes if building a shared library automatically hardcodes DIR into the library
25921 # and all subsequent libraries and executables linked against it.
25922 hardcode_automatic=$hardcode_automatic_GCJ
25924 # Variables whose values should be saved in libtool wrapper scripts and
25925 # restored at relink time.
25926 variables_saved_for_relink="$variables_saved_for_relink"
25928 # Whether libtool must link a program against all its dependency libraries.
25929 link_all_deplibs=$link_all_deplibs_GCJ
25931 # Compile-time system search path for libraries
25932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25934 # Run-time system search path for libraries
25935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25937 # Fix the shell variable \$srcfile for the compiler.
25938 fix_srcfile_path="$fix_srcfile_path_GCJ"
25940 # Set to yes if exported symbols are required.
25941 always_export_symbols=$always_export_symbols_GCJ
25943 # The commands to list exported symbols.
25944 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25946 # The commands to extract the exported symbol list from a shared archive.
25947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25949 # Symbols that should not be listed in the preloaded symbols.
25950 exclude_expsyms=$lt_exclude_expsyms_GCJ
25952 # Symbols that must always be exported.
25953 include_expsyms=$lt_include_expsyms_GCJ
25955 # ### END LIBTOOL TAG CONFIG: $tagname
25961 # If there is no Makefile yet, we rely on a make rule to execute
25962 # `config.status --recheck' to rerun these tests and create the
25963 # libtool script then.
25964 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25965 if test -f "$ltmain_in"; then
25966 test -f Makefile && make "$ltmain"
25972 ac_cpp='$CPP $CPPFLAGS'
25973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25986 ac_cpp='$CPP $CPPFLAGS'
25987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25992 # Source file extension for RC test sources.
25995 # Object file extension for compiled RC test sources.
25999 # Code to be used in simple compile tests
26000 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26002 # Code to be used in simple link tests
26003 lt_simple_link_test_code="$lt_simple_compile_test_code"
26005 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26007 # If no C compiler was specified, use CC.
26010 # If no C compiler flags were specified, use CFLAGS.
26011 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26013 # Allow CC to be a program name with arguments.
26017 # save warnings/boilerplate of simple test code
26018 ac_outfile=conftest.$ac_objext
26019 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26020 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26021 _lt_compiler_boilerplate=`cat conftest.err`
26024 ac_outfile=conftest.$ac_objext
26025 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26026 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26027 _lt_linker_boilerplate=`cat conftest.err`
26031 # Allow CC to be a program name with arguments.
26036 for cc_temp in $compiler""; do
26038 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26039 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26044 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26046 lt_cv_prog_compiler_c_o_RC=yes
26048 # The else clause should only fire when bootstrapping the
26049 # libtool distribution, otherwise you forgot to ship ltmain.sh
26050 # with your package, and you will get complaints that there are
26051 # no rules to generate ltmain.sh.
26052 if test -f "$ltmain"; then
26053 # See if we are running on zsh, and set the options which allow our commands through
26054 # without removal of \ escapes.
26055 if test -n "${ZSH_VERSION+set}" ; then
26056 setopt NO_GLOB_SUBST
26058 # Now quote all the things that may contain metacharacters while being
26059 # careful not to overquote the AC_SUBSTed values. We take copies of the
26060 # variables and quote the copies for generation of the libtool script.
26061 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26063 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26064 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26065 deplibs_check_method reload_flag reload_cmds need_locks \
26066 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26067 lt_cv_sys_global_symbol_to_c_name_address \
26068 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26069 old_postinstall_cmds old_postuninstall_cmds \
26073 lt_prog_compiler_wl_RC \
26074 lt_prog_compiler_pic_RC \
26075 lt_prog_compiler_static_RC \
26076 lt_prog_compiler_no_builtin_flag_RC \
26077 export_dynamic_flag_spec_RC \
26078 thread_safe_flag_spec_RC \
26079 whole_archive_flag_spec_RC \
26080 enable_shared_with_static_runtimes_RC \
26081 old_archive_cmds_RC \
26082 old_archive_from_new_cmds_RC \
26083 predep_objects_RC \
26084 postdep_objects_RC \
26087 compiler_lib_search_path_RC \
26089 archive_expsym_cmds_RC \
26090 postinstall_cmds_RC \
26091 postuninstall_cmds_RC \
26092 old_archive_from_expsyms_cmds_RC \
26093 allow_undefined_flag_RC \
26094 no_undefined_flag_RC \
26095 export_symbols_cmds_RC \
26096 hardcode_libdir_flag_spec_RC \
26097 hardcode_libdir_flag_spec_ld_RC \
26098 hardcode_libdir_separator_RC \
26099 hardcode_automatic_RC \
26101 module_expsym_cmds_RC \
26102 lt_cv_prog_compiler_c_o_RC \
26103 exclude_expsyms_RC \
26104 include_expsyms_RC; do
26107 old_archive_cmds_RC | \
26108 old_archive_from_new_cmds_RC | \
26109 archive_cmds_RC | \
26110 archive_expsym_cmds_RC | \
26112 module_expsym_cmds_RC | \
26113 old_archive_from_expsyms_cmds_RC | \
26114 export_symbols_cmds_RC | \
26115 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26116 postinstall_cmds | postuninstall_cmds | \
26117 old_postinstall_cmds | old_postuninstall_cmds | \
26118 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26119 # Double-quote double-evaled strings.
26120 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26123 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26129 *'\$0 --fallback-echo"')
26130 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26136 cat <<__EOF__ >> "$cfgfile"
26137 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26139 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26141 # Shell to use when invoking shell scripts.
26144 # Whether or not to build shared libraries.
26145 build_libtool_libs=$enable_shared
26147 # Whether or not to build static libraries.
26148 build_old_libs=$enable_static
26150 # Whether or not to add -lc for building shared libraries.
26151 build_libtool_need_lc=$archive_cmds_need_lc_RC
26153 # Whether or not to disallow shared libs when runtime libs are static
26154 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26156 # Whether or not to optimize for fast installation.
26157 fast_install=$enable_fast_install
26160 host_alias=$host_alias
26164 # The build system.
26165 build_alias=$build_alias
26169 # An echo program that does not interpret backslashes.
26174 AR_FLAGS=$lt_AR_FLAGS
26179 # LTCC compiler flags.
26180 LTCFLAGS=$lt_LTCFLAGS
26182 # A language-specific compiler.
26185 # Is the compiler the GNU C compiler?
26191 # The linker used to build libraries.
26194 # Whether we need hard or soft links.
26197 # A BSD-compatible nm program.
26200 # A symbol stripping program
26203 # Used to examine libraries when file_magic_cmd begins "file"
26204 MAGIC_CMD=$MAGIC_CMD
26206 # Used on cygwin: DLL creation program.
26209 # Used on cygwin: object dumper.
26212 # Used on cygwin: assembler.
26215 # The name of the directory that contains temporary libtool files.
26218 # How to create reloadable object files.
26219 reload_flag=$lt_reload_flag
26220 reload_cmds=$lt_reload_cmds
26222 # How to pass a linker flag through the compiler.
26223 wl=$lt_lt_prog_compiler_wl_RC
26225 # Object file suffix (normally "o").
26226 objext="$ac_objext"
26228 # Old archive suffix (normally "a").
26231 # Shared library suffix (normally ".so").
26232 shrext_cmds='$shrext_cmds'
26234 # Executable file suffix (normally "").
26237 # Additional compiler flags for building library objects.
26238 pic_flag=$lt_lt_prog_compiler_pic_RC
26241 # What is the maximum length of a command?
26242 max_cmd_len=$lt_cv_sys_max_cmd_len
26244 # Does compiler simultaneously support -c and -o options?
26245 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26247 # Must we lock files when doing compilation?
26248 need_locks=$lt_need_locks
26250 # Do we need the lib prefix for modules?
26251 need_lib_prefix=$need_lib_prefix
26253 # Do we need a version for libraries?
26254 need_version=$need_version
26256 # Whether dlopen is supported.
26257 dlopen_support=$enable_dlopen
26259 # Whether dlopen of programs is supported.
26260 dlopen_self=$enable_dlopen_self
26262 # Whether dlopen of statically linked programs is supported.
26263 dlopen_self_static=$enable_dlopen_self_static
26265 # Compiler flag to prevent dynamic linking.
26266 link_static_flag=$lt_lt_prog_compiler_static_RC
26268 # Compiler flag to turn off builtin functions.
26269 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26271 # Compiler flag to allow reflexive dlopens.
26272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26274 # Compiler flag to generate shared objects directly from archives.
26275 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26277 # Compiler flag to generate thread-safe objects.
26278 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26280 # Library versioning type.
26281 version_type=$version_type
26283 # Format of library name prefix.
26284 libname_spec=$lt_libname_spec
26286 # List of archive names. First name is the real one, the rest are links.
26287 # The last name is the one that the linker finds with -lNAME.
26288 library_names_spec=$lt_library_names_spec
26290 # The coded name of the library, if different from the real name.
26291 soname_spec=$lt_soname_spec
26293 # Commands used to build and install an old-style archive.
26295 old_archive_cmds=$lt_old_archive_cmds_RC
26296 old_postinstall_cmds=$lt_old_postinstall_cmds
26297 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26299 # Create an old-style archive from a shared archive.
26300 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26302 # Create a temporary old-style archive to link instead of a shared archive.
26303 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26305 # Commands used to build and install a shared archive.
26306 archive_cmds=$lt_archive_cmds_RC
26307 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26308 postinstall_cmds=$lt_postinstall_cmds
26309 postuninstall_cmds=$lt_postuninstall_cmds
26311 # Commands used to build a loadable module (assumed same as above if empty)
26312 module_cmds=$lt_module_cmds_RC
26313 module_expsym_cmds=$lt_module_expsym_cmds_RC
26315 # Commands to strip libraries.
26316 old_striplib=$lt_old_striplib
26317 striplib=$lt_striplib
26319 # Dependencies to place before the objects being linked to create a
26321 predep_objects=$lt_predep_objects_RC
26323 # Dependencies to place after the objects being linked to create a
26325 postdep_objects=$lt_postdep_objects_RC
26327 # Dependencies to place before the objects being linked to create a
26329 predeps=$lt_predeps_RC
26331 # Dependencies to place after the objects being linked to create a
26333 postdeps=$lt_postdeps_RC
26335 # The library search path used internally by the compiler when linking
26336 # a shared library.
26337 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26339 # Method to check whether dependent libraries are shared objects.
26340 deplibs_check_method=$lt_deplibs_check_method
26342 # Command to use when deplibs_check_method == file_magic.
26343 file_magic_cmd=$lt_file_magic_cmd
26345 # Flag that allows shared libraries with undefined symbols to be built.
26346 allow_undefined_flag=$lt_allow_undefined_flag_RC
26348 # Flag that forces no undefined symbols.
26349 no_undefined_flag=$lt_no_undefined_flag_RC
26351 # Commands used to finish a libtool library installation in a directory.
26352 finish_cmds=$lt_finish_cmds
26354 # Same as above, but a single script fragment to be evaled but not shown.
26355 finish_eval=$lt_finish_eval
26357 # Take the output of nm and produce a listing of raw symbols and C names.
26358 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26360 # Transform the output of nm in a proper C declaration
26361 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26363 # Transform the output of nm in a C name address pair
26364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26366 # This is the shared library runtime path variable.
26367 runpath_var=$runpath_var
26369 # This is the shared library path variable.
26370 shlibpath_var=$shlibpath_var
26372 # Is shlibpath searched before the hard-coded library search path?
26373 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26375 # How to hardcode a shared library path into an executable.
26376 hardcode_action=$hardcode_action_RC
26378 # Whether we should hardcode library paths into libraries.
26379 hardcode_into_libs=$hardcode_into_libs
26381 # Flag to hardcode \$libdir into a binary during linking.
26382 # This must work even if \$libdir does not exist.
26383 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26385 # If ld is used when linking, flag to hardcode \$libdir into
26386 # a binary during linking. This must work even if \$libdir does
26388 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26390 # Whether we need a single -rpath flag with a separated argument.
26391 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26393 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26394 # resulting binary.
26395 hardcode_direct=$hardcode_direct_RC
26397 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26398 # resulting binary.
26399 hardcode_minus_L=$hardcode_minus_L_RC
26401 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26402 # the resulting binary.
26403 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26405 # Set to yes if building a shared library automatically hardcodes DIR into the library
26406 # and all subsequent libraries and executables linked against it.
26407 hardcode_automatic=$hardcode_automatic_RC
26409 # Variables whose values should be saved in libtool wrapper scripts and
26410 # restored at relink time.
26411 variables_saved_for_relink="$variables_saved_for_relink"
26413 # Whether libtool must link a program against all its dependency libraries.
26414 link_all_deplibs=$link_all_deplibs_RC
26416 # Compile-time system search path for libraries
26417 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26419 # Run-time system search path for libraries
26420 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26422 # Fix the shell variable \$srcfile for the compiler.
26423 fix_srcfile_path="$fix_srcfile_path_RC"
26425 # Set to yes if exported symbols are required.
26426 always_export_symbols=$always_export_symbols_RC
26428 # The commands to list exported symbols.
26429 export_symbols_cmds=$lt_export_symbols_cmds_RC
26431 # The commands to extract the exported symbol list from a shared archive.
26432 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26434 # Symbols that should not be listed in the preloaded symbols.
26435 exclude_expsyms=$lt_exclude_expsyms_RC
26437 # Symbols that must always be exported.
26438 include_expsyms=$lt_include_expsyms_RC
26440 # ### END LIBTOOL TAG CONFIG: $tagname
26446 # If there is no Makefile yet, we rely on a make rule to execute
26447 # `config.status --recheck' to rerun these tests and create the
26448 # libtool script then.
26449 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26450 if test -f "$ltmain_in"; then
26451 test -f Makefile && make "$ltmain"
26457 ac_cpp='$CPP $CPPFLAGS'
26458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26467 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26468 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26469 { (exit 1); exit 1; }; }
26473 # Append the new tag name to the list of available tags.
26474 if test -n "$tagname" ; then
26475 available_tags="$available_tags $tagname"
26481 # Now substitute the updated list of available tags.
26482 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26483 mv "${ofile}T" "$ofile"
26487 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26488 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26489 { (exit 1); exit 1; }; }
26495 # This can be used to rebuild libtool when needed
26496 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26498 # Always use our own libtool.
26499 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26501 # Prevent multiple expansion
26523 if test "$lt_cv_dlopen_self" = "yes" ; then
26525 cat >>confdefs.h <<\_ACEOF
26526 #define CAN_DLOPEN_SELF 1
26531 etags_version=`$ETAGS --version 2>&1`
26532 case "$etags_version" in
26533 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26534 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26535 *) ETAGSFLAGS="" ;;
26537 ETAGSFLAGS=$ETAGSFLAGS
26540 if test "$WITH_LLVMGCCDIR" = "default" ; then
26541 LLVMGCC="llvm-gcc${EXEEXT}"
26542 LLVMGXX="llvm-g++${EXEEXT}"
26543 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26544 set dummy $LLVMGCC; ac_word=$2
26545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26547 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26548 echo $ECHO_N "(cached) $ECHO_C" >&6
26552 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26556 for as_dir in $PATH
26559 test -z "$as_dir" && as_dir=.
26560 for ac_exec_ext in '' $ac_executable_extensions; do
26561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26562 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26573 LLVMGCC=$ac_cv_path_LLVMGCC
26574 if test -n "$LLVMGCC"; then
26575 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26576 echo "${ECHO_T}$LLVMGCC" >&6; }
26578 { echo "$as_me:$LINENO: result: no" >&5
26579 echo "${ECHO_T}no" >&6; }
26583 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26584 set dummy $LLVMGXX; ac_word=$2
26585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26587 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26592 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26596 for as_dir in $PATH
26599 test -z "$as_dir" && as_dir=.
26600 for ac_exec_ext in '' $ac_executable_extensions; do
26601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26602 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26613 LLVMGXX=$ac_cv_path_LLVMGXX
26614 if test -n "$LLVMGXX"; then
26615 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26616 echo "${ECHO_T}$LLVMGXX" >&6; }
26618 { echo "$as_me:$LINENO: result: no" >&5
26619 echo "${ECHO_T}no" >&6; }
26624 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26625 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26632 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26633 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26646 if test "$GCC" != "yes" && test "$ICC" != "yes"
26648 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26649 echo "$as_me: error: gcc|icc required but not found" >&2;}
26650 { (exit 1); exit 1; }; }
26653 if test "$GXX" != "yes" && test "$IXX" != "yes"
26655 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26656 echo "$as_me: error: g++|icc required but not found" >&2;}
26657 { (exit 1); exit 1; }; }
26660 if test "$GCC" = "yes"
26662 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26663 if test "$gccmajor" -lt "3"
26665 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26666 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26667 { (exit 1); exit 1; }; }
26671 if test -z "$llvm_cv_gnu_make_command"
26673 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26674 echo "$as_me: error: GNU Make required but not found" >&2;}
26675 { (exit 1); exit 1; }; }
26678 { echo "$as_me:$LINENO: result: ok" >&5
26679 echo "${ECHO_T}ok" >&6; }
26683 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26684 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26685 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26686 echo $ECHO_N "(cached) $ECHO_C" >&6
26688 ac_check_lib_save_LIBS=$LIBS
26690 cat >conftest.$ac_ext <<_ACEOF
26693 cat confdefs.h >>conftest.$ac_ext
26694 cat >>conftest.$ac_ext <<_ACEOF
26695 /* end confdefs.h. */
26697 /* Override any GCC internal prototype to avoid an error.
26698 Use char because int might match the return type of a GCC
26699 builtin and then its argument prototype would still apply. */
26707 return elf_begin ();
26712 rm -f conftest.$ac_objext conftest$ac_exeext
26713 if { (ac_try="$ac_link"
26714 case "(($ac_try" in
26715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719 (eval "$ac_link") 2>conftest.er1
26721 grep -v '^ *+' conftest.er1 >conftest.err
26723 cat conftest.err >&5
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } &&
26726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26727 { (case "(($ac_try" in
26728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26729 *) ac_try_echo=$ac_try;;
26731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26732 (eval "$ac_try") 2>&5
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); }; } &&
26736 { ac_try='test -s conftest$ac_exeext'
26737 { (case "(($ac_try" in
26738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739 *) ac_try_echo=$ac_try;;
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742 (eval "$ac_try") 2>&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); }; }; then
26746 ac_cv_lib_elf_elf_begin=yes
26748 echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26751 ac_cv_lib_elf_elf_begin=no
26754 rm -f core conftest.err conftest.$ac_objext \
26755 conftest$ac_exeext conftest.$ac_ext
26756 LIBS=$ac_check_lib_save_LIBS
26758 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26759 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26760 if test $ac_cv_lib_elf_elf_begin = yes; then
26761 cat >>confdefs.h <<_ACEOF
26762 #define HAVE_LIBELF 1
26770 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26771 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26772 if test "${ac_cv_lib_m_sin+set}" = set; then
26773 echo $ECHO_N "(cached) $ECHO_C" >&6
26775 ac_check_lib_save_LIBS=$LIBS
26777 cat >conftest.$ac_ext <<_ACEOF
26780 cat confdefs.h >>conftest.$ac_ext
26781 cat >>conftest.$ac_ext <<_ACEOF
26782 /* end confdefs.h. */
26784 /* Override any GCC internal prototype to avoid an error.
26785 Use char because int might match the return type of a GCC
26786 builtin and then its argument prototype would still apply. */
26799 rm -f conftest.$ac_objext conftest$ac_exeext
26800 if { (ac_try="$ac_link"
26801 case "(($ac_try" in
26802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803 *) ac_try_echo=$ac_try;;
26805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806 (eval "$ac_link") 2>conftest.er1
26808 grep -v '^ *+' conftest.er1 >conftest.err
26810 cat conftest.err >&5
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); } &&
26813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26814 { (case "(($ac_try" in
26815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816 *) ac_try_echo=$ac_try;;
26818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26819 (eval "$ac_try") 2>&5
26821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822 (exit $ac_status); }; } &&
26823 { ac_try='test -s conftest$ac_exeext'
26824 { (case "(($ac_try" in
26825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26826 *) ac_try_echo=$ac_try;;
26828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26829 (eval "$ac_try") 2>&5
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); }; }; then
26833 ac_cv_lib_m_sin=yes
26835 echo "$as_me: failed program was:" >&5
26836 sed 's/^/| /' conftest.$ac_ext >&5
26841 rm -f core conftest.err conftest.$ac_objext \
26842 conftest$ac_exeext conftest.$ac_ext
26843 LIBS=$ac_check_lib_save_LIBS
26845 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26846 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26847 if test $ac_cv_lib_m_sin = yes; then
26848 cat >>confdefs.h <<_ACEOF
26849 #define HAVE_LIBM 1
26856 if test "$llvm_cv_os_type" == "MingW" ; then
26858 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26859 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26860 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26861 echo $ECHO_N "(cached) $ECHO_C" >&6
26863 ac_check_lib_save_LIBS=$LIBS
26864 LIBS="-limagehlp $LIBS"
26865 cat >conftest.$ac_ext <<_ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h. */
26881 rm -f conftest.$ac_objext conftest$ac_exeext
26882 if { (ac_try="$ac_link"
26883 case "(($ac_try" in
26884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885 *) ac_try_echo=$ac_try;;
26887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888 (eval "$ac_link") 2>conftest.er1
26890 grep -v '^ *+' conftest.er1 >conftest.err
26892 cat conftest.err >&5
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); } &&
26895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26896 { (case "(($ac_try" in
26897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26898 *) ac_try_echo=$ac_try;;
26900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26901 (eval "$ac_try") 2>&5
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); }; } &&
26905 { ac_try='test -s conftest$ac_exeext'
26906 { (case "(($ac_try" in
26907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26908 *) ac_try_echo=$ac_try;;
26910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26911 (eval "$ac_try") 2>&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); }; }; then
26915 ac_cv_lib_imagehlp_main=yes
26917 echo "$as_me: failed program was:" >&5
26918 sed 's/^/| /' conftest.$ac_ext >&5
26920 ac_cv_lib_imagehlp_main=no
26923 rm -f core conftest.err conftest.$ac_objext \
26924 conftest$ac_exeext conftest.$ac_ext
26925 LIBS=$ac_check_lib_save_LIBS
26927 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26928 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26929 if test $ac_cv_lib_imagehlp_main = yes; then
26930 cat >>confdefs.h <<_ACEOF
26931 #define HAVE_LIBIMAGEHLP 1
26934 LIBS="-limagehlp $LIBS"
26939 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26940 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26941 if test "${ac_cv_lib_psapi_main+set}" = set; then
26942 echo $ECHO_N "(cached) $ECHO_C" >&6
26944 ac_check_lib_save_LIBS=$LIBS
26945 LIBS="-lpsapi $LIBS"
26946 cat >conftest.$ac_ext <<_ACEOF
26949 cat confdefs.h >>conftest.$ac_ext
26950 cat >>conftest.$ac_ext <<_ACEOF
26951 /* end confdefs.h. */
26962 rm -f conftest.$ac_objext conftest$ac_exeext
26963 if { (ac_try="$ac_link"
26964 case "(($ac_try" in
26965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966 *) ac_try_echo=$ac_try;;
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969 (eval "$ac_link") 2>conftest.er1
26971 grep -v '^ *+' conftest.er1 >conftest.err
26973 cat conftest.err >&5
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); } &&
26976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26977 { (case "(($ac_try" in
26978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979 *) ac_try_echo=$ac_try;;
26981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26982 (eval "$ac_try") 2>&5
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; } &&
26986 { ac_try='test -s conftest$ac_exeext'
26987 { (case "(($ac_try" in
26988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26989 *) ac_try_echo=$ac_try;;
26991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26992 (eval "$ac_try") 2>&5
26994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995 (exit $ac_status); }; }; then
26996 ac_cv_lib_psapi_main=yes
26998 echo "$as_me: failed program was:" >&5
26999 sed 's/^/| /' conftest.$ac_ext >&5
27001 ac_cv_lib_psapi_main=no
27004 rm -f core conftest.err conftest.$ac_objext \
27005 conftest$ac_exeext conftest.$ac_ext
27006 LIBS=$ac_check_lib_save_LIBS
27008 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27009 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27010 if test $ac_cv_lib_psapi_main = yes; then
27011 cat >>confdefs.h <<_ACEOF
27012 #define HAVE_LIBPSAPI 1
27015 LIBS="-lpsapi $LIBS"
27021 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27022 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27023 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27024 echo $ECHO_N "(cached) $ECHO_C" >&6
27026 ac_func_search_save_LIBS=$LIBS
27027 cat >conftest.$ac_ext <<_ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h. */
27034 /* Override any GCC internal prototype to avoid an error.
27035 Use char because int might match the return type of a GCC
27036 builtin and then its argument prototype would still apply. */
27044 return lt_dlopen ();
27049 for ac_lib in '' ltdl; do
27050 if test -z "$ac_lib"; then
27051 ac_res="none required"
27054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27056 rm -f conftest.$ac_objext conftest$ac_exeext
27057 if { (ac_try="$ac_link"
27058 case "(($ac_try" in
27059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27060 *) ac_try_echo=$ac_try;;
27062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27063 (eval "$ac_link") 2>conftest.er1
27065 grep -v '^ *+' conftest.er1 >conftest.err
27067 cat conftest.err >&5
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); } &&
27070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27071 { (case "(($ac_try" in
27072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27073 *) ac_try_echo=$ac_try;;
27075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27076 (eval "$ac_try") 2>&5
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); }; } &&
27080 { ac_try='test -s conftest$ac_exeext'
27081 { (case "(($ac_try" in
27082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27083 *) ac_try_echo=$ac_try;;
27085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27086 (eval "$ac_try") 2>&5
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); }; }; then
27090 ac_cv_search_lt_dlopen=$ac_res
27092 echo "$as_me: failed program was:" >&5
27093 sed 's/^/| /' conftest.$ac_ext >&5
27098 rm -f core conftest.err conftest.$ac_objext \
27100 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27104 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27107 ac_cv_search_lt_dlopen=no
27109 rm conftest.$ac_ext
27110 LIBS=$ac_func_search_save_LIBS
27112 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27113 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27114 ac_res=$ac_cv_search_lt_dlopen
27115 if test "$ac_res" != no; then
27116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27118 cat >>confdefs.h <<\_ACEOF
27119 #define HAVE_LT_DLOPEN 1
27123 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27124 not be available" >&5
27125 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27126 not be available" >&2;}
27130 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27131 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27132 if test "${ac_cv_search_dlopen+set}" = set; then
27133 echo $ECHO_N "(cached) $ECHO_C" >&6
27135 ac_func_search_save_LIBS=$LIBS
27136 cat >conftest.$ac_ext <<_ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h. */
27143 /* Override any GCC internal prototype to avoid an error.
27144 Use char because int might match the return type of a GCC
27145 builtin and then its argument prototype would still apply. */
27158 for ac_lib in '' dl; do
27159 if test -z "$ac_lib"; then
27160 ac_res="none required"
27163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27165 rm -f conftest.$ac_objext conftest$ac_exeext
27166 if { (ac_try="$ac_link"
27167 case "(($ac_try" in
27168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169 *) ac_try_echo=$ac_try;;
27171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172 (eval "$ac_link") 2>conftest.er1
27174 grep -v '^ *+' conftest.er1 >conftest.err
27176 cat conftest.err >&5
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); } &&
27179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27180 { (case "(($ac_try" in
27181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27182 *) ac_try_echo=$ac_try;;
27184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27185 (eval "$ac_try") 2>&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); }; } &&
27189 { ac_try='test -s conftest$ac_exeext'
27190 { (case "(($ac_try" in
27191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192 *) ac_try_echo=$ac_try;;
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195 (eval "$ac_try") 2>&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); }; }; then
27199 ac_cv_search_dlopen=$ac_res
27201 echo "$as_me: failed program was:" >&5
27202 sed 's/^/| /' conftest.$ac_ext >&5
27207 rm -f core conftest.err conftest.$ac_objext \
27209 if test "${ac_cv_search_dlopen+set}" = set; then
27213 if test "${ac_cv_search_dlopen+set}" = set; then
27216 ac_cv_search_dlopen=no
27218 rm conftest.$ac_ext
27219 LIBS=$ac_func_search_save_LIBS
27221 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27222 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27223 ac_res=$ac_cv_search_dlopen
27224 if test "$ac_res" != no; then
27225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27227 cat >>confdefs.h <<\_ACEOF
27228 #define HAVE_DLOPEN 1
27232 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27233 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27237 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27238 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27239 if test "${ac_cv_search_mallinfo+set}" = set; then
27240 echo $ECHO_N "(cached) $ECHO_C" >&6
27242 ac_func_search_save_LIBS=$LIBS
27243 cat >conftest.$ac_ext <<_ACEOF
27246 cat confdefs.h >>conftest.$ac_ext
27247 cat >>conftest.$ac_ext <<_ACEOF
27248 /* end confdefs.h. */
27250 /* Override any GCC internal prototype to avoid an error.
27251 Use char because int might match the return type of a GCC
27252 builtin and then its argument prototype would still apply. */
27260 return mallinfo ();
27265 for ac_lib in '' malloc; do
27266 if test -z "$ac_lib"; then
27267 ac_res="none required"
27270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27272 rm -f conftest.$ac_objext conftest$ac_exeext
27273 if { (ac_try="$ac_link"
27274 case "(($ac_try" in
27275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276 *) ac_try_echo=$ac_try;;
27278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279 (eval "$ac_link") 2>conftest.er1
27281 grep -v '^ *+' conftest.er1 >conftest.err
27283 cat conftest.err >&5
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); } &&
27286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27287 { (case "(($ac_try" in
27288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27289 *) ac_try_echo=$ac_try;;
27291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27292 (eval "$ac_try") 2>&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); }; } &&
27296 { ac_try='test -s conftest$ac_exeext'
27297 { (case "(($ac_try" in
27298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299 *) ac_try_echo=$ac_try;;
27301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302 (eval "$ac_try") 2>&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; }; then
27306 ac_cv_search_mallinfo=$ac_res
27308 echo "$as_me: failed program was:" >&5
27309 sed 's/^/| /' conftest.$ac_ext >&5
27314 rm -f core conftest.err conftest.$ac_objext \
27316 if test "${ac_cv_search_mallinfo+set}" = set; then
27320 if test "${ac_cv_search_mallinfo+set}" = set; then
27323 ac_cv_search_mallinfo=no
27325 rm conftest.$ac_ext
27326 LIBS=$ac_func_search_save_LIBS
27328 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27329 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27330 ac_res=$ac_cv_search_mallinfo
27331 if test "$ac_res" != no; then
27332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27334 cat >>confdefs.h <<\_ACEOF
27335 #define HAVE_MALLINFO 1
27341 if test "$ENABLE_THREADS" -eq 1 ; then
27343 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27344 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27345 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27346 echo $ECHO_N "(cached) $ECHO_C" >&6
27348 ac_check_lib_save_LIBS=$LIBS
27349 LIBS="-lpthread $LIBS"
27350 cat >conftest.$ac_ext <<_ACEOF
27353 cat confdefs.h >>conftest.$ac_ext
27354 cat >>conftest.$ac_ext <<_ACEOF
27355 /* end confdefs.h. */
27357 /* Override any GCC internal prototype to avoid an error.
27358 Use char because int might match the return type of a GCC
27359 builtin and then its argument prototype would still apply. */
27363 char pthread_mutex_init ();
27367 return pthread_mutex_init ();
27372 rm -f conftest.$ac_objext conftest$ac_exeext
27373 if { (ac_try="$ac_link"
27374 case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_link") 2>conftest.er1
27381 grep -v '^ *+' conftest.er1 >conftest.err
27383 cat conftest.err >&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } &&
27386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27387 { (case "(($ac_try" in
27388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389 *) ac_try_echo=$ac_try;;
27391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392 (eval "$ac_try") 2>&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); }; } &&
27396 { ac_try='test -s conftest$ac_exeext'
27397 { (case "(($ac_try" in
27398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399 *) ac_try_echo=$ac_try;;
27401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402 (eval "$ac_try") 2>&5
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); }; }; then
27406 ac_cv_lib_pthread_pthread_mutex_init=yes
27408 echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27411 ac_cv_lib_pthread_pthread_mutex_init=no
27414 rm -f core conftest.err conftest.$ac_objext \
27415 conftest$ac_exeext conftest.$ac_ext
27416 LIBS=$ac_check_lib_save_LIBS
27418 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27419 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27420 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27421 cat >>confdefs.h <<_ACEOF
27422 #define HAVE_LIBPTHREAD 1
27425 LIBS="-lpthread $LIBS"
27429 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27430 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27431 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27432 echo $ECHO_N "(cached) $ECHO_C" >&6
27434 ac_func_search_save_LIBS=$LIBS
27435 cat >conftest.$ac_ext <<_ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h. */
27442 /* Override any GCC internal prototype to avoid an error.
27443 Use char because int might match the return type of a GCC
27444 builtin and then its argument prototype would still apply. */
27448 char pthread_mutex_lock ();
27452 return pthread_mutex_lock ();
27457 for ac_lib in '' pthread; do
27458 if test -z "$ac_lib"; then
27459 ac_res="none required"
27462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27464 rm -f conftest.$ac_objext conftest$ac_exeext
27465 if { (ac_try="$ac_link"
27466 case "(($ac_try" in
27467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471 (eval "$ac_link") 2>conftest.er1
27473 grep -v '^ *+' conftest.er1 >conftest.err
27475 cat conftest.err >&5
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); } &&
27478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27479 { (case "(($ac_try" in
27480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481 *) ac_try_echo=$ac_try;;
27483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27484 (eval "$ac_try") 2>&5
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); }; } &&
27488 { ac_try='test -s conftest$ac_exeext'
27489 { (case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_try") 2>&5
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; }; then
27498 ac_cv_search_pthread_mutex_lock=$ac_res
27500 echo "$as_me: failed program was:" >&5
27501 sed 's/^/| /' conftest.$ac_ext >&5
27506 rm -f core conftest.err conftest.$ac_objext \
27508 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27512 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27515 ac_cv_search_pthread_mutex_lock=no
27517 rm conftest.$ac_ext
27518 LIBS=$ac_func_search_save_LIBS
27520 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27521 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27522 ac_res=$ac_cv_search_pthread_mutex_lock
27523 if test "$ac_res" != no; then
27524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27526 cat >>confdefs.h <<\_ACEOF
27527 #define HAVE_PTHREAD_MUTEX_LOCK 1
27540 ac_header_dirent=no
27541 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27542 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27543 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27544 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27546 echo $ECHO_N "(cached) $ECHO_C" >&6
27548 cat >conftest.$ac_ext <<_ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h. */
27554 #include <sys/types.h>
27566 rm -f conftest.$ac_objext
27567 if { (ac_try="$ac_compile"
27568 case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_compile") 2>conftest.er1
27575 grep -v '^ *+' conftest.er1 >conftest.err
27577 cat conftest.err >&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); } &&
27580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27581 { (case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_try") 2>&5
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; } &&
27590 { ac_try='test -s conftest.$ac_objext'
27591 { (case "(($ac_try" in
27592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27593 *) ac_try_echo=$ac_try;;
27595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27596 (eval "$ac_try") 2>&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); }; }; then
27600 eval "$as_ac_Header=yes"
27602 echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27605 eval "$as_ac_Header=no"
27608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27610 ac_res=`eval echo '${'$as_ac_Header'}'`
27611 { echo "$as_me:$LINENO: result: $ac_res" >&5
27612 echo "${ECHO_T}$ac_res" >&6; }
27613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27614 cat >>confdefs.h <<_ACEOF
27615 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27618 ac_header_dirent=$ac_hdr; break
27622 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27623 if test $ac_header_dirent = dirent.h; then
27624 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27625 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27626 if test "${ac_cv_search_opendir+set}" = set; then
27627 echo $ECHO_N "(cached) $ECHO_C" >&6
27629 ac_func_search_save_LIBS=$LIBS
27630 cat >conftest.$ac_ext <<_ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h. */
27637 /* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
27652 for ac_lib in '' dir; do
27653 if test -z "$ac_lib"; then
27654 ac_res="none required"
27657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27659 rm -f conftest.$ac_objext conftest$ac_exeext
27660 if { (ac_try="$ac_link"
27661 case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_link") 2>conftest.er1
27668 grep -v '^ *+' conftest.er1 >conftest.err
27670 cat conftest.err >&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } &&
27673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27674 { (case "(($ac_try" in
27675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676 *) ac_try_echo=$ac_try;;
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679 (eval "$ac_try") 2>&5
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); }; } &&
27683 { ac_try='test -s conftest$ac_exeext'
27684 { (case "(($ac_try" in
27685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27686 *) ac_try_echo=$ac_try;;
27688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27689 (eval "$ac_try") 2>&5
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); }; }; then
27693 ac_cv_search_opendir=$ac_res
27695 echo "$as_me: failed program was:" >&5
27696 sed 's/^/| /' conftest.$ac_ext >&5
27701 rm -f core conftest.err conftest.$ac_objext \
27703 if test "${ac_cv_search_opendir+set}" = set; then
27707 if test "${ac_cv_search_opendir+set}" = set; then
27710 ac_cv_search_opendir=no
27712 rm conftest.$ac_ext
27713 LIBS=$ac_func_search_save_LIBS
27715 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27716 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27717 ac_res=$ac_cv_search_opendir
27718 if test "$ac_res" != no; then
27719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27724 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27725 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27726 if test "${ac_cv_search_opendir+set}" = set; then
27727 echo $ECHO_N "(cached) $ECHO_C" >&6
27729 ac_func_search_save_LIBS=$LIBS
27730 cat >conftest.$ac_ext <<_ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h. */
27737 /* Override any GCC internal prototype to avoid an error.
27738 Use char because int might match the return type of a GCC
27739 builtin and then its argument prototype would still apply. */
27752 for ac_lib in '' x; do
27753 if test -z "$ac_lib"; then
27754 ac_res="none required"
27757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27759 rm -f conftest.$ac_objext conftest$ac_exeext
27760 if { (ac_try="$ac_link"
27761 case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_link") 2>conftest.er1
27768 grep -v '^ *+' conftest.er1 >conftest.err
27770 cat conftest.err >&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); } &&
27773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27774 { (case "(($ac_try" in
27775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27776 *) ac_try_echo=$ac_try;;
27778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27779 (eval "$ac_try") 2>&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; } &&
27783 { ac_try='test -s conftest$ac_exeext'
27784 { (case "(($ac_try" in
27785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27786 *) ac_try_echo=$ac_try;;
27788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789 (eval "$ac_try") 2>&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
27793 ac_cv_search_opendir=$ac_res
27795 echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27801 rm -f core conftest.err conftest.$ac_objext \
27803 if test "${ac_cv_search_opendir+set}" = set; then
27807 if test "${ac_cv_search_opendir+set}" = set; then
27810 ac_cv_search_opendir=no
27812 rm conftest.$ac_ext
27813 LIBS=$ac_func_search_save_LIBS
27815 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27816 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27817 ac_res=$ac_cv_search_opendir
27818 if test "$ac_res" != no; then
27819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27825 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27826 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27827 if test "${ac_cv_header_mmap_anon+set}" = set; then
27828 echo $ECHO_N "(cached) $ECHO_C" >&6
27831 ac_cpp='$CPP $CPPFLAGS'
27832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27836 cat >conftest.$ac_ext <<_ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h. */
27842 #include <sys/mman.h>
27843 #include <unistd.h>
27848 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27853 rm -f conftest.$ac_objext
27854 if { (ac_try="$ac_compile"
27855 case "(($ac_try" in
27856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860 (eval "$ac_compile") 2>conftest.er1
27862 grep -v '^ *+' conftest.er1 >conftest.err
27864 cat conftest.err >&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); } &&
27867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27868 { (case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_try") 2>&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; } &&
27877 { ac_try='test -s conftest.$ac_objext'
27878 { (case "(($ac_try" in
27879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880 *) ac_try_echo=$ac_try;;
27882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883 (eval "$ac_try") 2>&5
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); }; }; then
27887 ac_cv_header_mmap_anon=yes
27889 echo "$as_me: failed program was:" >&5
27890 sed 's/^/| /' conftest.$ac_ext >&5
27892 ac_cv_header_mmap_anon=no
27895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27897 ac_cpp='$CPP $CPPFLAGS'
27898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27904 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27905 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27906 if test "$ac_cv_header_mmap_anon" = yes; then
27908 cat >>confdefs.h <<\_ACEOF
27909 #define HAVE_MMAP_ANONYMOUS 1
27914 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27915 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27916 if test "${ac_cv_header_stat_broken+set}" = set; then
27917 echo $ECHO_N "(cached) $ECHO_C" >&6
27919 cat >conftest.$ac_ext <<_ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h. */
27925 #include <sys/types.h>
27926 #include <sys/stat.h>
27928 #if defined S_ISBLK && defined S_IFDIR
27929 # if S_ISBLK (S_IFDIR)
27934 #if defined S_ISBLK && defined S_IFCHR
27935 # if S_ISBLK (S_IFCHR)
27940 #if defined S_ISLNK && defined S_IFREG
27941 # if S_ISLNK (S_IFREG)
27946 #if defined S_ISSOCK && defined S_IFREG
27947 # if S_ISSOCK (S_IFREG)
27953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27954 $EGREP "You lose" >/dev/null 2>&1; then
27955 ac_cv_header_stat_broken=yes
27957 ac_cv_header_stat_broken=no
27962 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27963 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27964 if test $ac_cv_header_stat_broken = yes; then
27966 cat >>confdefs.h <<\_ACEOF
27967 #define STAT_MACROS_BROKEN 1
27972 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27973 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27974 if test "${ac_cv_header_stdc+set}" = set; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27977 cat >conftest.$ac_ext <<_ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h. */
27983 #include <stdlib.h>
27984 #include <stdarg.h>
27985 #include <string.h>
27996 rm -f conftest.$ac_objext
27997 if { (ac_try="$ac_compile"
27998 case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_compile") 2>conftest.er1
28005 grep -v '^ *+' conftest.er1 >conftest.err
28007 cat conftest.err >&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); } &&
28010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28011 { (case "(($ac_try" in
28012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013 *) ac_try_echo=$ac_try;;
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016 (eval "$ac_try") 2>&5
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); }; } &&
28020 { ac_try='test -s conftest.$ac_objext'
28021 { (case "(($ac_try" in
28022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023 *) ac_try_echo=$ac_try;;
28025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026 (eval "$ac_try") 2>&5
28028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029 (exit $ac_status); }; }; then
28030 ac_cv_header_stdc=yes
28032 echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28035 ac_cv_header_stdc=no
28038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28040 if test $ac_cv_header_stdc = yes; then
28041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28042 cat >conftest.$ac_ext <<_ACEOF
28045 cat confdefs.h >>conftest.$ac_ext
28046 cat >>conftest.$ac_ext <<_ACEOF
28047 /* end confdefs.h. */
28048 #include <string.h>
28051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28052 $EGREP "memchr" >/dev/null 2>&1; then
28055 ac_cv_header_stdc=no
28061 if test $ac_cv_header_stdc = yes; then
28062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28063 cat >conftest.$ac_ext <<_ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h. */
28069 #include <stdlib.h>
28072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28073 $EGREP "free" >/dev/null 2>&1; then
28076 ac_cv_header_stdc=no
28082 if test $ac_cv_header_stdc = yes; then
28083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28084 if test "$cross_compiling" = yes; then
28087 cat >conftest.$ac_ext <<_ACEOF
28090 cat confdefs.h >>conftest.$ac_ext
28091 cat >>conftest.$ac_ext <<_ACEOF
28092 /* end confdefs.h. */
28094 #include <stdlib.h>
28095 #if ((' ' & 0x0FF) == 0x020)
28096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28099 # define ISLOWER(c) \
28100 (('a' <= (c) && (c) <= 'i') \
28101 || ('j' <= (c) && (c) <= 'r') \
28102 || ('s' <= (c) && (c) <= 'z'))
28103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28111 for (i = 0; i < 256; i++)
28112 if (XOR (islower (i), ISLOWER (i))
28113 || toupper (i) != TOUPPER (i))
28118 rm -f conftest$ac_exeext
28119 if { (ac_try="$ac_link"
28120 case "(($ac_try" in
28121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28122 *) ac_try_echo=$ac_try;;
28124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28125 (eval "$ac_link") 2>&5
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28129 { (case "(($ac_try" in
28130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131 *) ac_try_echo=$ac_try;;
28133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134 (eval "$ac_try") 2>&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); }; }; then
28140 echo "$as_me: program exited with status $ac_status" >&5
28141 echo "$as_me: failed program was:" >&5
28142 sed 's/^/| /' conftest.$ac_ext >&5
28144 ( exit $ac_status )
28145 ac_cv_header_stdc=no
28147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28153 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28154 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28155 if test $ac_cv_header_stdc = yes; then
28157 cat >>confdefs.h <<\_ACEOF
28158 #define STDC_HEADERS 1
28163 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28164 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28165 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28168 cat >conftest.$ac_ext <<_ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h. */
28174 #include <sys/types.h>
28175 #include <sys/wait.h>
28176 #ifndef WEXITSTATUS
28177 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28180 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28188 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28193 rm -f conftest.$ac_objext
28194 if { (ac_try="$ac_compile"
28195 case "(($ac_try" in
28196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197 *) ac_try_echo=$ac_try;;
28199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200 (eval "$ac_compile") 2>conftest.er1
28202 grep -v '^ *+' conftest.er1 >conftest.err
28204 cat conftest.err >&5
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); } &&
28207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28208 { (case "(($ac_try" in
28209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28210 *) ac_try_echo=$ac_try;;
28212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28213 (eval "$ac_try") 2>&5
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); }; } &&
28217 { ac_try='test -s conftest.$ac_objext'
28218 { (case "(($ac_try" in
28219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220 *) ac_try_echo=$ac_try;;
28222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28223 (eval "$ac_try") 2>&5
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); }; }; then
28227 ac_cv_header_sys_wait_h=yes
28229 echo "$as_me: failed program was:" >&5
28230 sed 's/^/| /' conftest.$ac_ext >&5
28232 ac_cv_header_sys_wait_h=no
28235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28237 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28238 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28239 if test $ac_cv_header_sys_wait_h = yes; then
28241 cat >>confdefs.h <<\_ACEOF
28242 #define HAVE_SYS_WAIT_H 1
28247 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28248 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28249 if test "${ac_cv_header_time+set}" = set; then
28250 echo $ECHO_N "(cached) $ECHO_C" >&6
28252 cat >conftest.$ac_ext <<_ACEOF
28255 cat confdefs.h >>conftest.$ac_ext
28256 cat >>conftest.$ac_ext <<_ACEOF
28257 /* end confdefs.h. */
28258 #include <sys/types.h>
28259 #include <sys/time.h>
28265 if ((struct tm *) 0)
28271 rm -f conftest.$ac_objext
28272 if { (ac_try="$ac_compile"
28273 case "(($ac_try" in
28274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275 *) ac_try_echo=$ac_try;;
28277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278 (eval "$ac_compile") 2>conftest.er1
28280 grep -v '^ *+' conftest.er1 >conftest.err
28282 cat conftest.err >&5
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); } &&
28285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28286 { (case "(($ac_try" in
28287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288 *) ac_try_echo=$ac_try;;
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291 (eval "$ac_try") 2>&5
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); }; } &&
28295 { ac_try='test -s conftest.$ac_objext'
28296 { (case "(($ac_try" in
28297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28298 *) ac_try_echo=$ac_try;;
28300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28301 (eval "$ac_try") 2>&5
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; }; then
28305 ac_cv_header_time=yes
28307 echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28310 ac_cv_header_time=no
28313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28315 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28316 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28317 if test $ac_cv_header_time = yes; then
28319 cat >>confdefs.h <<\_ACEOF
28320 #define TIME_WITH_SYS_TIME 1
28332 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28339 echo $ECHO_N "(cached) $ECHO_C" >&6
28341 ac_res=`eval echo '${'$as_ac_Header'}'`
28342 { echo "$as_me:$LINENO: result: $ac_res" >&5
28343 echo "${ECHO_T}$ac_res" >&6; }
28345 # Is the header compilable?
28346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28348 cat >conftest.$ac_ext <<_ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h. */
28354 $ac_includes_default
28355 #include <$ac_header>
28357 rm -f conftest.$ac_objext
28358 if { (ac_try="$ac_compile"
28359 case "(($ac_try" in
28360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361 *) ac_try_echo=$ac_try;;
28363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_compile") 2>conftest.er1
28366 grep -v '^ *+' conftest.er1 >conftest.err
28368 cat conftest.err >&5
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); } &&
28371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28372 { (case "(($ac_try" in
28373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28374 *) ac_try_echo=$ac_try;;
28376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28377 (eval "$ac_try") 2>&5
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; } &&
28381 { ac_try='test -s conftest.$ac_objext'
28382 { (case "(($ac_try" in
28383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28384 *) ac_try_echo=$ac_try;;
28386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28387 (eval "$ac_try") 2>&5
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); }; }; then
28391 ac_header_compiler=yes
28393 echo "$as_me: failed program was:" >&5
28394 sed 's/^/| /' conftest.$ac_ext >&5
28396 ac_header_compiler=no
28399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28401 echo "${ECHO_T}$ac_header_compiler" >&6; }
28403 # Is the header present?
28404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28406 cat >conftest.$ac_ext <<_ACEOF
28409 cat confdefs.h >>conftest.$ac_ext
28410 cat >>conftest.$ac_ext <<_ACEOF
28411 /* end confdefs.h. */
28412 #include <$ac_header>
28414 if { (ac_try="$ac_cpp conftest.$ac_ext"
28415 case "(($ac_try" in
28416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417 *) ac_try_echo=$ac_try;;
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28422 grep -v '^ *+' conftest.er1 >conftest.err
28424 cat conftest.err >&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); } >/dev/null; then
28427 if test -s conftest.err; then
28428 ac_cpp_err=$ac_c_preproc_warn_flag
28429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28436 if test -z "$ac_cpp_err"; then
28437 ac_header_preproc=yes
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28442 ac_header_preproc=no
28445 rm -f conftest.err conftest.$ac_ext
28446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28447 echo "${ECHO_T}$ac_header_preproc" >&6; }
28449 # So? What about this header?
28450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28456 ac_header_preproc=yes
28459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28472 ## ----------------------------------- ##
28473 ## Report this to llvmbugs@cs.uiuc.edu ##
28474 ## ----------------------------------- ##
28476 ) | sed "s/^/$as_me: WARNING: /" >&2
28479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28482 echo $ECHO_N "(cached) $ECHO_C" >&6
28484 eval "$as_ac_Header=\$ac_header_preproc"
28486 ac_res=`eval echo '${'$as_ac_Header'}'`
28487 { echo "$as_me:$LINENO: result: $ac_res" >&5
28488 echo "${ECHO_T}$ac_res" >&6; }
28491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28492 cat >>confdefs.h <<_ACEOF
28493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28506 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28513 echo $ECHO_N "(cached) $ECHO_C" >&6
28515 ac_res=`eval echo '${'$as_ac_Header'}'`
28516 { echo "$as_me:$LINENO: result: $ac_res" >&5
28517 echo "${ECHO_T}$ac_res" >&6; }
28519 # Is the header compilable?
28520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28522 cat >conftest.$ac_ext <<_ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h. */
28528 $ac_includes_default
28529 #include <$ac_header>
28531 rm -f conftest.$ac_objext
28532 if { (ac_try="$ac_compile"
28533 case "(($ac_try" in
28534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535 *) ac_try_echo=$ac_try;;
28537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538 (eval "$ac_compile") 2>conftest.er1
28540 grep -v '^ *+' conftest.er1 >conftest.err
28542 cat conftest.err >&5
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); } &&
28545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28546 { (case "(($ac_try" in
28547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28548 *) ac_try_echo=$ac_try;;
28550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28551 (eval "$ac_try") 2>&5
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); }; } &&
28555 { ac_try='test -s conftest.$ac_objext'
28556 { (case "(($ac_try" in
28557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28558 *) ac_try_echo=$ac_try;;
28560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28561 (eval "$ac_try") 2>&5
28563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564 (exit $ac_status); }; }; then
28565 ac_header_compiler=yes
28567 echo "$as_me: failed program was:" >&5
28568 sed 's/^/| /' conftest.$ac_ext >&5
28570 ac_header_compiler=no
28573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28575 echo "${ECHO_T}$ac_header_compiler" >&6; }
28577 # Is the header present?
28578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28580 cat >conftest.$ac_ext <<_ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h. */
28586 #include <$ac_header>
28588 if { (ac_try="$ac_cpp conftest.$ac_ext"
28589 case "(($ac_try" in
28590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591 *) ac_try_echo=$ac_try;;
28593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28596 grep -v '^ *+' conftest.er1 >conftest.err
28598 cat conftest.err >&5
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); } >/dev/null; then
28601 if test -s conftest.err; then
28602 ac_cpp_err=$ac_c_preproc_warn_flag
28603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28610 if test -z "$ac_cpp_err"; then
28611 ac_header_preproc=yes
28613 echo "$as_me: failed program was:" >&5
28614 sed 's/^/| /' conftest.$ac_ext >&5
28616 ac_header_preproc=no
28619 rm -f conftest.err conftest.$ac_ext
28620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28621 echo "${ECHO_T}$ac_header_preproc" >&6; }
28623 # So? What about this header?
28624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28630 ac_header_preproc=yes
28633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28646 ## ----------------------------------- ##
28647 ## Report this to llvmbugs@cs.uiuc.edu ##
28648 ## ----------------------------------- ##
28650 ) | sed "s/^/$as_me: WARNING: /" >&2
28653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28656 echo $ECHO_N "(cached) $ECHO_C" >&6
28658 eval "$as_ac_Header=\$ac_header_preproc"
28660 ac_res=`eval echo '${'$as_ac_Header'}'`
28661 { echo "$as_me:$LINENO: result: $ac_res" >&5
28662 echo "${ECHO_T}$ac_res" >&6; }
28665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28666 cat >>confdefs.h <<_ACEOF
28667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28679 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28686 echo $ECHO_N "(cached) $ECHO_C" >&6
28688 ac_res=`eval echo '${'$as_ac_Header'}'`
28689 { echo "$as_me:$LINENO: result: $ac_res" >&5
28690 echo "${ECHO_T}$ac_res" >&6; }
28692 # Is the header compilable?
28693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28695 cat >conftest.$ac_ext <<_ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h. */
28701 $ac_includes_default
28702 #include <$ac_header>
28704 rm -f conftest.$ac_objext
28705 if { (ac_try="$ac_compile"
28706 case "(($ac_try" in
28707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_compile") 2>conftest.er1
28713 grep -v '^ *+' conftest.er1 >conftest.err
28715 cat conftest.err >&5
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); } &&
28718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28719 { (case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_try") 2>&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; } &&
28728 { ac_try='test -s conftest.$ac_objext'
28729 { (case "(($ac_try" in
28730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731 *) ac_try_echo=$ac_try;;
28733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734 (eval "$ac_try") 2>&5
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; }; then
28738 ac_header_compiler=yes
28740 echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28743 ac_header_compiler=no
28746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28748 echo "${ECHO_T}$ac_header_compiler" >&6; }
28750 # Is the header present?
28751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28753 cat >conftest.$ac_ext <<_ACEOF
28756 cat confdefs.h >>conftest.$ac_ext
28757 cat >>conftest.$ac_ext <<_ACEOF
28758 /* end confdefs.h. */
28759 #include <$ac_header>
28761 if { (ac_try="$ac_cpp conftest.$ac_ext"
28762 case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28769 grep -v '^ *+' conftest.er1 >conftest.err
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } >/dev/null; then
28774 if test -s conftest.err; then
28775 ac_cpp_err=$ac_c_preproc_warn_flag
28776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28783 if test -z "$ac_cpp_err"; then
28784 ac_header_preproc=yes
28786 echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28789 ac_header_preproc=no
28792 rm -f conftest.err conftest.$ac_ext
28793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28794 echo "${ECHO_T}$ac_header_preproc" >&6; }
28796 # So? What about this header?
28797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28803 ac_header_preproc=yes
28806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28819 ## ----------------------------------- ##
28820 ## Report this to llvmbugs@cs.uiuc.edu ##
28821 ## ----------------------------------- ##
28823 ) | sed "s/^/$as_me: WARNING: /" >&2
28826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28831 eval "$as_ac_Header=\$ac_header_preproc"
28833 ac_res=`eval echo '${'$as_ac_Header'}'`
28834 { echo "$as_me:$LINENO: result: $ac_res" >&5
28835 echo "${ECHO_T}$ac_res" >&6; }
28838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28839 cat >>confdefs.h <<_ACEOF
28840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28850 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28857 echo $ECHO_N "(cached) $ECHO_C" >&6
28859 ac_res=`eval echo '${'$as_ac_Header'}'`
28860 { echo "$as_me:$LINENO: result: $ac_res" >&5
28861 echo "${ECHO_T}$ac_res" >&6; }
28863 # Is the header compilable?
28864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28866 cat >conftest.$ac_ext <<_ACEOF
28869 cat confdefs.h >>conftest.$ac_ext
28870 cat >>conftest.$ac_ext <<_ACEOF
28871 /* end confdefs.h. */
28872 $ac_includes_default
28873 #include <$ac_header>
28875 rm -f conftest.$ac_objext
28876 if { (ac_try="$ac_compile"
28877 case "(($ac_try" in
28878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28879 *) ac_try_echo=$ac_try;;
28881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28882 (eval "$ac_compile") 2>conftest.er1
28884 grep -v '^ *+' conftest.er1 >conftest.err
28886 cat conftest.err >&5
28887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); } &&
28889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28890 { (case "(($ac_try" in
28891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28892 *) ac_try_echo=$ac_try;;
28894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28895 (eval "$ac_try") 2>&5
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); }; } &&
28899 { ac_try='test -s conftest.$ac_objext'
28900 { (case "(($ac_try" in
28901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28902 *) ac_try_echo=$ac_try;;
28904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28905 (eval "$ac_try") 2>&5
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; }; then
28909 ac_header_compiler=yes
28911 echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28914 ac_header_compiler=no
28917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28919 echo "${ECHO_T}$ac_header_compiler" >&6; }
28921 # Is the header present?
28922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28924 cat >conftest.$ac_ext <<_ACEOF
28927 cat confdefs.h >>conftest.$ac_ext
28928 cat >>conftest.$ac_ext <<_ACEOF
28929 /* end confdefs.h. */
28930 #include <$ac_header>
28932 if { (ac_try="$ac_cpp conftest.$ac_ext"
28933 case "(($ac_try" in
28934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935 *) ac_try_echo=$ac_try;;
28937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28940 grep -v '^ *+' conftest.er1 >conftest.err
28942 cat conftest.err >&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); } >/dev/null; then
28945 if test -s conftest.err; then
28946 ac_cpp_err=$ac_c_preproc_warn_flag
28947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28954 if test -z "$ac_cpp_err"; then
28955 ac_header_preproc=yes
28957 echo "$as_me: failed program was:" >&5
28958 sed 's/^/| /' conftest.$ac_ext >&5
28960 ac_header_preproc=no
28963 rm -f conftest.err conftest.$ac_ext
28964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28965 echo "${ECHO_T}$ac_header_preproc" >&6; }
28967 # So? What about this header?
28968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28974 ac_header_preproc=yes
28977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28990 ## ----------------------------------- ##
28991 ## Report this to llvmbugs@cs.uiuc.edu ##
28992 ## ----------------------------------- ##
28994 ) | sed "s/^/$as_me: WARNING: /" >&2
28997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29000 echo $ECHO_N "(cached) $ECHO_C" >&6
29002 eval "$as_ac_Header=\$ac_header_preproc"
29004 ac_res=`eval echo '${'$as_ac_Header'}'`
29005 { echo "$as_me:$LINENO: result: $ac_res" >&5
29006 echo "${ECHO_T}$ac_res" >&6; }
29009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29010 cat >>confdefs.h <<_ACEOF
29011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29018 if test "$ENABLE_THREADS" -eq 1 ; then
29020 for ac_header in pthread.h
29022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29027 echo $ECHO_N "(cached) $ECHO_C" >&6
29029 ac_res=`eval echo '${'$as_ac_Header'}'`
29030 { echo "$as_me:$LINENO: result: $ac_res" >&5
29031 echo "${ECHO_T}$ac_res" >&6; }
29033 # Is the header compilable?
29034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29036 cat >conftest.$ac_ext <<_ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h. */
29042 $ac_includes_default
29043 #include <$ac_header>
29045 rm -f conftest.$ac_objext
29046 if { (ac_try="$ac_compile"
29047 case "(($ac_try" in
29048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049 *) ac_try_echo=$ac_try;;
29051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052 (eval "$ac_compile") 2>conftest.er1
29054 grep -v '^ *+' conftest.er1 >conftest.err
29056 cat conftest.err >&5
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); } &&
29059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29060 { (case "(($ac_try" in
29061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062 *) ac_try_echo=$ac_try;;
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065 (eval "$ac_try") 2>&5
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); }; } &&
29069 { ac_try='test -s conftest.$ac_objext'
29070 { (case "(($ac_try" in
29071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072 *) ac_try_echo=$ac_try;;
29074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075 (eval "$ac_try") 2>&5
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; }; then
29079 ac_header_compiler=yes
29081 echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29084 ac_header_compiler=no
29087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29089 echo "${ECHO_T}$ac_header_compiler" >&6; }
29091 # Is the header present?
29092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29094 cat >conftest.$ac_ext <<_ACEOF
29097 cat confdefs.h >>conftest.$ac_ext
29098 cat >>conftest.$ac_ext <<_ACEOF
29099 /* end confdefs.h. */
29100 #include <$ac_header>
29102 if { (ac_try="$ac_cpp conftest.$ac_ext"
29103 case "(($ac_try" in
29104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29105 *) ac_try_echo=$ac_try;;
29107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29110 grep -v '^ *+' conftest.er1 >conftest.err
29112 cat conftest.err >&5
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); } >/dev/null; then
29115 if test -s conftest.err; then
29116 ac_cpp_err=$ac_c_preproc_warn_flag
29117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29124 if test -z "$ac_cpp_err"; then
29125 ac_header_preproc=yes
29127 echo "$as_me: failed program was:" >&5
29128 sed 's/^/| /' conftest.$ac_ext >&5
29130 ac_header_preproc=no
29133 rm -f conftest.err conftest.$ac_ext
29134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29135 echo "${ECHO_T}$ac_header_preproc" >&6; }
29137 # So? What about this header?
29138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29144 ac_header_preproc=yes
29147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29160 ## ----------------------------------- ##
29161 ## Report this to llvmbugs@cs.uiuc.edu ##
29162 ## ----------------------------------- ##
29164 ) | sed "s/^/$as_me: WARNING: /" >&2
29167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29170 echo $ECHO_N "(cached) $ECHO_C" >&6
29172 eval "$as_ac_Header=\$ac_header_preproc"
29174 ac_res=`eval echo '${'$as_ac_Header'}'`
29175 { echo "$as_me:$LINENO: result: $ac_res" >&5
29176 echo "${ECHO_T}$ac_res" >&6; }
29179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29180 cat >>confdefs.h <<_ACEOF
29181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29192 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29193 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29194 if test "${ac_cv_huge_val_sanity+set}" = set; then
29195 echo $ECHO_N "(cached) $ECHO_C" >&6
29199 ac_cpp='$CXXCPP $CPPFLAGS'
29200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29205 if test "$cross_compiling" = yes; then
29206 ac_cv_huge_val_sanity=yes
29208 cat >conftest.$ac_ext <<_ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h. */
29218 double x = HUGE_VAL; return x != x;
29223 rm -f conftest$ac_exeext
29224 if { (ac_try="$ac_link"
29225 case "(($ac_try" in
29226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29227 *) ac_try_echo=$ac_try;;
29229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29230 (eval "$ac_link") 2>&5
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29234 { (case "(($ac_try" in
29235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29236 *) ac_try_echo=$ac_try;;
29238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29239 (eval "$ac_try") 2>&5
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); }; }; then
29243 ac_cv_huge_val_sanity=yes
29245 echo "$as_me: program exited with status $ac_status" >&5
29246 echo "$as_me: failed program was:" >&5
29247 sed 's/^/| /' conftest.$ac_ext >&5
29249 ( exit $ac_status )
29250 ac_cv_huge_val_sanity=no
29252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29257 ac_cpp='$CPP $CPPFLAGS'
29258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29264 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29265 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29266 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29269 { echo "$as_me:$LINENO: checking for pid_t" >&5
29270 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29271 if test "${ac_cv_type_pid_t+set}" = set; then
29272 echo $ECHO_N "(cached) $ECHO_C" >&6
29274 cat >conftest.$ac_ext <<_ACEOF
29277 cat confdefs.h >>conftest.$ac_ext
29278 cat >>conftest.$ac_ext <<_ACEOF
29279 /* end confdefs.h. */
29280 $ac_includes_default
29281 typedef pid_t ac__type_new_;
29285 if ((ac__type_new_ *) 0)
29287 if (sizeof (ac__type_new_))
29293 rm -f conftest.$ac_objext
29294 if { (ac_try="$ac_compile"
29295 case "(($ac_try" in
29296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29297 *) ac_try_echo=$ac_try;;
29299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29300 (eval "$ac_compile") 2>conftest.er1
29302 grep -v '^ *+' conftest.er1 >conftest.err
29304 cat conftest.err >&5
29305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); } &&
29307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29308 { (case "(($ac_try" in
29309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29310 *) ac_try_echo=$ac_try;;
29312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29313 (eval "$ac_try") 2>&5
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); }; } &&
29317 { ac_try='test -s conftest.$ac_objext'
29318 { (case "(($ac_try" in
29319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29320 *) ac_try_echo=$ac_try;;
29322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29323 (eval "$ac_try") 2>&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; }; then
29327 ac_cv_type_pid_t=yes
29329 echo "$as_me: failed program was:" >&5
29330 sed 's/^/| /' conftest.$ac_ext >&5
29332 ac_cv_type_pid_t=no
29335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29337 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29338 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29339 if test $ac_cv_type_pid_t = yes; then
29343 cat >>confdefs.h <<_ACEOF
29349 { echo "$as_me:$LINENO: checking for size_t" >&5
29350 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29351 if test "${ac_cv_type_size_t+set}" = set; then
29352 echo $ECHO_N "(cached) $ECHO_C" >&6
29354 cat >conftest.$ac_ext <<_ACEOF
29357 cat confdefs.h >>conftest.$ac_ext
29358 cat >>conftest.$ac_ext <<_ACEOF
29359 /* end confdefs.h. */
29360 $ac_includes_default
29361 typedef size_t ac__type_new_;
29365 if ((ac__type_new_ *) 0)
29367 if (sizeof (ac__type_new_))
29373 rm -f conftest.$ac_objext
29374 if { (ac_try="$ac_compile"
29375 case "(($ac_try" in
29376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377 *) ac_try_echo=$ac_try;;
29379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29380 (eval "$ac_compile") 2>conftest.er1
29382 grep -v '^ *+' conftest.er1 >conftest.err
29384 cat conftest.err >&5
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); } &&
29387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29388 { (case "(($ac_try" in
29389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390 *) ac_try_echo=$ac_try;;
29392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393 (eval "$ac_try") 2>&5
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); }; } &&
29397 { ac_try='test -s conftest.$ac_objext'
29398 { (case "(($ac_try" in
29399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29400 *) ac_try_echo=$ac_try;;
29402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29403 (eval "$ac_try") 2>&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; }; then
29407 ac_cv_type_size_t=yes
29409 echo "$as_me: failed program was:" >&5
29410 sed 's/^/| /' conftest.$ac_ext >&5
29412 ac_cv_type_size_t=no
29415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29417 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29418 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29419 if test $ac_cv_type_size_t = yes; then
29423 cat >>confdefs.h <<_ACEOF
29424 #define size_t unsigned int
29429 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29430 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29431 if test "${ac_cv_type_signal+set}" = set; then
29432 echo $ECHO_N "(cached) $ECHO_C" >&6
29434 cat >conftest.$ac_ext <<_ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h. */
29440 #include <sys/types.h>
29441 #include <signal.h>
29446 return *(signal (0, 0)) (0) == 1;
29451 rm -f conftest.$ac_objext
29452 if { (ac_try="$ac_compile"
29453 case "(($ac_try" in
29454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29455 *) ac_try_echo=$ac_try;;
29457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29458 (eval "$ac_compile") 2>conftest.er1
29460 grep -v '^ *+' conftest.er1 >conftest.err
29462 cat conftest.err >&5
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); } &&
29465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29466 { (case "(($ac_try" in
29467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29468 *) ac_try_echo=$ac_try;;
29470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29471 (eval "$ac_try") 2>&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); }; } &&
29475 { ac_try='test -s conftest.$ac_objext'
29476 { (case "(($ac_try" in
29477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29478 *) ac_try_echo=$ac_try;;
29480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29481 (eval "$ac_try") 2>&5
29483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484 (exit $ac_status); }; }; then
29485 ac_cv_type_signal=int
29487 echo "$as_me: failed program was:" >&5
29488 sed 's/^/| /' conftest.$ac_ext >&5
29490 ac_cv_type_signal=void
29493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29495 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29496 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29498 cat >>confdefs.h <<_ACEOF
29499 #define RETSIGTYPE $ac_cv_type_signal
29503 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29504 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29505 if test "${ac_cv_struct_tm+set}" = set; then
29506 echo $ECHO_N "(cached) $ECHO_C" >&6
29508 cat >conftest.$ac_ext <<_ACEOF
29511 cat confdefs.h >>conftest.$ac_ext
29512 cat >>conftest.$ac_ext <<_ACEOF
29513 /* end confdefs.h. */
29514 #include <sys/types.h>
29520 struct tm *tp; tp->tm_sec;
29525 rm -f conftest.$ac_objext
29526 if { (ac_try="$ac_compile"
29527 case "(($ac_try" in
29528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529 *) ac_try_echo=$ac_try;;
29531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532 (eval "$ac_compile") 2>conftest.er1
29534 grep -v '^ *+' conftest.er1 >conftest.err
29536 cat conftest.err >&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); } &&
29539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29540 { (case "(($ac_try" in
29541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542 *) ac_try_echo=$ac_try;;
29544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29545 (eval "$ac_try") 2>&5
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; } &&
29549 { ac_try='test -s conftest.$ac_objext'
29550 { (case "(($ac_try" in
29551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552 *) ac_try_echo=$ac_try;;
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555 (eval "$ac_try") 2>&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; }; then
29559 ac_cv_struct_tm=time.h
29561 echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29564 ac_cv_struct_tm=sys/time.h
29567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29569 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29570 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29571 if test $ac_cv_struct_tm = sys/time.h; then
29573 cat >>confdefs.h <<\_ACEOF
29574 #define TM_IN_SYS_TIME 1
29579 { echo "$as_me:$LINENO: checking for int64_t" >&5
29580 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29581 if test "${ac_cv_type_int64_t+set}" = set; then
29582 echo $ECHO_N "(cached) $ECHO_C" >&6
29584 cat >conftest.$ac_ext <<_ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h. */
29590 $ac_includes_default
29591 typedef int64_t ac__type_new_;
29595 if ((ac__type_new_ *) 0)
29597 if (sizeof (ac__type_new_))
29603 rm -f conftest.$ac_objext
29604 if { (ac_try="$ac_compile"
29605 case "(($ac_try" in
29606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29607 *) ac_try_echo=$ac_try;;
29609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29610 (eval "$ac_compile") 2>conftest.er1
29612 grep -v '^ *+' conftest.er1 >conftest.err
29614 cat conftest.err >&5
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); } &&
29617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29618 { (case "(($ac_try" in
29619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620 *) ac_try_echo=$ac_try;;
29622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_try") 2>&5
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); }; } &&
29627 { ac_try='test -s conftest.$ac_objext'
29628 { (case "(($ac_try" in
29629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29630 *) ac_try_echo=$ac_try;;
29632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29633 (eval "$ac_try") 2>&5
29635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); }; }; then
29637 ac_cv_type_int64_t=yes
29639 echo "$as_me: failed program was:" >&5
29640 sed 's/^/| /' conftest.$ac_ext >&5
29642 ac_cv_type_int64_t=no
29645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29647 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29648 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29649 if test $ac_cv_type_int64_t = yes; then
29651 cat >>confdefs.h <<_ACEOF
29652 #define HAVE_INT64_T 1
29657 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29658 echo "$as_me: error: Type int64_t required but not found" >&2;}
29659 { (exit 1); exit 1; }; }
29662 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29663 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29664 if test "${ac_cv_type_uint64_t+set}" = set; then
29665 echo $ECHO_N "(cached) $ECHO_C" >&6
29667 cat >conftest.$ac_ext <<_ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29673 $ac_includes_default
29674 typedef uint64_t ac__type_new_;
29678 if ((ac__type_new_ *) 0)
29680 if (sizeof (ac__type_new_))
29686 rm -f conftest.$ac_objext
29687 if { (ac_try="$ac_compile"
29688 case "(($ac_try" in
29689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690 *) ac_try_echo=$ac_try;;
29692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29693 (eval "$ac_compile") 2>conftest.er1
29695 grep -v '^ *+' conftest.er1 >conftest.err
29697 cat conftest.err >&5
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } &&
29700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29701 { (case "(($ac_try" in
29702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29703 *) ac_try_echo=$ac_try;;
29705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29706 (eval "$ac_try") 2>&5
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); }; } &&
29710 { ac_try='test -s conftest.$ac_objext'
29711 { (case "(($ac_try" in
29712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713 *) ac_try_echo=$ac_try;;
29715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716 (eval "$ac_try") 2>&5
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); }; }; then
29720 ac_cv_type_uint64_t=yes
29722 echo "$as_me: failed program was:" >&5
29723 sed 's/^/| /' conftest.$ac_ext >&5
29725 ac_cv_type_uint64_t=no
29728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29730 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29731 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29732 if test $ac_cv_type_uint64_t = yes; then
29734 cat >>confdefs.h <<_ACEOF
29735 #define HAVE_UINT64_T 1
29740 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29741 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29742 if test "${ac_cv_type_u_int64_t+set}" = set; then
29743 echo $ECHO_N "(cached) $ECHO_C" >&6
29745 cat >conftest.$ac_ext <<_ACEOF
29748 cat confdefs.h >>conftest.$ac_ext
29749 cat >>conftest.$ac_ext <<_ACEOF
29750 /* end confdefs.h. */
29751 $ac_includes_default
29752 typedef u_int64_t ac__type_new_;
29756 if ((ac__type_new_ *) 0)
29758 if (sizeof (ac__type_new_))
29764 rm -f conftest.$ac_objext
29765 if { (ac_try="$ac_compile"
29766 case "(($ac_try" in
29767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29768 *) ac_try_echo=$ac_try;;
29770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29771 (eval "$ac_compile") 2>conftest.er1
29773 grep -v '^ *+' conftest.er1 >conftest.err
29775 cat conftest.err >&5
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); } &&
29778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29779 { (case "(($ac_try" in
29780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29781 *) ac_try_echo=$ac_try;;
29783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29784 (eval "$ac_try") 2>&5
29786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787 (exit $ac_status); }; } &&
29788 { ac_try='test -s conftest.$ac_objext'
29789 { (case "(($ac_try" in
29790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29791 *) ac_try_echo=$ac_try;;
29793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29794 (eval "$ac_try") 2>&5
29796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797 (exit $ac_status); }; }; then
29798 ac_cv_type_u_int64_t=yes
29800 echo "$as_me: failed program was:" >&5
29801 sed 's/^/| /' conftest.$ac_ext >&5
29803 ac_cv_type_u_int64_t=no
29806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29808 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29809 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29810 if test $ac_cv_type_u_int64_t = yes; then
29812 cat >>confdefs.h <<_ACEOF
29813 #define HAVE_U_INT64_T 1
29818 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29819 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29820 { (exit 1); exit 1; }; }
29834 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29840 echo $ECHO_N "(cached) $ECHO_C" >&6
29842 cat >conftest.$ac_ext <<_ACEOF
29845 cat confdefs.h >>conftest.$ac_ext
29846 cat >>conftest.$ac_ext <<_ACEOF
29847 /* end confdefs.h. */
29848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29850 #define $ac_func innocuous_$ac_func
29852 /* System header to define __stub macros and hopefully few prototypes,
29853 which can conflict with char $ac_func (); below.
29854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29855 <limits.h> exists even on freestanding compilers. */
29858 # include <limits.h>
29860 # include <assert.h>
29865 /* Override any GCC internal prototype to avoid an error.
29866 Use char because int might match the return type of a GCC
29867 builtin and then its argument prototype would still apply. */
29872 /* The GNU C library defines this for functions which it implements
29873 to always fail with ENOSYS. Some functions are actually named
29874 something starting with __ and the normal name is an alias. */
29875 #if defined __stub_$ac_func || defined __stub___$ac_func
29882 return $ac_func ();
29887 rm -f conftest.$ac_objext conftest$ac_exeext
29888 if { (ac_try="$ac_link"
29889 case "(($ac_try" in
29890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891 *) ac_try_echo=$ac_try;;
29893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894 (eval "$ac_link") 2>conftest.er1
29896 grep -v '^ *+' conftest.er1 >conftest.err
29898 cat conftest.err >&5
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); } &&
29901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29902 { (case "(($ac_try" in
29903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29904 *) ac_try_echo=$ac_try;;
29906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29907 (eval "$ac_try") 2>&5
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); }; } &&
29911 { ac_try='test -s conftest$ac_exeext'
29912 { (case "(($ac_try" in
29913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914 *) ac_try_echo=$ac_try;;
29916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917 (eval "$ac_try") 2>&5
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); }; }; then
29921 eval "$as_ac_var=yes"
29923 echo "$as_me: failed program was:" >&5
29924 sed 's/^/| /' conftest.$ac_ext >&5
29926 eval "$as_ac_var=no"
29929 rm -f core conftest.err conftest.$ac_objext \
29930 conftest$ac_exeext conftest.$ac_ext
29932 ac_res=`eval echo '${'$as_ac_var'}'`
29933 { echo "$as_me:$LINENO: result: $ac_res" >&5
29934 echo "${ECHO_T}$ac_res" >&6; }
29935 if test `eval echo '${'$as_ac_var'}'` = yes; then
29936 cat >>confdefs.h <<_ACEOF
29937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29949 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29955 echo $ECHO_N "(cached) $ECHO_C" >&6
29957 cat >conftest.$ac_ext <<_ACEOF
29960 cat confdefs.h >>conftest.$ac_ext
29961 cat >>conftest.$ac_ext <<_ACEOF
29962 /* end confdefs.h. */
29963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29965 #define $ac_func innocuous_$ac_func
29967 /* System header to define __stub macros and hopefully few prototypes,
29968 which can conflict with char $ac_func (); below.
29969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29970 <limits.h> exists even on freestanding compilers. */
29973 # include <limits.h>
29975 # include <assert.h>
29980 /* Override any GCC internal prototype to avoid an error.
29981 Use char because int might match the return type of a GCC
29982 builtin and then its argument prototype would still apply. */
29987 /* The GNU C library defines this for functions which it implements
29988 to always fail with ENOSYS. Some functions are actually named
29989 something starting with __ and the normal name is an alias. */
29990 #if defined __stub_$ac_func || defined __stub___$ac_func
29997 return $ac_func ();
30002 rm -f conftest.$ac_objext conftest$ac_exeext
30003 if { (ac_try="$ac_link"
30004 case "(($ac_try" in
30005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006 *) ac_try_echo=$ac_try;;
30008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009 (eval "$ac_link") 2>conftest.er1
30011 grep -v '^ *+' conftest.er1 >conftest.err
30013 cat conftest.err >&5
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); } &&
30016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30017 { (case "(($ac_try" in
30018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30019 *) ac_try_echo=$ac_try;;
30021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30022 (eval "$ac_try") 2>&5
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); }; } &&
30026 { ac_try='test -s conftest$ac_exeext'
30027 { (case "(($ac_try" in
30028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30029 *) ac_try_echo=$ac_try;;
30031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30032 (eval "$ac_try") 2>&5
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); }; }; then
30036 eval "$as_ac_var=yes"
30038 echo "$as_me: failed program was:" >&5
30039 sed 's/^/| /' conftest.$ac_ext >&5
30041 eval "$as_ac_var=no"
30044 rm -f core conftest.err conftest.$ac_objext \
30045 conftest$ac_exeext conftest.$ac_ext
30047 ac_res=`eval echo '${'$as_ac_var'}'`
30048 { echo "$as_me:$LINENO: result: $ac_res" >&5
30049 echo "${ECHO_T}$ac_res" >&6; }
30050 if test `eval echo '${'$as_ac_var'}'` = yes; then
30051 cat >>confdefs.h <<_ACEOF
30052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30065 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30071 echo $ECHO_N "(cached) $ECHO_C" >&6
30073 cat >conftest.$ac_ext <<_ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h. */
30079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30081 #define $ac_func innocuous_$ac_func
30083 /* System header to define __stub macros and hopefully few prototypes,
30084 which can conflict with char $ac_func (); below.
30085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30086 <limits.h> exists even on freestanding compilers. */
30089 # include <limits.h>
30091 # include <assert.h>
30096 /* Override any GCC internal prototype to avoid an error.
30097 Use char because int might match the return type of a GCC
30098 builtin and then its argument prototype would still apply. */
30103 /* The GNU C library defines this for functions which it implements
30104 to always fail with ENOSYS. Some functions are actually named
30105 something starting with __ and the normal name is an alias. */
30106 #if defined __stub_$ac_func || defined __stub___$ac_func
30113 return $ac_func ();
30118 rm -f conftest.$ac_objext conftest$ac_exeext
30119 if { (ac_try="$ac_link"
30120 case "(($ac_try" in
30121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122 *) ac_try_echo=$ac_try;;
30124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125 (eval "$ac_link") 2>conftest.er1
30127 grep -v '^ *+' conftest.er1 >conftest.err
30129 cat conftest.err >&5
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); } &&
30132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30133 { (case "(($ac_try" in
30134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30135 *) ac_try_echo=$ac_try;;
30137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30138 (eval "$ac_try") 2>&5
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); }; } &&
30142 { ac_try='test -s conftest$ac_exeext'
30143 { (case "(($ac_try" in
30144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30145 *) ac_try_echo=$ac_try;;
30147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30148 (eval "$ac_try") 2>&5
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; }; then
30152 eval "$as_ac_var=yes"
30154 echo "$as_me: failed program was:" >&5
30155 sed 's/^/| /' conftest.$ac_ext >&5
30157 eval "$as_ac_var=no"
30160 rm -f core conftest.err conftest.$ac_objext \
30161 conftest$ac_exeext conftest.$ac_ext
30163 ac_res=`eval echo '${'$as_ac_var'}'`
30164 { echo "$as_me:$LINENO: result: $ac_res" >&5
30165 echo "${ECHO_T}$ac_res" >&6; }
30166 if test `eval echo '${'$as_ac_var'}'` = yes; then
30167 cat >>confdefs.h <<_ACEOF
30168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30178 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30184 echo $ECHO_N "(cached) $ECHO_C" >&6
30186 cat >conftest.$ac_ext <<_ACEOF
30189 cat confdefs.h >>conftest.$ac_ext
30190 cat >>conftest.$ac_ext <<_ACEOF
30191 /* end confdefs.h. */
30192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30194 #define $ac_func innocuous_$ac_func
30196 /* System header to define __stub macros and hopefully few prototypes,
30197 which can conflict with char $ac_func (); below.
30198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30199 <limits.h> exists even on freestanding compilers. */
30202 # include <limits.h>
30204 # include <assert.h>
30209 /* Override any GCC internal prototype to avoid an error.
30210 Use char because int might match the return type of a GCC
30211 builtin and then its argument prototype would still apply. */
30216 /* The GNU C library defines this for functions which it implements
30217 to always fail with ENOSYS. Some functions are actually named
30218 something starting with __ and the normal name is an alias. */
30219 #if defined __stub_$ac_func || defined __stub___$ac_func
30226 return $ac_func ();
30231 rm -f conftest.$ac_objext conftest$ac_exeext
30232 if { (ac_try="$ac_link"
30233 case "(($ac_try" in
30234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235 *) ac_try_echo=$ac_try;;
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238 (eval "$ac_link") 2>conftest.er1
30240 grep -v '^ *+' conftest.er1 >conftest.err
30242 cat conftest.err >&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); } &&
30245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30246 { (case "(($ac_try" in
30247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30248 *) ac_try_echo=$ac_try;;
30250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251 (eval "$ac_try") 2>&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; } &&
30255 { ac_try='test -s conftest$ac_exeext'
30256 { (case "(($ac_try" in
30257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258 *) ac_try_echo=$ac_try;;
30260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261 (eval "$ac_try") 2>&5
30263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264 (exit $ac_status); }; }; then
30265 eval "$as_ac_var=yes"
30267 echo "$as_me: failed program was:" >&5
30268 sed 's/^/| /' conftest.$ac_ext >&5
30270 eval "$as_ac_var=no"
30273 rm -f core conftest.err conftest.$ac_objext \
30274 conftest$ac_exeext conftest.$ac_ext
30276 ac_res=`eval echo '${'$as_ac_var'}'`
30277 { echo "$as_me:$LINENO: result: $ac_res" >&5
30278 echo "${ECHO_T}$ac_res" >&6; }
30279 if test `eval echo '${'$as_ac_var'}'` = yes; then
30280 cat >>confdefs.h <<_ACEOF
30281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30293 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30299 echo $ECHO_N "(cached) $ECHO_C" >&6
30301 cat >conftest.$ac_ext <<_ACEOF
30304 cat confdefs.h >>conftest.$ac_ext
30305 cat >>conftest.$ac_ext <<_ACEOF
30306 /* end confdefs.h. */
30307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30309 #define $ac_func innocuous_$ac_func
30311 /* System header to define __stub macros and hopefully few prototypes,
30312 which can conflict with char $ac_func (); below.
30313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30314 <limits.h> exists even on freestanding compilers. */
30317 # include <limits.h>
30319 # include <assert.h>
30324 /* Override any GCC internal prototype to avoid an error.
30325 Use char because int might match the return type of a GCC
30326 builtin and then its argument prototype would still apply. */
30331 /* The GNU C library defines this for functions which it implements
30332 to always fail with ENOSYS. Some functions are actually named
30333 something starting with __ and the normal name is an alias. */
30334 #if defined __stub_$ac_func || defined __stub___$ac_func
30341 return $ac_func ();
30346 rm -f conftest.$ac_objext conftest$ac_exeext
30347 if { (ac_try="$ac_link"
30348 case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_link") 2>conftest.er1
30355 grep -v '^ *+' conftest.er1 >conftest.err
30357 cat conftest.err >&5
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); } &&
30360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30361 { (case "(($ac_try" in
30362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30363 *) ac_try_echo=$ac_try;;
30365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30366 (eval "$ac_try") 2>&5
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); }; } &&
30370 { ac_try='test -s conftest$ac_exeext'
30371 { (case "(($ac_try" in
30372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30373 *) ac_try_echo=$ac_try;;
30375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30376 (eval "$ac_try") 2>&5
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); }; }; then
30380 eval "$as_ac_var=yes"
30382 echo "$as_me: failed program was:" >&5
30383 sed 's/^/| /' conftest.$ac_ext >&5
30385 eval "$as_ac_var=no"
30388 rm -f core conftest.err conftest.$ac_objext \
30389 conftest$ac_exeext conftest.$ac_ext
30391 ac_res=`eval echo '${'$as_ac_var'}'`
30392 { echo "$as_me:$LINENO: result: $ac_res" >&5
30393 echo "${ECHO_T}$ac_res" >&6; }
30394 if test `eval echo '${'$as_ac_var'}'` = yes; then
30395 cat >>confdefs.h <<_ACEOF
30396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30402 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30403 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30404 if test "${llvm_cv_c_printf_a+set}" = set; then
30405 echo $ECHO_N "(cached) $ECHO_C" >&6
30408 ac_cpp='$CPP $CPPFLAGS'
30409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30413 if test "$cross_compiling" = yes; then
30414 llvmac_cv_c_printf_a=no
30416 cat >conftest.$ac_ext <<_ACEOF
30420 cat confdefs.h >>conftest.$ac_ext
30421 cat >>conftest.$ac_ext <<_ACEOF
30422 /* end confdefs.h. */
30425 #include <stdlib.h>
30431 volatile double A, B;
30435 sprintf(Buffer, "%a", A);
30439 if (A != 0x1.999999999999ap-4)
30446 rm -f conftest$ac_exeext
30447 if { (ac_try="$ac_link"
30448 case "(($ac_try" in
30449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450 *) ac_try_echo=$ac_try;;
30452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453 (eval "$ac_link") 2>&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30457 { (case "(($ac_try" in
30458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459 *) ac_try_echo=$ac_try;;
30461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30462 (eval "$ac_try") 2>&5
30464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465 (exit $ac_status); }; }; then
30466 llvm_cv_c_printf_a=yes
30468 echo "$as_me: program exited with status $ac_status" >&5
30469 echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30472 ( exit $ac_status )
30473 llvmac_cv_c_printf_a=no
30475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30480 ac_cpp='$CPP $CPPFLAGS'
30481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30486 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30487 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30488 if test "$llvm_cv_c_printf_a" = "yes"; then
30490 cat >>confdefs.h <<\_ACEOF
30491 #define HAVE_PRINTF_A 1
30496 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30497 # for constant arguments. Useless!
30498 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30499 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30500 if test "${ac_cv_working_alloca_h+set}" = set; then
30501 echo $ECHO_N "(cached) $ECHO_C" >&6
30503 cat >conftest.$ac_ext <<_ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h. */
30509 #include <alloca.h>
30513 char *p = (char *) alloca (2 * sizeof (int));
30519 rm -f conftest.$ac_objext conftest$ac_exeext
30520 if { (ac_try="$ac_link"
30521 case "(($ac_try" in
30522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523 *) ac_try_echo=$ac_try;;
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526 (eval "$ac_link") 2>conftest.er1
30528 grep -v '^ *+' conftest.er1 >conftest.err
30530 cat conftest.err >&5
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); } &&
30533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30534 { (case "(($ac_try" in
30535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536 *) ac_try_echo=$ac_try;;
30538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539 (eval "$ac_try") 2>&5
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); }; } &&
30543 { ac_try='test -s conftest$ac_exeext'
30544 { (case "(($ac_try" in
30545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546 *) ac_try_echo=$ac_try;;
30548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549 (eval "$ac_try") 2>&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); }; }; then
30553 ac_cv_working_alloca_h=yes
30555 echo "$as_me: failed program was:" >&5
30556 sed 's/^/| /' conftest.$ac_ext >&5
30558 ac_cv_working_alloca_h=no
30561 rm -f core conftest.err conftest.$ac_objext \
30562 conftest$ac_exeext conftest.$ac_ext
30564 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30565 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30566 if test $ac_cv_working_alloca_h = yes; then
30568 cat >>confdefs.h <<\_ACEOF
30569 #define HAVE_ALLOCA_H 1
30574 { echo "$as_me:$LINENO: checking for alloca" >&5
30575 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30576 if test "${ac_cv_func_alloca_works+set}" = set; then
30577 echo $ECHO_N "(cached) $ECHO_C" >&6
30579 cat >conftest.$ac_ext <<_ACEOF
30582 cat confdefs.h >>conftest.$ac_ext
30583 cat >>conftest.$ac_ext <<_ACEOF
30584 /* end confdefs.h. */
30586 # define alloca __builtin_alloca
30589 # include <malloc.h>
30590 # define alloca _alloca
30593 # include <alloca.h>
30598 # ifndef alloca /* predefined by HP cc +Olibcalls */
30609 char *p = (char *) alloca (1);
30615 rm -f conftest.$ac_objext conftest$ac_exeext
30616 if { (ac_try="$ac_link"
30617 case "(($ac_try" in
30618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619 *) ac_try_echo=$ac_try;;
30621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622 (eval "$ac_link") 2>conftest.er1
30624 grep -v '^ *+' conftest.er1 >conftest.err
30626 cat conftest.err >&5
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); } &&
30629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30630 { (case "(($ac_try" in
30631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632 *) ac_try_echo=$ac_try;;
30634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635 (eval "$ac_try") 2>&5
30637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); }; } &&
30639 { ac_try='test -s conftest$ac_exeext'
30640 { (case "(($ac_try" in
30641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30642 *) ac_try_echo=$ac_try;;
30644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30645 (eval "$ac_try") 2>&5
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); }; }; then
30649 ac_cv_func_alloca_works=yes
30651 echo "$as_me: failed program was:" >&5
30652 sed 's/^/| /' conftest.$ac_ext >&5
30654 ac_cv_func_alloca_works=no
30657 rm -f core conftest.err conftest.$ac_objext \
30658 conftest$ac_exeext conftest.$ac_ext
30660 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30661 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30663 if test $ac_cv_func_alloca_works = yes; then
30665 cat >>confdefs.h <<\_ACEOF
30666 #define HAVE_ALLOCA 1
30670 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30671 # that cause trouble. Some versions do not even contain alloca or
30672 # contain a buggy version. If you still want to use their alloca,
30673 # use ar to extract alloca.o from them instead of compiling alloca.c.
30675 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30677 cat >>confdefs.h <<\_ACEOF
30682 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30683 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30684 if test "${ac_cv_os_cray+set}" = set; then
30685 echo $ECHO_N "(cached) $ECHO_C" >&6
30687 cat >conftest.$ac_ext <<_ACEOF
30690 cat confdefs.h >>conftest.$ac_ext
30691 cat >>conftest.$ac_ext <<_ACEOF
30692 /* end confdefs.h. */
30693 #if defined CRAY && ! defined CRAY2
30700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30701 $EGREP "webecray" >/dev/null 2>&1; then
30709 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30710 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30711 if test $ac_cv_os_cray = yes; then
30712 for ac_func in _getb67 GETB67 getb67; do
30713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30717 echo $ECHO_N "(cached) $ECHO_C" >&6
30719 cat >conftest.$ac_ext <<_ACEOF
30722 cat confdefs.h >>conftest.$ac_ext
30723 cat >>conftest.$ac_ext <<_ACEOF
30724 /* end confdefs.h. */
30725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30727 #define $ac_func innocuous_$ac_func
30729 /* System header to define __stub macros and hopefully few prototypes,
30730 which can conflict with char $ac_func (); below.
30731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30732 <limits.h> exists even on freestanding compilers. */
30735 # include <limits.h>
30737 # include <assert.h>
30742 /* Override any GCC internal prototype to avoid an error.
30743 Use char because int might match the return type of a GCC
30744 builtin and then its argument prototype would still apply. */
30749 /* The GNU C library defines this for functions which it implements
30750 to always fail with ENOSYS. Some functions are actually named
30751 something starting with __ and the normal name is an alias. */
30752 #if defined __stub_$ac_func || defined __stub___$ac_func
30759 return $ac_func ();
30764 rm -f conftest.$ac_objext conftest$ac_exeext
30765 if { (ac_try="$ac_link"
30766 case "(($ac_try" in
30767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30768 *) ac_try_echo=$ac_try;;
30770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30771 (eval "$ac_link") 2>conftest.er1
30773 grep -v '^ *+' conftest.er1 >conftest.err
30775 cat conftest.err >&5
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); } &&
30778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30779 { (case "(($ac_try" in
30780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30781 *) ac_try_echo=$ac_try;;
30783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30784 (eval "$ac_try") 2>&5
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); }; } &&
30788 { ac_try='test -s conftest$ac_exeext'
30789 { (case "(($ac_try" in
30790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30791 *) ac_try_echo=$ac_try;;
30793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30794 (eval "$ac_try") 2>&5
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); }; }; then
30798 eval "$as_ac_var=yes"
30800 echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30803 eval "$as_ac_var=no"
30806 rm -f core conftest.err conftest.$ac_objext \
30807 conftest$ac_exeext conftest.$ac_ext
30809 ac_res=`eval echo '${'$as_ac_var'}'`
30810 { echo "$as_me:$LINENO: result: $ac_res" >&5
30811 echo "${ECHO_T}$ac_res" >&6; }
30812 if test `eval echo '${'$as_ac_var'}'` = yes; then
30814 cat >>confdefs.h <<_ACEOF
30815 #define CRAY_STACKSEG_END $ac_func
30824 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30825 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30826 if test "${ac_cv_c_stack_direction+set}" = set; then
30827 echo $ECHO_N "(cached) $ECHO_C" >&6
30829 if test "$cross_compiling" = yes; then
30830 ac_cv_c_stack_direction=0
30832 cat >conftest.$ac_ext <<_ACEOF
30835 cat confdefs.h >>conftest.$ac_ext
30836 cat >>conftest.$ac_ext <<_ACEOF
30837 /* end confdefs.h. */
30838 $ac_includes_default
30840 find_stack_direction ()
30842 static char *addr = 0;
30847 return find_stack_direction ();
30850 return (&dummy > addr) ? 1 : -1;
30856 return find_stack_direction () < 0;
30859 rm -f conftest$ac_exeext
30860 if { (ac_try="$ac_link"
30861 case "(($ac_try" in
30862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30863 *) ac_try_echo=$ac_try;;
30865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30866 (eval "$ac_link") 2>&5
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30870 { (case "(($ac_try" in
30871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872 *) ac_try_echo=$ac_try;;
30874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875 (eval "$ac_try") 2>&5
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; }; then
30879 ac_cv_c_stack_direction=1
30881 echo "$as_me: program exited with status $ac_status" >&5
30882 echo "$as_me: failed program was:" >&5
30883 sed 's/^/| /' conftest.$ac_ext >&5
30885 ( exit $ac_status )
30886 ac_cv_c_stack_direction=-1
30888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30893 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30894 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30896 cat >>confdefs.h <<_ACEOF
30897 #define STACK_DIRECTION $ac_cv_c_stack_direction
30904 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30905 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30906 if test "${ac_cv_func_rand48+set}" = set; then
30907 echo $ECHO_N "(cached) $ECHO_C" >&6
30910 ac_cpp='$CXXCPP $CPPFLAGS'
30911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30915 cat >conftest.$ac_ext <<_ACEOF
30918 cat confdefs.h >>conftest.$ac_ext
30919 cat >>conftest.$ac_ext <<_ACEOF
30920 /* end confdefs.h. */
30921 #include <stdlib.h>
30925 srand48(0);lrand48();drand48();
30930 rm -f conftest.$ac_objext
30931 if { (ac_try="$ac_compile"
30932 case "(($ac_try" in
30933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30934 *) ac_try_echo=$ac_try;;
30936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30937 (eval "$ac_compile") 2>conftest.er1
30939 grep -v '^ *+' conftest.er1 >conftest.err
30941 cat conftest.err >&5
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); } &&
30944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30945 { (case "(($ac_try" in
30946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30947 *) ac_try_echo=$ac_try;;
30949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30950 (eval "$ac_try") 2>&5
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); }; } &&
30954 { ac_try='test -s conftest.$ac_objext'
30955 { (case "(($ac_try" in
30956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957 *) ac_try_echo=$ac_try;;
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960 (eval "$ac_try") 2>&5
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; }; then
30964 ac_cv_func_rand48=yes
30966 echo "$as_me: failed program was:" >&5
30967 sed 's/^/| /' conftest.$ac_ext >&5
30969 ac_cv_func_rand48=no
30972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30974 ac_cpp='$CPP $CPPFLAGS'
30975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30980 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30981 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30983 if test "$ac_cv_func_rand48" = "yes" ; then
30985 cat >>confdefs.h <<\_ACEOF
30986 #define HAVE_RAND48 1
30992 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30993 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30994 if test "${ac_cv_cxx_namespaces+set}" = set; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
30998 ac_cpp='$CXXCPP $CPPFLAGS'
30999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31003 cat >conftest.$ac_ext <<_ACEOF
31006 cat confdefs.h >>conftest.$ac_ext
31007 cat >>conftest.$ac_ext <<_ACEOF
31008 /* end confdefs.h. */
31009 namespace Outer { namespace Inner { int i = 0; }}
31013 using namespace Outer::Inner; return i;
31018 rm -f conftest.$ac_objext
31019 if { (ac_try="$ac_compile"
31020 case "(($ac_try" in
31021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022 *) ac_try_echo=$ac_try;;
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025 (eval "$ac_compile") 2>conftest.er1
31027 grep -v '^ *+' conftest.er1 >conftest.err
31029 cat conftest.err >&5
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); } &&
31032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31033 { (case "(($ac_try" in
31034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31035 *) ac_try_echo=$ac_try;;
31037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038 (eval "$ac_try") 2>&5
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); }; } &&
31042 { ac_try='test -s conftest.$ac_objext'
31043 { (case "(($ac_try" in
31044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31045 *) ac_try_echo=$ac_try;;
31047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31048 (eval "$ac_try") 2>&5
31050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051 (exit $ac_status); }; }; then
31052 ac_cv_cxx_namespaces=yes
31054 echo "$as_me: failed program was:" >&5
31055 sed 's/^/| /' conftest.$ac_ext >&5
31057 ac_cv_cxx_namespaces=no
31060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31062 ac_cpp='$CPP $CPPFLAGS'
31063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31069 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31070 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31071 if test "$ac_cv_cxx_namespaces" = yes; then
31073 cat >>confdefs.h <<\_ACEOF
31074 #define HAVE_NAMESPACES
31079 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31080 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31081 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31082 echo $ECHO_N "(cached) $ECHO_C" >&6
31086 ac_cpp='$CXXCPP $CPPFLAGS'
31087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31091 cat >conftest.$ac_ext <<_ACEOF
31094 cat confdefs.h >>conftest.$ac_ext
31095 cat >>conftest.$ac_ext <<_ACEOF
31096 /* end confdefs.h. */
31097 #include <ext/hash_map>
31098 #ifdef HAVE_NAMESPACES
31099 using namespace std;
31104 hash_map<int, int> t;
31109 rm -f conftest.$ac_objext
31110 if { (ac_try="$ac_compile"
31111 case "(($ac_try" in
31112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31113 *) ac_try_echo=$ac_try;;
31115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31116 (eval "$ac_compile") 2>conftest.er1
31118 grep -v '^ *+' conftest.er1 >conftest.err
31120 cat conftest.err >&5
31121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122 (exit $ac_status); } &&
31123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31124 { (case "(($ac_try" in
31125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31126 *) ac_try_echo=$ac_try;;
31128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31129 (eval "$ac_try") 2>&5
31131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132 (exit $ac_status); }; } &&
31133 { ac_try='test -s conftest.$ac_objext'
31134 { (case "(($ac_try" in
31135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31136 *) ac_try_echo=$ac_try;;
31138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31139 (eval "$ac_try") 2>&5
31141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142 (exit $ac_status); }; }; then
31143 ac_cv_cxx_have_std_ext_hash_map=yes
31145 echo "$as_me: failed program was:" >&5
31146 sed 's/^/| /' conftest.$ac_ext >&5
31148 ac_cv_cxx_have_std_ext_hash_map=no
31151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31153 ac_cpp='$CPP $CPPFLAGS'
31154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31159 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31160 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31161 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31164 cat >>confdefs.h <<\_ACEOF
31165 #define HAVE_STD_EXT_HASH_MAP 1
31170 cat >>confdefs.h <<\_ACEOF
31171 #define HAVE_STD_EXT_HASH_MAP 0
31176 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31177 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31178 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31179 echo $ECHO_N "(cached) $ECHO_C" >&6
31183 ac_cpp='$CXXCPP $CPPFLAGS'
31184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31188 cat >conftest.$ac_ext <<_ACEOF
31191 cat confdefs.h >>conftest.$ac_ext
31192 cat >>conftest.$ac_ext <<_ACEOF
31193 /* end confdefs.h. */
31194 #include <ext/hash_map>
31195 #ifdef HAVE_NAMESPACES
31196 using namespace __gnu_cxx;
31201 hash_map<int,int> t;
31206 rm -f conftest.$ac_objext
31207 if { (ac_try="$ac_compile"
31208 case "(($ac_try" in
31209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31210 *) ac_try_echo=$ac_try;;
31212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31213 (eval "$ac_compile") 2>conftest.er1
31215 grep -v '^ *+' conftest.er1 >conftest.err
31217 cat conftest.err >&5
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); } &&
31220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31221 { (case "(($ac_try" in
31222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223 *) ac_try_echo=$ac_try;;
31225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226 (eval "$ac_try") 2>&5
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; } &&
31230 { ac_try='test -s conftest.$ac_objext'
31231 { (case "(($ac_try" in
31232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233 *) ac_try_echo=$ac_try;;
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236 (eval "$ac_try") 2>&5
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); }; }; then
31240 ac_cv_cxx_have_gnu_ext_hash_map=yes
31242 echo "$as_me: failed program was:" >&5
31243 sed 's/^/| /' conftest.$ac_ext >&5
31245 ac_cv_cxx_have_gnu_ext_hash_map=no
31248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31250 ac_cpp='$CPP $CPPFLAGS'
31251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31256 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31257 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31258 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31261 cat >>confdefs.h <<\_ACEOF
31262 #define HAVE_GNU_EXT_HASH_MAP 1
31267 cat >>confdefs.h <<\_ACEOF
31268 #define HAVE_GNU_EXT_HASH_MAP 0
31273 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31274 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31275 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31276 echo $ECHO_N "(cached) $ECHO_C" >&6
31280 ac_cpp='$CXXCPP $CPPFLAGS'
31281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31285 cat >conftest.$ac_ext <<_ACEOF
31288 cat confdefs.h >>conftest.$ac_ext
31289 cat >>conftest.$ac_ext <<_ACEOF
31290 /* end confdefs.h. */
31291 #include <hash_map>
31295 hash_map<int,int> t;
31300 rm -f conftest.$ac_objext
31301 if { (ac_try="$ac_compile"
31302 case "(($ac_try" in
31303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31304 *) ac_try_echo=$ac_try;;
31306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31307 (eval "$ac_compile") 2>conftest.er1
31309 grep -v '^ *+' conftest.er1 >conftest.err
31311 cat conftest.err >&5
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); } &&
31314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31315 { (case "(($ac_try" in
31316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31317 *) ac_try_echo=$ac_try;;
31319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31320 (eval "$ac_try") 2>&5
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); }; } &&
31324 { ac_try='test -s conftest.$ac_objext'
31325 { (case "(($ac_try" in
31326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327 *) ac_try_echo=$ac_try;;
31329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330 (eval "$ac_try") 2>&5
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); }; }; then
31334 ac_cv_cxx_have_global_hash_map=yes
31336 echo "$as_me: failed program was:" >&5
31337 sed 's/^/| /' conftest.$ac_ext >&5
31339 ac_cv_cxx_have_global_hash_map=no
31342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31344 ac_cpp='$CPP $CPPFLAGS'
31345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31350 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31351 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31352 if test "$ac_cv_cxx_have_global_hash_map" = yes
31355 cat >>confdefs.h <<\_ACEOF
31356 #define HAVE_GLOBAL_HASH_MAP 1
31361 cat >>confdefs.h <<\_ACEOF
31362 #define HAVE_GLOBAL_HASH_MAP 0
31367 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31368 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31369 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31370 echo $ECHO_N "(cached) $ECHO_C" >&6
31374 ac_cpp='$CXXCPP $CPPFLAGS'
31375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31379 cat >conftest.$ac_ext <<_ACEOF
31382 cat confdefs.h >>conftest.$ac_ext
31383 cat >>conftest.$ac_ext <<_ACEOF
31384 /* end confdefs.h. */
31385 #include <ext/hash_set>
31386 #ifdef HAVE_NAMESPACES
31387 using namespace std;
31397 rm -f conftest.$ac_objext
31398 if { (ac_try="$ac_compile"
31399 case "(($ac_try" in
31400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401 *) ac_try_echo=$ac_try;;
31403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31404 (eval "$ac_compile") 2>conftest.er1
31406 grep -v '^ *+' conftest.er1 >conftest.err
31408 cat conftest.err >&5
31409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410 (exit $ac_status); } &&
31411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31412 { (case "(($ac_try" in
31413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31414 *) ac_try_echo=$ac_try;;
31416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31417 (eval "$ac_try") 2>&5
31419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420 (exit $ac_status); }; } &&
31421 { ac_try='test -s conftest.$ac_objext'
31422 { (case "(($ac_try" in
31423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31424 *) ac_try_echo=$ac_try;;
31426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31427 (eval "$ac_try") 2>&5
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); }; }; then
31431 ac_cv_cxx_have_std_ext_hash_set=yes
31433 echo "$as_me: failed program was:" >&5
31434 sed 's/^/| /' conftest.$ac_ext >&5
31436 ac_cv_cxx_have_std_ext_hash_set=no
31439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31441 ac_cpp='$CPP $CPPFLAGS'
31442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31447 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31448 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31449 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31452 cat >>confdefs.h <<\_ACEOF
31453 #define HAVE_STD_EXT_HASH_SET 1
31458 cat >>confdefs.h <<\_ACEOF
31459 #define HAVE_STD_EXT_HASH_SET 0
31464 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31465 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31466 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31467 echo $ECHO_N "(cached) $ECHO_C" >&6
31471 ac_cpp='$CXXCPP $CPPFLAGS'
31472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31476 cat >conftest.$ac_ext <<_ACEOF
31479 cat confdefs.h >>conftest.$ac_ext
31480 cat >>conftest.$ac_ext <<_ACEOF
31481 /* end confdefs.h. */
31482 #include <ext/hash_set>
31483 #ifdef HAVE_NAMESPACES
31484 using namespace __gnu_cxx;
31494 rm -f conftest.$ac_objext
31495 if { (ac_try="$ac_compile"
31496 case "(($ac_try" in
31497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498 *) ac_try_echo=$ac_try;;
31500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501 (eval "$ac_compile") 2>conftest.er1
31503 grep -v '^ *+' conftest.er1 >conftest.err
31505 cat conftest.err >&5
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); } &&
31508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; } &&
31518 { ac_try='test -s conftest.$ac_objext'
31519 { (case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_try") 2>&5
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; }; then
31528 ac_cv_cxx_have_gnu_ext_hash_set=yes
31530 echo "$as_me: failed program was:" >&5
31531 sed 's/^/| /' conftest.$ac_ext >&5
31533 ac_cv_cxx_have_gnu_ext_hash_set=no
31536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31538 ac_cpp='$CPP $CPPFLAGS'
31539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31544 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31545 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31546 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31549 cat >>confdefs.h <<\_ACEOF
31550 #define HAVE_GNU_EXT_HASH_SET 1
31555 cat >>confdefs.h <<\_ACEOF
31556 #define HAVE_GNU_EXT_HASH_SET 0
31561 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31562 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31563 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31564 echo $ECHO_N "(cached) $ECHO_C" >&6
31568 ac_cpp='$CXXCPP $CPPFLAGS'
31569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31573 cat >conftest.$ac_ext <<_ACEOF
31576 cat confdefs.h >>conftest.$ac_ext
31577 cat >>conftest.$ac_ext <<_ACEOF
31578 /* end confdefs.h. */
31579 #include <hash_set>
31583 hash_set<int> t; return 0;
31588 rm -f conftest.$ac_objext
31589 if { (ac_try="$ac_compile"
31590 case "(($ac_try" in
31591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592 *) ac_try_echo=$ac_try;;
31594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595 (eval "$ac_compile") 2>conftest.er1
31597 grep -v '^ *+' conftest.er1 >conftest.err
31599 cat conftest.err >&5
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); } &&
31602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31603 { (case "(($ac_try" in
31604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605 *) ac_try_echo=$ac_try;;
31607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608 (eval "$ac_try") 2>&5
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); }; } &&
31612 { ac_try='test -s conftest.$ac_objext'
31613 { (case "(($ac_try" in
31614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31615 *) ac_try_echo=$ac_try;;
31617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31618 (eval "$ac_try") 2>&5
31620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621 (exit $ac_status); }; }; then
31622 ac_cv_cxx_have_global_hash_set=yes
31624 echo "$as_me: failed program was:" >&5
31625 sed 's/^/| /' conftest.$ac_ext >&5
31627 ac_cv_cxx_have_global_hash_set=no
31630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31632 ac_cpp='$CPP $CPPFLAGS'
31633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31638 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31639 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31640 if test "$ac_cv_cxx_have_global_hash_set" = yes
31643 cat >>confdefs.h <<\_ACEOF
31644 #define HAVE_GLOBAL_HASH_SET 1
31649 cat >>confdefs.h <<\_ACEOF
31650 #define HAVE_GLOBAL_HASH_SET 0
31655 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31656 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31657 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31658 echo $ECHO_N "(cached) $ECHO_C" >&6
31662 ac_cpp='$CXXCPP $CPPFLAGS'
31663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31667 cat >conftest.$ac_ext <<_ACEOF
31670 cat confdefs.h >>conftest.$ac_ext
31671 cat >>conftest.$ac_ext <<_ACEOF
31672 /* end confdefs.h. */
31673 #include <iterator>
31674 #ifdef HAVE_NAMESPACES
31675 using namespace std;
31680 iterator<int,int,int> t; return 0;
31685 rm -f conftest.$ac_objext
31686 if { (ac_try="$ac_compile"
31687 case "(($ac_try" in
31688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689 *) ac_try_echo=$ac_try;;
31691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31692 (eval "$ac_compile") 2>conftest.er1
31694 grep -v '^ *+' conftest.er1 >conftest.err
31696 cat conftest.err >&5
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); } &&
31699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31700 { (case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_try") 2>&5
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; } &&
31709 { ac_try='test -s conftest.$ac_objext'
31710 { (case "(($ac_try" in
31711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31712 *) ac_try_echo=$ac_try;;
31714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31715 (eval "$ac_try") 2>&5
31717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718 (exit $ac_status); }; }; then
31719 ac_cv_cxx_have_std_iterator=yes
31721 echo "$as_me: failed program was:" >&5
31722 sed 's/^/| /' conftest.$ac_ext >&5
31724 ac_cv_cxx_have_std_iterator=no
31727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31729 ac_cpp='$CPP $CPPFLAGS'
31730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31736 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31737 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31738 if test "$ac_cv_cxx_have_std_iterator" = yes
31741 cat >>confdefs.h <<\_ACEOF
31742 #define HAVE_STD_ITERATOR 1
31747 cat >>confdefs.h <<\_ACEOF
31748 #define HAVE_STD_ITERATOR 0
31753 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31754 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31755 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31756 echo $ECHO_N "(cached) $ECHO_C" >&6
31760 ac_cpp='$CXXCPP $CPPFLAGS'
31761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31765 cat >conftest.$ac_ext <<_ACEOF
31768 cat confdefs.h >>conftest.$ac_ext
31769 cat >>conftest.$ac_ext <<_ACEOF
31770 /* end confdefs.h. */
31771 #include <iterator>
31772 #ifdef HAVE_NAMESPACES
31773 using namespace std;
31778 bidirectional_iterator<int,int> t; return 0;
31783 rm -f conftest.$ac_objext
31784 if { (ac_try="$ac_compile"
31785 case "(($ac_try" in
31786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31787 *) ac_try_echo=$ac_try;;
31789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31790 (eval "$ac_compile") 2>conftest.er1
31792 grep -v '^ *+' conftest.er1 >conftest.err
31794 cat conftest.err >&5
31795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); } &&
31797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31798 { (case "(($ac_try" in
31799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800 *) ac_try_echo=$ac_try;;
31802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803 (eval "$ac_try") 2>&5
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); }; } &&
31807 { ac_try='test -s conftest.$ac_objext'
31808 { (case "(($ac_try" in
31809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31810 *) ac_try_echo=$ac_try;;
31812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31813 (eval "$ac_try") 2>&5
31815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31816 (exit $ac_status); }; }; then
31817 ac_cv_cxx_have_bi_iterator=yes
31819 echo "$as_me: failed program was:" >&5
31820 sed 's/^/| /' conftest.$ac_ext >&5
31822 ac_cv_cxx_have_bi_iterator=no
31825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31827 ac_cpp='$CPP $CPPFLAGS'
31828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31834 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31835 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31836 if test "$ac_cv_cxx_have_bi_iterator" = yes
31839 cat >>confdefs.h <<\_ACEOF
31840 #define HAVE_BI_ITERATOR 1
31845 cat >>confdefs.h <<\_ACEOF
31846 #define HAVE_BI_ITERATOR 0
31851 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31852 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31853 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31854 echo $ECHO_N "(cached) $ECHO_C" >&6
31858 ac_cpp='$CXXCPP $CPPFLAGS'
31859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31863 cat >conftest.$ac_ext <<_ACEOF
31866 cat confdefs.h >>conftest.$ac_ext
31867 cat >>conftest.$ac_ext <<_ACEOF
31868 /* end confdefs.h. */
31869 #include <iterator>
31870 #ifdef HAVE_NAMESPACES
31871 using namespace std;
31876 forward_iterator<int,int> t; return 0;
31881 rm -f conftest.$ac_objext
31882 if { (ac_try="$ac_compile"
31883 case "(($ac_try" in
31884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31885 *) ac_try_echo=$ac_try;;
31887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31888 (eval "$ac_compile") 2>conftest.er1
31890 grep -v '^ *+' conftest.er1 >conftest.err
31892 cat conftest.err >&5
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); } &&
31895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31896 { (case "(($ac_try" in
31897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898 *) ac_try_echo=$ac_try;;
31900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901 (eval "$ac_try") 2>&5
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); }; } &&
31905 { ac_try='test -s conftest.$ac_objext'
31906 { (case "(($ac_try" in
31907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908 *) ac_try_echo=$ac_try;;
31910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911 (eval "$ac_try") 2>&5
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); }; }; then
31915 ac_cv_cxx_have_fwd_iterator=yes
31917 echo "$as_me: failed program was:" >&5
31918 sed 's/^/| /' conftest.$ac_ext >&5
31920 ac_cv_cxx_have_fwd_iterator=no
31923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31925 ac_cpp='$CPP $CPPFLAGS'
31926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31932 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31933 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31934 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31937 cat >>confdefs.h <<\_ACEOF
31938 #define HAVE_FWD_ITERATOR 1
31943 cat >>confdefs.h <<\_ACEOF
31944 #define HAVE_FWD_ITERATOR 0
31950 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31951 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31952 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31953 echo $ECHO_N "(cached) $ECHO_C" >&6
31956 ac_cpp='$CXXCPP $CPPFLAGS'
31957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31961 cat >conftest.$ac_ext <<_ACEOF
31964 cat confdefs.h >>conftest.$ac_ext
31965 cat >>conftest.$ac_ext <<_ACEOF
31966 /* end confdefs.h. */
31976 rm -f conftest.$ac_objext
31977 if { (ac_try="$ac_compile"
31978 case "(($ac_try" in
31979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31980 *) ac_try_echo=$ac_try;;
31982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31983 (eval "$ac_compile") 2>conftest.er1
31985 grep -v '^ *+' conftest.er1 >conftest.err
31987 cat conftest.err >&5
31988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989 (exit $ac_status); } &&
31990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31991 { (case "(($ac_try" in
31992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31993 *) ac_try_echo=$ac_try;;
31995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31996 (eval "$ac_try") 2>&5
31998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999 (exit $ac_status); }; } &&
32000 { ac_try='test -s conftest.$ac_objext'
32001 { (case "(($ac_try" in
32002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32003 *) ac_try_echo=$ac_try;;
32005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32006 (eval "$ac_try") 2>&5
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); }; }; then
32010 ac_cv_func_isnan_in_math_h=yes
32012 echo "$as_me: failed program was:" >&5
32013 sed 's/^/| /' conftest.$ac_ext >&5
32015 ac_cv_func_isnan_in_math_h=no
32018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32020 ac_cpp='$CPP $CPPFLAGS'
32021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32026 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32027 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32030 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32032 cat >>confdefs.h <<\_ACEOF
32033 #define HAVE_ISNAN_IN_MATH_H 1
32038 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32039 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32040 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32041 echo $ECHO_N "(cached) $ECHO_C" >&6
32044 ac_cpp='$CXXCPP $CPPFLAGS'
32045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32049 cat >conftest.$ac_ext <<_ACEOF
32052 cat confdefs.h >>conftest.$ac_ext
32053 cat >>conftest.$ac_ext <<_ACEOF
32054 /* end confdefs.h. */
32064 rm -f conftest.$ac_objext
32065 if { (ac_try="$ac_compile"
32066 case "(($ac_try" in
32067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32068 *) ac_try_echo=$ac_try;;
32070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32071 (eval "$ac_compile") 2>conftest.er1
32073 grep -v '^ *+' conftest.er1 >conftest.err
32075 cat conftest.err >&5
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); } &&
32078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32079 { (case "(($ac_try" in
32080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32081 *) ac_try_echo=$ac_try;;
32083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32084 (eval "$ac_try") 2>&5
32086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087 (exit $ac_status); }; } &&
32088 { ac_try='test -s conftest.$ac_objext'
32089 { (case "(($ac_try" in
32090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091 *) ac_try_echo=$ac_try;;
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094 (eval "$ac_try") 2>&5
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); }; }; then
32098 ac_cv_func_isnan_in_cmath=yes
32100 echo "$as_me: failed program was:" >&5
32101 sed 's/^/| /' conftest.$ac_ext >&5
32103 ac_cv_func_isnan_in_cmath=no
32106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32108 ac_cpp='$CPP $CPPFLAGS'
32109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32114 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32115 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32117 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32119 cat >>confdefs.h <<\_ACEOF
32120 #define HAVE_ISNAN_IN_CMATH 1
32125 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32126 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32127 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32128 echo $ECHO_N "(cached) $ECHO_C" >&6
32131 ac_cpp='$CXXCPP $CPPFLAGS'
32132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32136 cat >conftest.$ac_ext <<_ACEOF
32139 cat confdefs.h >>conftest.$ac_ext
32140 cat >>conftest.$ac_ext <<_ACEOF
32141 /* end confdefs.h. */
32146 float f; std::isnan(f);
32151 rm -f conftest.$ac_objext
32152 if { (ac_try="$ac_compile"
32153 case "(($ac_try" in
32154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155 *) ac_try_echo=$ac_try;;
32157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32158 (eval "$ac_compile") 2>conftest.er1
32160 grep -v '^ *+' conftest.er1 >conftest.err
32162 cat conftest.err >&5
32163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164 (exit $ac_status); } &&
32165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32166 { (case "(($ac_try" in
32167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168 *) ac_try_echo=$ac_try;;
32170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171 (eval "$ac_try") 2>&5
32173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174 (exit $ac_status); }; } &&
32175 { ac_try='test -s conftest.$ac_objext'
32176 { (case "(($ac_try" in
32177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32178 *) ac_try_echo=$ac_try;;
32180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32181 (eval "$ac_try") 2>&5
32183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184 (exit $ac_status); }; }; then
32185 ac_cv_func_std_isnan_in_cmath=yes
32187 echo "$as_me: failed program was:" >&5
32188 sed 's/^/| /' conftest.$ac_ext >&5
32190 ac_cv_func_std_isnan_in_cmath=no
32193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32195 ac_cpp='$CPP $CPPFLAGS'
32196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32201 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32202 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32204 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32206 cat >>confdefs.h <<\_ACEOF
32207 #define HAVE_STD_ISNAN_IN_CMATH 1
32213 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32214 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32215 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32216 echo $ECHO_N "(cached) $ECHO_C" >&6
32219 ac_cpp='$CXXCPP $CPPFLAGS'
32220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32224 cat >conftest.$ac_ext <<_ACEOF
32227 cat confdefs.h >>conftest.$ac_ext
32228 cat >>conftest.$ac_ext <<_ACEOF
32229 /* end confdefs.h. */
32239 rm -f conftest.$ac_objext
32240 if { (ac_try="$ac_compile"
32241 case "(($ac_try" in
32242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32243 *) ac_try_echo=$ac_try;;
32245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32246 (eval "$ac_compile") 2>conftest.er1
32248 grep -v '^ *+' conftest.er1 >conftest.err
32250 cat conftest.err >&5
32251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252 (exit $ac_status); } &&
32253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32254 { (case "(($ac_try" in
32255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32256 *) ac_try_echo=$ac_try;;
32258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32259 (eval "$ac_try") 2>&5
32261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262 (exit $ac_status); }; } &&
32263 { ac_try='test -s conftest.$ac_objext'
32264 { (case "(($ac_try" in
32265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32266 *) ac_try_echo=$ac_try;;
32268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32269 (eval "$ac_try") 2>&5
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); }; }; then
32273 ac_cv_func_isinf_in_math_h=yes
32275 echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.$ac_ext >&5
32278 ac_cv_func_isinf_in_math_h=no
32281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32283 ac_cpp='$CPP $CPPFLAGS'
32284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32289 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32290 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32292 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32294 cat >>confdefs.h <<\_ACEOF
32295 #define HAVE_ISINF_IN_MATH_H 1
32300 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32301 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32302 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32303 echo $ECHO_N "(cached) $ECHO_C" >&6
32306 ac_cpp='$CXXCPP $CPPFLAGS'
32307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32311 cat >conftest.$ac_ext <<_ACEOF
32314 cat confdefs.h >>conftest.$ac_ext
32315 cat >>conftest.$ac_ext <<_ACEOF
32316 /* end confdefs.h. */
32326 rm -f conftest.$ac_objext
32327 if { (ac_try="$ac_compile"
32328 case "(($ac_try" in
32329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32330 *) ac_try_echo=$ac_try;;
32332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32333 (eval "$ac_compile") 2>conftest.er1
32335 grep -v '^ *+' conftest.er1 >conftest.err
32337 cat conftest.err >&5
32338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339 (exit $ac_status); } &&
32340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32341 { (case "(($ac_try" in
32342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32343 *) ac_try_echo=$ac_try;;
32345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32346 (eval "$ac_try") 2>&5
32348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349 (exit $ac_status); }; } &&
32350 { ac_try='test -s conftest.$ac_objext'
32351 { (case "(($ac_try" in
32352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32353 *) ac_try_echo=$ac_try;;
32355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32356 (eval "$ac_try") 2>&5
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); }; }; then
32360 ac_cv_func_isinf_in_cmath=yes
32362 echo "$as_me: failed program was:" >&5
32363 sed 's/^/| /' conftest.$ac_ext >&5
32365 ac_cv_func_isinf_in_cmath=no
32368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32370 ac_cpp='$CPP $CPPFLAGS'
32371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32376 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32377 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32379 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32381 cat >>confdefs.h <<\_ACEOF
32382 #define HAVE_ISINF_IN_CMATH 1
32387 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32388 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32389 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32390 echo $ECHO_N "(cached) $ECHO_C" >&6
32393 ac_cpp='$CXXCPP $CPPFLAGS'
32394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32398 cat >conftest.$ac_ext <<_ACEOF
32401 cat confdefs.h >>conftest.$ac_ext
32402 cat >>conftest.$ac_ext <<_ACEOF
32403 /* end confdefs.h. */
32408 float f; std::isinf(f)}
32413 rm -f conftest.$ac_objext
32414 if { (ac_try="$ac_compile"
32415 case "(($ac_try" in
32416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32417 *) ac_try_echo=$ac_try;;
32419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420 (eval "$ac_compile") 2>conftest.er1
32422 grep -v '^ *+' conftest.er1 >conftest.err
32424 cat conftest.err >&5
32425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426 (exit $ac_status); } &&
32427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32428 { (case "(($ac_try" in
32429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32430 *) ac_try_echo=$ac_try;;
32432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32433 (eval "$ac_try") 2>&5
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); }; } &&
32437 { ac_try='test -s conftest.$ac_objext'
32438 { (case "(($ac_try" in
32439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32440 *) ac_try_echo=$ac_try;;
32442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32443 (eval "$ac_try") 2>&5
32445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); }; }; then
32447 ac_cv_func_std_isinf_in_cmath=yes
32449 echo "$as_me: failed program was:" >&5
32450 sed 's/^/| /' conftest.$ac_ext >&5
32452 ac_cv_func_std_isinf_in_cmath=no
32455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32457 ac_cpp='$CPP $CPPFLAGS'
32458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32463 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32464 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32466 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32468 cat >>confdefs.h <<\_ACEOF
32469 #define HAVE_STD_ISINF_IN_CMATH 1
32474 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32475 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32476 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32477 echo $ECHO_N "(cached) $ECHO_C" >&6
32480 ac_cpp='$CXXCPP $CPPFLAGS'
32481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32485 cat >conftest.$ac_ext <<_ACEOF
32488 cat confdefs.h >>conftest.$ac_ext
32489 cat >>conftest.$ac_ext <<_ACEOF
32490 /* end confdefs.h. */
32491 #include <ieeefp.h>
32495 float f; finite(f);
32500 rm -f conftest.$ac_objext
32501 if { (ac_try="$ac_compile"
32502 case "(($ac_try" in
32503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504 *) ac_try_echo=$ac_try;;
32506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507 (eval "$ac_compile") 2>conftest.er1
32509 grep -v '^ *+' conftest.er1 >conftest.err
32511 cat conftest.err >&5
32512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513 (exit $ac_status); } &&
32514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32515 { (case "(($ac_try" in
32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517 *) ac_try_echo=$ac_try;;
32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_try") 2>&5
32522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523 (exit $ac_status); }; } &&
32524 { ac_try='test -s conftest.$ac_objext'
32525 { (case "(($ac_try" in
32526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32527 *) ac_try_echo=$ac_try;;
32529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32530 (eval "$ac_try") 2>&5
32532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533 (exit $ac_status); }; }; then
32534 ac_cv_func_finite_in_ieeefp_h=yes
32536 echo "$as_me: failed program was:" >&5
32537 sed 's/^/| /' conftest.$ac_ext >&5
32539 ac_cv_func_finite_in_ieeefp_h=no
32542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32544 ac_cpp='$CPP $CPPFLAGS'
32545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32550 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32551 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32553 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32555 cat >>confdefs.h <<\_ACEOF
32556 #define HAVE_FINITE_IN_IEEEFP_H 1
32565 for ac_header in stdlib.h unistd.h
32567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32572 echo $ECHO_N "(cached) $ECHO_C" >&6
32574 ac_res=`eval echo '${'$as_ac_Header'}'`
32575 { echo "$as_me:$LINENO: result: $ac_res" >&5
32576 echo "${ECHO_T}$ac_res" >&6; }
32578 # Is the header compilable?
32579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32581 cat >conftest.$ac_ext <<_ACEOF
32584 cat confdefs.h >>conftest.$ac_ext
32585 cat >>conftest.$ac_ext <<_ACEOF
32586 /* end confdefs.h. */
32587 $ac_includes_default
32588 #include <$ac_header>
32590 rm -f conftest.$ac_objext
32591 if { (ac_try="$ac_compile"
32592 case "(($ac_try" in
32593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32594 *) ac_try_echo=$ac_try;;
32596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32597 (eval "$ac_compile") 2>conftest.er1
32599 grep -v '^ *+' conftest.er1 >conftest.err
32601 cat conftest.err >&5
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); } &&
32604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; } &&
32614 { ac_try='test -s conftest.$ac_objext'
32615 { (case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_try") 2>&5
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; }; then
32624 ac_header_compiler=yes
32626 echo "$as_me: failed program was:" >&5
32627 sed 's/^/| /' conftest.$ac_ext >&5
32629 ac_header_compiler=no
32632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32634 echo "${ECHO_T}$ac_header_compiler" >&6; }
32636 # Is the header present?
32637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32639 cat >conftest.$ac_ext <<_ACEOF
32642 cat confdefs.h >>conftest.$ac_ext
32643 cat >>conftest.$ac_ext <<_ACEOF
32644 /* end confdefs.h. */
32645 #include <$ac_header>
32647 if { (ac_try="$ac_cpp conftest.$ac_ext"
32648 case "(($ac_try" in
32649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650 *) ac_try_echo=$ac_try;;
32652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32655 grep -v '^ *+' conftest.er1 >conftest.err
32657 cat conftest.err >&5
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); } >/dev/null; then
32660 if test -s conftest.err; then
32661 ac_cpp_err=$ac_c_preproc_warn_flag
32662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32669 if test -z "$ac_cpp_err"; then
32670 ac_header_preproc=yes
32672 echo "$as_me: failed program was:" >&5
32673 sed 's/^/| /' conftest.$ac_ext >&5
32675 ac_header_preproc=no
32678 rm -f conftest.err conftest.$ac_ext
32679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32680 echo "${ECHO_T}$ac_header_preproc" >&6; }
32682 # So? What about this header?
32683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32689 ac_header_preproc=yes
32692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32705 ## ----------------------------------- ##
32706 ## Report this to llvmbugs@cs.uiuc.edu ##
32707 ## ----------------------------------- ##
32709 ) | sed "s/^/$as_me: WARNING: /" >&2
32712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32715 echo $ECHO_N "(cached) $ECHO_C" >&6
32717 eval "$as_ac_Header=\$ac_header_preproc"
32719 ac_res=`eval echo '${'$as_ac_Header'}'`
32720 { echo "$as_me:$LINENO: result: $ac_res" >&5
32721 echo "${ECHO_T}$ac_res" >&6; }
32724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32725 cat >>confdefs.h <<_ACEOF
32726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32734 for ac_func in getpagesize
32736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32740 echo $ECHO_N "(cached) $ECHO_C" >&6
32742 cat >conftest.$ac_ext <<_ACEOF
32745 cat confdefs.h >>conftest.$ac_ext
32746 cat >>conftest.$ac_ext <<_ACEOF
32747 /* end confdefs.h. */
32748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32750 #define $ac_func innocuous_$ac_func
32752 /* System header to define __stub macros and hopefully few prototypes,
32753 which can conflict with char $ac_func (); below.
32754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32755 <limits.h> exists even on freestanding compilers. */
32758 # include <limits.h>
32760 # include <assert.h>
32765 /* Override any GCC internal prototype to avoid an error.
32766 Use char because int might match the return type of a GCC
32767 builtin and then its argument prototype would still apply. */
32772 /* The GNU C library defines this for functions which it implements
32773 to always fail with ENOSYS. Some functions are actually named
32774 something starting with __ and the normal name is an alias. */
32775 #if defined __stub_$ac_func || defined __stub___$ac_func
32782 return $ac_func ();
32787 rm -f conftest.$ac_objext conftest$ac_exeext
32788 if { (ac_try="$ac_link"
32789 case "(($ac_try" in
32790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32791 *) ac_try_echo=$ac_try;;
32793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32794 (eval "$ac_link") 2>conftest.er1
32796 grep -v '^ *+' conftest.er1 >conftest.err
32798 cat conftest.err >&5
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); } &&
32801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32802 { (case "(($ac_try" in
32803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804 *) ac_try_echo=$ac_try;;
32806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807 (eval "$ac_try") 2>&5
32809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 (exit $ac_status); }; } &&
32811 { ac_try='test -s conftest$ac_exeext'
32812 { (case "(($ac_try" in
32813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814 *) ac_try_echo=$ac_try;;
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817 (eval "$ac_try") 2>&5
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); }; }; then
32821 eval "$as_ac_var=yes"
32823 echo "$as_me: failed program was:" >&5
32824 sed 's/^/| /' conftest.$ac_ext >&5
32826 eval "$as_ac_var=no"
32829 rm -f core conftest.err conftest.$ac_objext \
32830 conftest$ac_exeext conftest.$ac_ext
32832 ac_res=`eval echo '${'$as_ac_var'}'`
32833 { echo "$as_me:$LINENO: result: $ac_res" >&5
32834 echo "${ECHO_T}$ac_res" >&6; }
32835 if test `eval echo '${'$as_ac_var'}'` = yes; then
32836 cat >>confdefs.h <<_ACEOF
32837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32843 { echo "$as_me:$LINENO: checking for working mmap" >&5
32844 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32845 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32846 echo $ECHO_N "(cached) $ECHO_C" >&6
32848 if test "$cross_compiling" = yes; then
32849 ac_cv_func_mmap_fixed_mapped=no
32851 cat >conftest.$ac_ext <<_ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h. */
32857 $ac_includes_default
32858 /* malloc might have been renamed as rpl_malloc. */
32861 /* Thanks to Mike Haertel and Jim Avera for this test.
32862 Here is a matrix of mmap possibilities:
32863 mmap private not fixed
32864 mmap private fixed at somewhere currently unmapped
32865 mmap private fixed at somewhere already mapped
32866 mmap shared not fixed
32867 mmap shared fixed at somewhere currently unmapped
32868 mmap shared fixed at somewhere already mapped
32869 For private mappings, we should verify that changes cannot be read()
32870 back from the file, nor mmap's back from the file at a different
32871 address. (There have been systems where private was not correctly
32872 implemented like the infamous i386 svr4.0, and systems where the
32873 VM page cache was not coherent with the file system buffer cache
32874 like early versions of FreeBSD and possibly contemporary NetBSD.)
32875 For shared mappings, we should conversely verify that changes get
32876 propagated back to all the places they're supposed to be.
32878 Grep wants private fixed already mapped.
32879 The main things grep needs to know about mmap are:
32880 * does it exist and is it safe to write into the mmap'd area
32881 * how to use it (BSD variants) */
32884 #include <sys/mman.h>
32886 #if !STDC_HEADERS && !HAVE_STDLIB_H
32890 /* This mess was copied from the GNU getpagesize.h. */
32891 #if !HAVE_GETPAGESIZE
32892 /* Assume that all systems that can run configure have sys/param.h. */
32893 # if !HAVE_SYS_PARAM_H
32894 # define HAVE_SYS_PARAM_H 1
32897 # ifdef _SC_PAGESIZE
32898 # define getpagesize() sysconf(_SC_PAGESIZE)
32899 # else /* no _SC_PAGESIZE */
32900 # if HAVE_SYS_PARAM_H
32901 # include <sys/param.h>
32902 # ifdef EXEC_PAGESIZE
32903 # define getpagesize() EXEC_PAGESIZE
32904 # else /* no EXEC_PAGESIZE */
32906 # define getpagesize() NBPG * CLSIZE
32909 # endif /* no CLSIZE */
32910 # else /* no NBPG */
32912 # define getpagesize() NBPC
32913 # else /* no NBPC */
32915 # define getpagesize() PAGESIZE
32916 # endif /* PAGESIZE */
32917 # endif /* no NBPC */
32918 # endif /* no NBPG */
32919 # endif /* no EXEC_PAGESIZE */
32920 # else /* no HAVE_SYS_PARAM_H */
32921 # define getpagesize() 8192 /* punt totally */
32922 # endif /* no HAVE_SYS_PARAM_H */
32923 # endif /* no _SC_PAGESIZE */
32925 #endif /* no HAVE_GETPAGESIZE */
32930 char *data, *data2, *data3;
32934 pagesize = getpagesize ();
32936 /* First, make a file with some known garbage in it. */
32937 data = (char *) malloc (pagesize);
32940 for (i = 0; i < pagesize; ++i)
32941 *(data + i) = rand ();
32943 fd = creat ("conftest.mmap", 0600);
32946 if (write (fd, data, pagesize) != pagesize)
32950 /* Next, try to mmap the file at a fixed address which already has
32951 something else allocated at it. If we can, also make sure that
32952 we see the same garbage. */
32953 fd = open ("conftest.mmap", O_RDWR);
32956 data2 = (char *) malloc (2 * pagesize);
32959 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32960 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32961 MAP_PRIVATE | MAP_FIXED, fd, 0L))
32963 for (i = 0; i < pagesize; ++i)
32964 if (*(data + i) != *(data2 + i))
32967 /* Finally, make sure that changes to the mapped area do not
32968 percolate back to the file as seen by read(). (This is a bug on
32969 some variants of i386 svr4.0.) */
32970 for (i = 0; i < pagesize; ++i)
32971 *(data2 + i) = *(data2 + i) + 1;
32972 data3 = (char *) malloc (pagesize);
32975 if (read (fd, data3, pagesize) != pagesize)
32977 for (i = 0; i < pagesize; ++i)
32978 if (*(data + i) != *(data3 + i))
32984 rm -f conftest$ac_exeext
32985 if { (ac_try="$ac_link"
32986 case "(($ac_try" in
32987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32988 *) ac_try_echo=$ac_try;;
32990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32991 (eval "$ac_link") 2>&5
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32995 { (case "(($ac_try" in
32996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32997 *) ac_try_echo=$ac_try;;
32999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33000 (eval "$ac_try") 2>&5
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); }; }; then
33004 ac_cv_func_mmap_fixed_mapped=yes
33006 echo "$as_me: program exited with status $ac_status" >&5
33007 echo "$as_me: failed program was:" >&5
33008 sed 's/^/| /' conftest.$ac_ext >&5
33010 ( exit $ac_status )
33011 ac_cv_func_mmap_fixed_mapped=no
33013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33018 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33019 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33020 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33022 cat >>confdefs.h <<\_ACEOF
33023 #define HAVE_MMAP 1
33027 rm -f conftest.mmap
33029 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33030 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33031 if test "${ac_cv_func_mmap_file+set}" = set; then
33032 echo $ECHO_N "(cached) $ECHO_C" >&6
33035 ac_cpp='$CPP $CPPFLAGS'
33036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33040 if test "$cross_compiling" = yes; then
33041 ac_cv_func_mmap_file=no
33043 cat >conftest.$ac_ext <<_ACEOF
33047 cat confdefs.h >>conftest.$ac_ext
33048 cat >>conftest.$ac_ext <<_ACEOF
33049 /* end confdefs.h. */
33051 #include <sys/types.h>
33052 #include <sys/mman.h>
33060 fd = creat ("foo",0777);
33061 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33063 return (fd != (int) MAP_FAILED);
33068 rm -f conftest$ac_exeext
33069 if { (ac_try="$ac_link"
33070 case "(($ac_try" in
33071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072 *) ac_try_echo=$ac_try;;
33074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075 (eval "$ac_link") 2>&5
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33079 { (case "(($ac_try" in
33080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33081 *) ac_try_echo=$ac_try;;
33083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33084 (eval "$ac_try") 2>&5
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); }; }; then
33088 ac_cv_func_mmap_file=yes
33090 echo "$as_me: program exited with status $ac_status" >&5
33091 echo "$as_me: failed program was:" >&5
33092 sed 's/^/| /' conftest.$ac_ext >&5
33094 ( exit $ac_status )
33095 ac_cv_func_mmap_file=no
33097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33102 ac_cpp='$CPP $CPPFLAGS'
33103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33109 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33110 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33111 if test "$ac_cv_func_mmap_file" = yes; then
33113 cat >>confdefs.h <<\_ACEOF
33114 #define HAVE_MMAP_FILE
33121 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33122 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33123 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33124 echo $ECHO_N "(cached) $ECHO_C" >&6
33126 if test "$llvm_cv_os_type" = "Interix" ; then
33127 ac_cv_need_dev_zero_for_mmap=yes
33129 ac_cv_need_dev_zero_for_mmap=no
33133 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33134 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33135 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33137 cat >>confdefs.h <<\_ACEOF
33138 #define NEED_DEV_ZERO_FOR_MMAP 1
33142 { echo "$as_me:$LINENO: checking for mprotect" >&5
33143 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33144 if test "${ac_cv_func_mprotect+set}" = set; then
33145 echo $ECHO_N "(cached) $ECHO_C" >&6
33147 cat >conftest.$ac_ext <<_ACEOF
33150 cat confdefs.h >>conftest.$ac_ext
33151 cat >>conftest.$ac_ext <<_ACEOF
33152 /* end confdefs.h. */
33153 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33155 #define mprotect innocuous_mprotect
33157 /* System header to define __stub macros and hopefully few prototypes,
33158 which can conflict with char mprotect (); below.
33159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33160 <limits.h> exists even on freestanding compilers. */
33163 # include <limits.h>
33165 # include <assert.h>
33170 /* Override any GCC internal prototype to avoid an error.
33171 Use char because int might match the return type of a GCC
33172 builtin and then its argument prototype would still apply. */
33177 /* The GNU C library defines this for functions which it implements
33178 to always fail with ENOSYS. Some functions are actually named
33179 something starting with __ and the normal name is an alias. */
33180 #if defined __stub_mprotect || defined __stub___mprotect
33187 return mprotect ();
33192 rm -f conftest.$ac_objext conftest$ac_exeext
33193 if { (ac_try="$ac_link"
33194 case "(($ac_try" in
33195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33196 *) ac_try_echo=$ac_try;;
33198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199 (eval "$ac_link") 2>conftest.er1
33201 grep -v '^ *+' conftest.er1 >conftest.err
33203 cat conftest.err >&5
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); } &&
33206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33207 { (case "(($ac_try" in
33208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33209 *) ac_try_echo=$ac_try;;
33211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33212 (eval "$ac_try") 2>&5
33214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215 (exit $ac_status); }; } &&
33216 { ac_try='test -s conftest$ac_exeext'
33217 { (case "(($ac_try" in
33218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33219 *) ac_try_echo=$ac_try;;
33221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33222 (eval "$ac_try") 2>&5
33224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225 (exit $ac_status); }; }; then
33226 ac_cv_func_mprotect=yes
33228 echo "$as_me: failed program was:" >&5
33229 sed 's/^/| /' conftest.$ac_ext >&5
33231 ac_cv_func_mprotect=no
33234 rm -f core conftest.err conftest.$ac_objext \
33235 conftest$ac_exeext conftest.$ac_ext
33237 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33238 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33239 if test $ac_cv_func_mprotect = yes; then
33242 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33243 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33244 { (exit 1); exit 1; }; }
33248 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33250 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33251 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33253 if test "$ac_cv_func_mmap_file" = "no"
33255 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33256 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33260 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33261 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33262 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33263 echo $ECHO_N "(cached) $ECHO_C" >&6
33265 llvm_cv_llvmgcc_sanity="no"
33266 if test -x "$LLVMGCC" ; then
33267 cp /dev/null conftest.c
33268 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33269 if test $? -eq 0 ; then
33270 llvm_cv_llvmgcc_sanity="yes"
33275 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33276 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33278 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33279 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33280 LLVMCC1=$llvmcc1path
33282 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33283 LLVMCC1PLUS=$llvmcc1pluspath
33285 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33286 LLVMGCCDIR=$llvmgccdir
33288 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33289 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33290 LLVMGCC_VERSION=$llvmgccversion
33292 LLVMGCC_MAJVERS=$llvmgccmajvers
33296 SHLIBEXT=$libltdl_cv_shlibext
33299 # Translate the various configuration directories and other basic
33300 # information into substitutions that will end up in Makefile.config.in
33301 # that these configured values can be used by the makefiles
33302 if test "${prefix}" == "NONE" ; then
33303 prefix="/usr/local"
33305 eval LLVM_PREFIX="${prefix}";
33306 eval LLVM_BINDIR="${prefix}/bin";
33307 eval LLVM_LIBDIR="${prefix}/lib";
33308 eval LLVM_DATADIR="${prefix}/share/llvm";
33309 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33310 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33311 eval LLVM_INCLUDEDIR="${prefix}/include";
33312 eval LLVM_INFODIR="${prefix}/info";
33313 eval LLVM_MANDIR="${prefix}/man";
33314 LLVM_CONFIGTIME=`date`
33326 # Place the various directores into the config.h file as #defines so that we
33327 # can know about the installation paths within LLVM.
33329 cat >>confdefs.h <<_ACEOF
33330 #define LLVM_PREFIX "$LLVM_PREFIX"
33334 cat >>confdefs.h <<_ACEOF
33335 #define LLVM_BINDIR "$LLVM_BINDIR"
33339 cat >>confdefs.h <<_ACEOF
33340 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33344 cat >>confdefs.h <<_ACEOF
33345 #define LLVM_DATADIR "$LLVM_DATADIR"
33349 cat >>confdefs.h <<_ACEOF
33350 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33354 cat >>confdefs.h <<_ACEOF
33355 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33359 cat >>confdefs.h <<_ACEOF
33360 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33364 cat >>confdefs.h <<_ACEOF
33365 #define LLVM_INFODIR "$LLVM_INFODIR"
33369 cat >>confdefs.h <<_ACEOF
33370 #define LLVM_MANDIR "$LLVM_MANDIR"
33374 cat >>confdefs.h <<_ACEOF
33375 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33380 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33382 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33384 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33386 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33388 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33391 ac_config_files="$ac_config_files Makefile.config"
33394 ac_config_files="$ac_config_files llvm.spec"
33397 ac_config_files="$ac_config_files docs/doxygen.cfg"
33400 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33403 ac_config_commands="$ac_config_commands setup"
33405 ac_config_commands="$ac_config_commands Makefile"
33408 ac_config_commands="$ac_config_commands Makefile.common"
33411 ac_config_commands="$ac_config_commands examples/Makefile"
33414 ac_config_commands="$ac_config_commands lib/Makefile"
33417 ac_config_commands="$ac_config_commands test/Makefile"
33420 ac_config_commands="$ac_config_commands test/Makefile.tests"
33423 ac_config_commands="$ac_config_commands tools/Makefile"
33426 ac_config_commands="$ac_config_commands utils/Makefile"
33429 ac_config_commands="$ac_config_commands projects/Makefile"
33433 cat >confcache <<\_ACEOF
33434 # This file is a shell script that caches the results of configure
33435 # tests run on this system so they can be shared between configure
33436 # scripts and configure runs, see configure's option --config-cache.
33437 # It is not useful on other systems. If it contains results you don't
33438 # want to keep, you may remove or edit it.
33440 # config.status only pays attention to the cache file if you give it
33441 # the --recheck option to rerun configure.
33443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33445 # following values.
33449 # The following way of writing the cache mishandles newlines in values,
33450 # but we know of no workaround that is simple, portable, and efficient.
33451 # So, we kill variables containing newlines.
33452 # Ultrix sh set writes to stderr and can't be redirected directly,
33453 # and sets the high bit in the cache file unless we assign to the vars.
33455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33456 eval ac_val=\$$ac_var
33460 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33461 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33464 _ | IFS | as_nl) ;; #(
33465 *) $as_unset $ac_var ;;
33471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33472 *${as_nl}ac_space=\ *)
33473 # `set' does not quote correctly, so add quotes (double-quote
33474 # substitution turns \\\\ into \\, and sed turns \\ into \).
33477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33480 # `set' quotes correctly as required by POSIX, so do not add quotes.
33481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33495 if test -w "$cache_file"; then
33496 test "x$cache_file" != "x/dev/null" &&
33497 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33498 echo "$as_me: updating cache $cache_file" >&6;}
33499 cat confcache >$cache_file
33501 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33502 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33508 # Let make expand exec_prefix.
33509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33511 DEFS=-DHAVE_CONFIG_H
33515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33516 # 1. Remove the extension, and $U if already installed.
33517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33518 ac_i=`echo "$ac_i" | sed "$ac_script"`
33519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33520 # will be set to the directory where LIBOBJS objects are built.
33521 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33522 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33524 LIBOBJS=$ac_libobjs
33526 LTLIBOBJS=$ac_ltlibobjs
33529 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33530 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33531 Usually this means the macro was only invoked conditionally." >&5
33532 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33533 Usually this means the macro was only invoked conditionally." >&2;}
33534 { (exit 1); exit 1; }; }
33536 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33537 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33538 Usually this means the macro was only invoked conditionally." >&5
33539 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33540 Usually this means the macro was only invoked conditionally." >&2;}
33541 { (exit 1); exit 1; }; }
33544 : ${CONFIG_STATUS=./config.status}
33545 ac_clean_files_save=$ac_clean_files
33546 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33547 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33548 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33549 cat >$CONFIG_STATUS <<_ACEOF
33551 # Generated by $as_me.
33552 # Run this file to recreate the current configuration.
33553 # Compiler output produced by configure, useful for debugging
33554 # configure, is in config.log if it exists.
33557 ac_cs_recheck=false
33559 SHELL=\${CONFIG_SHELL-$SHELL}
33562 cat >>$CONFIG_STATUS <<\_ACEOF
33563 ## --------------------- ##
33564 ## M4sh Initialization. ##
33565 ## --------------------- ##
33567 # Be Bourne compatible
33568 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33571 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33572 # is contrary to our usage. Disable this feature.
33573 alias -g '${1+"$@"}'='"$@"'
33574 setopt NO_GLOB_SUBST
33576 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33578 BIN_SH=xpg4; export BIN_SH # for Tru64
33579 DUALCASE=1; export DUALCASE # for MKS sh
33583 # Avoid depending upon Character Ranges.
33584 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33585 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33586 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33587 as_cr_digits='0123456789'
33588 as_cr_alnum=$as_cr_Letters$as_cr_digits
33590 # The user is always right.
33591 if test "${PATH_SEPARATOR+set}" != set; then
33592 echo "#! /bin/sh" >conf$$.sh
33593 echo "exit 0" >>conf$$.sh
33595 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33603 # Support unset when possible.
33604 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33612 # We need space, tab and new line, in precisely that order. Quoting is
33613 # there to prevent editors from complaining about space-tab.
33614 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33615 # splitting by setting IFS to empty value.)
33620 # Find who we are. Look in the path if we contain no directory separator.
33622 *[\\/]* ) as_myself=$0 ;;
33623 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33624 for as_dir in $PATH
33627 test -z "$as_dir" && as_dir=.
33628 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33634 # We did not find ourselves, most probably we were run as `sh COMMAND'
33635 # in which case we are not to be found in the path.
33636 if test "x$as_myself" = x; then
33639 if test ! -f "$as_myself"; then
33640 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33641 { (exit 1); exit 1; }
33644 # Work around bugs in pre-3.0 UWIN ksh.
33645 for as_var in ENV MAIL MAILPATH
33646 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33654 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33655 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33656 LC_TELEPHONE LC_TIME
33658 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33659 eval $as_var=C; export $as_var
33661 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33665 # Required to use basename.
33666 if expr a : '\(a\)' >/dev/null 2>&1 &&
33667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33673 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33674 as_basename=basename
33680 # Name of the executable.
33681 as_me=`$as_basename -- "$0" ||
33682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33683 X"$0" : 'X\(//\)$' \| \
33684 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33686 sed '/^.*\/\([^/][^/]*\)\/*$/{
33705 as_lineno_1=$LINENO
33706 as_lineno_2=$LINENO
33707 test "x$as_lineno_1" != "x$as_lineno_2" &&
33708 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33711 # uniformly replaced by the line number. The first 'sed' inserts a
33712 # line-number line after each line using $LINENO; the second 'sed'
33713 # does the real work. The second script uses 'N' to pair each
33714 # line-number line with the line containing $LINENO, and appends
33715 # trailing '-' during substitution so that $LINENO is not a special
33716 # case at line end.
33717 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33718 # scripts with optimization help from Paolo Bonzini. Blame Lee
33719 # E. McMahon (1931-1989) for sed's syntax. :-)
33731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33734 ' >$as_me.lineno &&
33735 chmod +x "$as_me.lineno" ||
33736 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33737 { (exit 1); exit 1; }; }
33739 # Don't try to exec as it changes $[0], causing all sort of problems
33740 # (the dirname of $[0] is not the place where we might find the
33741 # original and so on. Autoconf is especially sensitive to this).
33742 . "./$as_me.lineno"
33743 # Exit status is that of the last command.
33748 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33754 ECHO_C= ECHO_N= ECHO_T=
33755 case `echo -n x` in
33757 case `echo 'x\c'` in
33758 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33765 if expr a : '\(a\)' >/dev/null 2>&1 &&
33766 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33772 rm -f conf$$ conf$$.exe conf$$.file
33773 if test -d conf$$.dir; then
33774 rm -f conf$$.dir/conf$$.file
33780 if ln -s conf$$.file conf$$ 2>/dev/null; then
33782 # ... but there are two gotchas:
33783 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33784 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33785 # In both cases, we have to default to `cp -p'.
33786 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33788 elif ln conf$$.file conf$$ 2>/dev/null; then
33793 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33794 rmdir conf$$.dir 2>/dev/null
33796 if mkdir -p . 2>/dev/null; then
33799 test -d ./-p && rmdir ./-p
33803 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33804 # systems may use methods other than mode bits to determine executability.
33805 cat >conf$$.file <<_ASEOF
33809 chmod +x conf$$.file
33810 if test -x conf$$.file >/dev/null 2>&1; then
33811 as_executable_p="test -x"
33817 # Sed expression to map a string onto a valid CPP name.
33818 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33820 # Sed expression to map a string onto a valid variable name.
33821 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33826 # Save the log message, to keep $[0] and so on meaningful, and to
33827 # report actual input values of CONFIG_FILES etc. instead of their
33828 # values after options handling.
33830 This file was extended by llvm $as_me 2.0cvs, which was
33831 generated by GNU Autoconf 2.60. Invocation command line was
33833 CONFIG_FILES = $CONFIG_FILES
33834 CONFIG_HEADERS = $CONFIG_HEADERS
33835 CONFIG_LINKS = $CONFIG_LINKS
33836 CONFIG_COMMANDS = $CONFIG_COMMANDS
33839 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33844 cat >>$CONFIG_STATUS <<_ACEOF
33845 # Files that config.status was made for.
33846 config_files="$ac_config_files"
33847 config_headers="$ac_config_headers"
33848 config_commands="$ac_config_commands"
33852 cat >>$CONFIG_STATUS <<\_ACEOF
33854 \`$as_me' instantiates files from templates according to the
33855 current configuration.
33857 Usage: $0 [OPTIONS] [FILE]...
33859 -h, --help print this help, then exit
33860 -V, --version print version number, then exit
33861 -q, --quiet do not print progress messages
33862 -d, --debug don't remove temporary files
33863 --recheck update $as_me by reconfiguring in the same conditions
33864 --file=FILE[:TEMPLATE]
33865 instantiate the configuration file FILE
33866 --header=FILE[:TEMPLATE]
33867 instantiate the configuration header FILE
33869 Configuration files:
33872 Configuration headers:
33875 Configuration commands:
33878 Report bugs to <bug-autoconf@gnu.org>."
33881 cat >>$CONFIG_STATUS <<_ACEOF
33883 llvm config.status 2.0cvs
33884 configured by $0, generated by GNU Autoconf 2.60,
33885 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33887 Copyright (C) 2006 Free Software Foundation, Inc.
33888 This config.status script is free software; the Free Software Foundation
33889 gives unlimited permission to copy, distribute and modify it."
33896 cat >>$CONFIG_STATUS <<\_ACEOF
33897 # If no file are specified by the user, then we need to provide default
33898 # value. By we need to know if files were specified by the user.
33904 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33905 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33916 # Handling of the options.
33917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33920 echo "$ac_cs_version"; exit ;;
33921 --debug | --debu | --deb | --de | --d | -d )
33923 --file | --fil | --fi | --f )
33925 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33926 ac_need_defaults=false;;
33927 --header | --heade | --head | --hea )
33929 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33930 ac_need_defaults=false;;
33932 # Conflict between --help and --header
33933 { echo "$as_me: error: ambiguous option: $1
33934 Try \`$0 --help' for more information." >&2
33935 { (exit 1); exit 1; }; };;
33936 --help | --hel | -h )
33937 echo "$ac_cs_usage"; exit ;;
33938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33942 # This is an error.
33943 -*) { echo "$as_me: error: unrecognized option: $1
33944 Try \`$0 --help' for more information." >&2
33945 { (exit 1); exit 1; }; } ;;
33947 *) ac_config_targets="$ac_config_targets $1"
33948 ac_need_defaults=false ;;
33954 ac_configure_extra_args=
33956 if $ac_cs_silent; then
33958 ac_configure_extra_args="$ac_configure_extra_args --silent"
33962 cat >>$CONFIG_STATUS <<_ACEOF
33963 if \$ac_cs_recheck; then
33964 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33965 CONFIG_SHELL=$SHELL
33966 export CONFIG_SHELL
33967 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33971 cat >>$CONFIG_STATUS <<\_ACEOF
33975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33976 ## Running $as_me. ##
33982 cat >>$CONFIG_STATUS <<_ACEOF
33986 llvm_src="${srcdir}"
33990 cat >>$CONFIG_STATUS <<\_ACEOF
33992 # Handling of arguments.
33993 for ac_config_target in $ac_config_targets
33995 case $ac_config_target in
33996 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33997 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
33998 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
33999 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34000 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34001 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34002 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34003 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34004 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34005 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34006 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34007 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34008 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34009 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34010 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34011 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34012 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34013 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34014 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34016 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34017 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34018 { (exit 1); exit 1; }; };;
34023 # If the user did not use the arguments to specify the items to instantiate,
34024 # then the envvar interface is used. Set only those that are not.
34025 # We use the long form for the default assignment because of an extremely
34026 # bizarre bug on SunOS 4.1.3.
34027 if $ac_need_defaults; then
34028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34033 # Have a temporary directory for convenience. Make it in the build tree
34034 # simply because there is no reason against having it here, and in addition,
34035 # creating and moving files from /tmp can sometimes cause problems.
34036 # Hook for its removal unless debugging.
34037 # Note that there is a small window in which the directory will not be cleaned:
34038 # after its creation but before its name has been assigned to `$tmp'.
34042 trap 'exit_status=$?
34043 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34045 trap '{ (exit 1); exit 1; }' 1 2 13 15
34047 # Create a (secure) tmp directory for tmp files.
34050 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34051 test -n "$tmp" && test -d "$tmp"
34054 tmp=./conf$$-$RANDOM
34055 (umask 077 && mkdir "$tmp")
34058 echo "$me: cannot create a temporary directory in ." >&2
34059 { (exit 1); exit 1; }
34063 # Set up the sed scripts for CONFIG_FILES section.
34066 # No need to generate the scripts if there are no CONFIG_FILES.
34067 # This happens for instance when ./config.status config.h
34068 if test -n "$CONFIG_FILES"; then
34075 for ac_last_try in false false false false false :; do
34076 cat >conf$$subs.sed <<_ACEOF
34077 SHELL!$SHELL$ac_delim
34078 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34079 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34080 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34081 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34082 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34083 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34084 exec_prefix!$exec_prefix$ac_delim
34085 prefix!$prefix$ac_delim
34086 program_transform_name!$program_transform_name$ac_delim
34087 bindir!$bindir$ac_delim
34088 sbindir!$sbindir$ac_delim
34089 libexecdir!$libexecdir$ac_delim
34090 datarootdir!$datarootdir$ac_delim
34091 datadir!$datadir$ac_delim
34092 sysconfdir!$sysconfdir$ac_delim
34093 sharedstatedir!$sharedstatedir$ac_delim
34094 localstatedir!$localstatedir$ac_delim
34095 includedir!$includedir$ac_delim
34096 oldincludedir!$oldincludedir$ac_delim
34097 docdir!$docdir$ac_delim
34098 infodir!$infodir$ac_delim
34099 htmldir!$htmldir$ac_delim
34100 dvidir!$dvidir$ac_delim
34101 pdfdir!$pdfdir$ac_delim
34102 psdir!$psdir$ac_delim
34103 libdir!$libdir$ac_delim
34104 localedir!$localedir$ac_delim
34105 mandir!$mandir$ac_delim
34106 DEFS!$DEFS$ac_delim
34107 ECHO_C!$ECHO_C$ac_delim
34108 ECHO_N!$ECHO_N$ac_delim
34109 ECHO_T!$ECHO_T$ac_delim
34110 LIBS!$LIBS$ac_delim
34111 build_alias!$build_alias$ac_delim
34112 host_alias!$host_alias$ac_delim
34113 target_alias!$target_alias$ac_delim
34114 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34115 subdirs!$subdirs$ac_delim
34116 build!$build$ac_delim
34117 build_cpu!$build_cpu$ac_delim
34118 build_vendor!$build_vendor$ac_delim
34119 build_os!$build_os$ac_delim
34120 host!$host$ac_delim
34121 host_cpu!$host_cpu$ac_delim
34122 host_vendor!$host_vendor$ac_delim
34123 host_os!$host_os$ac_delim
34124 target!$target$ac_delim
34125 target_cpu!$target_cpu$ac_delim
34126 target_vendor!$target_vendor$ac_delim
34127 target_os!$target_os$ac_delim
34129 LINKALL!$LINKALL$ac_delim
34130 NOLINKALL!$NOLINKALL$ac_delim
34131 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34132 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34133 ARCH!$ARCH$ac_delim
34134 ENDIAN!$ENDIAN$ac_delim
34136 CFLAGS!$CFLAGS$ac_delim
34137 LDFLAGS!$LDFLAGS$ac_delim
34138 CPPFLAGS!$CPPFLAGS$ac_delim
34139 ac_ct_CC!$ac_ct_CC$ac_delim
34140 EXEEXT!$EXEEXT$ac_delim
34141 OBJEXT!$OBJEXT$ac_delim
34143 GREP!$GREP$ac_delim
34144 EGREP!$EGREP$ac_delim
34145 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34146 BUILD_CC!$BUILD_CC$ac_delim
34147 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34148 CVSBUILD!$CVSBUILD$ac_delim
34149 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34150 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34152 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34153 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34154 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34155 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34156 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34157 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34159 CXXFLAGS!$CXXFLAGS$ac_delim
34160 ac_ct_CXX!$ac_ct_CXX$ac_delim
34162 LEXLIB!$LEXLIB$ac_delim
34163 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34164 FLEX!$FLEX$ac_delim
34165 YACC!$YACC$ac_delim
34166 YFLAGS!$YFLAGS$ac_delim
34167 BISON!$BISON$ac_delim
34169 ifGNUmake!$ifGNUmake$ac_delim
34170 LN_S!$LN_S$ac_delim
34173 DATE!$DATE$ac_delim
34176 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34178 elif $ac_last_try; then
34179 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34180 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34181 { (exit 1); exit 1; }; }
34183 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34187 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34188 if test -n "$ac_eof"; then
34189 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34190 ac_eof=`expr $ac_eof + 1`
34193 cat >>$CONFIG_STATUS <<_ACEOF
34194 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34198 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34199 s/^/s,@/; s/!/@,|#_!!_#|/
34202 s/'"$ac_delim"'$/,g/; t
34204 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34205 ' >>$CONFIG_STATUS <conf$$subs.sed
34206 rm -f conf$$subs.sed
34207 cat >>$CONFIG_STATUS <<_ACEOF
34213 for ac_last_try in false false false false false :; do
34214 cat >conf$$subs.sed <<_ACEOF
34215 FIND!$FIND$ac_delim
34216 MKDIR!$MKDIR$ac_delim
34218 RANLIB!$RANLIB$ac_delim
34222 BINPWD!$BINPWD$ac_delim
34223 GRAPHVIZ!$GRAPHVIZ$ac_delim
34226 DOTTY!$DOTTY$ac_delim
34227 PERL!$PERL$ac_delim
34228 HAVE_PERL!$HAVE_PERL$ac_delim
34229 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34230 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34231 INSTALL_DATA!$INSTALL_DATA$ac_delim
34232 BZIP2!$BZIP2$ac_delim
34233 DOXYGEN!$DOXYGEN$ac_delim
34234 GROFF!$GROFF$ac_delim
34235 GZIP!$GZIP$ac_delim
34236 POD2HTML!$POD2HTML$ac_delim
34237 POD2MAN!$POD2MAN$ac_delim
34238 RUNTEST!$RUNTEST$ac_delim
34239 TCLSH!$TCLSH$ac_delim
34241 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34242 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34243 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34244 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34245 LIBADD_DL!$LIBADD_DL$ac_delim
34246 ECHO!$ECHO$ac_delim
34248 STRIP!$STRIP$ac_delim
34249 CXXCPP!$CXXCPP$ac_delim
34251 FFLAGS!$FFLAGS$ac_delim
34252 ac_ct_F77!$ac_ct_F77$ac_delim
34253 LIBTOOL!$LIBTOOL$ac_delim
34254 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34255 LLVMGCC!$LLVMGCC$ac_delim
34256 LLVMGXX!$LLVMGXX$ac_delim
34257 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34258 ALLOCA!$ALLOCA$ac_delim
34259 MMAP_FILE!$MMAP_FILE$ac_delim
34260 LLVMCC1!$LLVMCC1$ac_delim
34261 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34262 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34263 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34264 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34265 SHLIBEXT!$SHLIBEXT$ac_delim
34266 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34267 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34268 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34269 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34270 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34271 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34272 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34273 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34274 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34275 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34276 LIBOBJS!$LIBOBJS$ac_delim
34277 LTLIBOBJS!$LTLIBOBJS$ac_delim
34280 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
34282 elif $ac_last_try; then
34283 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34284 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34285 { (exit 1); exit 1; }; }
34287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34291 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34292 if test -n "$ac_eof"; then
34293 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34294 ac_eof=`expr $ac_eof + 1`
34297 cat >>$CONFIG_STATUS <<_ACEOF
34298 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34299 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34302 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34303 s/^/s,@/; s/!/@,|#_!!_#|/
34306 s/'"$ac_delim"'$/,g/; t
34308 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34309 ' >>$CONFIG_STATUS <conf$$subs.sed
34310 rm -f conf$$subs.sed
34311 cat >>$CONFIG_STATUS <<_ACEOF
34318 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34319 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34320 # trailing colons and then remove the whole line if VPATH becomes empty
34321 # (actually we leave an empty line to preserve line numbers).
34322 if test "x$srcdir" = x.; then
34323 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34324 s/:*\$(srcdir):*/:/
34325 s/:*\${srcdir}:*/:/
34327 s/^\([^=]*=[ ]*\):*/\1/
34333 cat >>$CONFIG_STATUS <<\_ACEOF
34334 fi # test -n "$CONFIG_FILES"
34337 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34340 :[FHLC]) ac_mode=$ac_tag; continue;;
34342 case $ac_mode$ac_tag in
34344 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34345 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34346 { (exit 1); exit 1; }; };;
34347 :[FH]-) ac_tag=-:-;;
34348 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34365 -) ac_f="$tmp/stdin";;
34366 *) # Look for the file first in the build tree, then in the source tree
34367 # (if the path is not absolute). The absolute path cannot be DOS-style,
34368 # because $ac_f cannot contain `:'.
34372 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34374 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34375 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34376 { (exit 1); exit 1; }; };;
34378 ac_file_inputs="$ac_file_inputs $ac_f"
34381 # Let's still pretend it is `configure' which instantiates (i.e., don't
34382 # use $as_me), people would be surprised to read:
34383 # /* config.h. Generated by config.status. */
34384 configure_input="Generated from "`IFS=:
34385 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34386 if test x"$ac_file" != x-; then
34387 configure_input="$ac_file. $configure_input"
34388 { echo "$as_me:$LINENO: creating $ac_file" >&5
34389 echo "$as_me: creating $ac_file" >&6;}
34393 *:-:* | *:-) cat >"$tmp/stdin";;
34398 ac_dir=`$as_dirname -- "$ac_file" ||
34399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34400 X"$ac_file" : 'X\(//\)[^/]' \| \
34401 X"$ac_file" : 'X\(//\)$' \| \
34402 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34408 /^X\(\/\/\)[^/].*/{
34423 -*) as_dir=./$as_dir;;
34425 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34429 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34430 *) as_qdir=$as_dir;;
34432 as_dirs="'$as_qdir' $as_dirs"
34433 as_dir=`$as_dirname -- "$as_dir" ||
34434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34435 X"$as_dir" : 'X\(//\)[^/]' \| \
34436 X"$as_dir" : 'X\(//\)$' \| \
34437 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34443 /^X\(\/\/\)[^/].*/{
34456 test -d "$as_dir" && break
34458 test -z "$as_dirs" || eval "mkdir $as_dirs"
34459 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34460 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34461 { (exit 1); exit 1; }; }; }
34465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34467 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34468 # A ".." for each directory in $ac_dir_suffix.
34469 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34470 case $ac_top_builddir_sub in
34471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34475 ac_abs_top_builddir=$ac_pwd
34476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34477 # for backward compatibility:
34478 ac_top_builddir=$ac_top_build_prefix
34481 .) # We are building in place.
34483 ac_top_srcdir=$ac_top_builddir_sub
34484 ac_abs_top_srcdir=$ac_pwd ;;
34485 [\\/]* | ?:[\\/]* ) # Absolute name.
34486 ac_srcdir=$srcdir$ac_dir_suffix;
34487 ac_top_srcdir=$srcdir
34488 ac_abs_top_srcdir=$srcdir ;;
34489 *) # Relative name.
34490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34491 ac_top_srcdir=$ac_top_build_prefix$srcdir
34492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34504 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34505 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34509 cat >>$CONFIG_STATUS <<\_ACEOF
34510 # If the template does not know about datarootdir, expand it.
34511 # FIXME: This hack should be removed a few years after 2.60.
34512 ac_datarootdir_hack=; ac_datarootdir_seen=
34514 case `sed -n '/datarootdir/ {
34523 ' $ac_file_inputs` in
34524 *datarootdir*) ac_datarootdir_seen=yes;;
34525 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34526 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34527 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34529 cat >>$CONFIG_STATUS <<_ACEOF
34530 ac_datarootdir_hack='
34531 s&@datadir@&$datadir&g
34532 s&@docdir@&$docdir&g
34533 s&@infodir@&$infodir&g
34534 s&@localedir@&$localedir&g
34535 s&@mandir@&$mandir&g
34536 s&\\\${datarootdir}&$datarootdir&g' ;;
34540 # Neutralize VPATH when `$srcdir' = `.'.
34541 # Shell code in configure.ac might set extrasub.
34542 # FIXME: do we really want to maintain this feature?
34543 cat >>$CONFIG_STATUS <<_ACEOF
34547 cat >>$CONFIG_STATUS <<\_ACEOF
34549 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34550 s&@configure_input@&$configure_input&;t t
34551 s&@top_builddir@&$ac_top_builddir_sub&;t t
34552 s&@srcdir@&$ac_srcdir&;t t
34553 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34554 s&@top_srcdir@&$ac_top_srcdir&;t t
34555 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34556 s&@builddir@&$ac_builddir&;t t
34557 s&@abs_builddir@&$ac_abs_builddir&;t t
34558 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34559 s&@INSTALL@&$ac_INSTALL&;t t
34560 $ac_datarootdir_hack
34561 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34563 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34564 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34565 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34566 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34567 which seems to be undefined. Please make sure it is defined." >&5
34568 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34569 which seems to be undefined. Please make sure it is defined." >&2;}
34573 -) cat "$tmp/out"; rm -f "$tmp/out";;
34574 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34583 # Transform confdefs.h into a sed script `conftest.defines', that
34584 # substitutes the proper values into config.h.in to produce config.h.
34585 rm -f conftest.defines conftest.tail
34586 # First, append a space to every undef/define line, to ease matching.
34587 echo 's/$/ /' >conftest.defines
34588 # Then, protect against being on the right side of a sed subst, or in
34589 # an unquoted here document, in config.status. If some macros were
34590 # called several times there might be several #defines for the same
34591 # symbol, which is useless. But do not sort them, since the last
34592 # AC_DEFINE must be honored.
34593 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34594 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34595 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34596 # PARAMS is the parameter list in the macro definition--in most cases, it's
34597 # just an empty string.
34598 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34599 ac_dB='\\)[ (].*,\\1define\\2'
34607 s/^[ ]*#[ ]*define[ ][ ]*//
34612 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34613 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34614 ' >>conftest.defines
34616 # Remove the space that was appended to ease matching.
34617 # Then replace #undef with comments. This is necessary, for
34618 # example, in the case of _POSIX_SOURCE, which is predefined and required
34619 # on some systems where configure will not decide to define it.
34620 # (The regexp can be short, since the line contains either #define or #undef.)
34622 s,^[ #]*u.*,/* & */,' >>conftest.defines
34624 # Break up conftest.defines:
34625 ac_max_sed_lines=50
34627 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34628 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34629 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34631 ac_in='$ac_file_inputs'
34632 ac_out='"$tmp/out1"'
34633 ac_nxt='"$tmp/out2"'
34637 # Write a here document:
34638 cat >>$CONFIG_STATUS <<_ACEOF
34639 # First, check the format of the line:
34640 cat >"\$tmp/defines.sed" <<\\CEOF
34641 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34642 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34646 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34648 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34649 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34650 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34651 grep . conftest.tail >/dev/null || break
34652 rm -f conftest.defines
34653 mv conftest.tail conftest.defines
34655 rm -f conftest.defines conftest.tail
34657 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34658 cat >>$CONFIG_STATUS <<\_ACEOF
34659 if test x"$ac_file" != x-; then
34660 echo "/* $configure_input */" >"$tmp/config.h"
34661 cat "$ac_result" >>"$tmp/config.h"
34662 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34663 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34664 echo "$as_me: $ac_file is unchanged" >&6;}
34667 mv "$tmp/config.h" $ac_file
34670 echo "/* $configure_input */"
34676 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34677 echo "$as_me: executing $ac_file commands" >&6;}
34682 case $ac_file$ac_mode in
34683 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34684 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34685 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34686 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34687 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34688 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34689 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34690 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34691 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34692 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34693 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34694 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34695 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34696 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34697 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34698 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34699 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34700 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34706 { (exit 0); exit 0; }
34708 chmod +x $CONFIG_STATUS
34709 ac_clean_files=$ac_clean_files_save
34712 # configure is writing to config.log, and then calls config.status.
34713 # config.status does its own redirection, appending to config.log.
34714 # Unfortunately, on DOS this fails, as config.log is still kept open
34715 # by configure, so config.status won't be able to write to it; its
34716 # output is simply discarded. So we exec the FD to /dev/null,
34717 # effectively closing config.log, so it can be properly (re)opened and
34718 # appended to by config.status. When coming back to configure, we
34719 # need to make the FD available again.
34720 if test "$no_create" != yes; then
34722 ac_config_status_args=
34723 test "$silent" = yes &&
34724 ac_config_status_args="$ac_config_status_args --quiet"
34726 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34728 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34729 # would make configure fail if this is the last instruction.
34730 $ac_cs_success || { (exit 1); exit 1; }
34734 # CONFIG_SUBDIRS section.
34736 if test "$no_recursion" != yes; then
34738 # Remove --cache-file and --srcdir arguments so they do not pile up.
34739 ac_sub_configure_args=
34741 eval "set x $ac_configure_args"
34745 if test -n "$ac_prev"; then
34750 -cache-file | --cache-file | --cache-fil | --cache-fi \
34751 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34752 ac_prev=cache_file ;;
34753 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34754 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34757 --config-cache | -C)
34759 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34761 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34763 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34765 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34769 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34771 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34775 # Always prepend --prefix to ensure using the same prefix
34776 # in subdir configurations.
34777 ac_arg="--prefix=$prefix"
34779 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34781 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34784 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34786 # Do not complain, so a configure script can configure whichever
34787 # parts of a large source tree are present.
34788 test -d "$srcdir/$ac_dir" || continue
34790 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34791 echo "$as_me:$LINENO: $ac_msg" >&5
34795 -*) as_dir=./$as_dir;;
34797 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34801 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34802 *) as_qdir=$as_dir;;
34804 as_dirs="'$as_qdir' $as_dirs"
34805 as_dir=`$as_dirname -- "$as_dir" ||
34806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34807 X"$as_dir" : 'X\(//\)[^/]' \| \
34808 X"$as_dir" : 'X\(//\)$' \| \
34809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34815 /^X\(\/\/\)[^/].*/{
34828 test -d "$as_dir" && break
34830 test -z "$as_dirs" || eval "mkdir $as_dirs"
34831 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34832 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34833 { (exit 1); exit 1; }; }; }
34837 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34839 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34840 # A ".." for each directory in $ac_dir_suffix.
34841 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34842 case $ac_top_builddir_sub in
34843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34847 ac_abs_top_builddir=$ac_pwd
34848 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34849 # for backward compatibility:
34850 ac_top_builddir=$ac_top_build_prefix
34853 .) # We are building in place.
34855 ac_top_srcdir=$ac_top_builddir_sub
34856 ac_abs_top_srcdir=$ac_pwd ;;
34857 [\\/]* | ?:[\\/]* ) # Absolute name.
34858 ac_srcdir=$srcdir$ac_dir_suffix;
34859 ac_top_srcdir=$srcdir
34860 ac_abs_top_srcdir=$srcdir ;;
34861 *) # Relative name.
34862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34863 ac_top_srcdir=$ac_top_build_prefix$srcdir
34864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34866 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34871 # Check for guested configure; otherwise get Cygnus style configure.
34872 if test -f "$ac_srcdir/configure.gnu"; then
34873 ac_sub_configure=$ac_srcdir/configure.gnu
34874 elif test -f "$ac_srcdir/configure"; then
34875 ac_sub_configure=$ac_srcdir/configure
34876 elif test -f "$ac_srcdir/configure.in"; then
34877 # This should be Cygnus configure.
34878 ac_sub_configure=$ac_aux_dir/configure
34880 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34881 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34885 # The recursion is here.
34886 if test -n "$ac_sub_configure"; then
34887 # Make the cache file name correct relative to the subdirectory.
34888 case $cache_file in
34889 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34890 *) # Relative name.
34891 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34894 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34895 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34896 # The eval makes quoting arguments work.
34897 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34898 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34899 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34900 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34901 { (exit 1); exit 1; }; }
34909 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
34910 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34911 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
34912 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ " >&5
34913 echo "$as_me: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ " >&2;}
34914 { echo "$as_me:$LINENO: WARNING: ***** in your path before configuring LLVM." >&5
34915 echo "$as_me: WARNING: ***** in your path before configuring LLVM." >&2;}