2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 1.9cvs.
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='1.9cvs'
719 PACKAGE_STRING='llvm 1.9cvs'
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 1.9cvs 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 1.9cvs:";;
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-debug-runtime
1523 --enable-jit Enable Just In Time Compiling (default is YES)
1524 --enable-doxygen Build doxygen documentation (default is NO)
1525 --enable-threads Use threads if available (default is YES)
1526 --enable-targets Build specific host targets:
1527 all,host-only,{target-name} (default=all)
1528 --enable-ltdl-install install libltdl
1529 --enable-shared[=PKGS] build shared libraries
1530 [default=enable_shared_default]
1531 --enable-static[=PKGS] build static libraries
1532 [default=enable_static_default]
1533 --enable-fast-install[=PKGS]
1534 optimize for fast installation
1535 [default=enable_Fast_install_default]
1536 --disable-libtool-lock avoid locking (might break parallel builds)
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1543 --with-extra-options Specify addtional options to compile LLVM with
1544 --with-tclinclude directory where tcl headers are
1545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1546 --with-pic try to use only PIC/non-PIC objects [default=use
1548 --with-tags[=TAGS] include additional configurations [automatic]
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1558 CXX C++ compiler command
1559 CXXFLAGS C++ compiler flags
1560 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1561 the first program found out of: `bison -y', `byacc', `yacc'.
1562 YFLAGS The list of arguments that will be passed by default to $YACC.
1563 This script will default YFLAGS to the empty string to avoid a
1564 default value of `-d' given by some make applications.
1565 CXXCPP C++ preprocessor
1566 F77 Fortran 77 compiler command
1567 FFLAGS Fortran 77 compiler flags
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1572 Report bugs to <llvmbugs@cs.uiuc.edu>.
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580 test -d "$ac_dir" || continue
1584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1587 # A ".." for each directory in $ac_dir_suffix.
1588 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1589 case $ac_top_builddir_sub in
1590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594 ac_abs_top_builddir=$ac_pwd
1595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596 # for backward compatibility:
1597 ac_top_builddir=$ac_top_build_prefix
1600 .) # We are building in place.
1602 ac_top_srcdir=$ac_top_builddir_sub
1603 ac_abs_top_srcdir=$ac_pwd ;;
1604 [\\/]* | ?:[\\/]* ) # Absolute name.
1605 ac_srcdir=$srcdir$ac_dir_suffix;
1606 ac_top_srcdir=$srcdir
1607 ac_abs_top_srcdir=$srcdir ;;
1609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610 ac_top_srcdir=$ac_top_build_prefix$srcdir
1611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615 cd "$ac_dir" || { ac_status=$?; continue; }
1616 # Check for guested configure.
1617 if test -f "$ac_srcdir/configure.gnu"; then
1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620 elif test -f "$ac_srcdir/configure"; then
1622 $SHELL "$ac_srcdir/configure" --help=recursive
1624 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626 cd "$ac_pwd" || { ac_status=$?; break; }
1630 test -n "$ac_init_help" && exit $ac_status
1631 if $ac_init_version; then
1633 llvm configure 1.9cvs
1634 generated by GNU Autoconf 2.60
1636 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1637 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1638 This configure script is free software; the Free Software Foundation
1639 gives unlimited permission to copy, distribute and modify it.
1641 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1645 cat >config.log <<_ACEOF
1646 This file contains any messages produced by compilers while
1647 running configure, to aid debugging if configure makes a mistake.
1649 It was created by llvm $as_me 1.9cvs, which was
1650 generated by GNU Autoconf 2.60. Invocation command line was
1662 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1663 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1664 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1665 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1666 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1668 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1669 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1671 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1672 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1673 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1674 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1675 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1676 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1677 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 test -z "$as_dir" && as_dir=.
1686 echo "PATH: $as_dir"
1702 # Keep a trace of the command line.
1703 # Strip out --no-create and --no-recursion so they do not pile up.
1704 # Strip out --silent because we don't want to record it for future runs.
1705 # Also quote any args containing shell meta-characters.
1706 # Make two passes to allow for proper duplicate-argument suppression.
1710 ac_must_keep_next=false
1716 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1718 | -silent | --silent | --silen | --sile | --sil)
1721 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1724 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1726 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1727 if test $ac_must_keep_next = true; then
1728 ac_must_keep_next=false # Got value, back to normal.
1731 *=* | --config-cache | -C | -disable-* | --disable-* \
1732 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1733 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1734 | -with-* | --with-* | -without-* | --without-* | --x)
1735 case "$ac_configure_args0 " in
1736 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1739 -* ) ac_must_keep_next=true ;;
1742 ac_configure_args="$ac_configure_args '$ac_arg'"
1747 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1748 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1750 # When interrupted or exit'd, cleanup temporary files, and complete
1751 # config.log. We remove comments because anyway the quotes in there
1752 # would cause problems or look ugly.
1753 # WARNING: Use '\'' to represent an apostrophe within the trap.
1754 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1755 trap 'exit_status=$?
1756 # Save into config.log some information that might help in debugging.
1761 ## ---------------- ##
1762 ## Cache variables. ##
1763 ## ---------------- ##
1766 # The following way of writing the cache mishandles newlines in values,
1768 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1769 eval ac_val=\$$ac_var
1773 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1774 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1777 _ | IFS | as_nl) ;; #(
1778 *) $as_unset $ac_var ;;
1783 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1784 *${as_nl}ac_space=\ *)
1786 "s/'\''/'\''\\\\'\'''\''/g;
1787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1798 ## ----------------- ##
1799 ## Output variables. ##
1800 ## ----------------- ##
1803 for ac_var in $ac_subst_vars
1805 eval ac_val=\$$ac_var
1807 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 echo "$ac_var='\''$ac_val'\''"
1813 if test -n "$ac_subst_files"; then
1815 ## ------------------- ##
1816 ## File substitutions. ##
1817 ## ------------------- ##
1820 for ac_var in $ac_subst_files
1822 eval ac_val=\$$ac_var
1824 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 echo "$ac_var='\''$ac_val'\''"
1831 if test -s confdefs.h; then
1841 test "$ac_signal" != 0 &&
1842 echo "$as_me: caught signal $ac_signal"
1843 echo "$as_me: exit $exit_status"
1845 rm -f core *.core core.conftest.* &&
1846 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1849 for ac_signal in 1 2 13 15; do
1850 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1854 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1855 rm -f -r conftest* confdefs.h
1857 # Predefined preprocessor variables.
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_NAME "$PACKAGE_NAME"
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_STRING "$PACKAGE_STRING"
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1884 # Let the site file select an alternate cache file if it wants to.
1885 # Prefer explicitly selected file to automatically selected ones.
1886 if test -n "$CONFIG_SITE"; then
1887 set x "$CONFIG_SITE"
1888 elif test "x$prefix" != xNONE; then
1889 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1891 set x "$ac_default_prefix/share/config.site" \
1892 "$ac_default_prefix/etc/config.site"
1897 if test -r "$ac_site_file"; then
1898 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1899 echo "$as_me: loading site script $ac_site_file" >&6;}
1900 sed 's/^/| /' "$ac_site_file" >&5
1905 if test -r "$cache_file"; then
1906 # Some versions of bash will fail to source /dev/null (special
1907 # files actually), so we avoid doing that.
1908 if test -f "$cache_file"; then
1909 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1910 echo "$as_me: loading cache $cache_file" >&6;}
1912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913 *) . "./$cache_file";;
1917 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1918 echo "$as_me: creating cache $cache_file" >&6;}
1922 # Check that the precious variables saved in the cache have kept the same
1924 ac_cache_corrupted=false
1925 for ac_var in $ac_precious_vars; do
1926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927 eval ac_new_set=\$ac_env_${ac_var}_set
1928 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929 eval ac_new_val=\$ac_env_${ac_var}_value
1930 case $ac_old_set,$ac_new_set in
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1941 if test "x$ac_old_val" != "x$ac_new_val"; then
1942 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1945 echo "$as_me: former value: $ac_old_val" >&2;}
1946 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1947 echo "$as_me: current value: $ac_new_val" >&2;}
1948 ac_cache_corrupted=:
1951 # Pass precious variables to config.status.
1952 if test "$ac_new_set" = set; then
1954 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 *) ac_arg=$ac_var=$ac_new_val ;;
1957 case " $ac_configure_args " in
1958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1959 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963 if $ac_cache_corrupted; then
1964 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2012 for ac_dir in autoconf "$srcdir"/autoconf; do
2013 if test -f "$ac_dir/install-sh"; then
2015 ac_install_sh="$ac_aux_dir/install-sh -c"
2017 elif test -f "$ac_dir/install.sh"; then
2019 ac_install_sh="$ac_aux_dir/install.sh -c"
2021 elif test -f "$ac_dir/shtool"; then
2023 ac_install_sh="$ac_aux_dir/shtool install -c"
2027 if test -z "$ac_aux_dir"; then
2028 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2029 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2030 { (exit 1); exit 1; }; }
2033 # These three variables are undocumented and unsupported,
2034 # and are intended to be withdrawn in a future Autoconf release.
2035 # They can cause serious problems if a builder's source tree is in a directory
2036 # whose full name contains unusual characters.
2037 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2038 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2039 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2043 if test ${srcdir} != "." ; then
2044 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2045 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2046 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2047 { (exit 1); exit 1; }; }
2051 for i in `ls ${srcdir}/projects`
2053 if test -d ${srcdir}/projects/${i} ; then
2056 "sample") subdirs="$subdirs projects/sample"
2058 "Stacker") subdirs="$subdirs projects/Stacker"
2060 "privbracket") subdirs="$subdirs projects/privbracket"
2062 "llvm-test") subdirs="$subdirs projects/llvm-test"
2064 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
2066 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
2068 "llvm-java") subdirs="$subdirs projects/llvm-java"
2070 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
2072 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2074 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
2077 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2078 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2085 # Make sure we can run config.sub.
2086 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2087 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: checking build system type" >&5
2092 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_build+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 ac_build_alias=$build_alias
2097 test "x$ac_build_alias" = x &&
2098 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2099 test "x$ac_build_alias" = x &&
2100 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102 { (exit 1); exit 1; }; }
2103 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2106 { (exit 1); exit 1; }; }
2109 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110 echo "${ECHO_T}$ac_cv_build" >&6; }
2111 case $ac_cv_build in
2113 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114 echo "$as_me: error: invalid value of canonical build" >&2;}
2115 { (exit 1); exit 1; }; };;
2118 ac_save_IFS=$IFS; IFS='-'
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2128 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2131 { echo "$as_me:$LINENO: checking host system type" >&5
2132 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_host+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test "x$host_alias" = x; then
2137 ac_cv_host=$ac_cv_build
2139 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2142 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147 echo "${ECHO_T}$ac_cv_host" >&6; }
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151 echo "$as_me: error: invalid value of canonical host" >&2;}
2152 { (exit 1); exit 1; }; };;
2155 ac_save_IFS=$IFS; IFS='-'
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2165 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2168 { echo "$as_me:$LINENO: checking target system type" >&5
2169 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_target+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test "x$target_alias" = x; then
2174 ac_cv_target=$ac_cv_host
2176 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2178 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2179 { (exit 1); exit 1; }; }
2183 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2184 echo "${ECHO_T}$ac_cv_target" >&6; }
2185 case $ac_cv_target in
2187 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2188 echo "$as_me: error: invalid value of canonical target" >&2;}
2189 { (exit 1); exit 1; }; };;
2191 target=$ac_cv_target
2192 ac_save_IFS=$IFS; IFS='-'
2198 # Remember, the first character of IFS is used to create $*,
2199 # except with old shells:
2202 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2205 # The aliases save the names the user supplied, while $host etc.
2206 # will get canonicalized.
2207 test -n "$target_alias" &&
2208 test "$program_prefix$program_suffix$program_transform_name" = \
2210 program_prefix=${target_alias}-
2212 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2213 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2214 if test "${llvm_cv_os_type+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221 llvm_cv_os_type="AIX"
2222 llvm_cv_platform_type="Unix" ;;
2224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226 llvm_cv_os_type="IRIX"
2227 llvm_cv_platform_type="Unix" ;;
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="Cygwin"
2232 llvm_cv_platform_type="Unix" ;;
2234 llvm_cv_link_all_option="-Wl,-all_load"
2235 llvm_cv_link_all_option="-Wl,-noall_load"
2236 llvm_cv_os_type="Darwin"
2237 llvm_cv_platform_type="Unix" ;;
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="FreeBSD"
2242 llvm_cv_platform_type="Unix" ;;
2244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246 llvm_cv_os_type="OpenBSD"
2247 llvm_cv_platform_type="Unix" ;;
2249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251 llvm_cv_os_type="HP-UX"
2252 llvm_cv_platform_type="Unix" ;;
2254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256 llvm_cv_os_type="Interix"
2257 llvm_cv_platform_type="Unix" ;;
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="Linux"
2262 llvm_cv_platform_type="Unix" ;;
2264 llvm_cv_link_all_option="-Wl,-z,allextract"
2265 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2266 llvm_cv_os_type="SunOS"
2267 llvm_cv_platform_type="Unix" ;;
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="Win32"
2272 llvm_cv_platform_type="Win32" ;;
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="MingW"
2277 llvm_cv_platform_type="Win32" ;;
2279 llvm_cv_link_all_option=""
2280 llvm_cv_no_link_all_option=""
2281 llvm_cv_os_type="Unknown"
2282 llvm_cv_platform_type="Unknown" ;;
2285 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2286 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2288 if test "$llvm_cv_os_type" = "Unknown" ; then
2289 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2290 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2291 { (exit 1); exit 1; }; }
2297 LINKALL=$llvm_cv_link_all_option
2299 NOLINKALL=$llvm_cv_no_link_all_option
2302 case $llvm_cv_platform_type in
2305 cat >>confdefs.h <<\_ACEOF
2306 #define LLVM_ON_UNIX 1
2316 cat >>confdefs.h <<\_ACEOF
2317 #define LLVM_ON_WIN32 1
2327 { echo "$as_me:$LINENO: checking target architecture" >&5
2328 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2329 if test "${llvm_cv_target_arch+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 i?86-*) llvm_cv_target_arch="x86" ;;
2334 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2335 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2336 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2337 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2338 ia64-*) llvm_cv_target_arch="IA64" ;;
2339 *) llvm_cv_target_arch="Unknown" ;;
2342 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2343 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2345 if test "$llvm_cv_target_arch" = "Unknown" ; then
2346 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2347 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2350 ARCH=$llvm_cv_target_arch
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_CC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 if test -n "$CC"; then
2388 { echo "$as_me:$LINENO: result: $CC" >&5
2389 echo "${ECHO_T}$CC" >&6; }
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2397 if test -z "$ac_cv_prog_CC"; then
2399 # Extract the first word of "gcc", so it can be a program name with args.
2400 set dummy gcc; ac_word=$2
2401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 if test -n "$ac_ct_CC"; then
2407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2416 ac_cv_prog_ac_ct_CC="gcc"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 echo "${ECHO_T}$ac_ct_CC" >&6; }
2431 { echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6; }
2435 if test "x$ac_ct_CC" = x; then
2438 case $cross_compiling:$ac_tool_warned in
2440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet. If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&5
2443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet. If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2446 ac_tool_warned=yes ;;
2454 if test -z "$CC"; then
2455 if test -n "$ac_tool_prefix"; then
2456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2457 set dummy ${ac_tool_prefix}cc; ac_word=$2
2458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$CC"; then
2464 ac_cv_prog_CC="$CC" # Let the user override the test.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_prog_CC="${ac_tool_prefix}cc"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 if test -n "$CC"; then
2485 { echo "$as_me:$LINENO: result: $CC" >&5
2486 echo "${ECHO_T}$CC" >&6; }
2488 { echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6; }
2495 if test -z "$CC"; then
2496 # Extract the first word of "cc", so it can be a program name with args.
2497 set dummy cc; ac_word=$2
2498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2515 ac_prog_rejected=yes
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 if test $ac_prog_rejected = yes; then
2527 # We found a bogon in the path, so make sure we never use it.
2528 set dummy $ac_cv_prog_CC
2530 if test $# != 0; then
2531 # We chose a different compiler from the bogus one.
2532 # However, it has the same basename, so the bogon will be chosen
2533 # first if we set CC to just the basename; use the full file name.
2535 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2541 if test -n "$CC"; then
2542 { echo "$as_me:$LINENO: result: $CC" >&5
2543 echo "${ECHO_T}$CC" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2551 if test -z "$CC"; then
2552 if test -n "$ac_tool_prefix"; then
2553 for ac_prog in cl.exe
2555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 if test -n "$CC"; then
2584 { echo "$as_me:$LINENO: result: $CC" >&5
2585 echo "${ECHO_T}$CC" >&6; }
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2592 test -n "$CC" && break
2595 if test -z "$CC"; then
2597 for ac_prog in cl.exe
2599 # Extract the first word of "$ac_prog", so it can be a program name with args.
2600 set dummy $ac_prog; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$ac_ct_CC"; then
2607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2616 ac_cv_prog_ac_ct_CC="$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2627 if test -n "$ac_ct_CC"; then
2628 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2629 echo "${ECHO_T}$ac_ct_CC" >&6; }
2631 { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2636 test -n "$ac_ct_CC" && break
2639 if test "x$ac_ct_CC" = x; then
2642 case $cross_compiling:$ac_tool_warned in
2644 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet. If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&5
2647 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet. If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2650 ac_tool_warned=yes ;;
2659 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: no acceptable C compiler found in \$PATH
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2665 # Provide some information about the compiler.
2666 echo "$as_me:$LINENO: checking for C compiler version" >&5
2667 ac_compiler=`set X $ac_compile; echo $2`
2668 { (ac_try="$ac_compiler --version >&5"
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compiler --version >&5") 2>&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }
2678 { (ac_try="$ac_compiler -v >&5"
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compiler -v >&5") 2>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }
2688 { (ac_try="$ac_compiler -V >&5"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compiler -V >&5") 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2699 cat >conftest.$ac_ext <<_ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2714 ac_clean_files_save=$ac_clean_files
2715 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2716 # Try to create an executable without -o first, disregard a.out.
2717 # It will help us diagnose broken compilers, and finding out an intuition
2719 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2720 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2721 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2723 # List of possible output files, starting from the most likely.
2724 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2725 # only as a last resort. b.out is created by i960 compilers.
2726 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2728 # The IRIX 6 linker writes into existing files which may not be
2729 # executable, retaining their permissions. Remove them first so a
2730 # subsequent execution test works.
2732 for ac_file in $ac_files
2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2736 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2741 if { (ac_try="$ac_link_default"
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_link_default") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; then
2751 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2752 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2753 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2754 # so that the user can short-circuit this test for compilers unknown to
2756 for ac_file in $ac_files
2758 test -f "$ac_file" || continue
2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2763 # We found the default executable, but exeext='' is most
2767 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2769 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771 # We set ac_cv_exeext here because the later test for it is not
2772 # safe: cross compilers may not add the suffix if given an `-o'
2773 # argument, so we may need to know it at that point already.
2774 # Even if this section looks crufty: it has the advantage of
2781 test "$ac_cv_exeext" = no && ac_cv_exeext=
2784 echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2787 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2788 See \`config.log' for more details." >&5
2789 echo "$as_me: error: C compiler cannot create executables
2790 See \`config.log' for more details." >&2;}
2791 { (exit 77); exit 77; }; }
2794 ac_exeext=$ac_cv_exeext
2795 { echo "$as_me:$LINENO: result: $ac_file" >&5
2796 echo "${ECHO_T}$ac_file" >&6; }
2798 # Check that the compiler produces executables we can run. If not, either
2799 # the compiler is broken, or we cross compile.
2800 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2801 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2802 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2803 # If not cross compiling, check that we can run a simple program.
2804 if test "$cross_compiling" != yes; then
2805 if { ac_try='./$ac_file'
2806 { (case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_try") 2>&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2817 if test "$cross_compiling" = maybe; then
2820 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2821 If you meant to cross compile, use \`--host'.
2822 See \`config.log' for more details." >&5
2823 echo "$as_me: error: cannot run C compiled programs.
2824 If you meant to cross compile, use \`--host'.
2825 See \`config.log' for more details." >&2;}
2826 { (exit 1); exit 1; }; }
2830 { echo "$as_me:$LINENO: result: yes" >&5
2831 echo "${ECHO_T}yes" >&6; }
2833 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2834 ac_clean_files=$ac_clean_files_save
2835 # Check that the compiler produces executables we can run. If not, either
2836 # the compiler is broken, or we cross compile.
2837 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2838 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2839 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2840 echo "${ECHO_T}$cross_compiling" >&6; }
2842 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2843 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2844 if { (ac_try="$ac_link"
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_link") 2>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; then
2854 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2855 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2856 # work properly (i.e., refer to `conftest.exe'), while it won't with
2858 for ac_file in conftest.exe conftest conftest.*; do
2859 test -f "$ac_file" || continue
2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2862 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2868 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2871 See \`config.log' for more details." >&2;}
2872 { (exit 1); exit 1; }; }
2875 rm -f conftest$ac_cv_exeext
2876 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2877 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2879 rm -f conftest.$ac_ext
2880 EXEEXT=$ac_cv_exeext
2882 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2883 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2884 if test "${ac_cv_objext+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 cat >conftest.$ac_ext <<_ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2902 rm -f conftest.o conftest.obj
2903 if { (ac_try="$ac_compile"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compile") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; then
2913 for ac_file in conftest.o conftest.obj conftest.*; do
2914 test -f "$ac_file" || continue;
2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2925 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2926 See \`config.log' for more details." >&5
2927 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2928 See \`config.log' for more details." >&2;}
2929 { (exit 1); exit 1; }; }
2932 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2934 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2935 echo "${ECHO_T}$ac_cv_objext" >&6; }
2936 OBJEXT=$ac_cv_objext
2938 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2939 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2940 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2961 rm -f conftest.$ac_objext
2962 if { (ac_try="$ac_compile"
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_compile") 2>conftest.er1
2970 grep -v '^ *+' conftest.er1 >conftest.err
2972 cat conftest.err >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2976 { (case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_try") 2>&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; } &&
2985 { ac_try='test -s conftest.$ac_objext'
2986 { (case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_try") 2>&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3007 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3008 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3009 GCC=`test $ac_compiler_gnu = yes && echo yes`
3010 ac_test_CFLAGS=${CFLAGS+set}
3011 ac_save_CFLAGS=$CFLAGS
3012 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3013 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3014 if test "${ac_cv_prog_cc_g+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 ac_save_c_werror_flag=$ac_c_werror_flag
3018 ac_c_werror_flag=yes
3021 cat >conftest.$ac_ext <<_ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3036 rm -f conftest.$ac_objext
3037 if { (ac_try="$ac_compile"
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compile") 2>conftest.er1
3045 grep -v '^ *+' conftest.er1 >conftest.err
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3051 { (case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_try") 2>&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; } &&
3060 { ac_try='test -s conftest.$ac_objext'
3061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_try") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; }; then
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3076 cat >conftest.$ac_ext <<_ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3091 rm -f conftest.$ac_objext
3092 if { (ac_try="$ac_compile"
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_compile") 2>conftest.er1
3100 grep -v '^ *+' conftest.er1 >conftest.err
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_try") 2>&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3130 ac_c_werror_flag=$ac_save_c_werror_flag
3132 cat >conftest.$ac_ext <<_ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3147 rm -f conftest.$ac_objext
3148 if { (ac_try="$ac_compile"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_compile") 2>conftest.er1
3156 grep -v '^ *+' conftest.er1 >conftest.err
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } &&
3161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3162 { (case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_try") 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_try") 2>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_c_werror_flag=$ac_save_c_werror_flag
3198 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3199 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3200 if test "$ac_test_CFLAGS" = set; then
3201 CFLAGS=$ac_save_CFLAGS
3202 elif test $ac_cv_prog_cc_g = yes; then
3203 if test "$GCC" = yes; then
3209 if test "$GCC" = yes; then
3215 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3216 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3217 if test "${ac_cv_prog_cc_c89+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 ac_cv_prog_cc_c89=no
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3230 #include <sys/types.h>
3231 #include <sys/stat.h>
3232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233 struct buf { int x; };
3234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235 static char *e (p, i)
3241 static char *f (char * (*g) (char **, int), char **p, ...)
3246 s = g (p, va_arg (v,int));
3251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
3254 as 'x'. The following induces an error, until -std is added to get
3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
3257 that's true only with -std. */
3258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3265 int test (int i, double x);
3266 struct s1 {int (*f) (int a);};
3267 struct s2 {int (*f) (double a);};
3268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3282 CC="$ac_save_CC $ac_arg"
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3298 { (case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_try") 2>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; } &&
3307 { ac_try='test -s conftest.$ac_objext'
3308 { (case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_try") 2>&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 ac_cv_prog_cc_c89=$ac_arg
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3325 rm -f core conftest.err conftest.$ac_objext
3326 test "x$ac_cv_prog_cc_c89" != "xno" && break
3328 rm -f conftest.$ac_ext
3333 case "x$ac_cv_prog_cc_c89" in
3335 { echo "$as_me:$LINENO: result: none needed" >&5
3336 echo "${ECHO_T}none needed" >&6; } ;;
3338 { echo "$as_me:$LINENO: result: unsupported" >&5
3339 echo "${ECHO_T}unsupported" >&6; } ;;
3341 CC="$CC $ac_cv_prog_cc_c89"
3342 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3343 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3348 ac_cpp='$CPP $CPPFLAGS'
3349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355 ac_cpp='$CPP $CPPFLAGS'
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3360 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3361 # On Suns, sometimes $CPP names a directory.
3362 if test -n "$CPP" && test -d "$CPP"; then
3365 if test -z "$CPP"; then
3366 if test "${ac_cv_prog_CPP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 # Double quotes because CPP needs to be expanded
3370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3373 for ac_c_preproc_warn_flag in '' yes
3375 # Use a header file that comes with gcc, so configuring glibc
3376 # with a fresh cross-compiler works.
3377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3378 # <limits.h> exists even on freestanding compilers.
3379 # On the NeXT, cc -E runs the code through the compiler's parser,
3380 # not just through cpp. "Syntax error" is here to catch this case.
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3388 # include <limits.h>
3390 # include <assert.h>
3394 if { (ac_try="$ac_cpp conftest.$ac_ext"
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3402 grep -v '^ *+' conftest.er1 >conftest.err
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } >/dev/null; then
3407 if test -s conftest.err; then
3408 ac_cpp_err=$ac_c_preproc_warn_flag
3409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416 if test -z "$ac_cpp_err"; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Broken: fails on valid input.
3426 rm -f conftest.err conftest.$ac_ext
3428 # OK, works on sane cases. Now check whether nonexistent headers
3429 # can be detected and how.
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 #include <ac_nonexistent.h>
3438 if { (ac_try="$ac_cpp conftest.$ac_ext"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } >/dev/null; then
3451 if test -s conftest.err; then
3452 ac_cpp_err=$ac_c_preproc_warn_flag
3453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 if test -z "$ac_cpp_err"; then
3461 # Broken: success on invalid input.
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 # Passes both tests.
3472 rm -f conftest.err conftest.$ac_ext
3475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3476 rm -f conftest.err conftest.$ac_ext
3477 if $ac_preproc_ok; then
3489 { echo "$as_me:$LINENO: result: $CPP" >&5
3490 echo "${ECHO_T}$CPP" >&6; }
3492 for ac_c_preproc_warn_flag in '' yes
3494 # Use a header file that comes with gcc, so configuring glibc
3495 # with a fresh cross-compiler works.
3496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3497 # <limits.h> exists even on freestanding compilers.
3498 # On the NeXT, cc -E runs the code through the compiler's parser,
3499 # not just through cpp. "Syntax error" is here to catch this case.
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3507 # include <limits.h>
3509 # include <assert.h>
3513 if { (ac_try="$ac_cpp conftest.$ac_ext"
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3521 grep -v '^ *+' conftest.er1 >conftest.err
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } >/dev/null; then
3526 if test -s conftest.err; then
3527 ac_cpp_err=$ac_c_preproc_warn_flag
3528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535 if test -z "$ac_cpp_err"; then
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 # Broken: fails on valid input.
3545 rm -f conftest.err conftest.$ac_ext
3547 # OK, works on sane cases. Now check whether nonexistent headers
3548 # can be detected and how.
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 #include <ac_nonexistent.h>
3557 if { (ac_try="$ac_cpp conftest.$ac_ext"
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev/null; then
3570 if test -s conftest.err; then
3571 ac_cpp_err=$ac_c_preproc_warn_flag
3572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579 if test -z "$ac_cpp_err"; then
3580 # Broken: success on invalid input.
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 # Passes both tests.
3591 rm -f conftest.err conftest.$ac_ext
3594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3595 rm -f conftest.err conftest.$ac_ext
3596 if $ac_preproc_ok; then
3599 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3600 See \`config.log' for more details." >&5
3601 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3602 See \`config.log' for more details." >&2;}
3603 { (exit 1); exit 1; }; }
3607 ac_cpp='$CPP $CPPFLAGS'
3608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3614 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3615 if test "${ac_cv_path_GREP+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 # Extract the first word of "grep ggrep" to use in msg output
3619 if test -z "$GREP"; then
3620 set dummy grep ggrep; ac_prog_name=$2
3621 if test "${ac_cv_path_GREP+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 ac_path_GREP_found=false
3625 # Loop through the user's path and test for each of PROGNAME-LIST
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3630 test -z "$as_dir" && as_dir=.
3631 for ac_prog in grep ggrep; do
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3634 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3635 # Check for GNU ac_path_GREP and select it if it is found.
3636 # Check for GNU $ac_path_GREP
3637 case `"$ac_path_GREP" --version 2>&1` in
3639 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3642 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3645 cat "conftest.in" "conftest.in" >"conftest.tmp"
3646 mv "conftest.tmp" "conftest.in"
3647 cp "conftest.in" "conftest.nl"
3648 echo 'GREP' >> "conftest.nl"
3649 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3651 ac_count=`expr $ac_count + 1`
3652 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3653 # Best one so far, save it but keep looking for a better one
3654 ac_cv_path_GREP="$ac_path_GREP"
3655 ac_path_GREP_max=$ac_count
3657 # 10*(2^10) chars as input seems more than enough
3658 test $ac_count -gt 10 && break
3660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3664 $ac_path_GREP_found && break 3
3674 GREP="$ac_cv_path_GREP"
3675 if test -z "$GREP"; then
3676 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3677 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3678 { (exit 1); exit 1; }; }
3682 ac_cv_path_GREP=$GREP
3687 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3688 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3689 GREP="$ac_cv_path_GREP"
3692 { echo "$as_me:$LINENO: checking for egrep" >&5
3693 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3694 if test "${ac_cv_path_EGREP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3698 then ac_cv_path_EGREP="$GREP -E"
3700 # Extract the first word of "egrep" to use in msg output
3701 if test -z "$EGREP"; then
3702 set dummy egrep; ac_prog_name=$2
3703 if test "${ac_cv_path_EGREP+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 ac_path_EGREP_found=false
3707 # Loop through the user's path and test for each of PROGNAME-LIST
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3712 test -z "$as_dir" && as_dir=.
3713 for ac_prog in egrep; do
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3716 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3717 # Check for GNU ac_path_EGREP and select it if it is found.
3718 # Check for GNU $ac_path_EGREP
3719 case `"$ac_path_EGREP" --version 2>&1` in
3721 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3724 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3727 cat "conftest.in" "conftest.in" >"conftest.tmp"
3728 mv "conftest.tmp" "conftest.in"
3729 cp "conftest.in" "conftest.nl"
3730 echo 'EGREP' >> "conftest.nl"
3731 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3733 ac_count=`expr $ac_count + 1`
3734 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3735 # Best one so far, save it but keep looking for a better one
3736 ac_cv_path_EGREP="$ac_path_EGREP"
3737 ac_path_EGREP_max=$ac_count
3739 # 10*(2^10) chars as input seems more than enough
3740 test $ac_count -gt 10 && break
3742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3746 $ac_path_EGREP_found && break 3
3756 EGREP="$ac_cv_path_EGREP"
3757 if test -z "$EGREP"; then
3758 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3759 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3760 { (exit 1); exit 1; }; }
3764 ac_cv_path_EGREP=$EGREP
3770 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3771 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3772 EGREP="$ac_cv_path_EGREP"
3775 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3776 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3777 if test "${ac_cv_header_stdc+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 cat >conftest.$ac_ext <<_ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3799 rm -f conftest.$ac_objext
3800 if { (ac_try="$ac_compile"
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806 (eval "$ac_compile") 2>conftest.er1
3808 grep -v '^ *+' conftest.er1 >conftest.err
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3814 { (case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_try") 2>&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; } &&
3823 { ac_try='test -s conftest.$ac_objext'
3824 { (case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_try") 2>&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; }; then
3833 ac_cv_header_stdc=yes
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 ac_cv_header_stdc=no
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 if test $ac_cv_header_stdc = yes; then
3844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3845 cat >conftest.$ac_ext <<_ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3855 $EGREP "memchr" >/dev/null 2>&1; then
3858 ac_cv_header_stdc=no
3864 if test $ac_cv_header_stdc = yes; then
3865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3866 cat >conftest.$ac_ext <<_ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876 $EGREP "free" >/dev/null 2>&1; then
3879 ac_cv_header_stdc=no
3885 if test $ac_cv_header_stdc = yes; then
3886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3887 if test "$cross_compiling" = yes; then
3890 cat >conftest.$ac_ext <<_ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3898 #if ((' ' & 0x0FF) == 0x020)
3899 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3900 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3902 # define ISLOWER(c) \
3903 (('a' <= (c) && (c) <= 'i') \
3904 || ('j' <= (c) && (c) <= 'r') \
3905 || ('s' <= (c) && (c) <= 'z'))
3906 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3909 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3914 for (i = 0; i < 256; i++)
3915 if (XOR (islower (i), ISLOWER (i))
3916 || toupper (i) != TOUPPER (i))
3921 rm -f conftest$ac_exeext
3922 if { (ac_try="$ac_link"
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928 (eval "$ac_link") 2>&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3932 { (case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3937 (eval "$ac_try") 2>&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3943 echo "$as_me: program exited with status $ac_status" >&5
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3948 ac_cv_header_stdc=no
3950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3956 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3957 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3958 if test $ac_cv_header_stdc = yes; then
3960 cat >>confdefs.h <<\_ACEOF
3961 #define STDC_HEADERS 1
3966 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3977 inttypes.h stdint.h unistd.h
3979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 $ac_includes_default
3993 #include <$ac_header>
3995 rm -f conftest.$ac_objext
3996 if { (ac_try="$ac_compile"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4004 grep -v '^ *+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } &&
4009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4010 { (case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_try") 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_try") 2>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; }; then
4029 eval "$as_ac_Header=yes"
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 eval "$as_ac_Header=no"
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 ac_res=`eval echo '${'$as_ac_Header'}'`
4040 { echo "$as_me:$LINENO: result: $ac_res" >&5
4041 echo "${ECHO_T}$ac_res" >&6; }
4042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4043 cat >>confdefs.h <<_ACEOF
4044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4052 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4053 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4054 if test "${ac_cv_c_bigendian+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 # See if sys/param.h defines the BYTE_ORDER macro.
4058 cat >conftest.$ac_ext <<_ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 #include <sys/types.h>
4065 #include <sys/param.h>
4070 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4078 rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4087 grep -v '^ *+' conftest.er1 >conftest.err
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 # It does; now see whether it defined to BIG_ENDIAN or not.
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #include <sys/types.h>
4120 #include <sys/param.h>
4125 #if BYTE_ORDER != BIG_ENDIAN
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_cv_c_bigendian=yes
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 ac_cv_c_bigendian=no
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 # It does not; compile a test program.
4181 if test "$cross_compiling" = yes; then
4182 # try to guess the endianness by grepping values into an object file
4183 ac_cv_c_bigendian=unknown
4184 cat >conftest.$ac_ext <<_ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4191 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4192 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4193 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4194 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4195 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4199 _ascii (); _ebcdic ();
4204 rm -f conftest.$ac_objext
4205 if { (ac_try="$ac_compile"
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_compile") 2>conftest.er1
4213 grep -v '^ *+' conftest.er1 >conftest.err
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4219 { (case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_try") 2>&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; } &&
4228 { ac_try='test -s conftest.$ac_objext'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4239 ac_cv_c_bigendian=yes
4241 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4242 if test "$ac_cv_c_bigendian" = unknown; then
4243 ac_cv_c_bigendian=no
4245 # finding both strings is unlikely to happen, but who knows?
4246 ac_cv_c_bigendian=unknown
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 $ac_includes_default
4269 /* Are we little or big endian? From Harbison&Steele. */
4273 char c[sizeof (long int)];
4276 return u.c[sizeof (long int) - 1] == 1;
4282 rm -f conftest$ac_exeext
4283 if { (ac_try="$ac_link"
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_link") 2>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4293 { (case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_try") 2>&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 ac_cv_c_bigendian=no
4304 echo "$as_me: program exited with status $ac_status" >&5
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4309 ac_cv_c_bigendian=yes
4311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4320 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4321 case $ac_cv_c_bigendian in
4329 { { echo "$as_me:$LINENO: error: unknown endianness
4330 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4331 echo "$as_me: error: unknown endianness
4332 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4333 { (exit 1); exit 1; }; } ;;
4337 if test "$cross_compiling" = yes; then
4338 LLVM_CROSS_COMPILING=1
4341 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4342 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4343 if test "${ac_cv_build_exeext+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4347 ac_cv_build_exeext=.exe
4349 ac_build_prefix=${build_alias}-
4351 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4352 set dummy ${ac_build_prefix}gcc; ac_word=$2
4353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4355 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 if test -n "$BUILD_CC"; then
4359 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4368 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 BUILD_CC=$ac_cv_prog_BUILD_CC
4379 if test -n "$BUILD_CC"; then
4380 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4381 echo "${ECHO_T}$BUILD_CC" >&6; }
4383 { echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6; }
4388 if test -z "$BUILD_CC"; then
4389 # Extract the first word of "gcc", so it can be a program name with args.
4390 set dummy gcc; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if test -n "$BUILD_CC"; then
4397 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_BUILD_CC="gcc"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 BUILD_CC=$ac_cv_prog_BUILD_CC
4417 if test -n "$BUILD_CC"; then
4418 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419 echo "${ECHO_T}$BUILD_CC" >&6; }
4421 { echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6; }
4426 if test -z "$BUILD_CC"; then
4427 # Extract the first word of "cc", so it can be a program name with args.
4428 set dummy cc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4446 ac_prog_rejected=yes
4449 ac_cv_prog_BUILD_CC="cc"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 if test $ac_prog_rejected = yes; then
4458 # We found a bogon in the path, so make sure we never use it.
4459 set dummy $ac_cv_prog_BUILD_CC
4461 if test $# != 0; then
4462 # We chose a different compiler from the bogus one.
4463 # However, it has the same basename, so the bogon will be chosen
4464 # first if we set BUILD_CC to just the basename; use the full file name.
4466 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4471 BUILD_CC=$ac_cv_prog_BUILD_CC
4472 if test -n "$BUILD_CC"; then
4473 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4474 echo "${ECHO_T}$BUILD_CC" >&6; }
4476 { echo "$as_me:$LINENO: result: no" >&5
4477 echo "${ECHO_T}no" >&6; }
4483 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4484 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4485 { (exit 1); exit 1; }; }
4486 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4488 echo 'int main () { return 0; }' > conftest.$ac_ext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4491 (eval $ac_build_link) 2>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; then
4495 for file in conftest.*; do
4497 *.c | *.o | *.obj) ;;
4498 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4502 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4503 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4504 { (exit 1); exit 1; }; }
4507 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4512 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4513 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4514 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4515 ac_build_exeext=$BUILD_EXEEXT
4518 LLVM_CROSS_COMPILING=0
4522 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4533 # Check whether --enable-optimized was given.
4534 if test "${enable_optimized+set}" = set; then
4535 enableval=$enable_optimized;
4540 if test ${enableval} = "no" ; then
4544 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4548 # Check whether --enable-assertions was given.
4549 if test "${enable_assertions+set}" = set; then
4550 enableval=$enable_assertions;
4555 if test ${enableval} = "yes" ; then
4559 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4563 # Check whether --enable-debug-runtime was given.
4564 if test "${enable_debug_runtime+set}" = set; then
4565 enableval=$enable_debug_runtime;
4570 if test ${enableval} = "no" ; then
4574 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4578 # Check whether --enable-jit was given.
4579 if test "${enable_jit+set}" = set; then
4580 enableval=$enable_jit;
4585 if test ${enableval} = "no"
4590 case "$llvm_cv_target_arch" in
4591 x86) TARGET_HAS_JIT=1
4593 Sparc) TARGET_HAS_JIT=1
4595 PowerPC) TARGET_HAS_JIT=1
4597 x86_64) TARGET_HAS_JIT=0
4599 Alpha) TARGET_HAS_JIT=1
4601 IA64) TARGET_HAS_JIT=0
4608 # Check whether --enable-doxygen was given.
4609 if test "${enable_doxygen+set}" = set; then
4610 enableval=$enable_doxygen;
4615 case "$enableval" in
4616 yes) ENABLE_DOXYGEN=1
4618 no) ENABLE_DOXYGEN=0
4620 default) ENABLE_DOXYGEN=0
4622 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4623 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4624 { (exit 1); exit 1; }; } ;;
4627 # Check whether --enable-threads was given.
4628 if test "${enable_threads+set}" = set; then
4629 enableval=$enable_threads;
4634 case "$enableval" in
4635 yes) ENABLE_THREADS=1
4637 no) ENABLE_THREADS=0
4639 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4640 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4641 { (exit 1); exit 1; }; } ;;
4644 cat >>confdefs.h <<_ACEOF
4645 #define ENABLE_THREADS $ENABLE_THREADS
4650 # Check whether --enable-targets was given.
4651 if test "${enable_targets+set}" = set; then
4652 enableval=$enable_targets;
4657 case "$enableval" in
4658 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4660 case "$llvm_cv_target_arch" in
4661 x86) TARGETS_TO_BUILD="X86" ;;
4662 x86_64) TARGETS_TO_BUILD="X86" ;;
4663 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4664 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4665 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4666 IA64) TARGETS_TO_BUILD="IA64" ;;
4667 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4668 echo "$as_me: error: Can not set target to build" >&2;}
4669 { (exit 1); exit 1; }; } ;;
4672 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4674 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4675 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4676 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4677 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4678 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4679 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4680 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4681 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4682 { (exit 1); exit 1; }; } ;;
4687 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4688 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4692 # Check whether --with-llvmgccdir was given.
4693 if test "${with_llvmgccdir+set}" = set; then
4694 withval=$with_llvmgccdir;
4700 default) WITH_LLVMGCCDIR=default ;;
4701 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4702 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4703 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4704 { (exit 1); exit 1; }; } ;;
4708 # Check whether --with-extra-options was given.
4709 if test "${with_extra_options+set}" = set; then
4710 withval=$with_extra_options;
4716 default) EXTRA_OPTIONS= ;;
4717 *) EXTRA_OPTIONS=$withval ;;
4719 EXTRA_OPTIONS=$EXTRA_OPTIONS
4724 ac_cpp='$CPP $CPPFLAGS'
4725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4728 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4729 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4730 # On Suns, sometimes $CPP names a directory.
4731 if test -n "$CPP" && test -d "$CPP"; then
4734 if test -z "$CPP"; then
4735 if test "${ac_cv_prog_CPP+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 # Double quotes because CPP needs to be expanded
4739 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4742 for ac_c_preproc_warn_flag in '' yes
4744 # Use a header file that comes with gcc, so configuring glibc
4745 # with a fresh cross-compiler works.
4746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4747 # <limits.h> exists even on freestanding compilers.
4748 # On the NeXT, cc -E runs the code through the compiler's parser,
4749 # not just through cpp. "Syntax error" is here to catch this case.
4750 cat >conftest.$ac_ext <<_ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4757 # include <limits.h>
4759 # include <assert.h>
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4771 grep -v '^ *+' conftest.er1 >conftest.err
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null; then
4776 if test -s conftest.err; then
4777 ac_cpp_err=$ac_c_preproc_warn_flag
4778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4785 if test -z "$ac_cpp_err"; then
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 # Broken: fails on valid input.
4795 rm -f conftest.err conftest.$ac_ext
4797 # OK, works on sane cases. Now check whether nonexistent headers
4798 # can be detected and how.
4799 cat >conftest.$ac_ext <<_ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 #include <ac_nonexistent.h>
4807 if { (ac_try="$ac_cpp conftest.$ac_ext"
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4815 grep -v '^ *+' conftest.er1 >conftest.err
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } >/dev/null; then
4820 if test -s conftest.err; then
4821 ac_cpp_err=$ac_c_preproc_warn_flag
4822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4829 if test -z "$ac_cpp_err"; then
4830 # Broken: success on invalid input.
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4836 # Passes both tests.
4841 rm -f conftest.err conftest.$ac_ext
4844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4845 rm -f conftest.err conftest.$ac_ext
4846 if $ac_preproc_ok; then
4858 { echo "$as_me:$LINENO: result: $CPP" >&5
4859 echo "${ECHO_T}$CPP" >&6; }
4861 for ac_c_preproc_warn_flag in '' yes
4863 # Use a header file that comes with gcc, so configuring glibc
4864 # with a fresh cross-compiler works.
4865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866 # <limits.h> exists even on freestanding compilers.
4867 # On the NeXT, cc -E runs the code through the compiler's parser,
4868 # not just through cpp. "Syntax error" is here to catch this case.
4869 cat >conftest.$ac_ext <<_ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4876 # include <limits.h>
4878 # include <assert.h>
4882 if { (ac_try="$ac_cpp conftest.$ac_ext"
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4890 grep -v '^ *+' conftest.er1 >conftest.err
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev/null; then
4895 if test -s conftest.err; then
4896 ac_cpp_err=$ac_c_preproc_warn_flag
4897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4904 if test -z "$ac_cpp_err"; then
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4910 # Broken: fails on valid input.
4914 rm -f conftest.err conftest.$ac_ext
4916 # OK, works on sane cases. Now check whether nonexistent headers
4917 # can be detected and how.
4918 cat >conftest.$ac_ext <<_ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924 #include <ac_nonexistent.h>
4926 if { (ac_try="$ac_cpp conftest.$ac_ext"
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } >/dev/null; then
4939 if test -s conftest.err; then
4940 ac_cpp_err=$ac_c_preproc_warn_flag
4941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4948 if test -z "$ac_cpp_err"; then
4949 # Broken: success on invalid input.
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4955 # Passes both tests.
4960 rm -f conftest.err conftest.$ac_ext
4963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4964 rm -f conftest.err conftest.$ac_ext
4965 if $ac_preproc_ok; then
4968 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4969 See \`config.log' for more details." >&5
4970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4971 See \`config.log' for more details." >&2;}
4972 { (exit 1); exit 1; }; }
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986 if test -n "$ac_tool_prefix"; then
4989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4993 if test "${ac_cv_prog_CC+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 if test -n "$CC"; then
4997 ac_cv_prog_CC="$CC" # Let the user override the test.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 if test -n "$CC"; then
5018 { echo "$as_me:$LINENO: result: $CC" >&5
5019 echo "${ECHO_T}$CC" >&6; }
5021 { echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6; }
5026 test -n "$CC" && break
5029 if test -z "$CC"; then
5033 # Extract the first word of "$ac_prog", so it can be a program name with args.
5034 set dummy $ac_prog; ac_word=$2
5035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5037 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 if test -n "$ac_ct_CC"; then
5041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5050 ac_cv_prog_ac_ct_CC="$ac_prog"
5051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5061 if test -n "$ac_ct_CC"; then
5062 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5063 echo "${ECHO_T}$ac_ct_CC" >&6; }
5065 { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5070 test -n "$ac_ct_CC" && break
5073 if test "x$ac_ct_CC" = x; then
5076 case $cross_compiling:$ac_tool_warned in
5078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5079 whose name does not start with the host triplet. If you think this
5080 configuration is useful to you, please write to autoconf@gnu.org." >&5
5081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5082 whose name does not start with the host triplet. If you think this
5083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5084 ac_tool_warned=yes ;;
5091 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5092 See \`config.log' for more details." >&5
5093 echo "$as_me: error: no acceptable C compiler found in \$PATH
5094 See \`config.log' for more details." >&2;}
5095 { (exit 1); exit 1; }; }
5097 # Provide some information about the compiler.
5098 echo "$as_me:$LINENO: checking for C compiler version" >&5
5099 ac_compiler=`set X $ac_compile; echo $2`
5100 { (ac_try="$ac_compiler --version >&5"
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_compiler --version >&5") 2>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }
5110 { (ac_try="$ac_compiler -v >&5"
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_compiler -v >&5") 2>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }
5120 { (ac_try="$ac_compiler -V >&5"
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_compiler -V >&5") 2>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }
5131 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5132 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5133 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5154 rm -f conftest.$ac_objext
5155 if { (ac_try="$ac_compile"
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_compile") 2>conftest.er1
5163 grep -v '^ *+' conftest.er1 >conftest.err
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5169 { (case "(($ac_try" in
5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174 (eval "$ac_try") 2>&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; } &&
5178 { ac_try='test -s conftest.$ac_objext'
5179 { (case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184 (eval "$ac_try") 2>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; }; then
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5200 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5201 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5202 GCC=`test $ac_compiler_gnu = yes && echo yes`
5203 ac_test_CFLAGS=${CFLAGS+set}
5204 ac_save_CFLAGS=$CFLAGS
5205 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5206 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5207 if test "${ac_cv_prog_cc_g+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 ac_save_c_werror_flag=$ac_c_werror_flag
5211 ac_c_werror_flag=yes
5214 cat >conftest.$ac_ext <<_ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5229 rm -f conftest.$ac_objext
5230 if { (ac_try="$ac_compile"
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236 (eval "$ac_compile") 2>conftest.er1
5238 grep -v '^ *+' conftest.er1 >conftest.err
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5244 { (case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 (eval "$ac_try") 2>&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; } &&
5253 { ac_try='test -s conftest.$ac_objext'
5254 { (case "(($ac_try" in
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_try") 2>&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; }; then
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5269 cat >conftest.$ac_ext <<_ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5284 rm -f conftest.$ac_objext
5285 if { (ac_try="$ac_compile"
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_compile") 2>conftest.er1
5293 grep -v '^ *+' conftest.er1 >conftest.err
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5299 { (case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_try") 2>&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; } &&
5308 { ac_try='test -s conftest.$ac_objext'
5309 { (case "(($ac_try" in
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_try") 2>&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5323 ac_c_werror_flag=$ac_save_c_werror_flag
5325 cat >conftest.$ac_ext <<_ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5340 rm -f conftest.$ac_objext
5341 if { (ac_try="$ac_compile"
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347 (eval "$ac_compile") 2>conftest.er1
5349 grep -v '^ *+' conftest.er1 >conftest.err
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } &&
5354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5355 { (case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_try") 2>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_try") 2>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; }; then
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_c_werror_flag=$ac_save_c_werror_flag
5391 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5392 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5393 if test "$ac_test_CFLAGS" = set; then
5394 CFLAGS=$ac_save_CFLAGS
5395 elif test $ac_cv_prog_cc_g = yes; then
5396 if test "$GCC" = yes; then
5402 if test "$GCC" = yes; then
5408 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5409 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5410 if test "${ac_cv_prog_cc_c89+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 ac_cv_prog_cc_c89=no
5415 cat >conftest.$ac_ext <<_ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5423 #include <sys/types.h>
5424 #include <sys/stat.h>
5425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5426 struct buf { int x; };
5427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5428 static char *e (p, i)
5434 static char *f (char * (*g) (char **, int), char **p, ...)
5439 s = g (p, va_arg (v,int));
5444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5445 function prototypes and stuff, but not '\xHH' hex character constants.
5446 These don't provoke an error unfortunately, instead are silently treated
5447 as 'x'. The following induces an error, until -std is added to get
5448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5449 array size at least. It's necessary to write '\x00'==0 to get something
5450 that's true only with -std. */
5451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5453 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5454 inside strings and character constants. */
5456 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5458 int test (int i, double x);
5459 struct s1 {int (*f) (int a);};
5460 struct s2 {int (*f) (double a);};
5461 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5467 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5472 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5473 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5475 CC="$ac_save_CC $ac_arg"
5476 rm -f conftest.$ac_objext
5477 if { (ac_try="$ac_compile"
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_compile") 2>conftest.er1
5485 grep -v '^ *+' conftest.er1 >conftest.err
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5491 { (case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_try") 2>&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; } &&
5500 { ac_try='test -s conftest.$ac_objext'
5501 { (case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_try") 2>&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5510 ac_cv_prog_cc_c89=$ac_arg
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5518 rm -f core conftest.err conftest.$ac_objext
5519 test "x$ac_cv_prog_cc_c89" != "xno" && break
5521 rm -f conftest.$ac_ext
5526 case "x$ac_cv_prog_cc_c89" in
5528 { echo "$as_me:$LINENO: result: none needed" >&5
5529 echo "${ECHO_T}none needed" >&6; } ;;
5531 { echo "$as_me:$LINENO: result: unsupported" >&5
5532 echo "${ECHO_T}unsupported" >&6; } ;;
5534 CC="$CC $ac_cv_prog_cc_c89"
5535 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5536 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5541 ac_cpp='$CPP $CPPFLAGS'
5542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5547 ac_cpp='$CXXCPP $CPPFLAGS'
5548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5551 if test -z "$CXX"; then
5552 if test -n "$CCC"; then
5555 if test -n "$ac_tool_prefix"; then
5558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5562 if test "${ac_cv_prog_CXX+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 if test -n "$CXX"; then
5566 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 if test -n "$CXX"; then
5587 { echo "$as_me:$LINENO: result: $CXX" >&5
5588 echo "${ECHO_T}$CXX" >&6; }
5590 { echo "$as_me:$LINENO: result: no" >&5
5591 echo "${ECHO_T}no" >&6; }
5595 test -n "$CXX" && break
5598 if test -z "$CXX"; then
5602 # Extract the first word of "$ac_prog", so it can be a program name with args.
5603 set dummy $ac_prog; ac_word=$2
5604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5606 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 if test -n "$ac_ct_CXX"; then
5610 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_prog_ac_ct_CXX="$ac_prog"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5630 if test -n "$ac_ct_CXX"; then
5631 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5632 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5634 { echo "$as_me:$LINENO: result: no" >&5
5635 echo "${ECHO_T}no" >&6; }
5639 test -n "$ac_ct_CXX" && break
5642 if test "x$ac_ct_CXX" = x; then
5645 case $cross_compiling:$ac_tool_warned in
5647 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5648 whose name does not start with the host triplet. If you think this
5649 configuration is useful to you, please write to autoconf@gnu.org." >&5
5650 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5651 whose name does not start with the host triplet. If you think this
5652 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5653 ac_tool_warned=yes ;;
5661 # Provide some information about the compiler.
5662 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5663 ac_compiler=`set X $ac_compile; echo $2`
5664 { (ac_try="$ac_compiler --version >&5"
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_compiler --version >&5") 2>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }
5674 { (ac_try="$ac_compiler -v >&5"
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_compiler -v >&5") 2>&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }
5684 { (ac_try="$ac_compiler -V >&5"
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compiler -V >&5") 2>&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }
5695 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5696 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5697 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5718 rm -f conftest.$ac_objext
5719 if { (ac_try="$ac_compile"
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_compile") 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5733 { (case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_try") 2>&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_try") 2>&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5764 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5765 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5766 GXX=`test $ac_compiler_gnu = yes && echo yes`
5767 ac_test_CXXFLAGS=${CXXFLAGS+set}
5768 ac_save_CXXFLAGS=$CXXFLAGS
5769 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5770 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5771 if test "${ac_cv_prog_cxx_g+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5775 ac_cxx_werror_flag=yes
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5793 rm -f conftest.$ac_objext
5794 if { (ac_try="$ac_compile"
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800 (eval "$ac_compile") 2>conftest.er1
5802 grep -v '^ *+' conftest.er1 >conftest.err
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5808 { (case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_try") 2>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; } &&
5817 { ac_try='test -s conftest.$ac_objext'
5818 { (case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_try") 2>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5827 ac_cv_prog_cxx_g=yes
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5833 cat >conftest.$ac_ext <<_ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5863 { (case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_try") 2>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_try") 2>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5889 cat >conftest.$ac_ext <<_ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5904 rm -f conftest.$ac_objext
5905 if { (ac_try="$ac_compile"
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_compile") 2>conftest.er1
5913 grep -v '^ *+' conftest.er1 >conftest.err
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5919 { (case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_try") 2>&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
5928 { ac_try='test -s conftest.$ac_objext'
5929 { (case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_try") 2>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 ac_cv_prog_cxx_g=yes
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5955 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5956 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5957 if test "$ac_test_CXXFLAGS" = set; then
5958 CXXFLAGS=$ac_save_CXXFLAGS
5959 elif test $ac_cv_prog_cxx_g = yes; then
5960 if test "$GXX" = yes; then
5966 if test "$GXX" = yes; then
5973 ac_cpp='$CPP $CPPFLAGS'
5974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5978 { echo "$as_me:$LINENO: checking " >&5
5979 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5980 if test "${ac_cv_has_flex+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 for ac_prog in flex lex
5985 # Extract the first word of "$ac_prog", so it can be a program name with args.
5986 set dummy $ac_prog; ac_word=$2
5987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5989 if test "${ac_cv_prog_LEX+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 if test -n "$LEX"; then
5993 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_prog_LEX="$ac_prog"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 if test -n "$LEX"; then
6014 { echo "$as_me:$LINENO: result: $LEX" >&5
6015 echo "${ECHO_T}$LEX" >&6; }
6017 { echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6; }
6022 test -n "$LEX" && break
6024 test -n "$LEX" || LEX=":"
6026 if test -z "$LEXLIB"
6028 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6029 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6030 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 ac_check_lib_save_LIBS=$LIBS
6035 cat >conftest.$ac_ext <<_ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6042 /* Override any GCC internal prototype to avoid an error.
6043 Use char because int might match the return type of a GCC
6044 builtin and then its argument prototype would still apply. */
6057 rm -f conftest.$ac_objext conftest$ac_exeext
6058 if { (ac_try="$ac_link"
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_link") 2>conftest.er1
6066 grep -v '^ *+' conftest.er1 >conftest.err
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6072 { (case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_try") 2>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest$ac_exeext'
6082 { (case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_try") 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_lib_fl_yywrap=yes
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 ac_cv_lib_fl_yywrap=no
6099 rm -f core conftest.err conftest.$ac_objext \
6100 conftest$ac_exeext conftest.$ac_ext
6101 LIBS=$ac_check_lib_save_LIBS
6103 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6104 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6105 if test $ac_cv_lib_fl_yywrap = yes; then
6108 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6109 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6110 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 ac_check_lib_save_LIBS=$LIBS
6115 cat >conftest.$ac_ext <<_ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6122 /* Override any GCC internal prototype to avoid an error.
6123 Use char because int might match the return type of a GCC
6124 builtin and then its argument prototype would still apply. */
6137 rm -f conftest.$ac_objext conftest$ac_exeext
6138 if { (ac_try="$ac_link"
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_link") 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6152 { (case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_try") 2>&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try='test -s conftest$ac_exeext'
6162 { (case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_try") 2>&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_cv_lib_l_yywrap=yes
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6176 ac_cv_lib_l_yywrap=no
6179 rm -f core conftest.err conftest.$ac_objext \
6180 conftest$ac_exeext conftest.$ac_ext
6181 LIBS=$ac_check_lib_save_LIBS
6183 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6184 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6185 if test $ac_cv_lib_l_yywrap = yes; then
6193 if test "x$LEX" != "x:"; then
6194 { echo "$as_me:$LINENO: checking lex output file root" >&5
6195 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6196 if test "${ac_cv_prog_lex_root+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 # The minimal lex program is just a single line: %%. But some broken lexes
6200 # (Solaris, I think it was) want two %% lines, so accommodate them.
6201 cat >conftest.l <<_ACEOF
6205 { (ac_try="$LEX conftest.l"
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$LEX conftest.l") 2>&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }
6215 if test -f lex.yy.c; then
6216 ac_cv_prog_lex_root=lex.yy
6217 elif test -f lexyy.c; then
6218 ac_cv_prog_lex_root=lexyy
6220 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6221 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6222 { (exit 1); exit 1; }; }
6225 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6226 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6228 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6230 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6231 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6232 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 # POSIX says lex can declare yytext either as a pointer or an array; the
6236 # default is implementation-dependent. Figure out which it is, since
6237 # not all implementations provide the %pointer and %array declarations.
6238 ac_cv_prog_lex_yytext_pointer=no
6239 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6241 LIBS="$LIBS $LEXLIB"
6242 cat >conftest.$ac_ext <<_ACEOF
6243 `cat $LEX_OUTPUT_ROOT.c`
6245 rm -f conftest.$ac_objext conftest$ac_exeext
6246 if { (ac_try="$ac_link"
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252 (eval "$ac_link") 2>conftest.er1
6254 grep -v '^ *+' conftest.er1 >conftest.err
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6260 { (case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_try") 2>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try='test -s conftest$ac_exeext'
6270 { (case "(($ac_try" in
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275 (eval "$ac_try") 2>&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 ac_cv_prog_lex_yytext_pointer=yes
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6287 rm -f core conftest.err conftest.$ac_objext \
6288 conftest$ac_exeext conftest.$ac_ext
6290 rm -f "${LEX_OUTPUT_ROOT}.c"
6293 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6294 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6295 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6297 cat >>confdefs.h <<\_ACEOF
6298 #define YYTEXT_POINTER 1
6306 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6307 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6308 if test "$LEX" != "flex"; then
6309 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6310 echo "$as_me: error: flex not found but required" >&2;}
6311 { (exit 1); exit 1; }; }
6317 { echo "$as_me:$LINENO: checking " >&5
6318 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6319 if test "${llvm_cv_has_bison+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 for ac_prog in 'bison -y' byacc
6324 # Extract the first word of "$ac_prog", so it can be a program name with args.
6325 set dummy $ac_prog; ac_word=$2
6326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6328 if test "${ac_cv_prog_YACC+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 if test -n "$YACC"; then
6332 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_prog_YACC="$ac_prog"
6342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 YACC=$ac_cv_prog_YACC
6352 if test -n "$YACC"; then
6353 { echo "$as_me:$LINENO: result: $YACC" >&5
6354 echo "${ECHO_T}$YACC" >&6; }
6356 { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6361 test -n "$YACC" && break
6363 test -n "$YACC" || YACC="yacc"
6366 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6367 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6368 if test "$YACC" != "bison -y"; then
6370 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6371 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6377 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6378 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6379 if test "${lt_cv_path_NM+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 if test -n "$NM"; then
6383 # Let the user override the test.
6386 lt_nm_to_check="${ac_tool_prefix}nm"
6387 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6388 lt_nm_to_check="$lt_nm_to_check nm"
6390 for lt_tmp_nm in $lt_nm_to_check; do
6391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6392 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6394 test -z "$ac_dir" && ac_dir=.
6395 tmp_nm="$ac_dir/$lt_tmp_nm"
6396 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6397 # Check to see if the nm accepts a BSD-compat flag.
6398 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6399 # nm: unknown option "B" ignored
6400 # Tru64's nm complains that /dev/null is an invalid object file
6401 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6402 */dev/null* | *'Invalid file or object type'*)
6403 lt_cv_path_NM="$tmp_nm -B"
6407 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6409 lt_cv_path_NM="$tmp_nm -p"
6413 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6414 continue # so that we can try to find one that supports BSD flags
6423 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6426 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6427 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6432 { echo "$as_me:$LINENO: checking for GNU make" >&5
6433 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6434 if test "${llvm_cv_gnu_make_command+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 llvm_cv_gnu_make_command=''
6438 for a in "$MAKE" make gmake gnumake ; do
6439 if test -z "$a" ; then continue ; fi ;
6440 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6442 llvm_cv_gnu_make_command=$a ;
6447 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6448 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6449 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6453 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6454 echo "${ECHO_T}\"Not found\"" >&6; };
6458 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6459 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6461 if test "$LN_S" = "ln -s"; then
6462 { echo "$as_me:$LINENO: result: yes" >&5
6463 echo "${ECHO_T}yes" >&6; }
6465 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6466 echo "${ECHO_T}no, using $LN_S" >&6; }
6469 # Extract the first word of "cmp", so it can be a program name with args.
6470 set dummy cmp; ac_word=$2
6471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6473 if test "${ac_cv_path_CMP+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6501 if test -n "$CMP"; then
6502 { echo "$as_me:$LINENO: result: $CMP" >&5
6503 echo "${ECHO_T}$CMP" >&6; }
6505 { echo "$as_me:$LINENO: result: no" >&5
6506 echo "${ECHO_T}no" >&6; }
6510 # Extract the first word of "cp", so it can be a program name with args.
6511 set dummy cp; ac_word=$2
6512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514 if test "${ac_cv_path_CP+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6542 if test -n "$CP"; then
6543 { echo "$as_me:$LINENO: result: $CP" >&5
6544 echo "${ECHO_T}$CP" >&6; }
6546 { echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6; }
6551 # Extract the first word of "date", so it can be a program name with args.
6552 set dummy date; ac_word=$2
6553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6555 if test "${ac_cv_path_DATE+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6582 DATE=$ac_cv_path_DATE
6583 if test -n "$DATE"; then
6584 { echo "$as_me:$LINENO: result: $DATE" >&5
6585 echo "${ECHO_T}$DATE" >&6; }
6587 { echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6; }
6592 # Extract the first word of "find", so it can be a program name with args.
6593 set dummy find; ac_word=$2
6594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596 if test "${ac_cv_path_FIND+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6623 FIND=$ac_cv_path_FIND
6624 if test -n "$FIND"; then
6625 { echo "$as_me:$LINENO: result: $FIND" >&5
6626 echo "${ECHO_T}$FIND" >&6; }
6628 { echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6; }
6633 # Extract the first word of "grep", so it can be a program name with args.
6634 set dummy grep; ac_word=$2
6635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6637 if test "${ac_cv_path_GREP+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6664 GREP=$ac_cv_path_GREP
6665 if test -n "$GREP"; then
6666 { echo "$as_me:$LINENO: result: $GREP" >&5
6667 echo "${ECHO_T}$GREP" >&6; }
6669 { echo "$as_me:$LINENO: result: no" >&5
6670 echo "${ECHO_T}no" >&6; }
6674 # Extract the first word of "mkdir", so it can be a program name with args.
6675 set dummy mkdir; ac_word=$2
6676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6678 if test "${ac_cv_path_MKDIR+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6705 MKDIR=$ac_cv_path_MKDIR
6706 if test -n "$MKDIR"; then
6707 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6708 echo "${ECHO_T}$MKDIR" >&6; }
6710 { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6715 # Extract the first word of "mv", so it can be a program name with args.
6716 set dummy mv; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_path_MV+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6747 if test -n "$MV"; then
6748 { echo "$as_me:$LINENO: result: $MV" >&5
6749 echo "${ECHO_T}$MV" >&6; }
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6756 if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6758 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_prog_RANLIB+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 if test -n "$RANLIB"; then
6765 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 RANLIB=$ac_cv_prog_RANLIB
6785 if test -n "$RANLIB"; then
6786 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6787 echo "${ECHO_T}$RANLIB" >&6; }
6789 { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6795 if test -z "$ac_cv_prog_RANLIB"; then
6796 ac_ct_RANLIB=$RANLIB
6797 # Extract the first word of "ranlib", so it can be a program name with args.
6798 set dummy ranlib; ac_word=$2
6799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 if test -n "$ac_ct_RANLIB"; then
6805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_ac_ct_RANLIB="ranlib"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6825 if test -n "$ac_ct_RANLIB"; then
6826 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6827 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6829 { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6833 if test "x$ac_ct_RANLIB" = x; then
6836 case $cross_compiling:$ac_tool_warned in
6838 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6839 whose name does not start with the host triplet. If you think this
6840 configuration is useful to you, please write to autoconf@gnu.org." >&5
6841 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6842 whose name does not start with the host triplet. If you think this
6843 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6844 ac_tool_warned=yes ;;
6846 RANLIB=$ac_ct_RANLIB
6849 RANLIB="$ac_cv_prog_RANLIB"
6852 # Extract the first word of "rm", so it can be a program name with args.
6853 set dummy rm; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_path_RM+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6884 if test -n "$RM"; then
6885 { echo "$as_me:$LINENO: result: $RM" >&5
6886 echo "${ECHO_T}$RM" >&6; }
6888 { echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6; }
6893 # Extract the first word of "sed", so it can be a program name with args.
6894 set dummy sed; ac_word=$2
6895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6897 if test "${ac_cv_path_SED+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6925 if test -n "$SED"; then
6926 { echo "$as_me:$LINENO: result: $SED" >&5
6927 echo "${ECHO_T}$SED" >&6; }
6929 { echo "$as_me:$LINENO: result: no" >&5
6930 echo "${ECHO_T}no" >&6; }
6934 # Extract the first word of "tar", so it can be a program name with args.
6935 set dummy tar; ac_word=$2
6936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6938 if test "${ac_cv_path_TAR+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6966 if test -n "$TAR"; then
6967 { echo "$as_me:$LINENO: result: $TAR" >&5
6968 echo "${ECHO_T}$TAR" >&6; }
6970 { echo "$as_me:$LINENO: result: no" >&5
6971 echo "${ECHO_T}no" >&6; }
6975 # Extract the first word of "pwd", so it can be a program name with args.
6976 set dummy pwd; ac_word=$2
6977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6979 if test "${ac_cv_path_BINPWD+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6994 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7006 BINPWD=$ac_cv_path_BINPWD
7007 if test -n "$BINPWD"; then
7008 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7009 echo "${ECHO_T}$BINPWD" >&6; }
7011 { echo "$as_me:$LINENO: result: no" >&5
7012 echo "${ECHO_T}no" >&6; }
7017 # Extract the first word of "Graphviz", so it can be a program name with args.
7018 set dummy Graphviz; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7048 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7049 if test -n "$GRAPHVIZ"; then
7050 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7051 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7060 cat >>confdefs.h <<\_ACEOF
7061 #define HAVE_GRAPHVIZ 1
7064 if test "$llvm_cv_os_type" == "MingW" ; then
7065 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7068 cat >>confdefs.h <<_ACEOF
7069 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7073 # Extract the first word of "dot", so it can be a program name with args.
7074 set dummy dot; ac_word=$2
7075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7077 if test "${ac_cv_path_DOT+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7092 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7105 if test -n "$DOT"; then
7106 { echo "$as_me:$LINENO: result: $DOT" >&5
7107 echo "${ECHO_T}$DOT" >&6; }
7109 { echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6; }
7114 if test "$DOT" != "echo dot" ; then
7116 cat >>confdefs.h <<\_ACEOF
7120 if test "$llvm_cv_os_type" == "MingW" ; then
7121 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7124 cat >>confdefs.h <<_ACEOF
7125 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7129 for ac_prog in gv gsview32
7131 # Extract the first word of "$ac_prog", so it can be a program name with args.
7132 set dummy $ac_prog; ac_word=$2
7133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135 if test "${ac_cv_path_GV+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 if test -n "$GV"; then
7163 { echo "$as_me:$LINENO: result: $GV" >&5
7164 echo "${ECHO_T}$GV" >&6; }
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7171 test -n "$GV" && break
7173 test -n "$GV" || GV="echo gv"
7175 if test "$GV" != "echo gv" ; then
7177 cat >>confdefs.h <<\_ACEOF
7181 if test "$llvm_cv_os_type" == "MingW" ; then
7182 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7185 cat >>confdefs.h <<_ACEOF
7186 #define LLVM_PATH_GV "$GV${EXEEXT}"
7190 # Extract the first word of "dotty", so it can be a program name with args.
7191 set dummy dotty; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_path_DOTTY+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7221 DOTTY=$ac_cv_path_DOTTY
7222 if test -n "$DOTTY"; then
7223 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7224 echo "${ECHO_T}$DOTTY" >&6; }
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7231 if test "$DOTTY" != "echo dotty" ; then
7233 cat >>confdefs.h <<\_ACEOF
7234 #define HAVE_DOTTY 1
7237 if test "$llvm_cv_os_type" == "MingW" ; then
7238 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7241 cat >>confdefs.h <<_ACEOF
7242 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7248 # Extract the first word of "perl", so it can be a program name with args.
7249 set dummy perl; ac_word=$2
7250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7252 if test "${ac_cv_path_PERL+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7279 PERL=$ac_cv_path_PERL
7280 if test -n "$PERL"; then
7281 { echo "$as_me:$LINENO: result: $PERL" >&5
7282 echo "${ECHO_T}$PERL" >&6; }
7284 { echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6; }
7289 if test "$PERL" != "none"; then
7290 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7291 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7292 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7293 { echo "$as_me:$LINENO: result: yes" >&5
7294 echo "${ECHO_T}yes" >&6; }
7297 { echo "$as_me:$LINENO: result: not found" >&5
7298 echo "${ECHO_T}not found" >&6; }
7303 if test x"$PERL" = xnone; then
7311 # Find a good install program. We prefer a C program (faster),
7312 # so one script is as good as another. But avoid the broken or
7313 # incompatible versions:
7314 # SysV /etc/install, /usr/sbin/install
7315 # SunOS /usr/etc/install
7316 # IRIX /sbin/install
7318 # AmigaOS /C/install, which installs bootblocks on floppy discs
7319 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7320 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7321 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7322 # OS/2's system install, which has a completely different semantic
7323 # ./install, which can be erroneously created by make from ./install.sh.
7324 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7325 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7326 if test -z "$INSTALL"; then
7327 if test "${ac_cv_path_install+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir=.
7335 # Account for people who put trailing slashes in PATH elements.
7337 ./ | .// | /cC/* | \
7338 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7339 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7342 # OSF1 and SCO ODT 3.0 have their own names for install.
7343 # Don't use installbsd from OSF since it installs stuff as root
7345 for ac_prog in ginstall scoinst install; do
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7348 if test $ac_prog = install &&
7349 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7350 # AIX install. It has an incompatible calling convention.
7352 elif test $ac_prog = install &&
7353 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7354 # program-specific install script used by HP pwplus--don't use.
7357 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7370 if test "${ac_cv_path_install+set}" = set; then
7371 INSTALL=$ac_cv_path_install
7373 # As a last resort, use the slow shell script. Don't cache a
7374 # value for INSTALL within a source directory, because that will
7375 # break other packages using the cache if that directory is
7376 # removed, or if the value is a relative name.
7377 INSTALL=$ac_install_sh
7380 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7381 echo "${ECHO_T}$INSTALL" >&6; }
7383 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7384 # It thinks the first close brace ends the variable substitution.
7385 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7387 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7389 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7392 # Extract the first word of "bzip2", so it can be a program name with args.
7393 set dummy bzip2; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_BZIP2+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7423 BZIP2=$ac_cv_path_BZIP2
7424 if test -n "$BZIP2"; then
7425 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7426 echo "${ECHO_T}$BZIP2" >&6; }
7428 { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7433 # Extract the first word of "doxygen", so it can be a program name with args.
7434 set dummy doxygen; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7464 DOXYGEN=$ac_cv_path_DOXYGEN
7465 if test -n "$DOXYGEN"; then
7466 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7467 echo "${ECHO_T}$DOXYGEN" >&6; }
7469 { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7474 # Extract the first word of "groff", so it can be a program name with args.
7475 set dummy groff; ac_word=$2
7476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478 if test "${ac_cv_path_GROFF+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7505 GROFF=$ac_cv_path_GROFF
7506 if test -n "$GROFF"; then
7507 { echo "$as_me:$LINENO: result: $GROFF" >&5
7508 echo "${ECHO_T}$GROFF" >&6; }
7510 { echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6; }
7515 # Extract the first word of "gzip", so it can be a program name with args.
7516 set dummy gzip; ac_word=$2
7517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7519 if test "${ac_cv_path_GZIP+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7534 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7546 GZIP=$ac_cv_path_GZIP
7547 if test -n "$GZIP"; then
7548 { echo "$as_me:$LINENO: result: $GZIP" >&5
7549 echo "${ECHO_T}$GZIP" >&6; }
7551 { echo "$as_me:$LINENO: result: no" >&5
7552 echo "${ECHO_T}no" >&6; }
7556 # Extract the first word of "pod2html", so it can be a program name with args.
7557 set dummy pod2html; ac_word=$2
7558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560 if test "${ac_cv_path_POD2HTML+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7587 POD2HTML=$ac_cv_path_POD2HTML
7588 if test -n "$POD2HTML"; then
7589 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7590 echo "${ECHO_T}$POD2HTML" >&6; }
7592 { echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6; }
7597 # Extract the first word of "pod2man", so it can be a program name with args.
7598 set dummy pod2man; ac_word=$2
7599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601 if test "${ac_cv_path_POD2MAN+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7628 POD2MAN=$ac_cv_path_POD2MAN
7629 if test -n "$POD2MAN"; then
7630 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7631 echo "${ECHO_T}$POD2MAN" >&6; }
7633 { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7638 # Extract the first word of "runtest", so it can be a program name with args.
7639 set dummy runtest; ac_word=$2
7640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7642 if test "${ac_cv_path_RUNTEST+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7669 RUNTEST=$ac_cv_path_RUNTEST
7670 if test -n "$RUNTEST"; then
7671 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7672 echo "${ECHO_T}$RUNTEST" >&6; }
7674 { echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6; }
7681 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7682 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7684 # Check whether --with-tclinclude was given.
7685 if test "${with_tclinclude+set}" = set; then
7686 withval=$with_tclinclude; with_tclinclude=${withval}
7691 if test "${ac_cv_path_tclsh+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 if test x"${with_tclinclude}" != x ; then
7696 if test -f ${with_tclinclude}/tclsh ; then
7697 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7698 elif test -f ${with_tclinclude}/src/tclsh ; then
7699 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7701 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7702 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7703 { (exit 1); exit 1; }; }
7707 if test x"${ac_cv_path_tclsh}" = x ; then
7708 { echo "$as_me:$LINENO: result: none" >&5
7709 echo "${ECHO_T}none" >&6; }
7710 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
7712 # Extract the first word of "$ac_prog", so it can be a program name with args.
7713 set dummy $ac_prog; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_TCLSH+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 TCLSH=$ac_cv_path_TCLSH
7743 if test -n "$TCLSH"; then
7744 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7745 echo "${ECHO_T}$TCLSH" >&6; }
7747 { echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6; }
7752 test -n "$TCLSH" && break
7755 if test x"${TCLSH}" = x ; then
7756 ac_cv_path_tclsh='';
7758 ac_cv_path_tclsh="${TCLSH}";
7761 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7762 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7763 TCLSH="${ac_cv_path_tclsh}"
7769 # Extract the first word of "zip", so it can be a program name with args.
7770 set dummy zip; ac_word=$2
7771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773 if test "${ac_cv_path_ZIP+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7788 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7801 if test -n "$ZIP"; then
7802 { echo "$as_me:$LINENO: result: $ZIP" >&5
7803 echo "${ECHO_T}$ZIP" >&6; }
7805 { echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6; }
7811 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7812 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7813 if test "${llvm_cv_link_use_r+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 ac_cpp='$CPP $CPPFLAGS'
7818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823 CFLAGS="$CFLAGS -Wl,-R."
7824 cat >conftest.$ac_ext <<_ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7834 int main() { return 0; }
7839 rm -f conftest.$ac_objext conftest$ac_exeext
7840 if { (ac_try="$ac_link"
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846 (eval "$ac_link") 2>conftest.er1
7848 grep -v '^ *+' conftest.er1 >conftest.err
7850 cat conftest.err >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
7853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7854 { (case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_try") 2>&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; } &&
7863 { ac_try='test -s conftest$ac_exeext'
7864 { (case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_try") 2>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; }; then
7873 llvm_cv_link_use_r=yes
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 llvm_cv_link_use_r=no
7881 rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7885 ac_cpp='$CPP $CPPFLAGS'
7886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7893 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7894 if test "$llvm_cv_link_use_r" = yes ; then
7896 cat >>confdefs.h <<\_ACEOF
7897 #define HAVE_LINK_R 1
7905 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7906 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7907 if test "${ac_cv_c_const+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 cat >conftest.$ac_ext <<_ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7920 /* FIXME: Include the comments suggested by Paul. */
7922 /* Ultrix mips cc rejects this. */
7923 typedef int charset[2];
7925 /* SunOS 4.1.1 cc rejects this. */
7926 char const *const *ccp;
7928 /* NEC SVR4.0.2 mips cc rejects this. */
7929 struct point {int x, y;};
7930 static struct point const zero = {0,0};
7931 /* AIX XL C 1.02.0.0 rejects this.
7932 It does not let you subtract one const X* pointer from another in
7933 an arm of an if-expression whose if-part is not a constant
7935 const char *g = "string";
7936 ccp = &g + (g ? g-g : 0);
7937 /* HPUX 7.0 cc rejects these. */
7940 ccp = (char const *const *) p;
7941 { /* SCO 3.2v4 cc rejects this. */
7943 char const *s = 0 ? (char *) 0 : (char const *) 0;
7948 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7950 const int *foo = &x[0];
7953 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7954 typedef const int *iptr;
7958 { /* AIX XL C 1.02.0.0 rejects this saying
7959 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7960 struct s { int j; const int *ap[3]; };
7961 struct s *b; b->j = 5;
7963 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7967 return !x[0] && !zero.x;
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7989 { (case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_try") 2>&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; } &&
7998 { ac_try='test -s conftest.$ac_objext'
7999 { (case "(($ac_try" in
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_try") 2>&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8019 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8020 if test $ac_cv_c_const = no; then
8022 cat >>confdefs.h <<\_ACEOF
8034 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8035 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8036 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8037 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8047 #include <sys/types.h>
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_compile") 2>conftest.er1
8068 grep -v '^ *+' conftest.er1 >conftest.err
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8074 { (case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_try") 2>&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_try") 2>&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 eval "$as_ac_Header=yes"
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 eval "$as_ac_Header=no"
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 ac_res=`eval echo '${'$as_ac_Header'}'`
8104 { echo "$as_me:$LINENO: result: $ac_res" >&5
8105 echo "${ECHO_T}$ac_res" >&6; }
8106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8107 cat >>confdefs.h <<_ACEOF
8108 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8111 ac_header_dirent=$ac_hdr; break
8115 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8116 if test $ac_header_dirent = dirent.h; then
8117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8119 if test "${ac_cv_search_opendir+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 ac_func_search_save_LIBS=$LIBS
8123 cat >conftest.$ac_ext <<_ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8130 /* Override any GCC internal prototype to avoid an error.
8131 Use char because int might match the return type of a GCC
8132 builtin and then its argument prototype would still apply. */
8145 for ac_lib in '' dir; do
8146 if test -z "$ac_lib"; then
8147 ac_res="none required"
8150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8152 rm -f conftest.$ac_objext conftest$ac_exeext
8153 if { (ac_try="$ac_link"
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_link") 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8167 { (case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_try") 2>&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_try") 2>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_search_opendir=$ac_res
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8194 rm -f core conftest.err conftest.$ac_objext \
8196 if test "${ac_cv_search_opendir+set}" = set; then
8200 if test "${ac_cv_search_opendir+set}" = set; then
8203 ac_cv_search_opendir=no
8206 LIBS=$ac_func_search_save_LIBS
8208 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8209 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8210 ac_res=$ac_cv_search_opendir
8211 if test "$ac_res" != no; then
8212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8217 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8218 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8219 if test "${ac_cv_search_opendir+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 ac_func_search_save_LIBS=$LIBS
8223 cat >conftest.$ac_ext <<_ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8230 /* Override any GCC internal prototype to avoid an error.
8231 Use char because int might match the return type of a GCC
8232 builtin and then its argument prototype would still apply. */
8245 for ac_lib in '' x; do
8246 if test -z "$ac_lib"; then
8247 ac_res="none required"
8250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (ac_try="$ac_link"
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_link") 2>conftest.er1
8261 grep -v '^ *+' conftest.er1 >conftest.err
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } &&
8266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8267 { (case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_try") 2>&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest$ac_exeext'
8277 { (case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_try") 2>&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 ac_cv_search_opendir=$ac_res
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8294 rm -f core conftest.err conftest.$ac_objext \
8296 if test "${ac_cv_search_opendir+set}" = set; then
8300 if test "${ac_cv_search_opendir+set}" = set; then
8303 ac_cv_search_opendir=no
8306 LIBS=$ac_func_search_save_LIBS
8308 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8309 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8310 ac_res=$ac_cv_search_opendir
8311 if test "$ac_res" != no; then
8312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8319 for ac_header in dlfcn.h
8321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329 { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8332 # Is the header compilable?
8333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8335 cat >conftest.$ac_ext <<_ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 $ac_includes_default
8342 #include <$ac_header>
8344 rm -f conftest.$ac_objext
8345 if { (ac_try="$ac_compile"
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_compile") 2>conftest.er1
8353 grep -v '^ *+' conftest.er1 >conftest.err
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest.$ac_objext'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_header_compiler=yes
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_header_compiler=no
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8388 echo "${ECHO_T}$ac_header_compiler" >&6; }
8390 # Is the header present?
8391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8393 cat >conftest.$ac_ext <<_ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8399 #include <$ac_header>
8401 if { (ac_try="$ac_cpp conftest.$ac_ext"
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8409 grep -v '^ *+' conftest.er1 >conftest.err
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } >/dev/null; then
8414 if test -s conftest.err; then
8415 ac_cpp_err=$ac_c_preproc_warn_flag
8416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8423 if test -z "$ac_cpp_err"; then
8424 ac_header_preproc=yes
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 ac_header_preproc=no
8432 rm -f conftest.err conftest.$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8434 echo "${ECHO_T}$ac_header_preproc" >&6; }
8436 # So? What about this header?
8437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8443 ac_header_preproc=yes
8446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8459 ## ----------------------------------- ##
8460 ## Report this to llvmbugs@cs.uiuc.edu ##
8461 ## ----------------------------------- ##
8463 ) | sed "s/^/$as_me: WARNING: /" >&2
8466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 eval "$as_ac_Header=\$ac_header_preproc"
8473 ac_res=`eval echo '${'$as_ac_Header'}'`
8474 { echo "$as_me:$LINENO: result: $ac_res" >&5
8475 echo "${ECHO_T}$ac_res" >&6; }
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8487 # Check whether --enable-ltdl-install was given.
8488 if test "${enable_ltdl_install+set}" = set; then
8489 enableval=$enable_ltdl_install;
8495 if test x"${enable_ltdl_install-no}" != xno; then
8497 INSTALL_LTDL_FALSE='#'
8499 INSTALL_LTDL_TRUE='#'
8505 if test x"${enable_ltdl_convenience-no}" != xno; then
8506 CONVENIENCE_LTDL_TRUE=
8507 CONVENIENCE_LTDL_FALSE='#'
8509 CONVENIENCE_LTDL_TRUE='#'
8510 CONVENIENCE_LTDL_FALSE=
8514 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8515 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8517 libname_spec='lib$name'
8525 shlibpath_overrides_runpath=unknown
8527 dynamic_linker="$host_os ld.so"
8528 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8529 if test "$GCC" = yes; then
8530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8531 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8532 # if the path contains ";" then we assume it to be the separator
8533 # otherwise default to the standard path separator (i.e. ":") - it is
8534 # assumed that no part of a normal pathname contains ";" but that should
8535 # okay in the real world where ";" in dirpaths is itself problematic.
8536 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8543 need_lib_prefix=unknown
8544 hardcode_into_libs=no
8546 # when you set need_version to no, make sure it does not cause -set_version
8547 # flags to be left without arguments
8548 need_version=unknown
8553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8554 shlibpath_var=LIBPATH
8556 # AIX 3 has no versioning support, so we append a major version to the name.
8557 soname_spec='${libname}${release}${shared_ext}$major'
8564 hardcode_into_libs=yes
8565 if test "$host_cpu" = ia64; then
8566 # AIX 5 supports IA64
8567 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8568 shlibpath_var=LD_LIBRARY_PATH
8570 # With GCC up to 2.95.x, collect2 would create an import file
8571 # for dependence libraries. The import file would start with
8572 # the line `#! .'. This would cause the generated library to
8573 # depend on `.', always an invalid library. This was fixed in
8574 # development snapshots of GCC prior to 3.0.
8576 aix4 | aix4.[01] | aix4.[01].*)
8577 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8579 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8586 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8587 # soname into executable. Probably we can add versioning support to
8588 # collect2, so additional links can be useful in future.
8589 if test "$aix_use_runtimelinking" = yes; then
8590 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8591 # instead of lib<name>.a to let people know that these are not
8592 # typical AIX shared libraries.
8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595 # We preserve .a as extension for shared libraries through AIX4.2
8596 # and later when we are not doing run time linking.
8597 library_names_spec='${libname}${release}.a $libname.a'
8598 soname_spec='${libname}${release}${shared_ext}$major'
8600 shlibpath_var=LIBPATH
8605 library_names_spec='$libname.ixlibrary $libname.a'
8606 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8607 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'
8611 library_names_spec='${libname}${shared_ext}'
8612 dynamic_linker="$host_os ld.so"
8613 shlibpath_var=LIBRARY_PATH
8619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8620 soname_spec='${libname}${release}${shared_ext}$major'
8621 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8622 shlibpath_var=LD_LIBRARY_PATH
8623 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8624 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8625 # the default ld.so.conf also contains /usr/contrib/lib and
8626 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8627 # libtool to hard-code these into programs
8630 cygwin* | mingw* | pw32*)
8631 version_type=windows
8636 case $GCC,$host_os in
8637 yes,cygwin* | yes,mingw* | yes,pw32*)
8638 library_names_spec='$libname.dll.a'
8639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8640 postinstall_cmds='base_file=`basename \${file}`~
8641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8642 dldir=$destdir/`dirname \$dlpath`~
8643 test -d \$dldir || mkdir -p \$dldir~
8644 $install_prog $dir/$dlname \$dldir/$dlname~
8645 chmod a+x \$dldir/$dlname'
8646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8647 dlpath=$dir/\$dldll~
8649 shlibpath_overrides_runpath=yes
8653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8655 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8658 # MinGW DLLs use traditional 'lib' prefix
8659 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8660 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8661 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8662 # It is most probably a Windows format PATH printed by
8663 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8664 # path with ; separators, and with drive letters. We can handle the
8665 # drive letters (cygwin fileutils understands them), so leave them,
8666 # especially as we might pass files found there to a mingw objdump,
8667 # which wouldn't understand a cygwinified path. Ahh.
8668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8674 # pw32 DLLs use 'pw' prefix rather than 'lib'
8675 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8681 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8684 dynamic_linker='Win32 ld.exe'
8685 # FIXME: first we should search . and the directory the executable is in
8689 darwin* | rhapsody*)
8690 dynamic_linker="$host_os dyld"
8694 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8695 soname_spec='${libname}${release}${major}$shared_ext'
8696 shlibpath_overrides_runpath=yes
8697 shlibpath_var=DYLD_LIBRARY_PATH
8698 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8699 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8700 if test "$GCC" = yes; then
8701 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"`
8703 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8713 soname_spec='${libname}${release}${shared_ext}$major'
8714 shlibpath_var=LD_LIBRARY_PATH
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8726 soname_spec='${libname}${release}${shared_ext}$major'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 shlibpath_overrides_runpath=no
8729 hardcode_into_libs=yes
8730 dynamic_linker='GNU ld.so'
8733 freebsd* | dragonfly*)
8734 # DragonFly does not have aout. When/if they implement a new
8735 # versioning mechanism, adjust this.
8736 if test -x /usr/bin/objformat; then
8737 objformat=`/usr/bin/objformat`
8740 freebsd[123]*) objformat=aout ;;
8744 version_type=freebsd-$objformat
8745 case $version_type in
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8756 shlibpath_var=LD_LIBRARY_PATH
8759 shlibpath_overrides_runpath=yes
8761 freebsd3.[01]* | freebsdelf3.[01]*)
8762 shlibpath_overrides_runpath=yes
8763 hardcode_into_libs=yes
8765 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8766 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8767 shlibpath_overrides_runpath=no
8768 hardcode_into_libs=yes
8770 freebsd*) # from 4.6 on
8771 shlibpath_overrides_runpath=yes
8772 hardcode_into_libs=yes
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8782 soname_spec='${libname}${release}${shared_ext}$major'
8783 shlibpath_var=LD_LIBRARY_PATH
8784 hardcode_into_libs=yes
8787 hpux9* | hpux10* | hpux11*)
8788 # Give a soname corresponding to the major version so that dld.sl refuses to
8789 # link against other versions.
8796 hardcode_into_libs=yes
8797 dynamic_linker="$host_os dld.so"
8798 shlibpath_var=LD_LIBRARY_PATH
8799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8801 soname_spec='${libname}${release}${shared_ext}$major'
8802 if test "X$HPUX_IA64_MODE" = X32; then
8803 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8805 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8811 hardcode_into_libs=yes
8812 dynamic_linker="$host_os dld.sl"
8813 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8816 soname_spec='${libname}${release}${shared_ext}$major'
8817 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8822 dynamic_linker="$host_os dld.sl"
8823 shlibpath_var=SHLIB_PATH
8824 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8829 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8830 postinstall_cmds='chmod 555 $lib'
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'
8839 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 shlibpath_overrides_runpath=no
8842 hardcode_into_libs=yes
8845 irix5* | irix6* | nonstopux*)
8847 nonstopux*) version_type=nonstopux ;;
8849 if test "$lt_cv_prog_gnu_ld" = yes; then
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8860 irix5* | nonstopux*)
8864 case $LD in # libtool.m4 will add one of these switches to LD
8865 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8866 libsuff= shlibsuff= libmagic=32-bit;;
8867 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8868 libsuff=32 shlibsuff=N32 libmagic=N32;;
8869 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8870 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8871 *) libsuff= shlibsuff= libmagic=never-match;;
8875 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8876 shlibpath_overrides_runpath=no
8877 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8878 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8879 hardcode_into_libs=yes
8882 # No shared lib support for Linux oldld, aout, or coff.
8883 linux*oldld* | linux*aout* | linux*coff*)
8887 # This must be Linux ELF.
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893 soname_spec='${libname}${release}${shared_ext}$major'
8894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=no
8897 # This implies no fast_install, which is unacceptable.
8898 # Some rework will be needed to allow for fast_install
8899 # before this can be enabled.
8900 hardcode_into_libs=yes
8902 # Append ld.so.conf contents to the search path
8903 if test -f /etc/ld.so.conf; then
8904 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' ' '`
8905 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8908 # We used to test for /lib/ld.so.1 and disable shared libraries on
8909 # powerpc, because MkLinux only supported shared libraries with the
8910 # GNU dynamic linker. Since this was broken with cross compilers,
8911 # most powerpc-linux boxes support dynamic linking these days and
8912 # people can always --disable-shared, the test was removed, and we
8913 # assume the GNU/Linux dynamic linker is in use.
8914 dynamic_linker='GNU/Linux ld.so'
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 shlibpath_overrides_runpath=no
8925 hardcode_into_libs=yes
8926 dynamic_linker='GNU ld.so'
8933 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8936 dynamic_linker='NetBSD (a.out) ld.so'
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 dynamic_linker='NetBSD ld.elf_so'
8942 shlibpath_var=LD_LIBRARY_PATH
8943 shlibpath_overrides_runpath=yes
8944 hardcode_into_libs=yes
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=yes
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 shlibpath_overrides_runpath=yes
8966 sys_lib_dlsearch_path_spec="/usr/lib"
8968 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8970 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8971 *) need_version=no ;;
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8978 openbsd2.[89] | openbsd2.[89].*)
8979 shlibpath_overrides_runpath=no
8982 shlibpath_overrides_runpath=yes
8986 shlibpath_overrides_runpath=yes
8991 libname_spec='$name'
8994 library_names_spec='$libname${shared_ext} $libname.a'
8995 dynamic_linker='OS/2 ld.exe'
8996 shlibpath_var=LIBPATH
8999 osf3* | osf4* | osf5*)
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9007 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=yes
9018 hardcode_into_libs=yes
9019 # ldd complains unless libraries are executable
9020 postinstall_cmds='chmod +x $lib'
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes
9029 if test "$with_gnu_ld" = yes; then
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 case $host_vendor in
9042 shlibpath_overrides_runpath=no
9044 export_dynamic_flag_spec='${wl}-Blargedynsym'
9045 runpath_var=LD_RUN_PATH
9053 shlibpath_overrides_runpath=no
9054 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9060 if test -d /usr/nec ;then
9062 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9063 soname_spec='$libname${shared_ext}.$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9069 version_type=freebsd-elf
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 hardcode_into_libs=yes
9076 if test "$with_gnu_ld" = yes; then
9077 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9078 shlibpath_overrides_runpath=no
9080 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9081 shlibpath_overrides_runpath=yes
9084 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9088 sys_lib_dlsearch_path_spec='/usr/lib'
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9102 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9103 echo "${ECHO_T}$dynamic_linker" >&6; }
9104 test "$dynamic_linker" = no && can_build_shared=no
9106 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9107 if test "$GCC" = yes; then
9108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9112 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9113 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9114 if test "${libltdl_cv_shlibext+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 eval libltdl_cv_shlibext=$shrext_cmds
9122 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9123 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9124 if test -n "$libltdl_cv_shlibext"; then
9126 cat >>confdefs.h <<_ACEOF
9127 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9133 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9134 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9135 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 libltdl_cv_shlibpath_var="$shlibpath_var"
9140 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9141 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9142 if test -n "$libltdl_cv_shlibpath_var"; then
9144 cat >>confdefs.h <<_ACEOF
9145 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9151 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9152 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9153 if test "${libltdl_cv_sys_search_path+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9158 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9159 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9160 if test -n "$libltdl_cv_sys_search_path"; then
9162 for dir in $libltdl_cv_sys_search_path; do
9163 if test -z "$sys_search_path"; then
9164 sys_search_path="$dir"
9166 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9170 cat >>confdefs.h <<_ACEOF
9171 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9176 { echo "$as_me:$LINENO: checking for objdir" >&5
9177 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9178 if test "${libltdl_cv_objdir+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 libltdl_cv_objdir="$objdir"
9182 if test -n "$objdir"; then
9185 rm -f .libs 2>/dev/null
9186 mkdir .libs 2>/dev/null
9187 if test -d .libs; then
9188 libltdl_cv_objdir=.libs
9190 # MS-DOS does not allow filenames that begin with a dot.
9191 libltdl_cv_objdir=_libs
9193 rmdir .libs 2>/dev/null
9197 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9198 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9200 cat >>confdefs.h <<_ACEOF
9201 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9209 # Check for command to grab the raw symbol name followed by C symbol from nm.
9210 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9211 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9212 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 # These are sane defaults that work on at least a few old systems.
9217 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9219 # Character class describing NM global symbol codes.
9220 symcode='[BCDEGRST]'
9222 # Regexp to match symbols that can be accessed directly from C.
9223 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9225 # Transform an extracted symbol line into a proper C declaration
9226 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9228 # Transform an extracted symbol line into symbol name and symbol address
9229 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'"
9231 # Define system-specific variables.
9236 cygwin* | mingw* | pw32*)
9237 symcode='[ABCDGISTW]'
9239 hpux*) # Its linker distinguishes data from code symbols
9240 if test "$host_cpu" = ia64; then
9241 symcode='[ABCDEGRST]'
9243 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9244 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'"
9247 if test "$host_cpu" = ia64; then
9248 symcode='[ABCDGIRSTW]'
9249 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9250 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'"
9254 symcode='[BCDEGRST]'
9257 symcode='[BCDEGQRST]'
9268 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9276 # Handle CRLF in mingw tool chain
9280 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9284 # If we're using GNU nm, then use its standard symbol codes.
9285 case `$NM -V 2>&1` in
9286 *GNU* | *'with BFD'*)
9287 symcode='[ABCDGIRSTW]' ;;
9290 # Try without a prefix undercore, then with it.
9291 for ac_symprfx in "" "_"; do
9293 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9294 symxfrm="\\1 $ac_symprfx\\2 \\2"
9296 # Write the raw and C identifiers.
9297 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9299 # Check to see that the pipe works correctly.
9303 cat > conftest.$ac_ext <<EOF
9308 void nm_test_func(){}
9312 int main(){nm_test_var='a';nm_test_func();return(0);}
9315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9316 (eval $ac_compile) 2>&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; then
9320 # Now try to grab the symbols.
9322 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9323 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && test -s "$nlist"; then
9327 # Try sorting and uniquifying the output.
9328 if sort "$nlist" | uniq > "$nlist"T; then
9329 mv -f "$nlist"T "$nlist"
9334 # Make sure that we snagged all the symbols we need.
9335 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9336 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9337 cat <<EOF > conftest.$ac_ext
9343 # Now generate the symbol file.
9344 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9346 cat <<EOF >> conftest.$ac_ext
9347 #if defined (__STDC__) && __STDC__
9348 # define lt_ptr_t void *
9350 # define lt_ptr_t char *
9354 /* The mapping between symbol names and symbols. */
9359 lt_preloaded_symbols[] =
9362 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9363 cat <<\EOF >> conftest.$ac_ext
9371 # Now try linking the two files.
9372 mv conftest.$ac_objext conftstm.$ac_objext
9373 lt_save_LIBS="$LIBS"
9374 lt_save_CFLAGS="$CFLAGS"
9375 LIBS="conftstm.$ac_objext"
9376 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9384 LIBS="$lt_save_LIBS"
9385 CFLAGS="$lt_save_CFLAGS"
9387 echo "cannot find nm_test_func in $nlist" >&5
9390 echo "cannot find nm_test_var in $nlist" >&5
9393 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9396 echo "$progname: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9399 rm -f conftest* conftst*
9401 # Do not use the global_symbol_pipe unless it works.
9402 if test "$pipe_works" = yes; then
9405 lt_cv_sys_global_symbol_pipe=
9411 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9412 lt_cv_sys_global_symbol_to_cdecl=
9414 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9415 { echo "$as_me:$LINENO: result: failed" >&5
9416 echo "${ECHO_T}failed" >&6; }
9418 { echo "$as_me:$LINENO: result: ok" >&5
9419 echo "${ECHO_T}ok" >&6; }
9423 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9424 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9425 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9429 libltdl_cv_preloaded_symbols=yes
9431 libltdl_cv_preloaded_symbols=no
9435 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9436 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9437 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9439 cat >>confdefs.h <<\_ACEOF
9440 #define HAVE_PRELOADED_SYMBOLS 1
9448 ac_cpp='$CPP $CPPFLAGS'
9449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9454 { echo "$as_me:$LINENO: checking for shl_load" >&5
9455 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9456 if test "${ac_cv_func_shl_load+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 cat >conftest.$ac_ext <<_ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9467 #define shl_load innocuous_shl_load
9469 /* System header to define __stub macros and hopefully few prototypes,
9470 which can conflict with char shl_load (); below.
9471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9472 <limits.h> exists even on freestanding compilers. */
9475 # include <limits.h>
9477 # include <assert.h>
9482 /* Override any GCC internal prototype to avoid an error.
9483 Use char because int might match the return type of a GCC
9484 builtin and then its argument prototype would still apply. */
9489 /* The GNU C library defines this for functions which it implements
9490 to always fail with ENOSYS. Some functions are actually named
9491 something starting with __ and the normal name is an alias. */
9492 #if defined __stub_shl_load || defined __stub___shl_load
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_link") 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9519 { (case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_try") 2>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_try") 2>&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; }; then
9538 ac_cv_func_shl_load=yes
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9543 ac_cv_func_shl_load=no
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9549 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9550 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9551 if test $ac_cv_func_shl_load = yes; then
9553 cat >>confdefs.h <<\_ACEOF
9554 #define HAVE_SHL_LOAD 1
9558 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9559 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9560 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 ac_check_lib_save_LIBS=$LIBS
9565 cat >conftest.$ac_ext <<_ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h. */
9572 /* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (ac_try="$ac_link"
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_link") 2>conftest.er1
9596 grep -v '^ *+' conftest.er1 >conftest.err
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
9601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9602 { (case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_try") 2>&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; } &&
9611 { ac_try='test -s conftest$ac_exeext'
9612 { (case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_try") 2>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 ac_cv_lib_dld_shl_load=yes
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 ac_cv_lib_dld_shl_load=no
9629 rm -f core conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9631 LIBS=$ac_check_lib_save_LIBS
9633 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9634 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9635 if test $ac_cv_lib_dld_shl_load = yes; then
9637 cat >>confdefs.h <<\_ACEOF
9638 #define HAVE_SHL_LOAD 1
9641 LIBADD_DL="$LIBADD_DL -ldld"
9643 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9644 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9645 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 ac_check_lib_save_LIBS=$LIBS
9650 cat >conftest.$ac_ext <<_ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9657 /* Override any GCC internal prototype to avoid an error.
9658 Use char because int might match the return type of a GCC
9659 builtin and then its argument prototype would still apply. */
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679 (eval "$ac_link") 2>conftest.er1
9681 grep -v '^ *+' conftest.er1 >conftest.err
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9687 { (case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_try") 2>&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest$ac_exeext'
9697 { (case "(($ac_try" in
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_try") 2>&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_lib_dl_dlopen=yes
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9711 ac_cv_lib_dl_dlopen=no
9714 rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716 LIBS=$ac_check_lib_save_LIBS
9718 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9719 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9720 if test $ac_cv_lib_dl_dlopen = yes; then
9722 cat >>confdefs.h <<\_ACEOF
9723 #define HAVE_LIBDL 1
9726 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9728 cat >conftest.$ac_ext <<_ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
9755 grep -v '^ *+' conftest.er1 >conftest.err
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761 { (case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_try") 2>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE_LIBDL 1
9784 libltdl_cv_func_dlopen="yes"
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9790 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9791 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 ac_check_lib_save_LIBS=$LIBS
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9803 /* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
9827 grep -v '^ *+' conftest.er1 >conftest.err
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_try") 2>&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_svld_dlopen=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_cv_lib_svld_dlopen=no
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9864 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9865 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9866 if test $ac_cv_lib_svld_dlopen = yes; then
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_LIBDL 1
9872 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9874 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9875 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9876 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 ac_check_lib_save_LIBS=$LIBS
9881 cat >conftest.$ac_ext <<_ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9888 /* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>conftest.er1
9912 grep -v '^ *+' conftest.er1 >conftest.err
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_lib_dld_dld_link=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_cv_lib_dld_dld_link=no
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_check_lib_save_LIBS
9949 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9950 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9951 if test $ac_cv_lib_dld_dld_link = yes; then
9953 cat >>confdefs.h <<\_ACEOF
9957 LIBADD_DL="$LIBADD_DL -ldld"
9959 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9960 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9961 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9972 #define _dyld_func_lookup innocuous__dyld_func_lookup
9974 /* System header to define __stub macros and hopefully few prototypes,
9975 which can conflict with char _dyld_func_lookup (); below.
9976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977 <limits.h> exists even on freestanding compilers. */
9980 # include <limits.h>
9982 # include <assert.h>
9985 #undef _dyld_func_lookup
9987 /* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
9993 char _dyld_func_lookup ();
9994 /* The GNU C library defines this for functions which it implements
9995 to always fail with ENOSYS. Some functions are actually named
9996 something starting with __ and the normal name is an alias. */
9997 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10004 return _dyld_func_lookup ();
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (ac_try="$ac_link"
10011 case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_link") 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_try") 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_cv_func__dyld_func_lookup=yes
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_cv_func__dyld_func_lookup=no
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10054 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10055 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10056 if test $ac_cv_func__dyld_func_lookup = yes; then
10058 cat >>confdefs.h <<\_ACEOF
10059 #define HAVE_DYLD 1
10073 rm -f core conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
10085 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10087 lt_save_LIBS="$LIBS"
10088 LIBS="$LIBS $LIBADD_DL"
10090 for ac_func in dlerror
10092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 cat >conftest.$ac_ext <<_ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10106 #define $ac_func innocuous_$ac_func
10108 /* System header to define __stub macros and hopefully few prototypes,
10109 which can conflict with char $ac_func (); below.
10110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10111 <limits.h> exists even on freestanding compilers. */
10114 # include <limits.h>
10116 # include <assert.h>
10121 /* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10128 /* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
10131 #if defined __stub_$ac_func || defined __stub___$ac_func
10138 return $ac_func ();
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (ac_try="$ac_link"
10145 case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
10152 grep -v '^ *+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_try") 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 eval "$as_ac_var=yes"
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 eval "$as_ac_var=no"
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10188 ac_res=`eval echo '${'$as_ac_var'}'`
10189 { echo "$as_me:$LINENO: result: $ac_res" >&5
10190 echo "${ECHO_T}$ac_res" >&6; }
10191 if test `eval echo '${'$as_ac_var'}'` = yes; then
10192 cat >>confdefs.h <<_ACEOF
10193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10199 LIBS="$lt_save_LIBS"
10202 ac_cpp='$CPP $CPPFLAGS'
10203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10209 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10210 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10211 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 ac_cv_sys_symbol_underscore=no
10215 cat > conftest.$ac_ext <<EOF
10216 void nm_test_func(){}
10217 int main(){nm_test_func;return 0;}
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; then
10224 # Now try to grab the symbols.
10225 ac_nlist=conftest.nm
10226 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10227 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } && test -s "$ac_nlist"; then
10231 # See whether the symbols have a leading underscore.
10232 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10233 ac_cv_sys_symbol_underscore=yes
10235 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10238 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10242 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10245 echo "configure: failed program was:" >&5
10251 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10252 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10255 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10256 if test x"$libltdl_cv_func_dlopen" = xyes ||
10257 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10258 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10259 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10260 if test "${libltdl_cv_need_uscore+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 libltdl_cv_need_uscore=unknown
10265 LIBS="$LIBS $LIBADD_DL"
10266 if test "$cross_compiling" = yes; then :
10267 libltdl_cv_need_uscore=cross
10269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10270 lt_status=$lt_dlunknown
10271 cat > conftest.$ac_ext <<EOF
10272 #line 10272 "configure"
10273 #include "confdefs.h"
10282 # define LT_DLGLOBAL RTLD_GLOBAL
10285 # define LT_DLGLOBAL DL_GLOBAL
10287 # define LT_DLGLOBAL 0
10291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10292 find out it does not work in some platform. */
10293 #ifndef LT_DLLAZY_OR_NOW
10295 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10298 # define LT_DLLAZY_OR_NOW DL_LAZY
10301 # define LT_DLLAZY_OR_NOW RTLD_NOW
10304 # define LT_DLLAZY_OR_NOW DL_NOW
10306 # define LT_DLLAZY_OR_NOW 0
10314 extern "C" void exit (int);
10317 void fnord() { int i=42;}
10320 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10321 int status = $lt_dlunknown;
10325 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10326 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10327 /* dlclose (self); */
10335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336 (eval $ac_link) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10340 (./conftest; exit; ) >&5 2>/dev/null
10342 case x$lt_status in
10343 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10344 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10345 x$lt_dlunknown|x*) ;;
10348 # compilation failed
10357 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10358 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10362 if test x"$libltdl_cv_need_uscore" = xyes; then
10364 cat >>confdefs.h <<\_ACEOF
10365 #define NEED_USCORE 1
10371 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10372 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10373 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 # PORTME does your system automatically load deplibs for dlopen?
10377 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10378 # For now, we just catch OSes we know something about -- in the
10379 # future, we'll try test this programmatically.
10380 libltdl_cv_sys_dlopen_deplibs=unknown
10382 aix3*|aix4.1.*|aix4.2.*)
10383 # Unknown whether this is true for these versions of AIX, but
10384 # we want this `case' here to explicitly catch those versions.
10385 libltdl_cv_sys_dlopen_deplibs=unknown
10388 libltdl_cv_sys_dlopen_deplibs=yes
10391 # Assuming the user has installed a libdl from somewhere, this is true
10392 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10393 libltdl_cv_sys_dlopen_deplibs=yes
10395 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10396 # GNU and its variants, using gnu ld.so (Glibc)
10397 libltdl_cv_sys_dlopen_deplibs=yes
10400 libltdl_cv_sys_dlopen_deplibs=yes
10403 libltdl_cv_sys_dlopen_deplibs=yes
10405 irix[12345]*|irix6.[01]*)
10406 # Catch all versions of IRIX before 6.2, and indicate that we don't
10407 # know how it worked for any of those versions.
10408 libltdl_cv_sys_dlopen_deplibs=unknown
10411 # The case above catches anything before 6.2, and it's known that
10412 # at 6.2 and later dlopen does load deplibs.
10413 libltdl_cv_sys_dlopen_deplibs=yes
10416 libltdl_cv_sys_dlopen_deplibs=yes
10419 libltdl_cv_sys_dlopen_deplibs=yes
10422 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10423 # it did *not* use an RPATH in a shared library to find objects the
10424 # library depends on, so we explictly say `no'.
10425 libltdl_cv_sys_dlopen_deplibs=no
10427 osf5.0|osf5.0a|osf5.1)
10428 # dlopen *does* load deplibs and with the right loader patch applied
10429 # it even uses RPATH in a shared library to search for shared objects
10430 # that the library depends on, but there's no easy way to know if that
10431 # patch is installed. Since this is the case, all we can really
10432 # say is unknown -- it depends on the patch being installed. If
10433 # it is, this changes to `yes'. Without it, it would be `no'.
10434 libltdl_cv_sys_dlopen_deplibs=unknown
10437 # the two cases above should catch all versions of osf <= 5.1. Read
10438 # the comments above for what we know about them.
10439 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10440 # is used to find them so we can finally say `yes'.
10441 libltdl_cv_sys_dlopen_deplibs=yes
10444 libltdl_cv_sys_dlopen_deplibs=yes
10446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10447 libltdl_cv_sys_dlopen_deplibs=yes
10452 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10453 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10454 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10456 cat >>confdefs.h <<\_ACEOF
10457 #define LTDL_DLOPEN_DEPLIBS 1
10463 for ac_header in argz.h
10465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 ac_res=`eval echo '${'$as_ac_Header'}'`
10473 { echo "$as_me:$LINENO: result: $ac_res" >&5
10474 echo "${ECHO_T}$ac_res" >&6; }
10476 # Is the header compilable?
10477 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10479 cat >conftest.$ac_ext <<_ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 $ac_includes_default
10486 #include <$ac_header>
10488 rm -f conftest.$ac_objext
10489 if { (ac_try="$ac_compile"
10490 case "(($ac_try" in
10491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492 *) ac_try_echo=$ac_try;;
10494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10495 (eval "$ac_compile") 2>conftest.er1
10497 grep -v '^ *+' conftest.er1 >conftest.err
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
10502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10503 { (case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508 (eval "$ac_try") 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; } &&
10512 { ac_try='test -s conftest.$ac_objext'
10513 { (case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_try") 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_header_compiler=yes
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_header_compiler=no
10530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10532 echo "${ECHO_T}$ac_header_compiler" >&6; }
10534 # Is the header present?
10535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10537 cat >conftest.$ac_ext <<_ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10543 #include <$ac_header>
10545 if { (ac_try="$ac_cpp conftest.$ac_ext"
10546 case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10553 grep -v '^ *+' conftest.er1 >conftest.err
10555 cat conftest.err >&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } >/dev/null; then
10558 if test -s conftest.err; then
10559 ac_cpp_err=$ac_c_preproc_warn_flag
10560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10567 if test -z "$ac_cpp_err"; then
10568 ac_header_preproc=yes
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 ac_header_preproc=no
10576 rm -f conftest.err conftest.$ac_ext
10577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10578 echo "${ECHO_T}$ac_header_preproc" >&6; }
10580 # So? What about this header?
10581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10587 ac_header_preproc=yes
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10603 ## ----------------------------------- ##
10604 ## Report this to llvmbugs@cs.uiuc.edu ##
10605 ## ----------------------------------- ##
10607 ) | sed "s/^/$as_me: WARNING: /" >&2
10610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 eval "$as_ac_Header=\$ac_header_preproc"
10617 ac_res=`eval echo '${'$as_ac_Header'}'`
10618 { echo "$as_me:$LINENO: result: $ac_res" >&5
10619 echo "${ECHO_T}$ac_res" >&6; }
10622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10623 cat >>confdefs.h <<_ACEOF
10624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10632 { echo "$as_me:$LINENO: checking for error_t" >&5
10633 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10634 if test "${ac_cv_type_error_t+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10647 typedef error_t ac__type_new_;
10651 if ((ac__type_new_ *) 0)
10653 if (sizeof (ac__type_new_))
10659 rm -f conftest.$ac_objext
10660 if { (ac_try="$ac_compile"
10661 case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_compile") 2>conftest.er1
10668 grep -v '^ *+' conftest.er1 >conftest.err
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10674 { (case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_try") 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest.$ac_objext'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_type_error_t=yes
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10698 ac_cv_type_error_t=no
10701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10704 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10705 if test $ac_cv_type_error_t = yes; then
10707 cat >>confdefs.h <<_ACEOF
10708 #define HAVE_ERROR_T 1
10714 cat >>confdefs.h <<\_ACEOF
10715 #define error_t int
10726 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10742 #define $ac_func innocuous_$ac_func
10744 /* System header to define __stub macros and hopefully few prototypes,
10745 which can conflict with char $ac_func (); below.
10746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10747 <limits.h> exists even on freestanding compilers. */
10750 # include <limits.h>
10752 # include <assert.h>
10757 /* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
10764 /* The GNU C library defines this for functions which it implements
10765 to always fail with ENOSYS. Some functions are actually named
10766 something starting with __ and the normal name is an alias. */
10767 #if defined __stub_$ac_func || defined __stub___$ac_func
10774 return $ac_func ();
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_link") 2>conftest.er1
10788 grep -v '^ *+' conftest.er1 >conftest.err
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10794 { (case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_try") 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest$ac_exeext'
10804 { (case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_try") 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 eval "$as_ac_var=yes"
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10818 eval "$as_ac_var=no"
10821 rm -f core conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
10824 ac_res=`eval echo '${'$as_ac_var'}'`
10825 { echo "$as_me:$LINENO: result: $ac_res" >&5
10826 echo "${ECHO_T}$ac_res" >&6; }
10827 if test `eval echo '${'$as_ac_var'}'` = yes; then
10828 cat >>confdefs.h <<_ACEOF
10829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10862 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 ac_res=`eval echo '${'$as_ac_Header'}'`
10873 { echo "$as_me:$LINENO: result: $ac_res" >&5
10874 echo "${ECHO_T}$ac_res" >&6; }
10876 # Is the header compilable?
10877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 $ac_includes_default
10886 #include <$ac_header>
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10897 grep -v '^ *+' conftest.er1 >conftest.err
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10903 { (case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_try") 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; } &&
10912 { ac_try='test -s conftest.$ac_objext'
10913 { (case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_try") 2>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_header_compiler=yes
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 ac_header_compiler=no
10930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10932 echo "${ECHO_T}$ac_header_compiler" >&6; }
10934 # Is the header present?
10935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10937 cat >conftest.$ac_ext <<_ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 #include <$ac_header>
10945 if { (ac_try="$ac_cpp conftest.$ac_ext"
10946 case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10953 grep -v '^ *+' conftest.er1 >conftest.err
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } >/dev/null; then
10958 if test -s conftest.err; then
10959 ac_cpp_err=$ac_c_preproc_warn_flag
10960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10967 if test -z "$ac_cpp_err"; then
10968 ac_header_preproc=yes
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 ac_header_preproc=no
10976 rm -f conftest.err conftest.$ac_ext
10977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10978 echo "${ECHO_T}$ac_header_preproc" >&6; }
10980 # So? What about this header?
10981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10987 ac_header_preproc=yes
10990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11003 ## ----------------------------------- ##
11004 ## Report this to llvmbugs@cs.uiuc.edu ##
11005 ## ----------------------------------- ##
11007 ) | sed "s/^/$as_me: WARNING: /" >&2
11010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 eval "$as_ac_Header=\$ac_header_preproc"
11017 ac_res=`eval echo '${'$as_ac_Header'}'`
11018 { echo "$as_me:$LINENO: result: $ac_res" >&5
11019 echo "${ECHO_T}$ac_res" >&6; }
11022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11023 cat >>confdefs.h <<_ACEOF
11024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11035 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 ac_res=`eval echo '${'$as_ac_Header'}'`
11045 { echo "$as_me:$LINENO: result: $ac_res" >&5
11046 echo "${ECHO_T}$ac_res" >&6; }
11048 # Is the header compilable?
11049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 $ac_includes_default
11058 #include <$ac_header>
11060 rm -f conftest.$ac_objext
11061 if { (ac_try="$ac_compile"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_compile") 2>conftest.er1
11069 grep -v '^ *+' conftest.er1 >conftest.err
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } &&
11074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11075 { (case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_try") 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; } &&
11084 { ac_try='test -s conftest.$ac_objext'
11085 { (case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_try") 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 ac_header_compiler=yes
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11099 ac_header_compiler=no
11102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104 echo "${ECHO_T}$ac_header_compiler" >&6; }
11106 # Is the header present?
11107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11109 cat >conftest.$ac_ext <<_ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 #include <$ac_header>
11117 if { (ac_try="$ac_cpp conftest.$ac_ext"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } >/dev/null; then
11130 if test -s conftest.err; then
11131 ac_cpp_err=$ac_c_preproc_warn_flag
11132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11139 if test -z "$ac_cpp_err"; then
11140 ac_header_preproc=yes
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 ac_header_preproc=no
11148 rm -f conftest.err conftest.$ac_ext
11149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11150 echo "${ECHO_T}$ac_header_preproc" >&6; }
11152 # So? What about this header?
11153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11159 ac_header_preproc=yes
11162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11175 ## ----------------------------------- ##
11176 ## Report this to llvmbugs@cs.uiuc.edu ##
11177 ## ----------------------------------- ##
11179 ) | sed "s/^/$as_me: WARNING: /" >&2
11182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 eval "$as_ac_Header=\$ac_header_preproc"
11189 ac_res=`eval echo '${'$as_ac_Header'}'`
11190 { echo "$as_me:$LINENO: result: $ac_res" >&5
11191 echo "${ECHO_T}$ac_res" >&6; }
11194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11195 cat >>confdefs.h <<_ACEOF
11196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11205 for ac_header in string.h strings.h
11207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 ac_res=`eval echo '${'$as_ac_Header'}'`
11215 { echo "$as_me:$LINENO: result: $ac_res" >&5
11216 echo "${ECHO_T}$ac_res" >&6; }
11218 # Is the header compilable?
11219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11221 cat >conftest.$ac_ext <<_ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 $ac_includes_default
11228 #include <$ac_header>
11230 rm -f conftest.$ac_objext
11231 if { (ac_try="$ac_compile"
11232 case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_compile") 2>conftest.er1
11239 grep -v '^ *+' conftest.er1 >conftest.err
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
11244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11245 { (case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_try") 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest.$ac_objext'
11255 { (case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_try") 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 ac_header_compiler=yes
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11269 ac_header_compiler=no
11272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11274 echo "${ECHO_T}$ac_header_compiler" >&6; }
11276 # Is the header present?
11277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 #include <$ac_header>
11287 if { (ac_try="$ac_cpp conftest.$ac_ext"
11288 case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11295 grep -v '^ *+' conftest.er1 >conftest.err
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } >/dev/null; then
11300 if test -s conftest.err; then
11301 ac_cpp_err=$ac_c_preproc_warn_flag
11302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11309 if test -z "$ac_cpp_err"; then
11310 ac_header_preproc=yes
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 ac_header_preproc=no
11318 rm -f conftest.err conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11320 echo "${ECHO_T}$ac_header_preproc" >&6; }
11322 # So? What about this header?
11323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11329 ac_header_preproc=yes
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11345 ## ----------------------------------- ##
11346 ## Report this to llvmbugs@cs.uiuc.edu ##
11347 ## ----------------------------------- ##
11349 ) | sed "s/^/$as_me: WARNING: /" >&2
11352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 eval "$as_ac_Header=\$ac_header_preproc"
11359 ac_res=`eval echo '${'$as_ac_Header'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11365 cat >>confdefs.h <<_ACEOF
11366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11376 for ac_func in strchr index
11378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11392 #define $ac_func innocuous_$ac_func
11394 /* System header to define __stub macros and hopefully few prototypes,
11395 which can conflict with char $ac_func (); below.
11396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11397 <limits.h> exists even on freestanding compilers. */
11400 # include <limits.h>
11402 # include <assert.h>
11407 /* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
11414 /* The GNU C library defines this for functions which it implements
11415 to always fail with ENOSYS. Some functions are actually named
11416 something starting with __ and the normal name is an alias. */
11417 #if defined __stub_$ac_func || defined __stub___$ac_func
11424 return $ac_func ();
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (ac_try="$ac_link"
11431 case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_link") 2>conftest.er1
11438 grep -v '^ *+' conftest.er1 >conftest.err
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11444 { (case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_try") 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try='test -s conftest$ac_exeext'
11454 { (case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_try") 2>&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 eval "$as_ac_var=yes"
11465 echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11468 eval "$as_ac_var=no"
11471 rm -f core conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11474 ac_res=`eval echo '${'$as_ac_var'}'`
11475 { echo "$as_me:$LINENO: result: $ac_res" >&5
11476 echo "${ECHO_T}$ac_res" >&6; }
11477 if test `eval echo '${'$as_ac_var'}'` = yes; then
11478 cat >>confdefs.h <<_ACEOF
11479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11487 for ac_func in strrchr rindex
11489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11503 #define $ac_func innocuous_$ac_func
11505 /* System header to define __stub macros and hopefully few prototypes,
11506 which can conflict with char $ac_func (); below.
11507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11508 <limits.h> exists even on freestanding compilers. */
11511 # include <limits.h>
11513 # include <assert.h>
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11525 /* The GNU C library defines this for functions which it implements
11526 to always fail with ENOSYS. Some functions are actually named
11527 something starting with __ and the normal name is an alias. */
11528 #if defined __stub_$ac_func || defined __stub___$ac_func
11535 return $ac_func ();
11540 rm -f conftest.$ac_objext conftest$ac_exeext
11541 if { (ac_try="$ac_link"
11542 case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_link") 2>conftest.er1
11549 grep -v '^ *+' conftest.er1 >conftest.err
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11555 { (case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_try") 2>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; } &&
11564 { ac_try='test -s conftest$ac_exeext'
11565 { (case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_try") 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 eval "$as_ac_var=yes"
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 eval "$as_ac_var=no"
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11585 ac_res=`eval echo '${'$as_ac_var'}'`
11586 { echo "$as_me:$LINENO: result: $ac_res" >&5
11587 echo "${ECHO_T}$ac_res" >&6; }
11588 if test `eval echo '${'$as_ac_var'}'` = yes; then
11589 cat >>confdefs.h <<_ACEOF
11590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11598 for ac_func in memcpy bcopy
11600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11614 #define $ac_func innocuous_$ac_func
11616 /* System header to define __stub macros and hopefully few prototypes,
11617 which can conflict with char $ac_func (); below.
11618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11619 <limits.h> exists even on freestanding compilers. */
11622 # include <limits.h>
11624 # include <assert.h>
11629 /* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11636 /* The GNU C library defines this for functions which it implements
11637 to always fail with ENOSYS. Some functions are actually named
11638 something starting with __ and the normal name is an alias. */
11639 #if defined __stub_$ac_func || defined __stub___$ac_func
11646 return $ac_func ();
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (ac_try="$ac_link"
11653 case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_link") 2>conftest.er1
11660 grep -v '^ *+' conftest.er1 >conftest.err
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666 { (case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_try") 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest$ac_exeext'
11676 { (case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_try") 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 eval "$as_ac_var=yes"
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 eval "$as_ac_var=no"
11693 rm -f core conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11696 ac_res=`eval echo '${'$as_ac_var'}'`
11697 { echo "$as_me:$LINENO: result: $ac_res" >&5
11698 echo "${ECHO_T}$ac_res" >&6; }
11699 if test `eval echo '${'$as_ac_var'}'` = yes; then
11700 cat >>confdefs.h <<_ACEOF
11701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11709 for ac_func in memmove strcmp
11711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 cat >conftest.$ac_ext <<_ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11725 #define $ac_func innocuous_$ac_func
11727 /* System header to define __stub macros and hopefully few prototypes,
11728 which can conflict with char $ac_func (); below.
11729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 <limits.h> exists even on freestanding compilers. */
11733 # include <limits.h>
11735 # include <assert.h>
11740 /* Override any GCC internal prototype to avoid an error.
11741 Use char because int might match the return type of a GCC
11742 builtin and then its argument prototype would still apply. */
11747 /* The GNU C library defines this for functions which it implements
11748 to always fail with ENOSYS. Some functions are actually named
11749 something starting with __ and the normal name is an alias. */
11750 #if defined __stub_$ac_func || defined __stub___$ac_func
11757 return $ac_func ();
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (ac_try="$ac_link"
11764 case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_link") 2>conftest.er1
11771 grep -v '^ *+' conftest.er1 >conftest.err
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777 { (case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_try") 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest$ac_exeext'
11787 { (case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_try") 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 eval "$as_ac_var=yes"
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 eval "$as_ac_var=no"
11804 rm -f core conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11807 ac_res=`eval echo '${'$as_ac_var'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11810 if test `eval echo '${'$as_ac_var'}'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11821 for ac_func in closedir opendir readdir
11823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11837 #define $ac_func innocuous_$ac_func
11839 /* System header to define __stub macros and hopefully few prototypes,
11840 which can conflict with char $ac_func (); below.
11841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842 <limits.h> exists even on freestanding compilers. */
11845 # include <limits.h>
11847 # include <assert.h>
11852 /* Override any GCC internal prototype to avoid an error.
11853 Use char because int might match the return type of a GCC
11854 builtin and then its argument prototype would still apply. */
11859 /* The GNU C library defines this for functions which it implements
11860 to always fail with ENOSYS. Some functions are actually named
11861 something starting with __ and the normal name is an alias. */
11862 #if defined __stub_$ac_func || defined __stub___$ac_func
11869 return $ac_func ();
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (ac_try="$ac_link"
11876 case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_link") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_try") 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest$ac_exeext'
11899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 eval "$as_ac_var=yes"
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 eval "$as_ac_var=no"
11916 rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11919 ac_res=`eval echo '${'$as_ac_var'}'`
11920 { echo "$as_me:$LINENO: result: $ac_res" >&5
11921 echo "${ECHO_T}$ac_res" >&6; }
11922 if test `eval echo '${'$as_ac_var'}'` = yes; then
11923 cat >>confdefs.h <<_ACEOF
11924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11931 # Check whether --enable-shared was given.
11932 if test "${enable_shared+set}" = set; then
11933 enableval=$enable_shared; p=${PACKAGE-default}
11935 yes) enable_shared=yes ;;
11936 no) enable_shared=no ;;
11939 # Look at the argument we got. We use all the common list separators.
11940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11941 for pkg in $enableval; do
11943 if test "X$pkg" = "X$p"; then
11955 # Check whether --enable-static was given.
11956 if test "${enable_static+set}" = set; then
11957 enableval=$enable_static; p=${PACKAGE-default}
11959 yes) enable_static=yes ;;
11960 no) enable_static=no ;;
11963 # Look at the argument we got. We use all the common list separators.
11964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11965 for pkg in $enableval; do
11967 if test "X$pkg" = "X$p"; then
11979 # Check whether --enable-fast-install was given.
11980 if test "${enable_fast_install+set}" = set; then
11981 enableval=$enable_fast_install; p=${PACKAGE-default}
11983 yes) enable_fast_install=yes ;;
11984 no) enable_fast_install=no ;;
11986 enable_fast_install=no
11987 # Look at the argument we got. We use all the common list separators.
11988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11989 for pkg in $enableval; do
11991 if test "X$pkg" = "X$p"; then
11992 enable_fast_install=yes
11999 enable_fast_install=yes
12003 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12004 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12005 if test "${lt_cv_path_SED+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 # Loop through the user's path and test for sed and gsed.
12009 # Then use that list of sed's as ones to test for truncation.
12010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $PATH
12014 test -z "$as_dir" && as_dir=.
12015 for lt_ac_prog in sed gsed; do
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12018 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12025 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12026 # along with /bin/sed that truncates output.
12027 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12028 test ! -f $lt_ac_sed && continue
12029 cat /dev/null > conftest.in
12031 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12032 # Check for GNU sed and select it if it is found.
12033 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12034 lt_cv_path_SED=$lt_ac_sed
12038 cat conftest.in conftest.in >conftest.tmp
12039 mv conftest.tmp conftest.in
12040 cp conftest.in conftest.nl
12042 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12043 cmp -s conftest.out conftest.nl || break
12044 # 10000 chars as input seems more than enough
12045 test $lt_ac_count -gt 10 && break
12046 lt_ac_count=`expr $lt_ac_count + 1`
12047 if test $lt_ac_count -gt $lt_ac_max; then
12048 lt_ac_max=$lt_ac_count
12049 lt_cv_path_SED=$lt_ac_sed
12056 SED=$lt_cv_path_SED
12057 { echo "$as_me:$LINENO: result: $SED" >&5
12058 echo "${ECHO_T}$SED" >&6; }
12061 # Check whether --with-gnu-ld was given.
12062 if test "${with_gnu_ld+set}" = set; then
12063 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12069 if test "$GCC" = yes; then
12070 # Check if gcc -print-prog-name=ld gives a path.
12071 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12072 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12075 # gcc leaves a trailing carriage return which upsets mingw
12076 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12078 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12081 # Accept absolute paths.
12083 re_direlt='/[^/][^/]*/\.\./'
12084 # Canonicalize the pathname of ld
12085 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12086 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12087 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12089 test -z "$LD" && LD="$ac_prog"
12092 # If it fails, then pretend we aren't using GCC.
12096 # If it is relative, then search for the first ld in PATH.
12097 with_gnu_ld=unknown
12100 elif test "$with_gnu_ld" = yes; then
12101 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12102 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12104 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12105 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12107 if test "${lt_cv_path_LD+set}" = set; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 if test -z "$LD"; then
12111 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12112 for ac_dir in $PATH; do
12114 test -z "$ac_dir" && ac_dir=.
12115 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12116 lt_cv_path_LD="$ac_dir/$ac_prog"
12117 # Check to see if the program is GNU ld. I'd rather use --version,
12118 # but apparently some variants of GNU ld only accept -v.
12119 # Break only if it was the GNU/non-GNU ld that we prefer.
12120 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12121 *GNU* | *'with BFD'*)
12122 test "$with_gnu_ld" != no && break
12125 test "$with_gnu_ld" != yes && break
12132 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12136 LD="$lt_cv_path_LD"
12137 if test -n "$LD"; then
12138 { echo "$as_me:$LINENO: result: $LD" >&5
12139 echo "${ECHO_T}$LD" >&6; }
12141 { echo "$as_me:$LINENO: result: no" >&5
12142 echo "${ECHO_T}no" >&6; }
12144 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12145 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12146 { (exit 1); exit 1; }; }
12147 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12148 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12149 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12153 case `$LD -v 2>&1 </dev/null` in
12154 *GNU* | *'with BFD'*)
12155 lt_cv_prog_gnu_ld=yes
12158 lt_cv_prog_gnu_ld=no
12162 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12163 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12164 with_gnu_ld=$lt_cv_prog_gnu_ld
12167 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12168 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12169 if test "${lt_cv_ld_reload_flag+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 lt_cv_ld_reload_flag='-r'
12174 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12175 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12176 reload_flag=$lt_cv_ld_reload_flag
12177 case $reload_flag in
12179 *) reload_flag=" $reload_flag" ;;
12181 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12184 if test "$GCC" = yes; then
12185 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12187 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12192 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12193 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12194 if test "${lt_cv_deplibs_check_method+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 lt_cv_file_magic_cmd='$MAGIC_CMD'
12198 lt_cv_file_magic_test_file=
12199 lt_cv_deplibs_check_method='unknown'
12200 # Need to set the preceding variable on all platforms that support
12201 # interlibrary dependencies.
12202 # 'none' -- dependencies not supported.
12203 # `unknown' -- same as none, but documents that we really don't know.
12204 # 'pass_all' -- all dependencies passed with no checks.
12205 # 'test_compile' -- check by making test program.
12206 # 'file_magic [[regex]]' -- check by looking for files in library path
12207 # which responds to the $file_magic_cmd with a given extended regex.
12208 # If you have `file' or equivalent on your system and you're not sure
12209 # whether `pass_all' will *always* work, you probably want this one.
12213 lt_cv_deplibs_check_method=pass_all
12217 lt_cv_deplibs_check_method=pass_all
12221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12222 lt_cv_file_magic_cmd='/usr/bin/file -L'
12223 lt_cv_file_magic_test_file=/shlib/libc.so
12227 # func_win32_libid is a shell function defined in ltmain.sh
12228 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12229 lt_cv_file_magic_cmd='func_win32_libid'
12233 # Base MSYS/MinGW do not provide the 'file' command needed by
12234 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12235 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12236 lt_cv_file_magic_cmd='$OBJDUMP -f'
12239 darwin* | rhapsody*)
12240 lt_cv_deplibs_check_method=pass_all
12243 freebsd* | kfreebsd*-gnu | dragonfly*)
12244 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12247 # Not sure whether the presence of OpenBSD here was a mistake.
12248 # Let's accept both of them until this is cleared up.
12249 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12250 lt_cv_file_magic_cmd=/usr/bin/file
12251 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12255 lt_cv_deplibs_check_method=pass_all
12260 lt_cv_deplibs_check_method=pass_all
12263 hpux10.20* | hpux11*)
12264 lt_cv_file_magic_cmd=/usr/bin/file
12267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12268 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12271 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]'
12272 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12275 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12276 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12282 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12286 irix5* | irix6* | nonstopux*)
12288 *-32|*"-32 ") libmagic=32-bit;;
12289 *-n32|*"-n32 ") libmagic=N32;;
12290 *-64|*"-64 ") libmagic=64-bit;;
12291 *) libmagic=never-match;;
12293 lt_cv_deplibs_check_method=pass_all
12296 # This must be Linux ELF.
12298 lt_cv_deplibs_check_method=pass_all
12302 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12311 lt_cv_file_magic_cmd=/usr/bin/file
12312 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12316 lt_cv_deplibs_check_method=unknown
12320 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12327 osf3* | osf4* | osf5*)
12328 lt_cv_deplibs_check_method=pass_all
12332 lt_cv_deplibs_check_method=pass_all
12336 case $host_vendor in
12338 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]'
12339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12342 lt_cv_deplibs_check_method=pass_all
12345 lt_cv_file_magic_cmd='/bin/file'
12346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12349 lt_cv_file_magic_cmd='/bin/file'
12350 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12351 lt_cv_file_magic_test_file=/lib/libc.so
12354 lt_cv_deplibs_check_method=pass_all
12357 lt_cv_deplibs_check_method=pass_all
12362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12363 lt_cv_deplibs_check_method=pass_all
12368 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12369 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12370 file_magic_cmd=$lt_cv_file_magic_cmd
12371 deplibs_check_method=$lt_cv_deplibs_check_method
12372 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12376 # If no C compiler was specified, use CC.
12379 # If no C compiler flags were specified, use CFLAGS.
12380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12382 # Allow CC to be a program name with arguments.
12385 # Check whether --enable-libtool-lock was given.
12386 if test "${enable_libtool_lock+set}" = set; then
12387 enableval=$enable_libtool_lock;
12390 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12392 # Some flags need to be propagated to the compiler or linker for good
12396 # Find out which ABI we are using.
12397 echo 'int i;' > conftest.$ac_ext
12398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12399 (eval $ac_compile) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; then
12403 case `/usr/bin/file conftest.$ac_objext` in
12405 HPUX_IA64_MODE="32"
12408 HPUX_IA64_MODE="64"
12415 # Find out which ABI we are using.
12416 echo '#line 12416 "configure"' > conftest.$ac_ext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418 (eval $ac_compile) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; then
12422 if test "$lt_cv_prog_gnu_ld" = yes; then
12423 case `/usr/bin/file conftest.$ac_objext` in
12425 LD="${LD-ld} -melf32bsmip"
12428 LD="${LD-ld} -melf32bmipn32"
12431 LD="${LD-ld} -melf64bmip"
12435 case `/usr/bin/file conftest.$ac_objext` in
12451 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12452 # Find out which ABI we are using.
12453 echo 'int i;' > conftest.$ac_ext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455 (eval $ac_compile) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; then
12459 case `/usr/bin/file conftest.o` in
12463 LD="${LD-ld} -m elf_i386"
12465 ppc64-*linux*|powerpc64-*linux*)
12466 LD="${LD-ld} -m elf32ppclinux"
12469 LD="${LD-ld} -m elf_s390"
12472 LD="${LD-ld} -m elf32_sparc"
12479 LD="${LD-ld} -m elf_x86_64"
12481 ppc*-*linux*|powerpc*-*linux*)
12482 LD="${LD-ld} -m elf64ppc"
12485 LD="${LD-ld} -m elf64_s390"
12488 LD="${LD-ld} -m elf64_sparc"
12498 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12499 SAVE_CFLAGS="$CFLAGS"
12500 CFLAGS="$CFLAGS -belf"
12501 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12502 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12503 if test "${lt_cv_cc_needs_belf+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 ac_cpp='$CPP $CPPFLAGS'
12508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (ac_try="$ac_link"
12529 case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_link") 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12542 { (case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_try") 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest$ac_exeext'
12552 { (case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_try") 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 lt_cv_cc_needs_belf=yes
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 lt_cv_cc_needs_belf=no
12569 rm -f core conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12572 ac_cpp='$CPP $CPPFLAGS'
12573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12578 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12579 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12580 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12581 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12582 CFLAGS="$SAVE_CFLAGS"
12586 # Find out which ABI we are using.
12587 echo 'int i;' > conftest.$ac_ext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; then
12593 case `/usr/bin/file conftest.o` in
12595 case $lt_cv_prog_gnu_ld in
12596 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12597 *) LD="${LD-ld} -64" ;;
12608 need_locks="$enable_libtool_lock"
12613 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12614 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12615 (test "X$CXX" != "Xg++"))) ; then
12617 ac_cpp='$CXXCPP $CPPFLAGS'
12618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12621 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12622 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12623 if test -z "$CXXCPP"; then
12624 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 # Double quotes because CXXCPP needs to be expanded
12628 for CXXCPP in "$CXX -E" "/lib/cpp"
12630 ac_preproc_ok=false
12631 for ac_cxx_preproc_warn_flag in '' yes
12633 # Use a header file that comes with gcc, so configuring glibc
12634 # with a fresh cross-compiler works.
12635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12636 # <limits.h> exists even on freestanding compilers.
12637 # On the NeXT, cc -E runs the code through the compiler's parser,
12638 # not just through cpp. "Syntax error" is here to catch this case.
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12646 # include <limits.h>
12648 # include <assert.h>
12652 if { (ac_try="$ac_cpp conftest.$ac_ext"
12653 case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12660 grep -v '^ *+' conftest.er1 >conftest.err
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } >/dev/null; then
12665 if test -s conftest.err; then
12666 ac_cpp_err=$ac_cxx_preproc_warn_flag
12667 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12674 if test -z "$ac_cpp_err"; then
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12680 # Broken: fails on valid input.
12684 rm -f conftest.err conftest.$ac_ext
12686 # OK, works on sane cases. Now check whether nonexistent headers
12687 # can be detected and how.
12688 cat >conftest.$ac_ext <<_ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12694 #include <ac_nonexistent.h>
12696 if { (ac_try="$ac_cpp conftest.$ac_ext"
12697 case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12704 grep -v '^ *+' conftest.er1 >conftest.err
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } >/dev/null; then
12709 if test -s conftest.err; then
12710 ac_cpp_err=$ac_cxx_preproc_warn_flag
12711 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12718 if test -z "$ac_cpp_err"; then
12719 # Broken: success on invalid input.
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12725 # Passes both tests.
12730 rm -f conftest.err conftest.$ac_ext
12733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12734 rm -f conftest.err conftest.$ac_ext
12735 if $ac_preproc_ok; then
12740 ac_cv_prog_CXXCPP=$CXXCPP
12743 CXXCPP=$ac_cv_prog_CXXCPP
12745 ac_cv_prog_CXXCPP=$CXXCPP
12747 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12748 echo "${ECHO_T}$CXXCPP" >&6; }
12749 ac_preproc_ok=false
12750 for ac_cxx_preproc_warn_flag in '' yes
12752 # Use a header file that comes with gcc, so configuring glibc
12753 # with a fresh cross-compiler works.
12754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12755 # <limits.h> exists even on freestanding compilers.
12756 # On the NeXT, cc -E runs the code through the compiler's parser,
12757 # not just through cpp. "Syntax error" is here to catch this case.
12758 cat >conftest.$ac_ext <<_ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 # include <limits.h>
12767 # include <assert.h>
12771 if { (ac_try="$ac_cpp conftest.$ac_ext"
12772 case "(($ac_try" in
12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774 *) ac_try_echo=$ac_try;;
12776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12779 grep -v '^ *+' conftest.er1 >conftest.err
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } >/dev/null; then
12784 if test -s conftest.err; then
12785 ac_cpp_err=$ac_cxx_preproc_warn_flag
12786 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12793 if test -z "$ac_cpp_err"; then
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12799 # Broken: fails on valid input.
12803 rm -f conftest.err conftest.$ac_ext
12805 # OK, works on sane cases. Now check whether nonexistent headers
12806 # can be detected and how.
12807 cat >conftest.$ac_ext <<_ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12813 #include <ac_nonexistent.h>
12815 if { (ac_try="$ac_cpp conftest.$ac_ext"
12816 case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12823 grep -v '^ *+' conftest.er1 >conftest.err
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } >/dev/null; then
12828 if test -s conftest.err; then
12829 ac_cpp_err=$ac_cxx_preproc_warn_flag
12830 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12837 if test -z "$ac_cpp_err"; then
12838 # Broken: success on invalid input.
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 # Passes both tests.
12849 rm -f conftest.err conftest.$ac_ext
12852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12853 rm -f conftest.err conftest.$ac_ext
12854 if $ac_preproc_ok; then
12857 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12858 See \`config.log' for more details." >&5
12859 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12860 See \`config.log' for more details." >&2;}
12861 { (exit 1); exit 1; }; }
12865 ac_cpp='$CXXCPP $CPPFLAGS'
12866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12874 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12875 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12877 if test -n "$ac_tool_prefix"; then
12878 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
12880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12884 if test "${ac_cv_prog_F77+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 if test -n "$F77"; then
12888 ac_cv_prog_F77="$F77" # Let the user override the test.
12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891 for as_dir in $PATH
12894 test -z "$as_dir" && as_dir=.
12895 for ac_exec_ext in '' $ac_executable_extensions; do
12896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12897 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12907 F77=$ac_cv_prog_F77
12908 if test -n "$F77"; then
12909 { echo "$as_me:$LINENO: result: $F77" >&5
12910 echo "${ECHO_T}$F77" >&6; }
12912 { echo "$as_me:$LINENO: result: no" >&5
12913 echo "${ECHO_T}no" >&6; }
12917 test -n "$F77" && break
12920 if test -z "$F77"; then
12922 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
12924 # Extract the first word of "$ac_prog", so it can be a program name with args.
12925 set dummy $ac_prog; ac_word=$2
12926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12928 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 if test -n "$ac_ct_F77"; then
12932 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12941 ac_cv_prog_ac_ct_F77="$ac_prog"
12942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12952 if test -n "$ac_ct_F77"; then
12953 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12954 echo "${ECHO_T}$ac_ct_F77" >&6; }
12956 { echo "$as_me:$LINENO: result: no" >&5
12957 echo "${ECHO_T}no" >&6; }
12961 test -n "$ac_ct_F77" && break
12964 if test "x$ac_ct_F77" = x; then
12967 case $cross_compiling:$ac_tool_warned in
12969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12970 whose name does not start with the host triplet. If you think this
12971 configuration is useful to you, please write to autoconf@gnu.org." >&5
12972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12973 whose name does not start with the host triplet. If you think this
12974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12975 ac_tool_warned=yes ;;
12982 # Provide some information about the compiler.
12983 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12984 ac_compiler=`set X $ac_compile; echo $2`
12985 { (ac_try="$ac_compiler --version >&5"
12986 case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_compiler --version >&5") 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }
12995 { (ac_try="$ac_compiler -v >&5"
12996 case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_compiler -v >&5") 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }
13005 { (ac_try="$ac_compiler -V >&5"
13006 case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_compiler -V >&5") 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }
13017 # If we don't use `.F' as extension, the preprocessor is not run on the
13018 # input file. (Note that this only needs to work for GNU compilers.)
13019 ac_save_ext=$ac_ext
13021 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13022 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13023 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 cat >conftest.$ac_ext <<_ACEOF
13034 rm -f conftest.$ac_objext
13035 if { (ac_try="$ac_compile"
13036 case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_compile") 2>conftest.er1
13043 grep -v '^ *+' conftest.er1 >conftest.err
13045 cat conftest.err >&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13049 { (case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054 (eval "$ac_try") 2>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try='test -s conftest.$ac_objext'
13059 { (case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_try") 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_compiler_gnu=yes
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13080 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13081 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13082 ac_ext=$ac_save_ext
13083 ac_test_FFLAGS=${FFLAGS+set}
13084 ac_save_FFLAGS=$FFLAGS
13086 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13087 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13088 if test "${ac_cv_prog_f77_g+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 cat >conftest.$ac_ext <<_ACEOF
13097 rm -f conftest.$ac_objext
13098 if { (ac_try="$ac_compile"
13099 case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104 (eval "$ac_compile") 2>conftest.er1
13106 grep -v '^ *+' conftest.er1 >conftest.err
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
13111 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13112 { (case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_try") 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try='test -s conftest.$ac_objext'
13122 { (case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_try") 2>&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; }; then
13131 ac_cv_prog_f77_g=yes
13133 echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13136 ac_cv_prog_f77_g=no
13139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13142 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13143 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13144 if test "$ac_test_FFLAGS" = set; then
13145 FFLAGS=$ac_save_FFLAGS
13146 elif test $ac_cv_prog_f77_g = yes; then
13147 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13153 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13160 G77=`test $ac_compiler_gnu = yes && echo yes`
13162 ac_cpp='$CPP $CPPFLAGS'
13163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13169 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13171 # find the maximum length of command line arguments
13172 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13173 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13174 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 # On DJGPP, this test can blow up pretty badly due to problems in libc
13183 # (any single argument exceeding 2000 bytes causes a buffer overrun
13184 # during glob expansion). Even if it were fixed, the result of this
13185 # check would be larger than it should be.
13186 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13190 # Under GNU Hurd, this test is not required because there is
13191 # no limit to the length of command line arguments.
13192 # Libtool will interpret -1 as no limit whatsoever
13193 lt_cv_sys_max_cmd_len=-1;
13197 # On Win9x/ME, this test blows up -- it succeeds, but takes
13198 # about 5 minutes as the teststring grows exponentially.
13199 # Worse, since 9x/ME are not pre-emptively multitasking,
13200 # you end up with a "frozen" computer, even though with patience
13201 # the test eventually succeeds (with a max line length of 256k).
13202 # Instead, let's just punt: use the minimum linelength reported by
13203 # all of the supported platforms: 8192 (on NT/2K/XP).
13204 lt_cv_sys_max_cmd_len=8192;
13208 # On AmigaOS with pdksh, this test takes hours, literally.
13209 # So we just punt and use a minimum line length of 8192.
13210 lt_cv_sys_max_cmd_len=8192;
13213 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13214 # This has been around since 386BSD, at least. Likely further.
13215 if test -x /sbin/sysctl; then
13216 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13217 elif test -x /usr/sbin/sysctl; then
13218 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13220 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13222 # And add a safety zone
13223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13228 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13229 lt_cv_sys_max_cmd_len=196608
13233 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13234 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13235 # nice to cause kernel panics so lets avoid the loop below.
13236 # First set a reasonable default.
13237 lt_cv_sys_max_cmd_len=16384
13239 if test -x /sbin/sysconfig; then
13240 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13241 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13246 lt_cv_sys_max_cmd_len=102400
13248 sysv5* | sco5v6* | sysv4.2uw2*)
13249 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13250 if test -n "$kargmax"; then
13251 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13253 lt_cv_sys_max_cmd_len=32768
13257 # If test is not a shell built-in, we'll probably end up computing a
13258 # maximum length that is only half of the actual maximum length, but
13260 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13261 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13262 = "XX$teststring") >/dev/null 2>&1 &&
13263 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13264 lt_cv_sys_max_cmd_len=$new_result &&
13265 test $i != 17 # 1/2 MB should be enough
13268 teststring=$teststring$teststring
13271 # Add a significant safety factor because C++ compilers can tack on massive
13272 # amounts of additional arguments before passing them to the linker.
13273 # It appears as though 1/2 is a usable value.
13274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13280 if test -n $lt_cv_sys_max_cmd_len ; then
13281 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13282 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13284 { echo "$as_me:$LINENO: result: none" >&5
13285 echo "${ECHO_T}none" >&6; }
13291 # Check for command to grab the raw symbol name followed by C symbol from nm.
13292 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13293 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13294 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 # These are sane defaults that work on at least a few old systems.
13299 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13301 # Character class describing NM global symbol codes.
13302 symcode='[BCDEGRST]'
13304 # Regexp to match symbols that can be accessed directly from C.
13305 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13307 # Transform an extracted symbol line into a proper C declaration
13308 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13310 # Transform an extracted symbol line into symbol name and symbol address
13311 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'"
13313 # Define system-specific variables.
13318 cygwin* | mingw* | pw32*)
13319 symcode='[ABCDGISTW]'
13321 hpux*) # Its linker distinguishes data from code symbols
13322 if test "$host_cpu" = ia64; then
13323 symcode='[ABCDEGRST]'
13325 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13326 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'"
13329 if test "$host_cpu" = ia64; then
13330 symcode='[ABCDGIRSTW]'
13331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13332 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'"
13335 irix* | nonstopux*)
13336 symcode='[BCDEGRST]'
13339 symcode='[BCDEGQRST]'
13350 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13358 # Handle CRLF in mingw tool chain
13362 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13366 # If we're using GNU nm, then use its standard symbol codes.
13367 case `$NM -V 2>&1` in
13368 *GNU* | *'with BFD'*)
13369 symcode='[ABCDGIRSTW]' ;;
13372 # Try without a prefix undercore, then with it.
13373 for ac_symprfx in "" "_"; do
13375 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13376 symxfrm="\\1 $ac_symprfx\\2 \\2"
13378 # Write the raw and C identifiers.
13379 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13381 # Check to see that the pipe works correctly.
13385 cat > conftest.$ac_ext <<EOF
13390 void nm_test_func(){}
13394 int main(){nm_test_var='a';nm_test_func();return(0);}
13397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398 (eval $ac_compile) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; then
13402 # Now try to grab the symbols.
13404 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13405 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } && test -s "$nlist"; then
13409 # Try sorting and uniquifying the output.
13410 if sort "$nlist" | uniq > "$nlist"T; then
13411 mv -f "$nlist"T "$nlist"
13416 # Make sure that we snagged all the symbols we need.
13417 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13418 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13419 cat <<EOF > conftest.$ac_ext
13425 # Now generate the symbol file.
13426 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13428 cat <<EOF >> conftest.$ac_ext
13429 #if defined (__STDC__) && __STDC__
13430 # define lt_ptr_t void *
13432 # define lt_ptr_t char *
13436 /* The mapping between symbol names and symbols. */
13441 lt_preloaded_symbols[] =
13444 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13445 cat <<\EOF >> conftest.$ac_ext
13453 # Now try linking the two files.
13454 mv conftest.$ac_objext conftstm.$ac_objext
13455 lt_save_LIBS="$LIBS"
13456 lt_save_CFLAGS="$CFLAGS"
13457 LIBS="conftstm.$ac_objext"
13458 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13460 (eval $ac_link) 2>&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13466 LIBS="$lt_save_LIBS"
13467 CFLAGS="$lt_save_CFLAGS"
13469 echo "cannot find nm_test_func in $nlist" >&5
13472 echo "cannot find nm_test_var in $nlist" >&5
13475 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13478 echo "$progname: failed program was:" >&5
13479 cat conftest.$ac_ext >&5
13481 rm -f conftest* conftst*
13483 # Do not use the global_symbol_pipe unless it works.
13484 if test "$pipe_works" = yes; then
13487 lt_cv_sys_global_symbol_pipe=
13493 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13494 lt_cv_sys_global_symbol_to_cdecl=
13496 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13497 { echo "$as_me:$LINENO: result: failed" >&5
13498 echo "${ECHO_T}failed" >&6; }
13500 { echo "$as_me:$LINENO: result: ok" >&5
13501 echo "${ECHO_T}ok" >&6; }
13504 { echo "$as_me:$LINENO: checking for objdir" >&5
13505 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13506 if test "${lt_cv_objdir+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 rm -f .libs 2>/dev/null
13510 mkdir .libs 2>/dev/null
13511 if test -d .libs; then
13514 # MS-DOS does not allow filenames that begin with a dot.
13517 rmdir .libs 2>/dev/null
13519 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13520 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13521 objdir=$lt_cv_objdir
13529 # AIX sometimes has problems with the GCC collect2 program. For some
13530 # reason, if we set the COLLECT_NAMES environment variable, the problems
13531 # vanish in a puff of smoke.
13532 if test "X${COLLECT_NAMES+set}" != Xset; then
13534 export COLLECT_NAMES
13539 # Sed substitution that helps us do robust quoting. It backslashifies
13540 # metacharacters that are still active within double-quoted strings.
13541 Xsed='sed -e 1s/^X//'
13542 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13544 # Same as above, but do not quote variable references.
13545 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13547 # Sed substitution to delay expansion of an escaped shell variable in a
13548 # double_quote_subst'ed string.
13549 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13551 # Sed substitution to avoid accidental globbing in evaled expressions
13552 no_glob_subst='s/\*/\\\*/g'
13557 # Global variables:
13558 default_ofile=mklib
13559 can_build_shared=yes
13561 # All known linkers require a `.a' archive for static linking (except MSVC,
13562 # which needs '.lib').
13564 ltmain="$ac_aux_dir/ltmain.sh"
13565 ofile="$default_ofile"
13566 with_gnu_ld="$lt_cv_prog_gnu_ld"
13568 if test -n "$ac_tool_prefix"; then
13569 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13570 set dummy ${ac_tool_prefix}ar; ac_word=$2
13571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13573 if test "${ac_cv_prog_AR+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 if test -n "$AR"; then
13577 ac_cv_prog_AR="$AR" # Let the user override the test.
13579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580 for as_dir in $PATH
13583 test -z "$as_dir" && as_dir=.
13584 for ac_exec_ext in '' $ac_executable_extensions; do
13585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13586 ac_cv_prog_AR="${ac_tool_prefix}ar"
13587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 if test -n "$AR"; then
13598 { echo "$as_me:$LINENO: result: $AR" >&5
13599 echo "${ECHO_T}$AR" >&6; }
13601 { echo "$as_me:$LINENO: result: no" >&5
13602 echo "${ECHO_T}no" >&6; }
13607 if test -z "$ac_cv_prog_AR"; then
13609 # Extract the first word of "ar", so it can be a program name with args.
13610 set dummy ar; ac_word=$2
13611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13613 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 if test -n "$ac_ct_AR"; then
13617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13620 for as_dir in $PATH
13623 test -z "$as_dir" && as_dir=.
13624 for ac_exec_ext in '' $ac_executable_extensions; do
13625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13626 ac_cv_prog_ac_ct_AR="ar"
13627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13637 if test -n "$ac_ct_AR"; then
13638 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13639 echo "${ECHO_T}$ac_ct_AR" >&6; }
13641 { echo "$as_me:$LINENO: result: no" >&5
13642 echo "${ECHO_T}no" >&6; }
13645 if test "x$ac_ct_AR" = x; then
13648 case $cross_compiling:$ac_tool_warned in
13650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13651 whose name does not start with the host triplet. If you think this
13652 configuration is useful to you, please write to autoconf@gnu.org." >&5
13653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13654 whose name does not start with the host triplet. If you think this
13655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13656 ac_tool_warned=yes ;;
13661 AR="$ac_cv_prog_AR"
13664 if test -n "$ac_tool_prefix"; then
13665 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13666 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13669 if test "${ac_cv_prog_RANLIB+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 if test -n "$RANLIB"; then
13673 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
13681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13682 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13692 RANLIB=$ac_cv_prog_RANLIB
13693 if test -n "$RANLIB"; then
13694 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13695 echo "${ECHO_T}$RANLIB" >&6; }
13697 { echo "$as_me:$LINENO: result: no" >&5
13698 echo "${ECHO_T}no" >&6; }
13703 if test -z "$ac_cv_prog_RANLIB"; then
13704 ac_ct_RANLIB=$RANLIB
13705 # Extract the first word of "ranlib", so it can be a program name with args.
13706 set dummy ranlib; ac_word=$2
13707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13709 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 if test -n "$ac_ct_RANLIB"; then
13713 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716 for as_dir in $PATH
13719 test -z "$as_dir" && as_dir=.
13720 for ac_exec_ext in '' $ac_executable_extensions; do
13721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13722 ac_cv_prog_ac_ct_RANLIB="ranlib"
13723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13732 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13733 if test -n "$ac_ct_RANLIB"; then
13734 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13735 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13737 { echo "$as_me:$LINENO: result: no" >&5
13738 echo "${ECHO_T}no" >&6; }
13741 if test "x$ac_ct_RANLIB" = x; then
13744 case $cross_compiling:$ac_tool_warned in
13746 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13747 whose name does not start with the host triplet. If you think this
13748 configuration is useful to you, please write to autoconf@gnu.org." >&5
13749 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13750 whose name does not start with the host triplet. If you think this
13751 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13752 ac_tool_warned=yes ;;
13754 RANLIB=$ac_ct_RANLIB
13757 RANLIB="$ac_cv_prog_RANLIB"
13760 if test -n "$ac_tool_prefix"; then
13761 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13762 set dummy ${ac_tool_prefix}strip; ac_word=$2
13763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13765 if test "${ac_cv_prog_STRIP+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 if test -n "$STRIP"; then
13769 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13772 for as_dir in $PATH
13775 test -z "$as_dir" && as_dir=.
13776 for ac_exec_ext in '' $ac_executable_extensions; do
13777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13778 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13788 STRIP=$ac_cv_prog_STRIP
13789 if test -n "$STRIP"; then
13790 { echo "$as_me:$LINENO: result: $STRIP" >&5
13791 echo "${ECHO_T}$STRIP" >&6; }
13793 { echo "$as_me:$LINENO: result: no" >&5
13794 echo "${ECHO_T}no" >&6; }
13799 if test -z "$ac_cv_prog_STRIP"; then
13801 # Extract the first word of "strip", so it can be a program name with args.
13802 set dummy strip; ac_word=$2
13803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13805 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 if test -n "$ac_ct_STRIP"; then
13809 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13812 for as_dir in $PATH
13815 test -z "$as_dir" && as_dir=.
13816 for ac_exec_ext in '' $ac_executable_extensions; do
13817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13818 ac_cv_prog_ac_ct_STRIP="strip"
13819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13828 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13829 if test -n "$ac_ct_STRIP"; then
13830 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13831 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13833 { echo "$as_me:$LINENO: result: no" >&5
13834 echo "${ECHO_T}no" >&6; }
13837 if test "x$ac_ct_STRIP" = x; then
13840 case $cross_compiling:$ac_tool_warned in
13842 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13843 whose name does not start with the host triplet. If you think this
13844 configuration is useful to you, please write to autoconf@gnu.org." >&5
13845 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13846 whose name does not start with the host triplet. If you think this
13847 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13848 ac_tool_warned=yes ;;
13853 STRIP="$ac_cv_prog_STRIP"
13858 old_CFLAGS="$CFLAGS"
13860 # Set sane defaults for various variables
13861 test -z "$AR" && AR=ar
13862 test -z "$AR_FLAGS" && AR_FLAGS=cru
13863 test -z "$AS" && AS=as
13864 test -z "$CC" && CC=cc
13865 test -z "$LTCC" && LTCC=$CC
13866 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13867 test -z "$DLLTOOL" && DLLTOOL=dlltool
13868 test -z "$LD" && LD=ld
13869 test -z "$LN_S" && LN_S="ln -s"
13870 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13871 test -z "$NM" && NM=nm
13872 test -z "$SED" && SED=sed
13873 test -z "$OBJDUMP" && OBJDUMP=objdump
13874 test -z "$RANLIB" && RANLIB=:
13875 test -z "$STRIP" && STRIP=:
13876 test -z "$ac_objext" && ac_objext=o
13878 # Determine commands to create old-style static archives.
13879 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13880 old_postinstall_cmds='chmod 644 $oldlib'
13881 old_postuninstall_cmds=
13883 if test -n "$RANLIB"; then
13886 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13892 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13895 for cc_temp in $compiler""; do
13897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13903 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13906 # Only perform the check for file, if the check method requires it
13907 case $deplibs_check_method in
13909 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13910 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13911 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13912 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13920 lt_save_MAGIC_CMD="$MAGIC_CMD"
13921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13922 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13923 for ac_dir in $ac_dummy; do
13925 test -z "$ac_dir" && ac_dir=.
13926 if test -f $ac_dir/${ac_tool_prefix}file; then
13927 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13928 if test -n "$file_magic_test_file"; then
13929 case $deplibs_check_method in
13931 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13933 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13934 $EGREP "$file_magic_regex" > /dev/null; then
13939 *** Warning: the command libtool uses to detect shared libraries,
13940 *** $file_magic_cmd, produces output that libtool cannot recognize.
13941 *** The result is that libtool may fail to recognize shared libraries
13942 *** as such. This will affect the creation of libtool libraries that
13943 *** depend on shared libraries, but programs linked with such libtool
13944 *** libraries will work regardless of this problem. Nevertheless, you
13945 *** may want to report the problem to your system manager and/or to
13946 *** bug-libtool@gnu.org
13956 MAGIC_CMD="$lt_save_MAGIC_CMD"
13961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13962 if test -n "$MAGIC_CMD"; then
13963 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13964 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13966 { echo "$as_me:$LINENO: result: no" >&5
13967 echo "${ECHO_T}no" >&6; }
13970 if test -z "$lt_cv_path_MAGIC_CMD"; then
13971 if test -n "$ac_tool_prefix"; then
13972 { echo "$as_me:$LINENO: checking for file" >&5
13973 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13982 lt_save_MAGIC_CMD="$MAGIC_CMD"
13983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13985 for ac_dir in $ac_dummy; do
13987 test -z "$ac_dir" && ac_dir=.
13988 if test -f $ac_dir/file; then
13989 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13990 if test -n "$file_magic_test_file"; then
13991 case $deplibs_check_method in
13993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13996 $EGREP "$file_magic_regex" > /dev/null; then
14001 *** Warning: the command libtool uses to detect shared libraries,
14002 *** $file_magic_cmd, produces output that libtool cannot recognize.
14003 *** The result is that libtool may fail to recognize shared libraries
14004 *** as such. This will affect the creation of libtool libraries that
14005 *** depend on shared libraries, but programs linked with such libtool
14006 *** libraries will work regardless of this problem. Nevertheless, you
14007 *** may want to report the problem to your system manager and/or to
14008 *** bug-libtool@gnu.org
14018 MAGIC_CMD="$lt_save_MAGIC_CMD"
14023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14024 if test -n "$MAGIC_CMD"; then
14025 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14026 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14028 { echo "$as_me:$LINENO: result: no" >&5
14029 echo "${ECHO_T}no" >&6; }
14042 enable_win32_dll=no
14044 # Check whether --enable-libtool-lock was given.
14045 if test "${enable_libtool_lock+set}" = set; then
14046 enableval=$enable_libtool_lock;
14049 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14052 # Check whether --with-pic was given.
14053 if test "${with_pic+set}" = set; then
14054 withval=$with_pic; pic_mode="$withval"
14059 test -z "$pic_mode" && pic_mode=default
14061 # Use C for the default configuration in the libtool script
14065 ac_cpp='$CPP $CPPFLAGS'
14066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14071 # Source file extension for C test sources.
14074 # Object file extension for compiled C test sources.
14078 # Code to be used in simple compile tests
14079 lt_simple_compile_test_code="int some_variable = 0;\n"
14081 # Code to be used in simple link tests
14082 lt_simple_link_test_code='int main(){return(0);}\n'
14085 # If no C compiler was specified, use CC.
14088 # If no C compiler flags were specified, use CFLAGS.
14089 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14091 # Allow CC to be a program name with arguments.
14095 # save warnings/boilerplate of simple test code
14096 ac_outfile=conftest.$ac_objext
14097 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14098 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14099 _lt_compiler_boilerplate=`cat conftest.err`
14102 ac_outfile=conftest.$ac_objext
14103 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14104 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14105 _lt_linker_boilerplate=`cat conftest.err`
14110 lt_prog_compiler_no_builtin_flag=
14112 if test "$GCC" = yes; then
14113 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14116 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14117 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14118 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 lt_cv_prog_compiler_rtti_exceptions=no
14122 ac_outfile=conftest.$ac_objext
14123 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14124 lt_compiler_flag="-fno-rtti -fno-exceptions"
14125 # Insert the option either (1) after the last *FLAGS variable, or
14126 # (2) before a word containing "conftest.", or (3) at the end.
14127 # Note that $ac_compile itself does not contain backslashes and begins
14128 # with a dollar sign (not a hyphen), so the echo should work correctly.
14129 # The option is referenced via a variable to avoid confusing sed.
14130 lt_compile=`echo "$ac_compile" | $SED \
14131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14133 -e 's:$: $lt_compiler_flag:'`
14134 (eval echo "\"\$as_me:14134: $lt_compile\"" >&5)
14135 (eval "$lt_compile" 2>conftest.err)
14137 cat conftest.err >&5
14138 echo "$as_me:14138: \$? = $ac_status" >&5
14139 if (exit $ac_status) && test -s "$ac_outfile"; then
14140 # The compiler can only warn and ignore the option if not recognized
14141 # So say no if there are warnings other than the usual output.
14142 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14144 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14145 lt_cv_prog_compiler_rtti_exceptions=yes
14151 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14152 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14154 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14155 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14162 lt_prog_compiler_wl=
14163 lt_prog_compiler_pic=
14164 lt_prog_compiler_static=
14166 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14167 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14169 if test "$GCC" = yes; then
14170 lt_prog_compiler_wl='-Wl,'
14171 lt_prog_compiler_static='-static'
14175 # All AIX code is PIC.
14176 if test "$host_cpu" = ia64; then
14177 # AIX 5 now supports IA64 processor
14178 lt_prog_compiler_static='-Bstatic'
14183 # FIXME: we need at least 68020 code to build shared libraries, but
14184 # adding the `-m68020' flag to GCC prevents building anything better,
14186 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14189 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14190 # PIC is the default for these OSes.
14193 mingw* | pw32* | os2*)
14194 # This hack is so that the source file can tell whether it is being
14195 # built for inclusion in a dll (and should export symbols for example).
14196 lt_prog_compiler_pic='-DDLL_EXPORT'
14199 darwin* | rhapsody*)
14200 # PIC is the default on this platform
14201 # Common symbols not allowed in MH_DYLIB files
14202 lt_prog_compiler_pic='-fno-common'
14206 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14207 # Instead, we relocate shared libraries at runtime.
14211 # Just because we use GCC doesn't mean we suddenly get shared libraries
14212 # on systems that don't support them.
14213 lt_prog_compiler_can_build_shared=no
14218 if test -d /usr/nec; then
14219 lt_prog_compiler_pic=-Kconform_pic
14224 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14225 # not for PA HP-UX.
14231 lt_prog_compiler_pic='-fPIC'
14237 lt_prog_compiler_pic='-fPIC'
14241 # PORTME Check for flag to pass linker flags through the system compiler.
14244 lt_prog_compiler_wl='-Wl,'
14245 if test "$host_cpu" = ia64; then
14246 # AIX 5 now supports IA64 processor
14247 lt_prog_compiler_static='-Bstatic'
14249 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14253 # PIC is the default on this platform
14254 # Common symbols not allowed in MH_DYLIB files
14255 case $cc_basename in
14257 lt_prog_compiler_pic='-qnocommon'
14258 lt_prog_compiler_wl='-Wl,'
14263 mingw* | pw32* | os2*)
14264 # This hack is so that the source file can tell whether it is being
14265 # built for inclusion in a dll (and should export symbols for example).
14266 lt_prog_compiler_pic='-DDLL_EXPORT'
14269 hpux9* | hpux10* | hpux11*)
14270 lt_prog_compiler_wl='-Wl,'
14271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14272 # not for PA HP-UX.
14278 lt_prog_compiler_pic='+Z'
14281 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14282 lt_prog_compiler_static='${wl}-a ${wl}archive'
14285 irix5* | irix6* | nonstopux*)
14286 lt_prog_compiler_wl='-Wl,'
14287 # PIC (with -KPIC) is the default.
14288 lt_prog_compiler_static='-non_shared'
14292 lt_prog_compiler_pic='-KPIC'
14293 lt_prog_compiler_static='-Bstatic'
14297 case $cc_basename in
14299 lt_prog_compiler_wl='-Wl,'
14300 lt_prog_compiler_pic='-KPIC'
14301 lt_prog_compiler_static='-static'
14303 pgcc* | pgf77* | pgf90* | pgf95*)
14304 # Portland Group compilers (*not* the Pentium gcc compiler,
14305 # which looks to be a dead project)
14306 lt_prog_compiler_wl='-Wl,'
14307 lt_prog_compiler_pic='-fpic'
14308 lt_prog_compiler_static='-Bstatic'
14311 lt_prog_compiler_wl='-Wl,'
14312 # All Alpha code is PIC.
14313 lt_prog_compiler_static='-non_shared'
14318 osf3* | osf4* | osf5*)
14319 lt_prog_compiler_wl='-Wl,'
14320 # All OSF/1 code is PIC.
14321 lt_prog_compiler_static='-non_shared'
14325 lt_prog_compiler_pic='-KPIC'
14326 lt_prog_compiler_static='-Bstatic'
14327 case $cc_basename in
14328 f77* | f90* | f95*)
14329 lt_prog_compiler_wl='-Qoption ld ';;
14331 lt_prog_compiler_wl='-Wl,';;
14336 lt_prog_compiler_wl='-Qoption ld '
14337 lt_prog_compiler_pic='-PIC'
14338 lt_prog_compiler_static='-Bstatic'
14341 sysv4 | sysv4.2uw2* | sysv4.3*)
14342 lt_prog_compiler_wl='-Wl,'
14343 lt_prog_compiler_pic='-KPIC'
14344 lt_prog_compiler_static='-Bstatic'
14348 if test -d /usr/nec ;then
14349 lt_prog_compiler_pic='-Kconform_pic'
14350 lt_prog_compiler_static='-Bstatic'
14354 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14355 lt_prog_compiler_wl='-Wl,'
14356 lt_prog_compiler_pic='-KPIC'
14357 lt_prog_compiler_static='-Bstatic'
14361 lt_prog_compiler_wl='-Wl,'
14362 lt_prog_compiler_can_build_shared=no
14366 lt_prog_compiler_pic='-pic'
14367 lt_prog_compiler_static='-Bstatic'
14371 lt_prog_compiler_can_build_shared=no
14376 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14377 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14380 # Check to make sure the PIC flag actually works.
14382 if test -n "$lt_prog_compiler_pic"; then
14384 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14385 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14386 if test "${lt_prog_compiler_pic_works+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 lt_prog_compiler_pic_works=no
14390 ac_outfile=conftest.$ac_objext
14391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14392 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14393 # Insert the option either (1) after the last *FLAGS variable, or
14394 # (2) before a word containing "conftest.", or (3) at the end.
14395 # Note that $ac_compile itself does not contain backslashes and begins
14396 # with a dollar sign (not a hyphen), so the echo should work correctly.
14397 # The option is referenced via a variable to avoid confusing sed.
14398 lt_compile=`echo "$ac_compile" | $SED \
14399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14401 -e 's:$: $lt_compiler_flag:'`
14402 (eval echo "\"\$as_me:14402: $lt_compile\"" >&5)
14403 (eval "$lt_compile" 2>conftest.err)
14405 cat conftest.err >&5
14406 echo "$as_me:14406: \$? = $ac_status" >&5
14407 if (exit $ac_status) && test -s "$ac_outfile"; then
14408 # The compiler can only warn and ignore the option if not recognized
14409 # So say no if there are warnings other than the usual output.
14410 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14413 lt_prog_compiler_pic_works=yes
14419 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14420 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14422 if test x"$lt_prog_compiler_pic_works" = xyes; then
14423 case $lt_prog_compiler_pic in
14425 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14428 lt_prog_compiler_pic=
14429 lt_prog_compiler_can_build_shared=no
14434 # For platforms which do not support PIC, -DPIC is meaningless:
14436 lt_prog_compiler_pic=
14439 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14444 # Check to make sure the static flag actually works.
14446 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14447 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14448 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14449 if test "${lt_prog_compiler_static_works+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 lt_prog_compiler_static_works=no
14453 save_LDFLAGS="$LDFLAGS"
14454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14455 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14457 # The linker can only warn and ignore the option if not recognized
14458 # So say no if there are warnings
14459 if test -s conftest.err; then
14460 # Append any errors to the config.log.
14461 cat conftest.err 1>&5
14462 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14464 if diff conftest.exp conftest.er2 >/dev/null; then
14465 lt_prog_compiler_static_works=yes
14468 lt_prog_compiler_static_works=yes
14472 LDFLAGS="$save_LDFLAGS"
14475 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14476 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14478 if test x"$lt_prog_compiler_static_works" = xyes; then
14481 lt_prog_compiler_static=
14485 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14486 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14487 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 lt_cv_prog_compiler_c_o=no
14491 $rm -r conftest 2>/dev/null
14495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14497 lt_compiler_flag="-o out/conftest2.$ac_objext"
14498 # Insert the option either (1) after the last *FLAGS variable, or
14499 # (2) before a word containing "conftest.", or (3) at the end.
14500 # Note that $ac_compile itself does not contain backslashes and begins
14501 # with a dollar sign (not a hyphen), so the echo should work correctly.
14502 lt_compile=`echo "$ac_compile" | $SED \
14503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14505 -e 's:$: $lt_compiler_flag:'`
14506 (eval echo "\"\$as_me:14506: $lt_compile\"" >&5)
14507 (eval "$lt_compile" 2>out/conftest.err)
14509 cat out/conftest.err >&5
14510 echo "$as_me:14510: \$? = $ac_status" >&5
14511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14513 # The compiler can only warn and ignore the option if not recognized
14514 # So say no if there are warnings
14515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14518 lt_cv_prog_compiler_c_o=yes
14523 # SGI C++ compiler will create directory out/ii_files/ for
14524 # template instantiation
14525 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14526 $rm out/* && rmdir out
14532 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14533 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14536 hard_links="nottested"
14537 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14538 # do not overwrite the value of need_locks provided by the user
14539 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14540 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14545 ln conftest.a conftest.b 2>&5 || hard_links=no
14546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14547 { echo "$as_me:$LINENO: result: $hard_links" >&5
14548 echo "${ECHO_T}$hard_links" >&6; }
14549 if test "$hard_links" = no; then
14550 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14551 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14558 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14559 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14562 allow_undefined_flag=
14563 enable_shared_with_static_runtimes=no
14565 archive_expsym_cmds=
14566 old_archive_From_new_cmds=
14567 old_archive_from_expsyms_cmds=
14568 export_dynamic_flag_spec=
14569 whole_archive_flag_spec=
14570 thread_safe_flag_spec=
14571 hardcode_libdir_flag_spec=
14572 hardcode_libdir_flag_spec_ld=
14573 hardcode_libdir_separator=
14575 hardcode_minus_L=no
14576 hardcode_shlibpath_var=unsupported
14577 link_all_deplibs=unknown
14578 hardcode_automatic=no
14580 module_expsym_cmds=
14581 always_export_symbols=no
14582 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14583 # include_expsyms should be a list of space-separated symbols to be *always*
14584 # included in the symbol list
14586 # exclude_expsyms can be an extended regexp of symbols to exclude
14587 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14589 # as well as any symbol that contains `d'.
14590 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14592 # platforms (ab)use it in PIC code, but their linkers get confused if
14593 # the symbol is explicitly referenced. Since portable code cannot
14594 # rely on this symbol name, it's probably fine to never include it in
14595 # preloaded symbol tables.
14596 extract_expsyms_cmds=
14597 # Just being paranoid about ensuring that cc_basename is set.
14598 for cc_temp in $compiler""; do
14600 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14601 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14606 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14609 cygwin* | mingw* | pw32*)
14610 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14611 # When not using gcc, we currently assume that we are using
14612 # Microsoft Visual C++.
14613 if test "$GCC" != yes; then
14618 # we just hope/assume this is gcc and not c89 (= MSVC++)
14627 if test "$with_gnu_ld" = yes; then
14628 # If archive_cmds runs LD, not CC, wlarc should be empty
14631 # Set some defaults for GNU ld with shared library support. These
14632 # are reset later if shared libraries are not supported. Putting them
14633 # here allows them to be overridden if necessary.
14634 runpath_var=LD_RUN_PATH
14635 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14636 export_dynamic_flag_spec='${wl}--export-dynamic'
14637 # ancient GNU ld didn't support --whole-archive et. al.
14638 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14639 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14641 whole_archive_flag_spec=
14643 supports_anon_versioning=no
14644 case `$LD -v 2>/dev/null` in
14645 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14646 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14647 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14648 *\ 2.11.*) ;; # other 2.11 versions
14649 *) supports_anon_versioning=yes ;;
14652 # See if GNU ld supports shared libraries.
14654 aix3* | aix4* | aix5*)
14655 # On AIX/PPC, the GNU linker is very broken
14656 if test "$host_cpu" != ia64; then
14660 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14661 *** to be unable to reliably create shared libraries on AIX.
14662 *** Therefore, libtool is disabling shared libraries support. If you
14663 *** really care for shared libraries, you may want to modify your PATH
14664 *** so that a non-GNU linker is found, and then restart.
14671 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)'
14672 hardcode_libdir_flag_spec='-L$libdir'
14673 hardcode_minus_L=yes
14675 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14676 # that the semantics of dynamic libraries on AmigaOS, at least up
14677 # to version 4, is to share data among multiple programs linked
14678 # with the same dynamic library. Since this doesn't match the
14679 # behavior of shared libraries on other platforms, we can't use
14685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14686 allow_undefined_flag=unsupported
14687 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14688 # support --undefined. This deserves some investigation. FIXME
14689 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14695 cygwin* | mingw* | pw32*)
14696 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14697 # as there is no search path for DLLs.
14698 hardcode_libdir_flag_spec='-L$libdir'
14699 allow_undefined_flag=unsupported
14700 always_export_symbols=no
14701 enable_shared_with_static_runtimes=yes
14702 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14704 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14706 # If the export-symbols file already is a .def file (1st line
14707 # is EXPORTS), use it as is; otherwise, prepend...
14708 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14709 cp $export_symbols $output_objdir/$soname.def;
14711 echo EXPORTS > $output_objdir/$soname.def;
14712 cat $export_symbols >> $output_objdir/$soname.def;
14714 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14722 hardcode_shlibpath_var=no
14723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14724 export_dynamic_flag_spec='${wl}-E'
14725 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14726 # Instead, shared libraries are loaded at an image base (0x10000000 by
14727 # default) and relocated if they conflict, which is a slow very memory
14728 # consuming and fragmenting process. To avoid this, we pick a random,
14729 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14730 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14731 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14732 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'
14736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14738 case $cc_basename,$host_cpu in
14739 pgcc*) # Portland Group C compiler
14740 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'
14741 tmp_addflag=' $pic_flag'
14743 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14744 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'
14745 tmp_addflag=' $pic_flag -Mnomain' ;;
14746 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14747 tmp_addflag=' -i_dynamic' ;;
14748 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14749 tmp_addflag=' -i_dynamic -nofor_main' ;;
14750 ifc* | ifort*) # Intel Fortran compiler
14751 tmp_addflag=' -nofor_main' ;;
14753 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14755 if test $supports_anon_versioning = yes; then
14756 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14758 $echo "local: *; };" >> $output_objdir/$libname.ver~
14759 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14767 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14768 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14777 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14781 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14782 *** create shared libraries on Solaris systems. Therefore, libtool
14783 *** is disabling shared libraries support. We urge you to upgrade GNU
14784 *** binutils to release 2.9.1 or newer. Another option is to modify
14785 *** your PATH or compiler configuration so that the native linker is
14786 *** used, and then restart.
14789 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14791 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14798 case `$LD -v 2>&1` in
14799 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14803 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14804 *** reliably create shared libraries on SCO systems. Therefore, libtool
14805 *** is disabling shared libraries support. We urge you to upgrade GNU
14806 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14807 *** your PATH or compiler configuration so that the native linker is
14808 *** used, and then restart.
14813 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14814 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14825 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14827 hardcode_direct=yes
14828 hardcode_shlibpath_var=no
14832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14841 if test "$ld_shlibs" = no; then
14843 hardcode_libdir_flag_spec=
14844 export_dynamic_flag_spec=
14845 whole_archive_flag_spec=
14848 # PORTME fill in a description of your system's linker (not GNU ld)
14851 allow_undefined_flag=unsupported
14852 always_export_symbols=yes
14853 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'
14854 # Note: this linker hardcodes the directories in LIBPATH if there
14855 # are no directories specified by -L.
14856 hardcode_minus_L=yes
14857 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14858 # Neither direct hardcoding nor static linking is supported with a
14860 hardcode_direct=unsupported
14865 if test "$host_cpu" = ia64; then
14866 # On IA64, the linker does run time linking by default, so we don't
14867 # have to do anything special.
14868 aix_use_runtimelinking=no
14869 exp_sym_flag='-Bexport'
14872 # If we're using GNU nm, then we don't want the "-C" option.
14873 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14874 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14875 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'
14877 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'
14879 aix_use_runtimelinking=no
14881 # Test if we are trying to use run time linking or normal
14882 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14883 # need to do runtime linking.
14884 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14885 for ld_flag in $LDFLAGS; do
14886 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14887 aix_use_runtimelinking=yes
14894 exp_sym_flag='-bexport'
14895 no_entry_flag='-bnoentry'
14898 # When large executables or shared objects are built, AIX ld can
14899 # have problems creating the table of contents. If linking a library
14900 # or program results in "error TOC overflow" add -mminimal-toc to
14901 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14902 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14905 hardcode_direct=yes
14906 hardcode_libdir_separator=':'
14907 link_all_deplibs=yes
14909 if test "$GCC" = yes; then
14910 case $host_os in aix4.[012]|aix4.[012].*)
14911 # We only want to do this on AIX 4.2 and lower, the check
14912 # below for broken collect2 doesn't work under 4.3+
14913 collect2name=`${CC} -print-prog-name=collect2`
14914 if test -f "$collect2name" && \
14915 strings "$collect2name" | grep resolve_lib_name >/dev/null
14917 # We have reworked collect2
14918 hardcode_direct=yes
14920 # We have old collect2
14921 hardcode_direct=unsupported
14922 # It fails to find uninstalled libraries when the uninstalled
14923 # path is not listed in the libpath. Setting hardcode_minus_L
14924 # to unsupported forces relinking
14925 hardcode_minus_L=yes
14926 hardcode_libdir_flag_spec='-L$libdir'
14927 hardcode_libdir_separator=
14931 shared_flag='-shared'
14932 if test "$aix_use_runtimelinking" = yes; then
14933 shared_flag="$shared_flag "'${wl}-G'
14937 if test "$host_cpu" = ia64; then
14938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14939 # chokes on -Wl,-G. The following line is correct:
14942 if test "$aix_use_runtimelinking" = yes; then
14943 shared_flag='${wl}-G'
14945 shared_flag='${wl}-bM:SRE'
14950 # It seems that -bexpall does not export symbols beginning with
14951 # underscore (_), so it is better to generate a list of symbols to export.
14952 always_export_symbols=yes
14953 if test "$aix_use_runtimelinking" = yes; then
14954 # Warning - without using the other runtime loading flags (-brtl),
14955 # -berok will link without error, but may produce a broken library.
14956 allow_undefined_flag='-berok'
14957 # Determine the default libpath from the value encoded in an empty executable.
14958 cat >conftest.$ac_ext <<_ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14973 rm -f conftest.$ac_objext conftest$ac_exeext
14974 if { (ac_try="$ac_link"
14975 case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_link") 2>conftest.er1
14982 grep -v '^ *+' conftest.er1 >conftest.err
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } &&
14987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14988 { (case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_try") 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; } &&
14997 { ac_try='test -s conftest$ac_exeext'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15008 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15010 # Check for a 64-bit object if we didn't find anything.
15011 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; }
15014 echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15020 rm -f core conftest.err conftest.$ac_objext \
15021 conftest$ac_exeext conftest.$ac_ext
15022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15024 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15025 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"
15027 if test "$host_cpu" = ia64; then
15028 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15029 allow_undefined_flag="-z nodefs"
15030 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"
15032 # Determine the default libpath from the value encoded in an empty executable.
15033 cat >conftest.$ac_ext <<_ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (ac_try="$ac_link"
15050 case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_link") 2>conftest.er1
15057 grep -v '^ *+' conftest.er1 >conftest.err
15059 cat conftest.err >&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15063 { (case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_try") 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest$ac_exeext'
15073 { (case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_try") 2>&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; }; then
15083 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15085 # Check for a 64-bit object if we didn't find anything.
15086 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; }
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15095 rm -f core conftest.err conftest.$ac_objext \
15096 conftest$ac_exeext conftest.$ac_ext
15097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15099 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15100 # Warning - without using the other run time loading flags,
15101 # -berok will link without error, but may produce a broken library.
15102 no_undefined_flag=' ${wl}-bernotok'
15103 allow_undefined_flag=' ${wl}-berok'
15104 # Exported symbols can be pulled into shared objects from archives
15105 whole_archive_flag_spec='$convenience'
15106 archive_cmds_need_lc=yes
15107 # This is similar to how AIX traditionally builds its shared libraries.
15108 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'
15114 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)'
15115 hardcode_libdir_flag_spec='-L$libdir'
15116 hardcode_minus_L=yes
15117 # see comment about different semantics on the GNU ld section
15122 export_dynamic_flag_spec=-rdynamic
15125 cygwin* | mingw* | pw32*)
15126 # When not using gcc, we currently assume that we are using
15127 # Microsoft Visual C++.
15128 # hardcode_libdir_flag_spec is actually meaningless, as there is
15129 # no search path for DLLs.
15130 hardcode_libdir_flag_spec=' '
15131 allow_undefined_flag=unsupported
15132 # Tell ltmain to make .lib files, not .a files.
15134 # Tell ltmain to make .dll files, not .so files.
15136 # FIXME: Setting linknames here is a bad hack.
15137 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15138 # The linker will automatically build a .lib file if we build a DLL.
15139 old_archive_From_new_cmds='true'
15140 # FIXME: Should let the user specify the lib program.
15141 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15142 fix_srcfile_path='`cygpath -w "$srcfile"`'
15143 enable_shared_with_static_runtimes=yes
15146 darwin* | rhapsody*)
15148 rhapsody* | darwin1.[012])
15149 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15152 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15153 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15155 case ${MACOSX_DEPLOYMENT_TARGET} in
15157 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15160 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15166 archive_cmds_need_lc=no
15168 hardcode_automatic=yes
15169 hardcode_shlibpath_var=unsupported
15170 whole_archive_flag_spec=''
15171 link_all_deplibs=yes
15172 if test "$GCC" = yes ; then
15173 output_verbose_link_cmd='echo'
15174 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15175 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15176 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15177 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}'
15178 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}'
15180 case $cc_basename in
15182 output_verbose_link_cmd='echo'
15183 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15184 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15185 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15186 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}'
15187 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}'
15197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15198 hardcode_libdir_flag_spec='-L$libdir'
15199 hardcode_shlibpath_var=no
15206 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15207 # support. Future versions do this automatically, but an explicit c++rt0.o
15208 # does not break anything, and helps significantly (at the cost of a little
15211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15212 hardcode_libdir_flag_spec='-R$libdir'
15213 hardcode_direct=yes
15214 hardcode_shlibpath_var=no
15217 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15220 hardcode_direct=yes
15221 hardcode_minus_L=yes
15222 hardcode_shlibpath_var=no
15225 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15226 freebsd* | kfreebsd*-gnu | dragonfly*)
15227 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15228 hardcode_libdir_flag_spec='-R$libdir'
15229 hardcode_direct=yes
15230 hardcode_shlibpath_var=no
15234 if test "$GCC" = yes; then
15235 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'
15237 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'
15239 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15240 hardcode_libdir_separator=:
15241 hardcode_direct=yes
15243 # hardcode_minus_L: Not really in the search PATH,
15244 # but as the default location of the library.
15245 hardcode_minus_L=yes
15246 export_dynamic_flag_spec='${wl}-E'
15250 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15251 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15253 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15255 if test "$with_gnu_ld" = no; then
15256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15257 hardcode_libdir_separator=:
15259 hardcode_direct=yes
15260 export_dynamic_flag_spec='${wl}-E'
15262 # hardcode_minus_L: Not really in the search PATH,
15263 # but as the default location of the library.
15264 hardcode_minus_L=yes
15269 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15272 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15275 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15278 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15284 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15287 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15290 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15294 if test "$with_gnu_ld" = no; then
15295 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15296 hardcode_libdir_separator=:
15300 hardcode_libdir_flag_spec_ld='+b $libdir'
15302 hardcode_shlibpath_var=no
15305 hardcode_direct=yes
15306 export_dynamic_flag_spec='${wl}-E'
15308 # hardcode_minus_L: Not really in the search PATH,
15309 # but as the default location of the library.
15310 hardcode_minus_L=yes
15316 irix5* | irix6* | nonstopux*)
15317 if test "$GCC" = yes; then
15318 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'
15320 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'
15321 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15324 hardcode_libdir_separator=:
15325 link_all_deplibs=yes
15329 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15332 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15334 hardcode_libdir_flag_spec='-R$libdir'
15335 hardcode_direct=yes
15336 hardcode_shlibpath_var=no
15340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15341 hardcode_direct=yes
15342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15343 hardcode_libdir_separator=:
15344 hardcode_shlibpath_var=no
15348 hardcode_direct=yes
15349 hardcode_shlibpath_var=no
15350 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15352 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15354 export_dynamic_flag_spec='${wl}-E'
15357 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15359 hardcode_libdir_flag_spec='-R$libdir'
15362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15370 hardcode_libdir_flag_spec='-L$libdir'
15371 hardcode_minus_L=yes
15372 allow_undefined_flag=unsupported
15373 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'
15374 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15378 if test "$GCC" = yes; then
15379 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15380 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'
15382 allow_undefined_flag=' -expect_unresolved \*'
15383 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'
15385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15386 hardcode_libdir_separator=:
15389 osf4* | osf5*) # as osf3* with the addition of -msym flag
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}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15395 allow_undefined_flag=' -expect_unresolved \*'
15396 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'
15397 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15398 $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'
15400 # Both c and cxx compiler support -rpath directly
15401 hardcode_libdir_flag_spec='-rpath $libdir'
15403 hardcode_libdir_separator=:
15407 no_undefined_flag=' -z text'
15408 if test "$GCC" = yes; then
15410 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15411 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15412 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15415 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15416 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15417 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15419 hardcode_libdir_flag_spec='-R$libdir'
15420 hardcode_shlibpath_var=no
15422 solaris2.[0-5] | solaris2.[0-5].*) ;;
15424 # The compiler driver will combine linker options so we
15425 # cannot just pass the convience library names through
15426 # without $wl, iff we do not link with $LD.
15427 # Luckily, gcc supports the same syntax we need for Sun Studio.
15428 # Supported since Solaris 2.6 (maybe 2.5.1?)
15431 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15433 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' ;;
15436 link_all_deplibs=yes
15440 if test "x$host_vendor" = xsequent; then
15441 # Use $CC to link under sequent, because it throws in some extra .o
15442 # files that make .init and .fini sections work.
15443 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15445 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15447 hardcode_libdir_flag_spec='-L$libdir'
15448 hardcode_direct=yes
15449 hardcode_minus_L=yes
15450 hardcode_shlibpath_var=no
15454 case $host_vendor in
15456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15457 hardcode_direct=yes # is this really true???
15460 ## LD is ld it makes a PLAMLIB
15461 ## CC just makes a GrossModule.
15462 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15463 reload_cmds='$CC -r -o $output$reload_objs'
15467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15468 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15471 runpath_var='LD_RUN_PATH'
15472 hardcode_shlibpath_var=no
15476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15477 hardcode_shlibpath_var=no
15478 export_dynamic_flag_spec='-Bexport'
15482 if test -d /usr/nec; then
15483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484 hardcode_shlibpath_var=no
15485 runpath_var=LD_RUN_PATH
15486 hardcode_runpath_var=yes
15491 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15492 no_undefined_flag='${wl}-z,text'
15493 archive_cmds_need_lc=no
15494 hardcode_shlibpath_var=no
15495 runpath_var='LD_RUN_PATH'
15497 if test "$GCC" = yes; then
15498 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15499 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15501 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15502 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15506 sysv5* | sco3.2v5* | sco5v6*)
15507 # Note: We can NOT use -z defs as we might desire, because we do not
15508 # link with -lc, and that would cause any symbols used from libc to
15509 # always be unresolved, which means just about no library would
15510 # ever link correctly. If we're not using GNU ld we use -z text
15511 # though, which does catch some bad symbols but isn't as heavy-handed
15513 no_undefined_flag='${wl}-z,text'
15514 allow_undefined_flag='${wl}-z,nodefs'
15515 archive_cmds_need_lc=no
15516 hardcode_shlibpath_var=no
15517 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15518 hardcode_libdir_separator=':'
15519 link_all_deplibs=yes
15520 export_dynamic_flag_spec='${wl}-Bexport'
15521 runpath_var='LD_RUN_PATH'
15523 if test "$GCC" = yes; then
15524 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15525 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15527 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15528 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15534 hardcode_libdir_flag_spec='-L$libdir'
15535 hardcode_shlibpath_var=no
15544 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15545 echo "${ECHO_T}$ld_shlibs" >&6; }
15546 test "$ld_shlibs" = no && can_build_shared=no
15549 # Do we need to explicitly link libc?
15551 case "x$archive_cmds_need_lc" in
15553 # Assume -lc should be added
15554 archive_cmds_need_lc=yes
15556 if test "$enable_shared" = yes && test "$GCC" = yes; then
15557 case $archive_cmds in
15559 # FIXME: we may have to deal with multi-command sequences.
15562 # Test whether the compiler implicitly links with -lc since on some
15563 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15564 # to ld, don't add -lc before -lgcc.
15565 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15566 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15568 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15571 (eval $ac_compile) 2>&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } 2>conftest.err; then
15577 libobjs=conftest.$ac_objext
15579 wl=$lt_prog_compiler_wl
15580 pic_flag=$lt_prog_compiler_pic
15586 lt_save_allow_undefined_flag=$allow_undefined_flag
15587 allow_undefined_flag=
15588 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15589 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }
15594 archive_cmds_need_lc=no
15596 archive_cmds_need_lc=yes
15598 allow_undefined_flag=$lt_save_allow_undefined_flag
15600 cat conftest.err 1>&5
15603 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15604 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15611 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15612 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15613 library_names_spec=
15614 libname_spec='lib$name'
15618 postuninstall_cmds=
15622 shlibpath_overrides_runpath=unknown
15624 dynamic_linker="$host_os ld.so"
15625 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15626 if test "$GCC" = yes; then
15627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15628 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15629 # if the path contains ";" then we assume it to be the separator
15630 # otherwise default to the standard path separator (i.e. ":") - it is
15631 # assumed that no part of a normal pathname contains ";" but that should
15632 # okay in the real world where ";" in dirpaths is itself problematic.
15633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15640 need_lib_prefix=unknown
15641 hardcode_into_libs=no
15643 # when you set need_version to no, make sure it does not cause -set_version
15644 # flags to be left without arguments
15645 need_version=unknown
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15651 shlibpath_var=LIBPATH
15653 # AIX 3 has no versioning support, so we append a major version to the name.
15654 soname_spec='${libname}${release}${shared_ext}$major'
15661 hardcode_into_libs=yes
15662 if test "$host_cpu" = ia64; then
15663 # AIX 5 supports IA64
15664 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15665 shlibpath_var=LD_LIBRARY_PATH
15667 # With GCC up to 2.95.x, collect2 would create an import file
15668 # for dependence libraries. The import file would start with
15669 # the line `#! .'. This would cause the generated library to
15670 # depend on `.', always an invalid library. This was fixed in
15671 # development snapshots of GCC prior to 3.0.
15673 aix4 | aix4.[01] | aix4.[01].*)
15674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15676 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15679 can_build_shared=no
15683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15684 # soname into executable. Probably we can add versioning support to
15685 # collect2, so additional links can be useful in future.
15686 if test "$aix_use_runtimelinking" = yes; then
15687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15688 # instead of lib<name>.a to let people know that these are not
15689 # typical AIX shared libraries.
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692 # We preserve .a as extension for shared libraries through AIX4.2
15693 # and later when we are not doing run time linking.
15694 library_names_spec='${libname}${release}.a $libname.a'
15695 soname_spec='${libname}${release}${shared_ext}$major'
15697 shlibpath_var=LIBPATH
15702 library_names_spec='$libname.ixlibrary $libname.a'
15703 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15704 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'
15708 library_names_spec='${libname}${shared_ext}'
15709 dynamic_linker="$host_os ld.so"
15710 shlibpath_var=LIBRARY_PATH
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717 soname_spec='${libname}${release}${shared_ext}$major'
15718 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15719 shlibpath_var=LD_LIBRARY_PATH
15720 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15721 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15722 # the default ld.so.conf also contains /usr/contrib/lib and
15723 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15724 # libtool to hard-code these into programs
15727 cygwin* | mingw* | pw32*)
15728 version_type=windows
15733 case $GCC,$host_os in
15734 yes,cygwin* | yes,mingw* | yes,pw32*)
15735 library_names_spec='$libname.dll.a'
15736 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15737 postinstall_cmds='base_file=`basename \${file}`~
15738 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15739 dldir=$destdir/`dirname \$dlpath`~
15740 test -d \$dldir || mkdir -p \$dldir~
15741 $install_prog $dir/$dlname \$dldir/$dlname~
15742 chmod a+x \$dldir/$dlname'
15743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15744 dlpath=$dir/\$dldll~
15746 shlibpath_overrides_runpath=yes
15750 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15751 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15752 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15755 # MinGW DLLs use traditional 'lib' prefix
15756 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15758 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15759 # It is most probably a Windows format PATH printed by
15760 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15761 # path with ; separators, and with drive letters. We can handle the
15762 # drive letters (cygwin fileutils understands them), so leave them,
15763 # especially as we might pass files found there to a mingw objdump,
15764 # which wouldn't understand a cygwinified path. Ahh.
15765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15771 # pw32 DLLs use 'pw' prefix rather than 'lib'
15772 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15778 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15781 dynamic_linker='Win32 ld.exe'
15782 # FIXME: first we should search . and the directory the executable is in
15786 darwin* | rhapsody*)
15787 dynamic_linker="$host_os dyld"
15788 version_type=darwin
15791 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15792 soname_spec='${libname}${release}${major}$shared_ext'
15793 shlibpath_overrides_runpath=yes
15794 shlibpath_var=DYLD_LIBRARY_PATH
15795 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15796 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15797 if test "$GCC" = yes; then
15798 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"`
15800 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15802 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15810 soname_spec='${libname}${release}${shared_ext}$major'
15811 shlibpath_var=LD_LIBRARY_PATH
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15823 soname_spec='${libname}${release}${shared_ext}$major'
15824 shlibpath_var=LD_LIBRARY_PATH
15825 shlibpath_overrides_runpath=no
15826 hardcode_into_libs=yes
15827 dynamic_linker='GNU ld.so'
15830 freebsd* | dragonfly*)
15831 # DragonFly does not have aout. When/if they implement a new
15832 # versioning mechanism, adjust this.
15833 if test -x /usr/bin/objformat; then
15834 objformat=`/usr/bin/objformat`
15837 freebsd[123]*) objformat=aout ;;
15838 *) objformat=elf ;;
15841 version_type=freebsd-$objformat
15842 case $version_type in
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15853 shlibpath_var=LD_LIBRARY_PATH
15856 shlibpath_overrides_runpath=yes
15858 freebsd3.[01]* | freebsdelf3.[01]*)
15859 shlibpath_overrides_runpath=yes
15860 hardcode_into_libs=yes
15862 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15863 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15864 shlibpath_overrides_runpath=no
15865 hardcode_into_libs=yes
15867 freebsd*) # from 4.6 on
15868 shlibpath_overrides_runpath=yes
15869 hardcode_into_libs=yes
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15880 shlibpath_var=LD_LIBRARY_PATH
15881 hardcode_into_libs=yes
15884 hpux9* | hpux10* | hpux11*)
15885 # Give a soname corresponding to the major version so that dld.sl refuses to
15886 # link against other versions.
15893 hardcode_into_libs=yes
15894 dynamic_linker="$host_os dld.so"
15895 shlibpath_var=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 if test "X$HPUX_IA64_MODE" = X32; then
15900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15908 hardcode_into_libs=yes
15909 dynamic_linker="$host_os dld.sl"
15910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 soname_spec='${libname}${release}${shared_ext}$major'
15914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15919 dynamic_linker="$host_os dld.sl"
15920 shlibpath_var=SHLIB_PATH
15921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15927 postinstall_cmds='chmod 555 $lib'
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'
15936 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15937 shlibpath_var=LD_LIBRARY_PATH
15938 shlibpath_overrides_runpath=no
15939 hardcode_into_libs=yes
15942 irix5* | irix6* | nonstopux*)
15944 nonstopux*) version_type=nonstopux ;;
15946 if test "$lt_cv_prog_gnu_ld" = yes; then
15954 soname_spec='${libname}${release}${shared_ext}$major'
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15957 irix5* | nonstopux*)
15958 libsuff= shlibsuff=
15961 case $LD in # libtool.m4 will add one of these switches to LD
15962 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15963 libsuff= shlibsuff= libmagic=32-bit;;
15964 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15965 libsuff=32 shlibsuff=N32 libmagic=N32;;
15966 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15967 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15968 *) libsuff= shlibsuff= libmagic=never-match;;
15972 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15973 shlibpath_overrides_runpath=no
15974 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15975 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15976 hardcode_into_libs=yes
15979 # No shared lib support for Linux oldld, aout, or coff.
15980 linux*oldld* | linux*aout* | linux*coff*)
15984 # This must be Linux ELF.
15989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15990 soname_spec='${libname}${release}${shared_ext}$major'
15991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15992 shlibpath_var=LD_LIBRARY_PATH
15993 shlibpath_overrides_runpath=no
15994 # This implies no fast_install, which is unacceptable.
15995 # Some rework will be needed to allow for fast_install
15996 # before this can be enabled.
15997 hardcode_into_libs=yes
15999 # Append ld.so.conf contents to the search path
16000 if test -f /etc/ld.so.conf; then
16001 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' ' '`
16002 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16005 # We used to test for /lib/ld.so.1 and disable shared libraries on
16006 # powerpc, because MkLinux only supported shared libraries with the
16007 # GNU dynamic linker. Since this was broken with cross compilers,
16008 # most powerpc-linux boxes support dynamic linking these days and
16009 # people can always --disable-shared, the test was removed, and we
16010 # assume the GNU/Linux dynamic linker is in use.
16011 dynamic_linker='GNU/Linux ld.so'
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 shlibpath_overrides_runpath=no
16022 hardcode_into_libs=yes
16023 dynamic_linker='GNU ld.so'
16030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16033 dynamic_linker='NetBSD (a.out) ld.so'
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16036 soname_spec='${libname}${release}${shared_ext}$major'
16037 dynamic_linker='NetBSD ld.elf_so'
16039 shlibpath_var=LD_LIBRARY_PATH
16040 shlibpath_overrides_runpath=yes
16041 hardcode_into_libs=yes
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047 shlibpath_var=LD_LIBRARY_PATH
16048 shlibpath_overrides_runpath=yes
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=yes
16063 sys_lib_dlsearch_path_spec="/usr/lib"
16065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16067 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16068 *) need_version=no ;;
16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16072 shlibpath_var=LD_LIBRARY_PATH
16073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16075 openbsd2.[89] | openbsd2.[89].*)
16076 shlibpath_overrides_runpath=no
16079 shlibpath_overrides_runpath=yes
16083 shlibpath_overrides_runpath=yes
16088 libname_spec='$name'
16091 library_names_spec='$libname${shared_ext} $libname.a'
16092 dynamic_linker='OS/2 ld.exe'
16093 shlibpath_var=LIBPATH
16096 osf3* | osf4* | osf5*)
16100 soname_spec='${libname}${release}${shared_ext}$major'
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102 shlibpath_var=LD_LIBRARY_PATH
16103 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16104 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112 soname_spec='${libname}${release}${shared_ext}$major'
16113 shlibpath_var=LD_LIBRARY_PATH
16114 shlibpath_overrides_runpath=yes
16115 hardcode_into_libs=yes
16116 # ldd complains unless libraries are executable
16117 postinstall_cmds='chmod +x $lib'
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16123 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 shlibpath_overrides_runpath=yes
16126 if test "$with_gnu_ld" = yes; then
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135 soname_spec='${libname}${release}${shared_ext}$major'
16136 shlibpath_var=LD_LIBRARY_PATH
16137 case $host_vendor in
16139 shlibpath_overrides_runpath=no
16141 export_dynamic_flag_spec='${wl}-Blargedynsym'
16142 runpath_var=LD_RUN_PATH
16150 shlibpath_overrides_runpath=no
16151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16157 if test -d /usr/nec ;then
16159 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16160 soname_spec='$libname${shared_ext}.$major'
16161 shlibpath_var=LD_LIBRARY_PATH
16165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16166 version_type=freebsd-elf
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 hardcode_into_libs=yes
16173 if test "$with_gnu_ld" = yes; then
16174 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16175 shlibpath_overrides_runpath=no
16177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16178 shlibpath_overrides_runpath=yes
16181 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16185 sys_lib_dlsearch_path_spec='/usr/lib'
16190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16191 soname_spec='${libname}${release}${shared_ext}$major'
16192 shlibpath_var=LD_LIBRARY_PATH
16199 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16200 echo "${ECHO_T}$dynamic_linker" >&6; }
16201 test "$dynamic_linker" = no && can_build_shared=no
16203 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16204 if test "$GCC" = yes; then
16205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16208 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16209 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16211 if test -n "$hardcode_libdir_flag_spec" || \
16212 test -n "$runpath_var" || \
16213 test "X$hardcode_automatic" = "Xyes" ; then
16215 # We can hardcode non-existant directories.
16216 if test "$hardcode_direct" != no &&
16217 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16218 # have to relink, otherwise we might link with an installed library
16219 # when we should be linking with a yet-to-be-installed one
16220 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16221 test "$hardcode_minus_L" != no; then
16222 # Linking always hardcodes the temporary library directory.
16223 hardcode_action=relink
16225 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16226 hardcode_action=immediate
16229 # We cannot hardcode anything, or else we can only hardcode existing
16231 hardcode_action=unsupported
16233 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16234 echo "${ECHO_T}$hardcode_action" >&6; }
16236 if test "$hardcode_action" = relink; then
16237 # Fast installation is not supported
16238 enable_fast_install=no
16239 elif test "$shlibpath_overrides_runpath" = yes ||
16240 test "$enable_shared" = no; then
16241 # Fast installation is not necessary
16242 enable_fast_install=needless
16247 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16248 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16249 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16250 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16251 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16252 { echo "$as_me:$LINENO: result: yes" >&5
16253 echo "${ECHO_T}yes" >&6; }
16255 # FIXME - insert some real tests, host_os isn't really good enough
16258 if test -n "$STRIP" ; then
16259 striplib="$STRIP -x"
16260 { echo "$as_me:$LINENO: result: yes" >&5
16261 echo "${ECHO_T}yes" >&6; }
16263 { echo "$as_me:$LINENO: result: no" >&5
16264 echo "${ECHO_T}no" >&6; }
16268 { echo "$as_me:$LINENO: result: no" >&5
16269 echo "${ECHO_T}no" >&6; }
16274 if test "x$enable_dlopen" != xyes; then
16275 enable_dlopen=unknown
16276 enable_dlopen_self=unknown
16277 enable_dlopen_self_static=unknown
16284 lt_cv_dlopen="load_add_on"
16286 lt_cv_dlopen_self=yes
16290 lt_cv_dlopen="LoadLibrary"
16295 lt_cv_dlopen="dlopen"
16300 # if libdl is installed we need to link against it
16301 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16302 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16303 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 ac_check_lib_save_LIBS=$LIBS
16308 cat >conftest.$ac_ext <<_ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h. */
16315 /* Override any GCC internal prototype to avoid an error.
16316 Use char because int might match the return type of a GCC
16317 builtin and then its argument prototype would still apply. */
16330 rm -f conftest.$ac_objext conftest$ac_exeext
16331 if { (ac_try="$ac_link"
16332 case "(($ac_try" in
16333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334 *) ac_try_echo=$ac_try;;
16336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16337 (eval "$ac_link") 2>conftest.er1
16339 grep -v '^ *+' conftest.er1 >conftest.err
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16345 { (case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest$ac_exeext'
16355 { (case "(($ac_try" in
16356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360 (eval "$ac_try") 2>&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_lib_dl_dlopen=yes
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16369 ac_cv_lib_dl_dlopen=no
16372 rm -f core conftest.err conftest.$ac_objext \
16373 conftest$ac_exeext conftest.$ac_ext
16374 LIBS=$ac_check_lib_save_LIBS
16376 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16377 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16378 if test $ac_cv_lib_dl_dlopen = yes; then
16379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16382 lt_cv_dlopen="dyld"
16384 lt_cv_dlopen_self=yes
16391 { echo "$as_me:$LINENO: checking for shl_load" >&5
16392 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16393 if test "${ac_cv_func_shl_load+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 cat >conftest.$ac_ext <<_ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16402 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16404 #define shl_load innocuous_shl_load
16406 /* System header to define __stub macros and hopefully few prototypes,
16407 which can conflict with char shl_load (); below.
16408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16409 <limits.h> exists even on freestanding compilers. */
16412 # include <limits.h>
16414 # include <assert.h>
16419 /* Override any GCC internal prototype to avoid an error.
16420 Use char because int might match the return type of a GCC
16421 builtin and then its argument prototype would still apply. */
16426 /* The GNU C library defines this for functions which it implements
16427 to always fail with ENOSYS. Some functions are actually named
16428 something starting with __ and the normal name is an alias. */
16429 #if defined __stub_shl_load || defined __stub___shl_load
16436 return shl_load ();
16441 rm -f conftest.$ac_objext conftest$ac_exeext
16442 if { (ac_try="$ac_link"
16443 case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_link") 2>conftest.er1
16450 grep -v '^ *+' conftest.er1 >conftest.err
16452 cat conftest.err >&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } &&
16455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16456 { (case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_try") 2>&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; } &&
16465 { ac_try='test -s conftest$ac_exeext'
16466 { (case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_try") 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_func_shl_load=yes
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 ac_cv_func_shl_load=no
16483 rm -f core conftest.err conftest.$ac_objext \
16484 conftest$ac_exeext conftest.$ac_ext
16486 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16487 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16488 if test $ac_cv_func_shl_load = yes; then
16489 lt_cv_dlopen="shl_load"
16491 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16492 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16493 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16496 ac_check_lib_save_LIBS=$LIBS
16498 cat >conftest.$ac_ext <<_ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16505 /* Override any GCC internal prototype to avoid an error.
16506 Use char because int might match the return type of a GCC
16507 builtin and then its argument prototype would still apply. */
16515 return shl_load ();
16520 rm -f conftest.$ac_objext conftest$ac_exeext
16521 if { (ac_try="$ac_link"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_link") 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16535 { (case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540 (eval "$ac_try") 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest$ac_exeext'
16545 { (case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_try") 2>&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_cv_lib_dld_shl_load=yes
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 ac_cv_lib_dld_shl_load=no
16562 rm -f core conftest.err conftest.$ac_objext \
16563 conftest$ac_exeext conftest.$ac_ext
16564 LIBS=$ac_check_lib_save_LIBS
16566 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16567 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16568 if test $ac_cv_lib_dld_shl_load = yes; then
16569 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16571 { echo "$as_me:$LINENO: checking for dlopen" >&5
16572 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16573 if test "${ac_cv_func_dlopen+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16576 cat >conftest.$ac_ext <<_ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h. */
16582 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16584 #define dlopen innocuous_dlopen
16586 /* System header to define __stub macros and hopefully few prototypes,
16587 which can conflict with char dlopen (); below.
16588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16589 <limits.h> exists even on freestanding compilers. */
16592 # include <limits.h>
16594 # include <assert.h>
16599 /* Override any GCC internal prototype to avoid an error.
16600 Use char because int might match the return type of a GCC
16601 builtin and then its argument prototype would still apply. */
16606 /* The GNU C library defines this for functions which it implements
16607 to always fail with ENOSYS. Some functions are actually named
16608 something starting with __ and the normal name is an alias. */
16609 #if defined __stub_dlopen || defined __stub___dlopen
16621 rm -f conftest.$ac_objext conftest$ac_exeext
16622 if { (ac_try="$ac_link"
16623 case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628 (eval "$ac_link") 2>conftest.er1
16630 grep -v '^ *+' conftest.er1 >conftest.err
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
16635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16636 { (case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_try") 2>&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); }; } &&
16645 { ac_try='test -s conftest$ac_exeext'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 ac_cv_func_dlopen=yes
16657 echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16660 ac_cv_func_dlopen=no
16663 rm -f core conftest.err conftest.$ac_objext \
16664 conftest$ac_exeext conftest.$ac_ext
16666 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16667 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16668 if test $ac_cv_func_dlopen = yes; then
16669 lt_cv_dlopen="dlopen"
16671 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16672 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16673 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16676 ac_check_lib_save_LIBS=$LIBS
16678 cat >conftest.$ac_ext <<_ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16685 /* Override any GCC internal prototype to avoid an error.
16686 Use char because int might match the return type of a GCC
16687 builtin and then its argument prototype would still apply. */
16700 rm -f conftest.$ac_objext conftest$ac_exeext
16701 if { (ac_try="$ac_link"
16702 case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_link") 2>conftest.er1
16709 grep -v '^ *+' conftest.er1 >conftest.err
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
16714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try='test -s conftest$ac_exeext'
16725 { (case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_try") 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734 ac_cv_lib_dl_dlopen=yes
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16739 ac_cv_lib_dl_dlopen=no
16742 rm -f core conftest.err conftest.$ac_objext \
16743 conftest$ac_exeext conftest.$ac_ext
16744 LIBS=$ac_check_lib_save_LIBS
16746 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16747 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16748 if test $ac_cv_lib_dl_dlopen = yes; then
16749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16751 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16752 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16753 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 ac_check_lib_save_LIBS=$LIBS
16757 LIBS="-lsvld $LIBS"
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16765 /* Override any GCC internal prototype to avoid an error.
16766 Use char because int might match the return type of a GCC
16767 builtin and then its argument prototype would still apply. */
16780 rm -f conftest.$ac_objext conftest$ac_exeext
16781 if { (ac_try="$ac_link"
16782 case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_link") 2>conftest.er1
16789 grep -v '^ *+' conftest.er1 >conftest.err
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16795 { (case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_try") 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try='test -s conftest$ac_exeext'
16805 { (case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_try") 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_lib_svld_dlopen=yes
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 ac_cv_lib_svld_dlopen=no
16822 rm -f core conftest.err conftest.$ac_objext \
16823 conftest$ac_exeext conftest.$ac_ext
16824 LIBS=$ac_check_lib_save_LIBS
16826 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16827 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16828 if test $ac_cv_lib_svld_dlopen = yes; then
16829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16831 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16832 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16833 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 ac_check_lib_save_LIBS=$LIBS
16838 cat >conftest.$ac_ext <<_ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16845 /* Override any GCC internal prototype to avoid an error.
16846 Use char because int might match the return type of a GCC
16847 builtin and then its argument prototype would still apply. */
16855 return dld_link ();
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (ac_try="$ac_link"
16862 case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_link") 2>conftest.er1
16869 grep -v '^ *+' conftest.er1 >conftest.err
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
16874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16875 { (case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_try") 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest$ac_exeext'
16885 { (case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_try") 2>&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_cv_lib_dld_dld_link=yes
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 ac_cv_lib_dld_dld_link=no
16902 rm -f core conftest.err conftest.$ac_objext \
16903 conftest$ac_exeext conftest.$ac_ext
16904 LIBS=$ac_check_lib_save_LIBS
16906 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16907 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16908 if test $ac_cv_lib_dld_dld_link = yes; then
16909 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16930 if test "x$lt_cv_dlopen" != xno; then
16936 case $lt_cv_dlopen in
16938 save_CPPFLAGS="$CPPFLAGS"
16939 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16941 save_LDFLAGS="$LDFLAGS"
16942 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16945 LIBS="$lt_cv_dlopen_libs $LIBS"
16947 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16948 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16949 if test "${lt_cv_dlopen_self+set}" = set; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16952 if test "$cross_compiling" = yes; then :
16953 lt_cv_dlopen_self=cross
16955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16956 lt_status=$lt_dlunknown
16957 cat > conftest.$ac_ext <<EOF
16958 #line 16958 "configure"
16959 #include "confdefs.h"
16968 # define LT_DLGLOBAL RTLD_GLOBAL
16971 # define LT_DLGLOBAL DL_GLOBAL
16973 # define LT_DLGLOBAL 0
16977 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16978 find out it does not work in some platform. */
16979 #ifndef LT_DLLAZY_OR_NOW
16981 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16984 # define LT_DLLAZY_OR_NOW DL_LAZY
16987 # define LT_DLLAZY_OR_NOW RTLD_NOW
16990 # define LT_DLLAZY_OR_NOW DL_NOW
16992 # define LT_DLLAZY_OR_NOW 0
17000 extern "C" void exit (int);
17003 void fnord() { int i=42;}
17006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17007 int status = $lt_dlunknown;
17011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17012 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17013 /* dlclose (self); */
17021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17022 (eval $ac_link) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17026 (./conftest; exit; ) >&5 2>/dev/null
17028 case x$lt_status in
17029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17031 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17034 # compilation failed
17035 lt_cv_dlopen_self=no
17042 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17043 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17045 if test "x$lt_cv_dlopen_self" = xyes; then
17046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17047 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17048 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17049 if test "${lt_cv_dlopen_self_static+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 if test "$cross_compiling" = yes; then :
17053 lt_cv_dlopen_self_static=cross
17055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17056 lt_status=$lt_dlunknown
17057 cat > conftest.$ac_ext <<EOF
17058 #line 17058 "configure"
17059 #include "confdefs.h"
17068 # define LT_DLGLOBAL RTLD_GLOBAL
17071 # define LT_DLGLOBAL DL_GLOBAL
17073 # define LT_DLGLOBAL 0
17077 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17078 find out it does not work in some platform. */
17079 #ifndef LT_DLLAZY_OR_NOW
17081 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17084 # define LT_DLLAZY_OR_NOW DL_LAZY
17087 # define LT_DLLAZY_OR_NOW RTLD_NOW
17090 # define LT_DLLAZY_OR_NOW DL_NOW
17092 # define LT_DLLAZY_OR_NOW 0
17100 extern "C" void exit (int);
17103 void fnord() { int i=42;}
17106 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17107 int status = $lt_dlunknown;
17111 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17112 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17113 /* dlclose (self); */
17121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17122 (eval $ac_link) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17126 (./conftest; exit; ) >&5 2>/dev/null
17128 case x$lt_status in
17129 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17130 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17131 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17134 # compilation failed
17135 lt_cv_dlopen_self_static=no
17142 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17143 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17146 CPPFLAGS="$save_CPPFLAGS"
17147 LDFLAGS="$save_LDFLAGS"
17152 case $lt_cv_dlopen_self in
17153 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17154 *) enable_dlopen_self=unknown ;;
17157 case $lt_cv_dlopen_self_static in
17158 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17159 *) enable_dlopen_self_static=unknown ;;
17164 # Report which library types will actually be built
17165 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17166 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17167 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17168 echo "${ECHO_T}$can_build_shared" >&6; }
17170 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17171 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17172 test "$can_build_shared" = "no" && enable_shared=no
17174 # On AIX, shared libraries and static libraries use the same namespace, and
17175 # are all built from PIC.
17178 test "$enable_shared" = yes && enable_static=no
17179 if test -n "$RANLIB"; then
17180 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17181 postinstall_cmds='$RANLIB $lib'
17186 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17187 test "$enable_shared" = yes && enable_static=no
17191 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17192 echo "${ECHO_T}$enable_shared" >&6; }
17194 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17195 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17196 # Make sure either enable_shared or enable_static is yes.
17197 test "$enable_shared" = yes || enable_static=yes
17198 { echo "$as_me:$LINENO: result: $enable_static" >&5
17199 echo "${ECHO_T}$enable_static" >&6; }
17201 # The else clause should only fire when bootstrapping the
17202 # libtool distribution, otherwise you forgot to ship ltmain.sh
17203 # with your package, and you will get complaints that there are
17204 # no rules to generate ltmain.sh.
17205 if test -f "$ltmain"; then
17206 # See if we are running on zsh, and set the options which allow our commands through
17207 # without removal of \ escapes.
17208 if test -n "${ZSH_VERSION+set}" ; then
17209 setopt NO_GLOB_SUBST
17211 # Now quote all the things that may contain metacharacters while being
17212 # careful not to overquote the AC_SUBSTed values. We take copies of the
17213 # variables and quote the copies for generation of the libtool script.
17214 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17216 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17217 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17218 deplibs_check_method reload_flag reload_cmds need_locks \
17219 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17220 lt_cv_sys_global_symbol_to_c_name_address \
17221 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17222 old_postinstall_cmds old_postuninstall_cmds \
17226 lt_prog_compiler_wl \
17227 lt_prog_compiler_pic \
17228 lt_prog_compiler_static \
17229 lt_prog_compiler_no_builtin_flag \
17230 export_dynamic_flag_spec \
17231 thread_safe_flag_spec \
17232 whole_archive_flag_spec \
17233 enable_shared_with_static_runtimes \
17235 old_archive_from_new_cmds \
17240 compiler_lib_search_path \
17242 archive_expsym_cmds \
17244 postuninstall_cmds \
17245 old_archive_from_expsyms_cmds \
17246 allow_undefined_flag \
17247 no_undefined_flag \
17248 export_symbols_cmds \
17249 hardcode_libdir_flag_spec \
17250 hardcode_libdir_flag_spec_ld \
17251 hardcode_libdir_separator \
17252 hardcode_automatic \
17254 module_expsym_cmds \
17255 lt_cv_prog_compiler_c_o \
17257 include_expsyms; do
17260 old_archive_cmds | \
17261 old_archive_from_new_cmds | \
17263 archive_expsym_cmds | \
17265 module_expsym_cmds | \
17266 old_archive_from_expsyms_cmds | \
17267 export_symbols_cmds | \
17268 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17269 postinstall_cmds | postuninstall_cmds | \
17270 old_postinstall_cmds | old_postuninstall_cmds | \
17271 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17272 # Double-quote double-evaled strings.
17273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17282 *'\$0 --fallback-echo"')
17283 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17287 cfgfile="${ofile}T"
17288 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17290 { echo "$as_me:$LINENO: creating $ofile" >&5
17291 echo "$as_me: creating $ofile" >&6;}
17293 cat <<__EOF__ >> "$cfgfile"
17296 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17297 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17298 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17300 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17301 # Free Software Foundation, Inc.
17303 # This file is part of GNU Libtool:
17304 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17306 # This program is free software; you can redistribute it and/or modify
17307 # it under the terms of the GNU General Public License as published by
17308 # the Free Software Foundation; either version 2 of the License, or
17309 # (at your option) any later version.
17311 # This program is distributed in the hope that it will be useful, but
17312 # WITHOUT ANY WARRANTY; without even the implied warranty of
17313 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17314 # General Public License for more details.
17316 # You should have received a copy of the GNU General Public License
17317 # along with this program; if not, write to the Free Software
17318 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17320 # As a special exception to the GNU General Public License, if you
17321 # distribute this file as part of a program that contains a
17322 # configuration script generated by Autoconf, you may include it under
17323 # the same distribution terms that you use for the rest of that program.
17325 # A sed program that does not truncate output.
17328 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17329 Xsed="$SED -e 1s/^X//"
17331 # The HP-UX ksh and POSIX shell print the target directory to stdout
17332 # if CDPATH is set.
17333 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17335 # The names of the tagged configurations supported by this script.
17338 # ### BEGIN LIBTOOL CONFIG
17340 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17342 # Shell to use when invoking shell scripts.
17345 # Whether or not to build shared libraries.
17346 build_libtool_libs=$enable_shared
17348 # Whether or not to build static libraries.
17349 build_old_libs=$enable_static
17351 # Whether or not to add -lc for building shared libraries.
17352 build_libtool_need_lc=$archive_cmds_need_lc
17354 # Whether or not to disallow shared libs when runtime libs are static
17355 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17357 # Whether or not to optimize for fast installation.
17358 fast_install=$enable_fast_install
17361 host_alias=$host_alias
17365 # The build system.
17366 build_alias=$build_alias
17370 # An echo program that does not interpret backslashes.
17375 AR_FLAGS=$lt_AR_FLAGS
17380 # LTCC compiler flags.
17381 LTCFLAGS=$lt_LTCFLAGS
17383 # A language-specific compiler.
17386 # Is the compiler the GNU C compiler?
17392 # The linker used to build libraries.
17395 # Whether we need hard or soft links.
17398 # A BSD-compatible nm program.
17401 # A symbol stripping program
17404 # Used to examine libraries when file_magic_cmd begins "file"
17405 MAGIC_CMD=$MAGIC_CMD
17407 # Used on cygwin: DLL creation program.
17410 # Used on cygwin: object dumper.
17413 # Used on cygwin: assembler.
17416 # The name of the directory that contains temporary libtool files.
17419 # How to create reloadable object files.
17420 reload_flag=$lt_reload_flag
17421 reload_cmds=$lt_reload_cmds
17423 # How to pass a linker flag through the compiler.
17424 wl=$lt_lt_prog_compiler_wl
17426 # Object file suffix (normally "o").
17427 objext="$ac_objext"
17429 # Old archive suffix (normally "a").
17432 # Shared library suffix (normally ".so").
17433 shrext_cmds='$shrext_cmds'
17435 # Executable file suffix (normally "").
17438 # Additional compiler flags for building library objects.
17439 pic_flag=$lt_lt_prog_compiler_pic
17442 # What is the maximum length of a command?
17443 max_cmd_len=$lt_cv_sys_max_cmd_len
17445 # Does compiler simultaneously support -c and -o options?
17446 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17448 # Must we lock files when doing compilation?
17449 need_locks=$lt_need_locks
17451 # Do we need the lib prefix for modules?
17452 need_lib_prefix=$need_lib_prefix
17454 # Do we need a version for libraries?
17455 need_version=$need_version
17457 # Whether dlopen is supported.
17458 dlopen_support=$enable_dlopen
17460 # Whether dlopen of programs is supported.
17461 dlopen_self=$enable_dlopen_self
17463 # Whether dlopen of statically linked programs is supported.
17464 dlopen_self_static=$enable_dlopen_self_static
17466 # Compiler flag to prevent dynamic linking.
17467 link_static_flag=$lt_lt_prog_compiler_static
17469 # Compiler flag to turn off builtin functions.
17470 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17472 # Compiler flag to allow reflexive dlopens.
17473 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17475 # Compiler flag to generate shared objects directly from archives.
17476 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17478 # Compiler flag to generate thread-safe objects.
17479 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17481 # Library versioning type.
17482 version_type=$version_type
17484 # Format of library name prefix.
17485 libname_spec=$lt_libname_spec
17487 # List of archive names. First name is the real one, the rest are links.
17488 # The last name is the one that the linker finds with -lNAME.
17489 library_names_spec=$lt_library_names_spec
17491 # The coded name of the library, if different from the real name.
17492 soname_spec=$lt_soname_spec
17494 # Commands used to build and install an old-style archive.
17496 old_archive_cmds=$lt_old_archive_cmds
17497 old_postinstall_cmds=$lt_old_postinstall_cmds
17498 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17500 # Create an old-style archive from a shared archive.
17501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17503 # Create a temporary old-style archive to link instead of a shared archive.
17504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17506 # Commands used to build and install a shared archive.
17507 archive_cmds=$lt_archive_cmds
17508 archive_expsym_cmds=$lt_archive_expsym_cmds
17509 postinstall_cmds=$lt_postinstall_cmds
17510 postuninstall_cmds=$lt_postuninstall_cmds
17512 # Commands used to build a loadable module (assumed same as above if empty)
17513 module_cmds=$lt_module_cmds
17514 module_expsym_cmds=$lt_module_expsym_cmds
17516 # Commands to strip libraries.
17517 old_striplib=$lt_old_striplib
17518 striplib=$lt_striplib
17520 # Dependencies to place before the objects being linked to create a
17522 predep_objects=$lt_predep_objects
17524 # Dependencies to place after the objects being linked to create a
17526 postdep_objects=$lt_postdep_objects
17528 # Dependencies to place before the objects being linked to create a
17530 predeps=$lt_predeps
17532 # Dependencies to place after the objects being linked to create a
17534 postdeps=$lt_postdeps
17536 # The library search path used internally by the compiler when linking
17537 # a shared library.
17538 compiler_lib_search_path=$lt_compiler_lib_search_path
17540 # Method to check whether dependent libraries are shared objects.
17541 deplibs_check_method=$lt_deplibs_check_method
17543 # Command to use when deplibs_check_method == file_magic.
17544 file_magic_cmd=$lt_file_magic_cmd
17546 # Flag that allows shared libraries with undefined symbols to be built.
17547 allow_undefined_flag=$lt_allow_undefined_flag
17549 # Flag that forces no undefined symbols.
17550 no_undefined_flag=$lt_no_undefined_flag
17552 # Commands used to finish a libtool library installation in a directory.
17553 finish_cmds=$lt_finish_cmds
17555 # Same as above, but a single script fragment to be evaled but not shown.
17556 finish_eval=$lt_finish_eval
17558 # Take the output of nm and produce a listing of raw symbols and C names.
17559 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17561 # Transform the output of nm in a proper C declaration
17562 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17564 # Transform the output of nm in a C name address pair
17565 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17567 # This is the shared library runtime path variable.
17568 runpath_var=$runpath_var
17570 # This is the shared library path variable.
17571 shlibpath_var=$shlibpath_var
17573 # Is shlibpath searched before the hard-coded library search path?
17574 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17576 # How to hardcode a shared library path into an executable.
17577 hardcode_action=$hardcode_action
17579 # Whether we should hardcode library paths into libraries.
17580 hardcode_into_libs=$hardcode_into_libs
17582 # Flag to hardcode \$libdir into a binary during linking.
17583 # This must work even if \$libdir does not exist.
17584 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17586 # If ld is used when linking, flag to hardcode \$libdir into
17587 # a binary during linking. This must work even if \$libdir does
17589 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17591 # Whether we need a single -rpath flag with a separated argument.
17592 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17594 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17595 # resulting binary.
17596 hardcode_direct=$hardcode_direct
17598 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17599 # resulting binary.
17600 hardcode_minus_L=$hardcode_minus_L
17602 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17603 # the resulting binary.
17604 hardcode_shlibpath_var=$hardcode_shlibpath_var
17606 # Set to yes if building a shared library automatically hardcodes DIR into the library
17607 # and all subsequent libraries and executables linked against it.
17608 hardcode_automatic=$hardcode_automatic
17610 # Variables whose values should be saved in libtool wrapper scripts and
17611 # restored at relink time.
17612 variables_saved_for_relink="$variables_saved_for_relink"
17614 # Whether libtool must link a program against all its dependency libraries.
17615 link_all_deplibs=$link_all_deplibs
17617 # Compile-time system search path for libraries
17618 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17620 # Run-time system search path for libraries
17621 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17623 # Fix the shell variable \$srcfile for the compiler.
17624 fix_srcfile_path="$fix_srcfile_path"
17626 # Set to yes if exported symbols are required.
17627 always_export_symbols=$always_export_symbols
17629 # The commands to list exported symbols.
17630 export_symbols_cmds=$lt_export_symbols_cmds
17632 # The commands to extract the exported symbol list from a shared archive.
17633 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17635 # Symbols that should not be listed in the preloaded symbols.
17636 exclude_expsyms=$lt_exclude_expsyms
17638 # Symbols that must always be exported.
17639 include_expsyms=$lt_include_expsyms
17641 # ### END LIBTOOL CONFIG
17648 cat <<\EOF >> "$cfgfile"
17650 # AIX sometimes has problems with the GCC collect2 program. For some
17651 # reason, if we set the COLLECT_NAMES environment variable, the problems
17652 # vanish in a puff of smoke.
17653 if test "X${COLLECT_NAMES+set}" != Xset; then
17655 export COLLECT_NAMES
17661 # We use sed instead of cat because bash on DJGPP gets confused if
17662 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17663 # text mode, it properly converts lines to CR/LF. This bash problem
17664 # is reportedly fixed, but why not run on old versions too?
17665 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17667 mv -f "$cfgfile" "$ofile" || \
17668 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17672 # If there is no Makefile yet, we rely on a make rule to execute
17673 # `config.status --recheck' to rerun these tests and create the
17674 # libtool script then.
17675 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17676 if test -f "$ltmain_in"; then
17677 test -f Makefile && make "$ltmain"
17683 ac_cpp='$CPP $CPPFLAGS'
17684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17691 # Check whether --with-tags was given.
17692 if test "${with_tags+set}" = set; then
17693 withval=$with_tags; tagnames="$withval"
17697 if test -f "$ltmain" && test -n "$tagnames"; then
17698 if test ! -f "${ofile}"; then
17699 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17700 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17703 if test -z "$LTCC"; then
17704 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17705 if test -z "$LTCC"; then
17706 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17707 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17709 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17710 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17713 if test -z "$LTCFLAGS"; then
17714 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17717 # Extract list of available tagged configurations in $ofile.
17718 # Note that this assumes the entire list is on one line.
17719 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17721 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17722 for tagname in $tagnames; do
17724 # Check whether tagname contains only valid characters
17725 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17727 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17728 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17729 { (exit 1); exit 1; }; }
17733 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17735 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17736 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17737 { (exit 1); exit 1; }; }
17740 # Update the list of available tags.
17741 if test -n "$tagname"; then
17742 echo appending configuration tag \"$tagname\" to $ofile
17746 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17747 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17748 (test "X$CXX" != "Xg++"))) ; then
17750 ac_cpp='$CXXCPP $CPPFLAGS'
17751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17758 archive_cmds_need_lc_CXX=no
17759 allow_undefined_flag_CXX=
17760 always_export_symbols_CXX=no
17761 archive_expsym_cmds_CXX=
17762 export_dynamic_flag_spec_CXX=
17763 hardcode_direct_CXX=no
17764 hardcode_libdir_flag_spec_CXX=
17765 hardcode_libdir_flag_spec_ld_CXX=
17766 hardcode_libdir_separator_CXX=
17767 hardcode_minus_L_CXX=no
17768 hardcode_shlibpath_var_CXX=unsupported
17769 hardcode_automatic_CXX=no
17771 module_expsym_cmds_CXX=
17772 link_all_deplibs_CXX=unknown
17773 old_archive_cmds_CXX=$old_archive_cmds
17774 no_undefined_flag_CXX=
17775 whole_archive_flag_spec_CXX=
17776 enable_shared_with_static_runtimes_CXX=no
17778 # Dependencies to place before and after the object being linked:
17779 predep_objects_CXX=
17780 postdep_objects_CXX=
17783 compiler_lib_search_path_CXX=
17785 # Source file extension for C++ test sources.
17788 # Object file extension for compiled C++ test sources.
17792 # Code to be used in simple compile tests
17793 lt_simple_compile_test_code="int some_variable = 0;\n"
17795 # Code to be used in simple link tests
17796 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17798 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17800 # If no C compiler was specified, use CC.
17803 # If no C compiler flags were specified, use CFLAGS.
17804 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17806 # Allow CC to be a program name with arguments.
17810 # save warnings/boilerplate of simple test code
17811 ac_outfile=conftest.$ac_objext
17812 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17813 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17814 _lt_compiler_boilerplate=`cat conftest.err`
17817 ac_outfile=conftest.$ac_objext
17818 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17819 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17820 _lt_linker_boilerplate=`cat conftest.err`
17824 # Allow CC to be a program name with arguments.
17829 lt_save_with_gnu_ld=$with_gnu_ld
17830 lt_save_path_LD=$lt_cv_path_LD
17831 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17832 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17834 $as_unset lt_cv_prog_gnu_ld
17836 if test -n "${lt_cv_path_LDCXX+set}"; then
17837 lt_cv_path_LD=$lt_cv_path_LDCXX
17839 $as_unset lt_cv_path_LD
17841 test -z "${LDCXX+set}" || LD=$LDCXX
17845 for cc_temp in $compiler""; do
17847 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17848 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17853 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17856 # We don't want -fno-exception wen compiling C++ code, so set the
17857 # no_builtin_flag separately
17858 if test "$GXX" = yes; then
17859 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17861 lt_prog_compiler_no_builtin_flag_CXX=
17864 if test "$GXX" = yes; then
17865 # Set up default GNU C++ configuration
17868 # Check whether --with-gnu-ld was given.
17869 if test "${with_gnu_ld+set}" = set; then
17870 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17876 if test "$GCC" = yes; then
17877 # Check if gcc -print-prog-name=ld gives a path.
17878 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17879 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17882 # gcc leaves a trailing carriage return which upsets mingw
17883 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17885 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17888 # Accept absolute paths.
17890 re_direlt='/[^/][^/]*/\.\./'
17891 # Canonicalize the pathname of ld
17892 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17893 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17894 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17896 test -z "$LD" && LD="$ac_prog"
17899 # If it fails, then pretend we aren't using GCC.
17903 # If it is relative, then search for the first ld in PATH.
17904 with_gnu_ld=unknown
17907 elif test "$with_gnu_ld" = yes; then
17908 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17909 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17911 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17912 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17914 if test "${lt_cv_path_LD+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 if test -z "$LD"; then
17918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17919 for ac_dir in $PATH; do
17921 test -z "$ac_dir" && ac_dir=.
17922 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17923 lt_cv_path_LD="$ac_dir/$ac_prog"
17924 # Check to see if the program is GNU ld. I'd rather use --version,
17925 # but apparently some variants of GNU ld only accept -v.
17926 # Break only if it was the GNU/non-GNU ld that we prefer.
17927 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17928 *GNU* | *'with BFD'*)
17929 test "$with_gnu_ld" != no && break
17932 test "$with_gnu_ld" != yes && break
17939 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17943 LD="$lt_cv_path_LD"
17944 if test -n "$LD"; then
17945 { echo "$as_me:$LINENO: result: $LD" >&5
17946 echo "${ECHO_T}$LD" >&6; }
17948 { echo "$as_me:$LINENO: result: no" >&5
17949 echo "${ECHO_T}no" >&6; }
17951 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17952 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17953 { (exit 1); exit 1; }; }
17954 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17955 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17956 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17960 case `$LD -v 2>&1 </dev/null` in
17961 *GNU* | *'with BFD'*)
17962 lt_cv_prog_gnu_ld=yes
17965 lt_cv_prog_gnu_ld=no
17969 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17970 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17971 with_gnu_ld=$lt_cv_prog_gnu_ld
17975 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17976 # archiving commands below assume that GNU ld is being used.
17977 if test "$with_gnu_ld" = yes; then
17978 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17979 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'
17981 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17982 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17984 # If archive_cmds runs LD, not CC, wlarc should be empty
17985 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17986 # investigate it a little bit more. (MM)
17989 # ancient GNU ld didn't support --whole-archive et. al.
17990 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17991 grep 'no-whole-archive' > /dev/null; then
17992 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17994 whole_archive_flag_spec_CXX=
18000 # A generic and very simple default shared library creation
18001 # command for GNU C++ for the case where it uses the native
18002 # linker, instead of GNU ld. If possible, this setting should
18003 # overridden to take advantage of the native linker features on
18004 # the platform it is being used on.
18005 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18008 # Commands to make compiler produce verbose output that lists
18009 # what "hidden" libraries, object files and flags are used when
18010 # linking a shared library.
18011 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18019 # PORTME: fill in a description of your system's C++ link characteristics
18020 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18021 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18025 # FIXME: insert proper C++ library support
18029 if test "$host_cpu" = ia64; then
18030 # On IA64, the linker does run time linking by default, so we don't
18031 # have to do anything special.
18032 aix_use_runtimelinking=no
18033 exp_sym_flag='-Bexport'
18036 aix_use_runtimelinking=no
18038 # Test if we are trying to use run time linking or normal
18039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18040 # need to do runtime linking.
18041 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18042 for ld_flag in $LDFLAGS; do
18045 aix_use_runtimelinking=yes
18053 exp_sym_flag='-bexport'
18054 no_entry_flag='-bnoentry'
18057 # When large executables or shared objects are built, AIX ld can
18058 # have problems creating the table of contents. If linking a library
18059 # or program results in "error TOC overflow" add -mminimal-toc to
18060 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18061 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18063 archive_cmds_CXX=''
18064 hardcode_direct_CXX=yes
18065 hardcode_libdir_separator_CXX=':'
18066 link_all_deplibs_CXX=yes
18068 if test "$GXX" = yes; then
18069 case $host_os in aix4.[012]|aix4.[012].*)
18070 # We only want to do this on AIX 4.2 and lower, the check
18071 # below for broken collect2 doesn't work under 4.3+
18072 collect2name=`${CC} -print-prog-name=collect2`
18073 if test -f "$collect2name" && \
18074 strings "$collect2name" | grep resolve_lib_name >/dev/null
18076 # We have reworked collect2
18077 hardcode_direct_CXX=yes
18079 # We have old collect2
18080 hardcode_direct_CXX=unsupported
18081 # It fails to find uninstalled libraries when the uninstalled
18082 # path is not listed in the libpath. Setting hardcode_minus_L
18083 # to unsupported forces relinking
18084 hardcode_minus_L_CXX=yes
18085 hardcode_libdir_flag_spec_CXX='-L$libdir'
18086 hardcode_libdir_separator_CXX=
18090 shared_flag='-shared'
18091 if test "$aix_use_runtimelinking" = yes; then
18092 shared_flag="$shared_flag "'${wl}-G'
18096 if test "$host_cpu" = ia64; then
18097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18098 # chokes on -Wl,-G. The following line is correct:
18101 if test "$aix_use_runtimelinking" = yes; then
18102 shared_flag='${wl}-G'
18104 shared_flag='${wl}-bM:SRE'
18109 # It seems that -bexpall does not export symbols beginning with
18110 # underscore (_), so it is better to generate a list of symbols to export.
18111 always_export_symbols_CXX=yes
18112 if test "$aix_use_runtimelinking" = yes; then
18113 # Warning - without using the other runtime loading flags (-brtl),
18114 # -berok will link without error, but may produce a broken library.
18115 allow_undefined_flag_CXX='-berok'
18116 # Determine the default libpath from the value encoded in an empty executable.
18117 cat >conftest.$ac_ext <<_ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18132 rm -f conftest.$ac_objext conftest$ac_exeext
18133 if { (ac_try="$ac_link"
18134 case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139 (eval "$ac_link") 2>conftest.er1
18141 grep -v '^ *+' conftest.er1 >conftest.err
18143 cat conftest.err >&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } &&
18146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18147 { (case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_try") 2>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; } &&
18156 { ac_try='test -s conftest$ac_exeext'
18157 { (case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_try") 2>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18169 # Check for a 64-bit object if we didn't find anything.
18170 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; }
18173 echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18179 rm -f core conftest.err conftest.$ac_objext \
18180 conftest$ac_exeext conftest.$ac_ext
18181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18183 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18185 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"
18187 if test "$host_cpu" = ia64; then
18188 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18189 allow_undefined_flag_CXX="-z nodefs"
18190 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"
18192 # Determine the default libpath from the value encoded in an empty executable.
18193 cat >conftest.$ac_ext <<_ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18208 rm -f conftest.$ac_objext conftest$ac_exeext
18209 if { (ac_try="$ac_link"
18210 case "(($ac_try" in
18211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212 *) ac_try_echo=$ac_try;;
18214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215 (eval "$ac_link") 2>conftest.er1
18217 grep -v '^ *+' conftest.er1 >conftest.err
18219 cat conftest.err >&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18223 { (case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_try") 2>&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; } &&
18232 { ac_try='test -s conftest$ac_exeext'
18233 { (case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_try") 2>&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; }; then
18243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18245 # Check for a 64-bit object if we didn't find anything.
18246 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; }
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18255 rm -f core conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18259 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18260 # Warning - without using the other run time loading flags,
18261 # -berok will link without error, but may produce a broken library.
18262 no_undefined_flag_CXX=' ${wl}-bernotok'
18263 allow_undefined_flag_CXX=' ${wl}-berok'
18264 # Exported symbols can be pulled into shared objects from archives
18265 whole_archive_flag_spec_CXX='$convenience'
18266 archive_cmds_need_lc_CXX=yes
18267 # This is similar to how AIX traditionally builds its shared libraries.
18268 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'
18274 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18275 allow_undefined_flag_CXX=unsupported
18276 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18277 # support --undefined. This deserves some investigation. FIXME
18278 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18285 case $cc_basename in
18287 # FIXME: insert proper C++ library support
18293 cygwin* | mingw* | pw32*)
18294 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18295 # as there is no search path for DLLs.
18296 hardcode_libdir_flag_spec_CXX='-L$libdir'
18297 allow_undefined_flag_CXX=unsupported
18298 always_export_symbols_CXX=no
18299 enable_shared_with_static_runtimes_CXX=yes
18301 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18302 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'
18303 # If the export-symbols file already is a .def file (1st line
18304 # is EXPORTS), use it as is; otherwise, prepend...
18305 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18306 cp $export_symbols $output_objdir/$soname.def;
18308 echo EXPORTS > $output_objdir/$soname.def;
18309 cat $export_symbols >> $output_objdir/$soname.def;
18311 $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'
18316 darwin* | rhapsody*)
18318 rhapsody* | darwin1.[012])
18319 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18322 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18323 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18325 case ${MACOSX_DEPLOYMENT_TARGET} in
18327 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18330 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18336 archive_cmds_need_lc_CXX=no
18337 hardcode_direct_CXX=no
18338 hardcode_automatic_CXX=yes
18339 hardcode_shlibpath_var_CXX=unsupported
18340 whole_archive_flag_spec_CXX=''
18341 link_all_deplibs_CXX=yes
18343 if test "$GXX" = yes ; then
18344 lt_int_apple_cc_single_mod=no
18345 output_verbose_link_cmd='echo'
18346 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18347 lt_int_apple_cc_single_mod=yes
18349 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18350 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18352 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'
18354 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18355 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18356 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18357 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}'
18359 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}'
18361 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}'
18363 case $cc_basename in
18365 output_verbose_link_cmd='echo'
18366 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'
18367 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18368 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18369 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}'
18370 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}'
18380 case $cc_basename in
18382 # FIXME: insert proper C++ library support
18386 # Green Hills C++ Compiler
18387 # FIXME: insert proper C++ library support
18391 # FIXME: insert proper C++ library support
18397 # C++ shared libraries reported to be fairly broken before switch to ELF
18401 archive_cmds_need_lc_CXX=no
18403 freebsd* | kfreebsd*-gnu | dragonfly*)
18404 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18411 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18412 hardcode_libdir_separator_CXX=:
18413 export_dynamic_flag_spec_CXX='${wl}-E'
18414 hardcode_direct_CXX=yes
18415 hardcode_minus_L_CXX=yes # Not in the search PATH,
18416 # but as the default
18417 # location of the library.
18419 case $cc_basename in
18421 # FIXME: insert proper C++ library support
18425 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'
18426 # Commands to make compiler produce verbose output that lists
18427 # what "hidden" libraries, object files and flags are used when
18428 # linking a shared library.
18430 # There doesn't appear to be a way to prevent this compiler from
18431 # explicitly linking system object files so we need to strip them
18432 # from the output so that they don't get included in the library
18434 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'
18437 if test "$GXX" = yes; then
18438 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'
18440 # FIXME: insert proper C++ library support
18447 if test $with_gnu_ld = no; then
18448 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18449 hardcode_libdir_separator_CXX=:
18453 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18456 export_dynamic_flag_spec_CXX='${wl}-E'
18462 hardcode_direct_CXX=no
18463 hardcode_shlibpath_var_CXX=no
18466 hardcode_direct_CXX=yes
18467 hardcode_minus_L_CXX=yes # Not in the search PATH,
18468 # but as the default
18469 # location of the library.
18473 case $cc_basename in
18475 # FIXME: insert proper C++ library support
18481 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18484 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18487 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18490 # Commands to make compiler produce verbose output that lists
18491 # what "hidden" libraries, object files and flags are used when
18492 # linking a shared library.
18494 # There doesn't appear to be a way to prevent this compiler from
18495 # explicitly linking system object files so we need to strip them
18496 # from the output so that they don't get included in the library
18498 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'
18501 if test "$GXX" = yes; then
18502 if test $with_gnu_ld = no; then
18505 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18508 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18511 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'
18516 # FIXME: insert proper C++ library support
18523 hardcode_direct_CXX=no
18524 hardcode_shlibpath_var_CXX=no
18525 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18526 export_dynamic_flag_spec_CXX='${wl}-E'
18527 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18528 # Instead, shared libraries are loaded at an image base (0x10000000 by
18529 # default) and relocated if they conflict, which is a slow very memory
18530 # consuming and fragmenting process. To avoid this, we pick a random,
18531 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18532 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18533 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'
18534 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'
18537 case $cc_basename in
18540 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'
18542 # Archives containing C++ object files must be created using
18543 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18544 # necessary to make sure instantiated templates are included
18546 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18549 if test "$GXX" = yes; then
18550 if test "$with_gnu_ld" = no; then
18551 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'
18553 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'
18556 link_all_deplibs_CXX=yes
18559 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18560 hardcode_libdir_separator_CXX=:
18563 case $cc_basename in
18565 # Kuck and Associates, Inc. (KAI) C++ Compiler
18567 # KCC will only create a shared library if the output file
18568 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18569 # to its proper name (with version) after linking.
18570 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'
18571 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'
18572 # Commands to make compiler produce verbose output that lists
18573 # what "hidden" libraries, object files and flags are used when
18574 # linking a shared library.
18576 # There doesn't appear to be a way to prevent this compiler from
18577 # explicitly linking system object files so we need to strip them
18578 # from the output so that they don't get included in the library
18580 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'
18582 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18583 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18585 # Archives containing C++ object files must be created using
18586 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18587 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18592 # version 8.0 and above of icpc choke on multiply defined symbols
18593 # if we add $predep_objects and $postdep_objects, however 7.1 and
18594 # earlier do not add the objects themselves.
18595 case `$CC -V 2>&1` in
18597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18598 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'
18600 *) # Version 8.0 or newer
18603 ia64*) tmp_idyn=' -i_dynamic';;
18605 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18606 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'
18609 archive_cmds_need_lc_CXX=no
18610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18611 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18612 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18615 # Portland Group C++ compiler
18616 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18617 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'
18619 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18620 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18621 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'
18625 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18626 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'
18628 runpath_var=LD_RUN_PATH
18629 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18630 hardcode_libdir_separator_CXX=:
18632 # Commands to make compiler produce verbose output that lists
18633 # what "hidden" libraries, object files and flags are used when
18634 # linking a shared library.
18636 # There doesn't appear to be a way to prevent this compiler from
18637 # explicitly linking system object files so we need to strip them
18638 # from the output so that they don't get included in the library
18640 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'
18645 # FIXME: insert proper C++ library support
18649 # FIXME: insert proper C++ library support
18653 case $cc_basename in
18655 # FIXME: insert proper C++ library support
18659 # FIXME: insert proper C++ library support
18665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18666 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18668 hardcode_libdir_flag_spec_CXX='-R$libdir'
18669 hardcode_direct_CXX=yes
18670 hardcode_shlibpath_var_CXX=no
18672 # Workaround some broken pre-1.5 toolchains
18673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18676 # C++ shared libraries are fairly broken
18680 hardcode_direct_CXX=yes
18681 hardcode_shlibpath_var_CXX=no
18682 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18683 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18685 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18686 export_dynamic_flag_spec_CXX='${wl}-E'
18687 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18689 output_verbose_link_cmd='echo'
18692 case $cc_basename in
18694 # Kuck and Associates, Inc. (KAI) C++ Compiler
18696 # KCC will only create a shared library if the output file
18697 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18698 # to its proper name (with version) after linking.
18699 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'
18701 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18702 hardcode_libdir_separator_CXX=:
18704 # Archives containing C++ object files must be created using
18705 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18706 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18710 # Rational C++ 2.4.1
18711 # FIXME: insert proper C++ library support
18715 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18716 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'
18718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18719 hardcode_libdir_separator_CXX=:
18721 # Commands to make compiler produce verbose output that lists
18722 # what "hidden" libraries, object files and flags are used when
18723 # linking a shared library.
18725 # There doesn't appear to be a way to prevent this compiler from
18726 # explicitly linking system object files so we need to strip them
18727 # from the output so that they don't get included in the library
18729 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'
18732 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18733 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18734 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'
18736 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18737 hardcode_libdir_separator_CXX=:
18739 # Commands to make compiler produce verbose output that lists
18740 # what "hidden" libraries, object files and flags are used when
18741 # linking a shared library.
18742 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18745 # FIXME: insert proper C++ library support
18752 case $cc_basename in
18754 # Kuck and Associates, Inc. (KAI) C++ Compiler
18756 # KCC will only create a shared library if the output file
18757 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18758 # to its proper name (with version) after linking.
18759 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'
18761 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18762 hardcode_libdir_separator_CXX=:
18764 # Archives containing C++ object files must be created using
18765 # the KAI C++ compiler.
18766 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18769 # Rational C++ 2.4.1
18770 # FIXME: insert proper C++ library support
18774 allow_undefined_flag_CXX=' -expect_unresolved \*'
18775 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'
18776 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18777 echo "-hidden">> $lib.exp~
18778 $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~
18781 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18782 hardcode_libdir_separator_CXX=:
18784 # Commands to make compiler produce verbose output that lists
18785 # what "hidden" libraries, object files and flags are used when
18786 # linking a shared library.
18788 # There doesn't appear to be a way to prevent this compiler from
18789 # explicitly linking system object files so we need to strip them
18790 # from the output so that they don't get included in the library
18792 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'
18795 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18796 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18797 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'
18799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18800 hardcode_libdir_separator_CXX=:
18802 # Commands to make compiler produce verbose output that lists
18803 # what "hidden" libraries, object files and flags are used when
18804 # linking a shared library.
18805 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18808 # FIXME: insert proper C++ library support
18815 # FIXME: insert proper C++ library support
18819 case $cc_basename in
18822 # FIXME: insert proper C++ library support
18827 # FIXME: insert proper C++ library support
18831 # FIXME: insert proper C++ library support
18837 case $cc_basename in
18839 # Sun C++ 4.2, 5.x and Centerline C++
18840 archive_cmds_need_lc_CXX=yes
18841 no_undefined_flag_CXX=' -zdefs'
18842 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18843 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18844 $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'
18846 hardcode_libdir_flag_spec_CXX='-R$libdir'
18847 hardcode_shlibpath_var_CXX=no
18849 solaris2.[0-5] | solaris2.[0-5].*) ;;
18851 # The C++ compiler is used as linker so we must use $wl
18852 # flag to pass the commands to the underlying system
18853 # linker. We must also pass each convience library through
18854 # to the system linker between allextract/defaultextract.
18855 # The C++ compiler will combine linker options so we
18856 # cannot just pass the convience library names through
18858 # Supported since Solaris 2.6 (maybe 2.5.1?)
18859 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'
18862 link_all_deplibs_CXX=yes
18864 output_verbose_link_cmd='echo'
18866 # Archives containing C++ object files must be created using
18867 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18868 # necessary to make sure instantiated templates are included
18870 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18873 # Green Hills C++ Compiler
18874 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18876 # The C++ compiler must be used to create the archive.
18877 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18880 # GNU C++ compiler with Solaris linker
18881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18882 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18883 if $CC --version | grep -v '^2\.7' > /dev/null; then
18884 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18885 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18886 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18888 # Commands to make compiler produce verbose output that lists
18889 # what "hidden" libraries, object files and flags are used when
18890 # linking a shared library.
18891 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18893 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18895 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18896 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18897 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18899 # Commands to make compiler produce verbose output that lists
18900 # what "hidden" libraries, object files and flags are used when
18901 # linking a shared library.
18902 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18905 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18911 no_undefined_flag_CXX='${wl}-z,text'
18912 archive_cmds_need_lc_CXX=no
18913 hardcode_shlibpath_var_CXX=no
18914 runpath_var='LD_RUN_PATH'
18916 case $cc_basename in
18918 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18919 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18922 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18923 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18927 sysv5* | sco3.2v5* | sco5v6*)
18928 # Note: We can NOT use -z defs as we might desire, because we do not
18929 # link with -lc, and that would cause any symbols used from libc to
18930 # always be unresolved, which means just about no library would
18931 # ever link correctly. If we're not using GNU ld we use -z text
18932 # though, which does catch some bad symbols but isn't as heavy-handed
18934 # For security reasons, it is highly recommended that you always
18935 # use absolute paths for naming shared libraries, and exclude the
18936 # DT_RUNPATH tag from executables and libraries. But doing so
18937 # requires that you compile everything twice, which is a pain.
18938 # So that behaviour is only enabled if SCOABSPATH is set to a
18939 # non-empty value in the environment. Most likely only useful for
18940 # creating official distributions of packages.
18941 # This is a hack until libtool officially supports absolute path
18942 # names for shared libraries.
18943 no_undefined_flag_CXX='${wl}-z,text'
18944 allow_undefined_flag_CXX='${wl}-z,nodefs'
18945 archive_cmds_need_lc_CXX=no
18946 hardcode_shlibpath_var_CXX=no
18947 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18948 hardcode_libdir_separator_CXX=':'
18949 link_all_deplibs_CXX=yes
18950 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18951 runpath_var='LD_RUN_PATH'
18953 case $cc_basename in
18955 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18956 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18959 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18960 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18965 case $cc_basename in
18967 # NonStop-UX NCC 3.20
18968 # FIXME: insert proper C++ library support
18972 # FIXME: insert proper C++ library support
18978 # FIXME: insert proper C++ library support
18982 # FIXME: insert proper C++ library support
18986 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18987 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18988 test "$ld_shlibs_CXX" = no && can_build_shared=no
18994 cat > conftest.$ac_ext <<EOF
18998 Foo (void) { a = 0; }
19004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19005 (eval $ac_compile) 2>&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; then
19009 # Parse the compiler output and extract the necessary
19010 # objects, libraries and library flags.
19012 # Sentinel used to keep track of whether or not we are before
19013 # the conftest object file.
19014 pre_test_object_deps_done=no
19016 # The `*' in the case matches for architectures that use `case' in
19017 # $output_verbose_cmd can trigger glob expansion during the loop
19018 # eval without this substitution.
19019 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19021 for p in `eval $output_verbose_link_cmd`; do
19025 # Some compilers place space between "-{L,R}" and the path.
19026 # Remove the space.
19027 if test $p = "-L" \
19028 || test $p = "-R"; then
19035 if test "$pre_test_object_deps_done" = no; then
19038 # Internal compiler library paths should come after those
19039 # provided the user. The postdeps already come after the
19040 # user supplied libs so there is no need to process them.
19041 if test -z "$compiler_lib_search_path_CXX"; then
19042 compiler_lib_search_path_CXX="${prev}${p}"
19044 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19047 # The "-l" case would never come before the object being
19048 # linked, so don't bother handling this case.
19051 if test -z "$postdeps_CXX"; then
19052 postdeps_CXX="${prev}${p}"
19054 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19060 # This assumes that the test object file only shows up
19061 # once in the compiler output.
19062 if test "$p" = "conftest.$objext"; then
19063 pre_test_object_deps_done=yes
19067 if test "$pre_test_object_deps_done" = no; then
19068 if test -z "$predep_objects_CXX"; then
19069 predep_objects_CXX="$p"
19071 predep_objects_CXX="$predep_objects_CXX $p"
19074 if test -z "$postdep_objects_CXX"; then
19075 postdep_objects_CXX="$p"
19077 postdep_objects_CXX="$postdep_objects_CXX $p"
19082 *) ;; # Ignore the rest.
19090 echo "libtool.m4: error: problem compiling CXX test program"
19093 $rm -f confest.$objext
19095 # PORTME: override above test on systems where it is broken
19098 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19099 # hack all around it, let's just trust "g++" to DTRT.
19100 predep_objects_CXX=
19101 postdep_objects_CXX=
19106 case $cc_basename in
19108 # Adding this requires a known-good setup of shared libraries for
19109 # Sun compiler versions before 5.6, else PIC objects from an old
19110 # archive will be linked into the output, leading to subtle bugs.
19111 postdeps_CXX='-lCstd -lCrun'
19118 case " $postdeps_CXX " in
19119 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19122 lt_prog_compiler_wl_CXX=
19123 lt_prog_compiler_pic_CXX=
19124 lt_prog_compiler_static_CXX=
19126 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19127 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19129 # C++ specific cases for pic, static, wl, etc.
19130 if test "$GXX" = yes; then
19131 lt_prog_compiler_wl_CXX='-Wl,'
19132 lt_prog_compiler_static_CXX='-static'
19136 # All AIX code is PIC.
19137 if test "$host_cpu" = ia64; then
19138 # AIX 5 now supports IA64 processor
19139 lt_prog_compiler_static_CXX='-Bstatic'
19143 # FIXME: we need at least 68020 code to build shared libraries, but
19144 # adding the `-m68020' flag to GCC prevents building anything better,
19146 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19148 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19149 # PIC is the default for these OSes.
19151 mingw* | os2* | pw32*)
19152 # This hack is so that the source file can tell whether it is being
19153 # built for inclusion in a dll (and should export symbols for example).
19154 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19156 darwin* | rhapsody*)
19157 # PIC is the default on this platform
19158 # Common symbols not allowed in MH_DYLIB files
19159 lt_prog_compiler_pic_CXX='-fno-common'
19162 # DJGPP does not support shared libraries at all
19163 lt_prog_compiler_pic_CXX=
19166 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19167 # Instead, we relocate shared libraries at runtime.
19170 if test -d /usr/nec; then
19171 lt_prog_compiler_pic_CXX=-Kconform_pic
19175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19176 # not for PA HP-UX.
19181 lt_prog_compiler_pic_CXX='-fPIC'
19186 lt_prog_compiler_pic_CXX='-fPIC'
19192 # All AIX code is PIC.
19193 if test "$host_cpu" = ia64; then
19194 # AIX 5 now supports IA64 processor
19195 lt_prog_compiler_static_CXX='-Bstatic'
19197 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19201 case $cc_basename in
19203 # Green Hills C++ Compiler
19204 # _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"
19209 # PIC is the default on this platform
19210 # Common symbols not allowed in MH_DYLIB files
19211 case $cc_basename in
19213 lt_prog_compiler_pic_CXX='-qnocommon'
19214 lt_prog_compiler_wl_CXX='-Wl,'
19219 case $cc_basename in
19221 lt_prog_compiler_pic_CXX='-KPIC'
19224 # Green Hills C++ Compiler
19225 lt_prog_compiler_pic_CXX='-pic'
19231 freebsd* | kfreebsd*-gnu | dragonfly*)
19232 # FreeBSD uses GNU C++
19234 hpux9* | hpux10* | hpux11*)
19235 case $cc_basename in
19237 lt_prog_compiler_wl_CXX='-Wl,'
19238 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19239 if test "$host_cpu" != ia64; then
19240 lt_prog_compiler_pic_CXX='+Z'
19244 lt_prog_compiler_wl_CXX='-Wl,'
19245 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19251 lt_prog_compiler_pic_CXX='+Z'
19260 # This is c89, which is MS Visual C++ (no shared libs)
19261 # Anyone wants to do a port?
19263 irix5* | irix6* | nonstopux*)
19264 case $cc_basename in
19266 lt_prog_compiler_wl_CXX='-Wl,'
19267 lt_prog_compiler_static_CXX='-non_shared'
19268 # CC pic flag -KPIC is the default.
19275 case $cc_basename in
19278 lt_prog_compiler_wl_CXX='--backend -Wl,'
19279 lt_prog_compiler_pic_CXX='-fPIC'
19283 lt_prog_compiler_wl_CXX='-Wl,'
19284 lt_prog_compiler_pic_CXX='-KPIC'
19285 lt_prog_compiler_static_CXX='-static'
19288 # Portland Group C++ compiler.
19289 lt_prog_compiler_wl_CXX='-Wl,'
19290 lt_prog_compiler_pic_CXX='-fpic'
19291 lt_prog_compiler_static_CXX='-Bstatic'
19295 # Make sure the PIC flag is empty. It appears that all Alpha
19296 # Linux and Compaq Tru64 Unix objects are PIC.
19297 lt_prog_compiler_pic_CXX=
19298 lt_prog_compiler_static_CXX='-non_shared'
19309 case $cc_basename in
19311 lt_prog_compiler_pic_CXX='-W c,exportall'
19319 osf3* | osf4* | osf5*)
19320 case $cc_basename in
19322 lt_prog_compiler_wl_CXX='--backend -Wl,'
19325 # Rational C++ 2.4.1
19326 lt_prog_compiler_pic_CXX='-pic'
19329 # Digital/Compaq C++
19330 lt_prog_compiler_wl_CXX='-Wl,'
19331 # Make sure the PIC flag is empty. It appears that all Alpha
19332 # Linux and Compaq Tru64 Unix objects are PIC.
19333 lt_prog_compiler_pic_CXX=
19334 lt_prog_compiler_static_CXX='-non_shared'
19343 case $cc_basename in
19345 # Sun C++ 4.2, 5.x and Centerline C++
19346 lt_prog_compiler_pic_CXX='-KPIC'
19347 lt_prog_compiler_static_CXX='-Bstatic'
19348 lt_prog_compiler_wl_CXX='-Qoption ld '
19351 # Green Hills C++ Compiler
19352 lt_prog_compiler_pic_CXX='-PIC'
19359 case $cc_basename in
19362 lt_prog_compiler_pic_CXX='-pic'
19363 lt_prog_compiler_static_CXX='-Bstatic'
19367 lt_prog_compiler_pic_CXX='-pic'
19374 case $cc_basename in
19376 # NonStop-UX NCC 3.20
19377 lt_prog_compiler_pic_CXX='-KPIC'
19383 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19384 case $cc_basename in
19386 lt_prog_compiler_wl_CXX='-Wl,'
19387 lt_prog_compiler_pic_CXX='-KPIC'
19388 lt_prog_compiler_static_CXX='-Bstatic'
19395 lt_prog_compiler_can_build_shared_CXX=no
19400 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19401 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19404 # Check to make sure the PIC flag actually works.
19406 if test -n "$lt_prog_compiler_pic_CXX"; then
19408 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19409 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19410 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 lt_prog_compiler_pic_works_CXX=no
19414 ac_outfile=conftest.$ac_objext
19415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19416 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19417 # Insert the option either (1) after the last *FLAGS variable, or
19418 # (2) before a word containing "conftest.", or (3) at the end.
19419 # Note that $ac_compile itself does not contain backslashes and begins
19420 # with a dollar sign (not a hyphen), so the echo should work correctly.
19421 # The option is referenced via a variable to avoid confusing sed.
19422 lt_compile=`echo "$ac_compile" | $SED \
19423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19425 -e 's:$: $lt_compiler_flag:'`
19426 (eval echo "\"\$as_me:19426: $lt_compile\"" >&5)
19427 (eval "$lt_compile" 2>conftest.err)
19429 cat conftest.err >&5
19430 echo "$as_me:19430: \$? = $ac_status" >&5
19431 if (exit $ac_status) && test -s "$ac_outfile"; then
19432 # The compiler can only warn and ignore the option if not recognized
19433 # So say no if there are warnings other than the usual output.
19434 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19437 lt_prog_compiler_pic_works_CXX=yes
19443 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19444 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19446 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19447 case $lt_prog_compiler_pic_CXX in
19449 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19452 lt_prog_compiler_pic_CXX=
19453 lt_prog_compiler_can_build_shared_CXX=no
19458 # For platforms which do not support PIC, -DPIC is meaningless:
19460 lt_prog_compiler_pic_CXX=
19463 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19468 # Check to make sure the static flag actually works.
19470 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19471 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19472 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19473 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 lt_prog_compiler_static_works_CXX=no
19477 save_LDFLAGS="$LDFLAGS"
19478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19479 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19481 # The linker can only warn and ignore the option if not recognized
19482 # So say no if there are warnings
19483 if test -s conftest.err; then
19484 # Append any errors to the config.log.
19485 cat conftest.err 1>&5
19486 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19488 if diff conftest.exp conftest.er2 >/dev/null; then
19489 lt_prog_compiler_static_works_CXX=yes
19492 lt_prog_compiler_static_works_CXX=yes
19496 LDFLAGS="$save_LDFLAGS"
19499 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19500 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19502 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19505 lt_prog_compiler_static_CXX=
19509 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19510 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19511 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19514 lt_cv_prog_compiler_c_o_CXX=no
19515 $rm -r conftest 2>/dev/null
19519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19521 lt_compiler_flag="-o out/conftest2.$ac_objext"
19522 # Insert the option either (1) after the last *FLAGS variable, or
19523 # (2) before a word containing "conftest.", or (3) at the end.
19524 # Note that $ac_compile itself does not contain backslashes and begins
19525 # with a dollar sign (not a hyphen), so the echo should work correctly.
19526 lt_compile=`echo "$ac_compile" | $SED \
19527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19529 -e 's:$: $lt_compiler_flag:'`
19530 (eval echo "\"\$as_me:19530: $lt_compile\"" >&5)
19531 (eval "$lt_compile" 2>out/conftest.err)
19533 cat out/conftest.err >&5
19534 echo "$as_me:19534: \$? = $ac_status" >&5
19535 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19537 # The compiler can only warn and ignore the option if not recognized
19538 # So say no if there are warnings
19539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19542 lt_cv_prog_compiler_c_o_CXX=yes
19547 # SGI C++ compiler will create directory out/ii_files/ for
19548 # template instantiation
19549 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19550 $rm out/* && rmdir out
19556 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19557 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19560 hard_links="nottested"
19561 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19562 # do not overwrite the value of need_locks provided by the user
19563 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19564 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19569 ln conftest.a conftest.b 2>&5 || hard_links=no
19570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19571 { echo "$as_me:$LINENO: result: $hard_links" >&5
19572 echo "${ECHO_T}$hard_links" >&6; }
19573 if test "$hard_links" = no; then
19574 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19575 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19582 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19583 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19585 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19588 # If we're using GNU nm, then we don't want the "-C" option.
19589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19590 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19591 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'
19593 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'
19597 export_symbols_cmds_CXX="$ltdll_cmds"
19600 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'
19603 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19607 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19608 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19609 test "$ld_shlibs_CXX" = no && can_build_shared=no
19612 # Do we need to explicitly link libc?
19614 case "x$archive_cmds_need_lc_CXX" in
19616 # Assume -lc should be added
19617 archive_cmds_need_lc_CXX=yes
19619 if test "$enable_shared" = yes && test "$GCC" = yes; then
19620 case $archive_cmds_CXX in
19622 # FIXME: we may have to deal with multi-command sequences.
19625 # Test whether the compiler implicitly links with -lc since on some
19626 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19627 # to ld, don't add -lc before -lgcc.
19628 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19629 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19631 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19634 (eval $ac_compile) 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } 2>conftest.err; then
19640 libobjs=conftest.$ac_objext
19642 wl=$lt_prog_compiler_wl_CXX
19643 pic_flag=$lt_prog_compiler_pic_CXX
19649 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19650 allow_undefined_flag_CXX=
19651 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19652 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }
19657 archive_cmds_need_lc_CXX=no
19659 archive_cmds_need_lc_CXX=yes
19661 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19663 cat conftest.err 1>&5
19666 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19667 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19674 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19675 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19676 library_names_spec=
19677 libname_spec='lib$name'
19681 postuninstall_cmds=
19685 shlibpath_overrides_runpath=unknown
19687 dynamic_linker="$host_os ld.so"
19688 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19689 if test "$GCC" = yes; then
19690 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19691 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19692 # if the path contains ";" then we assume it to be the separator
19693 # otherwise default to the standard path separator (i.e. ":") - it is
19694 # assumed that no part of a normal pathname contains ";" but that should
19695 # okay in the real world where ";" in dirpaths is itself problematic.
19696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19701 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19703 need_lib_prefix=unknown
19704 hardcode_into_libs=no
19706 # when you set need_version to no, make sure it does not cause -set_version
19707 # flags to be left without arguments
19708 need_version=unknown
19713 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19714 shlibpath_var=LIBPATH
19716 # AIX 3 has no versioning support, so we append a major version to the name.
19717 soname_spec='${libname}${release}${shared_ext}$major'
19724 hardcode_into_libs=yes
19725 if test "$host_cpu" = ia64; then
19726 # AIX 5 supports IA64
19727 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19728 shlibpath_var=LD_LIBRARY_PATH
19730 # With GCC up to 2.95.x, collect2 would create an import file
19731 # for dependence libraries. The import file would start with
19732 # the line `#! .'. This would cause the generated library to
19733 # depend on `.', always an invalid library. This was fixed in
19734 # development snapshots of GCC prior to 3.0.
19736 aix4 | aix4.[01] | aix4.[01].*)
19737 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19739 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19742 can_build_shared=no
19746 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19747 # soname into executable. Probably we can add versioning support to
19748 # collect2, so additional links can be useful in future.
19749 if test "$aix_use_runtimelinking" = yes; then
19750 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19751 # instead of lib<name>.a to let people know that these are not
19752 # typical AIX shared libraries.
19753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19755 # We preserve .a as extension for shared libraries through AIX4.2
19756 # and later when we are not doing run time linking.
19757 library_names_spec='${libname}${release}.a $libname.a'
19758 soname_spec='${libname}${release}${shared_ext}$major'
19760 shlibpath_var=LIBPATH
19765 library_names_spec='$libname.ixlibrary $libname.a'
19766 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19767 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'
19771 library_names_spec='${libname}${shared_ext}'
19772 dynamic_linker="$host_os ld.so"
19773 shlibpath_var=LIBRARY_PATH
19779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19780 soname_spec='${libname}${release}${shared_ext}$major'
19781 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19782 shlibpath_var=LD_LIBRARY_PATH
19783 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19784 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19785 # the default ld.so.conf also contains /usr/contrib/lib and
19786 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19787 # libtool to hard-code these into programs
19790 cygwin* | mingw* | pw32*)
19791 version_type=windows
19796 case $GCC,$host_os in
19797 yes,cygwin* | yes,mingw* | yes,pw32*)
19798 library_names_spec='$libname.dll.a'
19799 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19800 postinstall_cmds='base_file=`basename \${file}`~
19801 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19802 dldir=$destdir/`dirname \$dlpath`~
19803 test -d \$dldir || mkdir -p \$dldir~
19804 $install_prog $dir/$dlname \$dldir/$dlname~
19805 chmod a+x \$dldir/$dlname'
19806 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19807 dlpath=$dir/\$dldll~
19809 shlibpath_overrides_runpath=yes
19813 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19814 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19815 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19818 # MinGW DLLs use traditional 'lib' prefix
19819 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19820 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19821 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19822 # It is most probably a Windows format PATH printed by
19823 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19824 # path with ; separators, and with drive letters. We can handle the
19825 # drive letters (cygwin fileutils understands them), so leave them,
19826 # especially as we might pass files found there to a mingw objdump,
19827 # which wouldn't understand a cygwinified path. Ahh.
19828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19834 # pw32 DLLs use 'pw' prefix rather than 'lib'
19835 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19841 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19844 dynamic_linker='Win32 ld.exe'
19845 # FIXME: first we should search . and the directory the executable is in
19849 darwin* | rhapsody*)
19850 dynamic_linker="$host_os dyld"
19851 version_type=darwin
19854 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19855 soname_spec='${libname}${release}${major}$shared_ext'
19856 shlibpath_overrides_runpath=yes
19857 shlibpath_var=DYLD_LIBRARY_PATH
19858 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19859 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19860 if test "$GCC" = yes; then
19861 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"`
19863 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19865 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19873 soname_spec='${libname}${release}${shared_ext}$major'
19874 shlibpath_var=LD_LIBRARY_PATH
19885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19886 soname_spec='${libname}${release}${shared_ext}$major'
19887 shlibpath_var=LD_LIBRARY_PATH
19888 shlibpath_overrides_runpath=no
19889 hardcode_into_libs=yes
19890 dynamic_linker='GNU ld.so'
19893 freebsd* | dragonfly*)
19894 # DragonFly does not have aout. When/if they implement a new
19895 # versioning mechanism, adjust this.
19896 if test -x /usr/bin/objformat; then
19897 objformat=`/usr/bin/objformat`
19900 freebsd[123]*) objformat=aout ;;
19901 *) objformat=elf ;;
19904 version_type=freebsd-$objformat
19905 case $version_type in
19907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19916 shlibpath_var=LD_LIBRARY_PATH
19919 shlibpath_overrides_runpath=yes
19921 freebsd3.[01]* | freebsdelf3.[01]*)
19922 shlibpath_overrides_runpath=yes
19923 hardcode_into_libs=yes
19925 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19926 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19927 shlibpath_overrides_runpath=no
19928 hardcode_into_libs=yes
19930 freebsd*) # from 4.6 on
19931 shlibpath_overrides_runpath=yes
19932 hardcode_into_libs=yes
19941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19942 soname_spec='${libname}${release}${shared_ext}$major'
19943 shlibpath_var=LD_LIBRARY_PATH
19944 hardcode_into_libs=yes
19947 hpux9* | hpux10* | hpux11*)
19948 # Give a soname corresponding to the major version so that dld.sl refuses to
19949 # link against other versions.
19956 hardcode_into_libs=yes
19957 dynamic_linker="$host_os dld.so"
19958 shlibpath_var=LD_LIBRARY_PATH
19959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19961 soname_spec='${libname}${release}${shared_ext}$major'
19962 if test "X$HPUX_IA64_MODE" = X32; then
19963 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19965 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19971 hardcode_into_libs=yes
19972 dynamic_linker="$host_os dld.sl"
19973 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19976 soname_spec='${libname}${release}${shared_ext}$major'
19977 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19982 dynamic_linker="$host_os dld.sl"
19983 shlibpath_var=SHLIB_PATH
19984 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19986 soname_spec='${libname}${release}${shared_ext}$major'
19989 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19990 postinstall_cmds='chmod 555 $lib'
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'
19999 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20000 shlibpath_var=LD_LIBRARY_PATH
20001 shlibpath_overrides_runpath=no
20002 hardcode_into_libs=yes
20005 irix5* | irix6* | nonstopux*)
20007 nonstopux*) version_type=nonstopux ;;
20009 if test "$lt_cv_prog_gnu_ld" = yes; then
20017 soname_spec='${libname}${release}${shared_ext}$major'
20018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20020 irix5* | nonstopux*)
20021 libsuff= shlibsuff=
20024 case $LD in # libtool.m4 will add one of these switches to LD
20025 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20026 libsuff= shlibsuff= libmagic=32-bit;;
20027 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20028 libsuff=32 shlibsuff=N32 libmagic=N32;;
20029 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20030 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20031 *) libsuff= shlibsuff= libmagic=never-match;;
20035 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20036 shlibpath_overrides_runpath=no
20037 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20038 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20039 hardcode_into_libs=yes
20042 # No shared lib support for Linux oldld, aout, or coff.
20043 linux*oldld* | linux*aout* | linux*coff*)
20047 # This must be Linux ELF.
20052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20053 soname_spec='${libname}${release}${shared_ext}$major'
20054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20055 shlibpath_var=LD_LIBRARY_PATH
20056 shlibpath_overrides_runpath=no
20057 # This implies no fast_install, which is unacceptable.
20058 # Some rework will be needed to allow for fast_install
20059 # before this can be enabled.
20060 hardcode_into_libs=yes
20062 # Append ld.so.conf contents to the search path
20063 if test -f /etc/ld.so.conf; then
20064 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' ' '`
20065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20068 # We used to test for /lib/ld.so.1 and disable shared libraries on
20069 # powerpc, because MkLinux only supported shared libraries with the
20070 # GNU dynamic linker. Since this was broken with cross compilers,
20071 # most powerpc-linux boxes support dynamic linking these days and
20072 # people can always --disable-shared, the test was removed, and we
20073 # assume the GNU/Linux dynamic linker is in use.
20074 dynamic_linker='GNU/Linux ld.so'
20081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20082 soname_spec='${libname}${release}${shared_ext}$major'
20083 shlibpath_var=LD_LIBRARY_PATH
20084 shlibpath_overrides_runpath=no
20085 hardcode_into_libs=yes
20086 dynamic_linker='GNU ld.so'
20093 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20096 dynamic_linker='NetBSD (a.out) ld.so'
20098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20099 soname_spec='${libname}${release}${shared_ext}$major'
20100 dynamic_linker='NetBSD ld.elf_so'
20102 shlibpath_var=LD_LIBRARY_PATH
20103 shlibpath_overrides_runpath=yes
20104 hardcode_into_libs=yes
20109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20110 shlibpath_var=LD_LIBRARY_PATH
20111 shlibpath_overrides_runpath=yes
20118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20119 soname_spec='${libname}${release}${shared_ext}$major'
20120 shlibpath_var=LD_LIBRARY_PATH
20121 shlibpath_overrides_runpath=yes
20126 sys_lib_dlsearch_path_spec="/usr/lib"
20128 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20130 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20131 *) need_version=no ;;
20133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20135 shlibpath_var=LD_LIBRARY_PATH
20136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20138 openbsd2.[89] | openbsd2.[89].*)
20139 shlibpath_overrides_runpath=no
20142 shlibpath_overrides_runpath=yes
20146 shlibpath_overrides_runpath=yes
20151 libname_spec='$name'
20154 library_names_spec='$libname${shared_ext} $libname.a'
20155 dynamic_linker='OS/2 ld.exe'
20156 shlibpath_var=LIBPATH
20159 osf3* | osf4* | osf5*)
20163 soname_spec='${libname}${release}${shared_ext}$major'
20164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165 shlibpath_var=LD_LIBRARY_PATH
20166 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20167 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20175 soname_spec='${libname}${release}${shared_ext}$major'
20176 shlibpath_var=LD_LIBRARY_PATH
20177 shlibpath_overrides_runpath=yes
20178 hardcode_into_libs=yes
20179 # ldd complains unless libraries are executable
20180 postinstall_cmds='chmod +x $lib'
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20186 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20187 shlibpath_var=LD_LIBRARY_PATH
20188 shlibpath_overrides_runpath=yes
20189 if test "$with_gnu_ld" = yes; then
20197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20198 soname_spec='${libname}${release}${shared_ext}$major'
20199 shlibpath_var=LD_LIBRARY_PATH
20200 case $host_vendor in
20202 shlibpath_overrides_runpath=no
20204 export_dynamic_flag_spec='${wl}-Blargedynsym'
20205 runpath_var=LD_RUN_PATH
20213 shlibpath_overrides_runpath=no
20214 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20220 if test -d /usr/nec ;then
20222 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20223 soname_spec='$libname${shared_ext}.$major'
20224 shlibpath_var=LD_LIBRARY_PATH
20228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20229 version_type=freebsd-elf
20232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20233 soname_spec='${libname}${release}${shared_ext}$major'
20234 shlibpath_var=LD_LIBRARY_PATH
20235 hardcode_into_libs=yes
20236 if test "$with_gnu_ld" = yes; then
20237 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20238 shlibpath_overrides_runpath=no
20240 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20241 shlibpath_overrides_runpath=yes
20244 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20248 sys_lib_dlsearch_path_spec='/usr/lib'
20253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20254 soname_spec='${libname}${release}${shared_ext}$major'
20255 shlibpath_var=LD_LIBRARY_PATH
20262 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20263 echo "${ECHO_T}$dynamic_linker" >&6; }
20264 test "$dynamic_linker" = no && can_build_shared=no
20266 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20267 if test "$GCC" = yes; then
20268 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20271 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20272 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20273 hardcode_action_CXX=
20274 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20275 test -n "$runpath_var_CXX" || \
20276 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20278 # We can hardcode non-existant directories.
20279 if test "$hardcode_direct_CXX" != no &&
20280 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20281 # have to relink, otherwise we might link with an installed library
20282 # when we should be linking with a yet-to-be-installed one
20283 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20284 test "$hardcode_minus_L_CXX" != no; then
20285 # Linking always hardcodes the temporary library directory.
20286 hardcode_action_CXX=relink
20288 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20289 hardcode_action_CXX=immediate
20292 # We cannot hardcode anything, or else we can only hardcode existing
20294 hardcode_action_CXX=unsupported
20296 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20297 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20299 if test "$hardcode_action_CXX" = relink; then
20300 # Fast installation is not supported
20301 enable_fast_install=no
20302 elif test "$shlibpath_overrides_runpath" = yes ||
20303 test "$enable_shared" = no; then
20304 # Fast installation is not necessary
20305 enable_fast_install=needless
20309 # The else clause should only fire when bootstrapping the
20310 # libtool distribution, otherwise you forgot to ship ltmain.sh
20311 # with your package, and you will get complaints that there are
20312 # no rules to generate ltmain.sh.
20313 if test -f "$ltmain"; then
20314 # See if we are running on zsh, and set the options which allow our commands through
20315 # without removal of \ escapes.
20316 if test -n "${ZSH_VERSION+set}" ; then
20317 setopt NO_GLOB_SUBST
20319 # Now quote all the things that may contain metacharacters while being
20320 # careful not to overquote the AC_SUBSTed values. We take copies of the
20321 # variables and quote the copies for generation of the libtool script.
20322 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20324 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20325 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20326 deplibs_check_method reload_flag reload_cmds need_locks \
20327 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20328 lt_cv_sys_global_symbol_to_c_name_address \
20329 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20330 old_postinstall_cmds old_postuninstall_cmds \
20334 lt_prog_compiler_wl_CXX \
20335 lt_prog_compiler_pic_CXX \
20336 lt_prog_compiler_static_CXX \
20337 lt_prog_compiler_no_builtin_flag_CXX \
20338 export_dynamic_flag_spec_CXX \
20339 thread_safe_flag_spec_CXX \
20340 whole_archive_flag_spec_CXX \
20341 enable_shared_with_static_runtimes_CXX \
20342 old_archive_cmds_CXX \
20343 old_archive_from_new_cmds_CXX \
20344 predep_objects_CXX \
20345 postdep_objects_CXX \
20348 compiler_lib_search_path_CXX \
20350 archive_expsym_cmds_CXX \
20351 postinstall_cmds_CXX \
20352 postuninstall_cmds_CXX \
20353 old_archive_from_expsyms_cmds_CXX \
20354 allow_undefined_flag_CXX \
20355 no_undefined_flag_CXX \
20356 export_symbols_cmds_CXX \
20357 hardcode_libdir_flag_spec_CXX \
20358 hardcode_libdir_flag_spec_ld_CXX \
20359 hardcode_libdir_separator_CXX \
20360 hardcode_automatic_CXX \
20362 module_expsym_cmds_CXX \
20363 lt_cv_prog_compiler_c_o_CXX \
20364 exclude_expsyms_CXX \
20365 include_expsyms_CXX; do
20368 old_archive_cmds_CXX | \
20369 old_archive_from_new_cmds_CXX | \
20370 archive_cmds_CXX | \
20371 archive_expsym_cmds_CXX | \
20372 module_cmds_CXX | \
20373 module_expsym_cmds_CXX | \
20374 old_archive_from_expsyms_cmds_CXX | \
20375 export_symbols_cmds_CXX | \
20376 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20377 postinstall_cmds | postuninstall_cmds | \
20378 old_postinstall_cmds | old_postuninstall_cmds | \
20379 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20380 # Double-quote double-evaled strings.
20381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20390 *'\$0 --fallback-echo"')
20391 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20397 cat <<__EOF__ >> "$cfgfile"
20398 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20400 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20402 # Shell to use when invoking shell scripts.
20405 # Whether or not to build shared libraries.
20406 build_libtool_libs=$enable_shared
20408 # Whether or not to build static libraries.
20409 build_old_libs=$enable_static
20411 # Whether or not to add -lc for building shared libraries.
20412 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20414 # Whether or not to disallow shared libs when runtime libs are static
20415 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20417 # Whether or not to optimize for fast installation.
20418 fast_install=$enable_fast_install
20421 host_alias=$host_alias
20425 # The build system.
20426 build_alias=$build_alias
20430 # An echo program that does not interpret backslashes.
20435 AR_FLAGS=$lt_AR_FLAGS
20440 # LTCC compiler flags.
20441 LTCFLAGS=$lt_LTCFLAGS
20443 # A language-specific compiler.
20444 CC=$lt_compiler_CXX
20446 # Is the compiler the GNU C compiler?
20452 # The linker used to build libraries.
20455 # Whether we need hard or soft links.
20458 # A BSD-compatible nm program.
20461 # A symbol stripping program
20464 # Used to examine libraries when file_magic_cmd begins "file"
20465 MAGIC_CMD=$MAGIC_CMD
20467 # Used on cygwin: DLL creation program.
20470 # Used on cygwin: object dumper.
20473 # Used on cygwin: assembler.
20476 # The name of the directory that contains temporary libtool files.
20479 # How to create reloadable object files.
20480 reload_flag=$lt_reload_flag
20481 reload_cmds=$lt_reload_cmds
20483 # How to pass a linker flag through the compiler.
20484 wl=$lt_lt_prog_compiler_wl_CXX
20486 # Object file suffix (normally "o").
20487 objext="$ac_objext"
20489 # Old archive suffix (normally "a").
20492 # Shared library suffix (normally ".so").
20493 shrext_cmds='$shrext_cmds'
20495 # Executable file suffix (normally "").
20498 # Additional compiler flags for building library objects.
20499 pic_flag=$lt_lt_prog_compiler_pic_CXX
20502 # What is the maximum length of a command?
20503 max_cmd_len=$lt_cv_sys_max_cmd_len
20505 # Does compiler simultaneously support -c and -o options?
20506 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20508 # Must we lock files when doing compilation?
20509 need_locks=$lt_need_locks
20511 # Do we need the lib prefix for modules?
20512 need_lib_prefix=$need_lib_prefix
20514 # Do we need a version for libraries?
20515 need_version=$need_version
20517 # Whether dlopen is supported.
20518 dlopen_support=$enable_dlopen
20520 # Whether dlopen of programs is supported.
20521 dlopen_self=$enable_dlopen_self
20523 # Whether dlopen of statically linked programs is supported.
20524 dlopen_self_static=$enable_dlopen_self_static
20526 # Compiler flag to prevent dynamic linking.
20527 link_static_flag=$lt_lt_prog_compiler_static_CXX
20529 # Compiler flag to turn off builtin functions.
20530 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20532 # Compiler flag to allow reflexive dlopens.
20533 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20535 # Compiler flag to generate shared objects directly from archives.
20536 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20538 # Compiler flag to generate thread-safe objects.
20539 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20541 # Library versioning type.
20542 version_type=$version_type
20544 # Format of library name prefix.
20545 libname_spec=$lt_libname_spec
20547 # List of archive names. First name is the real one, the rest are links.
20548 # The last name is the one that the linker finds with -lNAME.
20549 library_names_spec=$lt_library_names_spec
20551 # The coded name of the library, if different from the real name.
20552 soname_spec=$lt_soname_spec
20554 # Commands used to build and install an old-style archive.
20556 old_archive_cmds=$lt_old_archive_cmds_CXX
20557 old_postinstall_cmds=$lt_old_postinstall_cmds
20558 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20560 # Create an old-style archive from a shared archive.
20561 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20563 # Create a temporary old-style archive to link instead of a shared archive.
20564 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20566 # Commands used to build and install a shared archive.
20567 archive_cmds=$lt_archive_cmds_CXX
20568 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20569 postinstall_cmds=$lt_postinstall_cmds
20570 postuninstall_cmds=$lt_postuninstall_cmds
20572 # Commands used to build a loadable module (assumed same as above if empty)
20573 module_cmds=$lt_module_cmds_CXX
20574 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20576 # Commands to strip libraries.
20577 old_striplib=$lt_old_striplib
20578 striplib=$lt_striplib
20580 # Dependencies to place before the objects being linked to create a
20582 predep_objects=$lt_predep_objects_CXX
20584 # Dependencies to place after the objects being linked to create a
20586 postdep_objects=$lt_postdep_objects_CXX
20588 # Dependencies to place before the objects being linked to create a
20590 predeps=$lt_predeps_CXX
20592 # Dependencies to place after the objects being linked to create a
20594 postdeps=$lt_postdeps_CXX
20596 # The library search path used internally by the compiler when linking
20597 # a shared library.
20598 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20600 # Method to check whether dependent libraries are shared objects.
20601 deplibs_check_method=$lt_deplibs_check_method
20603 # Command to use when deplibs_check_method == file_magic.
20604 file_magic_cmd=$lt_file_magic_cmd
20606 # Flag that allows shared libraries with undefined symbols to be built.
20607 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20609 # Flag that forces no undefined symbols.
20610 no_undefined_flag=$lt_no_undefined_flag_CXX
20612 # Commands used to finish a libtool library installation in a directory.
20613 finish_cmds=$lt_finish_cmds
20615 # Same as above, but a single script fragment to be evaled but not shown.
20616 finish_eval=$lt_finish_eval
20618 # Take the output of nm and produce a listing of raw symbols and C names.
20619 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20621 # Transform the output of nm in a proper C declaration
20622 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20624 # Transform the output of nm in a C name address pair
20625 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20627 # This is the shared library runtime path variable.
20628 runpath_var=$runpath_var
20630 # This is the shared library path variable.
20631 shlibpath_var=$shlibpath_var
20633 # Is shlibpath searched before the hard-coded library search path?
20634 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20636 # How to hardcode a shared library path into an executable.
20637 hardcode_action=$hardcode_action_CXX
20639 # Whether we should hardcode library paths into libraries.
20640 hardcode_into_libs=$hardcode_into_libs
20642 # Flag to hardcode \$libdir into a binary during linking.
20643 # This must work even if \$libdir does not exist.
20644 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20646 # If ld is used when linking, flag to hardcode \$libdir into
20647 # a binary during linking. This must work even if \$libdir does
20649 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20651 # Whether we need a single -rpath flag with a separated argument.
20652 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20654 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20655 # resulting binary.
20656 hardcode_direct=$hardcode_direct_CXX
20658 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20659 # resulting binary.
20660 hardcode_minus_L=$hardcode_minus_L_CXX
20662 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20663 # the resulting binary.
20664 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20666 # Set to yes if building a shared library automatically hardcodes DIR into the library
20667 # and all subsequent libraries and executables linked against it.
20668 hardcode_automatic=$hardcode_automatic_CXX
20670 # Variables whose values should be saved in libtool wrapper scripts and
20671 # restored at relink time.
20672 variables_saved_for_relink="$variables_saved_for_relink"
20674 # Whether libtool must link a program against all its dependency libraries.
20675 link_all_deplibs=$link_all_deplibs_CXX
20677 # Compile-time system search path for libraries
20678 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20680 # Run-time system search path for libraries
20681 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20683 # Fix the shell variable \$srcfile for the compiler.
20684 fix_srcfile_path="$fix_srcfile_path_CXX"
20686 # Set to yes if exported symbols are required.
20687 always_export_symbols=$always_export_symbols_CXX
20689 # The commands to list exported symbols.
20690 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20692 # The commands to extract the exported symbol list from a shared archive.
20693 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20695 # Symbols that should not be listed in the preloaded symbols.
20696 exclude_expsyms=$lt_exclude_expsyms_CXX
20698 # Symbols that must always be exported.
20699 include_expsyms=$lt_include_expsyms_CXX
20701 # ### END LIBTOOL TAG CONFIG: $tagname
20707 # If there is no Makefile yet, we rely on a make rule to execute
20708 # `config.status --recheck' to rerun these tests and create the
20709 # libtool script then.
20710 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20711 if test -f "$ltmain_in"; then
20712 test -f Makefile && make "$ltmain"
20718 ac_cpp='$CPP $CPPFLAGS'
20719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20727 with_gnu_ldcxx=$with_gnu_ld
20728 with_gnu_ld=$lt_save_with_gnu_ld
20729 lt_cv_path_LDCXX=$lt_cv_path_LD
20730 lt_cv_path_LD=$lt_save_path_LD
20731 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20732 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20740 if test -n "$F77" && test "X$F77" != "Xno"; then
20743 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20744 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20745 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20748 archive_cmds_need_lc_F77=no
20749 allow_undefined_flag_F77=
20750 always_export_symbols_F77=no
20751 archive_expsym_cmds_F77=
20752 export_dynamic_flag_spec_F77=
20753 hardcode_direct_F77=no
20754 hardcode_libdir_flag_spec_F77=
20755 hardcode_libdir_flag_spec_ld_F77=
20756 hardcode_libdir_separator_F77=
20757 hardcode_minus_L_F77=no
20758 hardcode_automatic_F77=no
20760 module_expsym_cmds_F77=
20761 link_all_deplibs_F77=unknown
20762 old_archive_cmds_F77=$old_archive_cmds
20763 no_undefined_flag_F77=
20764 whole_archive_flag_spec_F77=
20765 enable_shared_with_static_runtimes_F77=no
20767 # Source file extension for f77 test sources.
20770 # Object file extension for compiled f77 test sources.
20774 # Code to be used in simple compile tests
20775 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20777 # Code to be used in simple link tests
20778 lt_simple_link_test_code=" program t\n end\n"
20780 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20782 # If no C compiler was specified, use CC.
20785 # If no C compiler flags were specified, use CFLAGS.
20786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20788 # Allow CC to be a program name with arguments.
20792 # save warnings/boilerplate of simple test code
20793 ac_outfile=conftest.$ac_objext
20794 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20795 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20796 _lt_compiler_boilerplate=`cat conftest.err`
20799 ac_outfile=conftest.$ac_objext
20800 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20801 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20802 _lt_linker_boilerplate=`cat conftest.err`
20806 # Allow CC to be a program name with arguments.
20811 for cc_temp in $compiler""; do
20813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20819 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20822 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20823 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20824 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20825 echo "${ECHO_T}$can_build_shared" >&6; }
20827 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20828 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20829 test "$can_build_shared" = "no" && enable_shared=no
20831 # On AIX, shared libraries and static libraries use the same namespace, and
20832 # are all built from PIC.
20835 test "$enable_shared" = yes && enable_static=no
20836 if test -n "$RANLIB"; then
20837 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20838 postinstall_cmds='$RANLIB $lib'
20842 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20843 test "$enable_shared" = yes && enable_static=no
20847 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20848 echo "${ECHO_T}$enable_shared" >&6; }
20850 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20851 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20852 # Make sure either enable_shared or enable_static is yes.
20853 test "$enable_shared" = yes || enable_static=yes
20854 { echo "$as_me:$LINENO: result: $enable_static" >&5
20855 echo "${ECHO_T}$enable_static" >&6; }
20860 lt_prog_compiler_wl_F77=
20861 lt_prog_compiler_pic_F77=
20862 lt_prog_compiler_static_F77=
20864 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20865 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20867 if test "$GCC" = yes; then
20868 lt_prog_compiler_wl_F77='-Wl,'
20869 lt_prog_compiler_static_F77='-static'
20873 # All AIX code is PIC.
20874 if test "$host_cpu" = ia64; then
20875 # AIX 5 now supports IA64 processor
20876 lt_prog_compiler_static_F77='-Bstatic'
20881 # FIXME: we need at least 68020 code to build shared libraries, but
20882 # adding the `-m68020' flag to GCC prevents building anything better,
20884 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20887 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20888 # PIC is the default for these OSes.
20891 mingw* | pw32* | os2*)
20892 # This hack is so that the source file can tell whether it is being
20893 # built for inclusion in a dll (and should export symbols for example).
20894 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20897 darwin* | rhapsody*)
20898 # PIC is the default on this platform
20899 # Common symbols not allowed in MH_DYLIB files
20900 lt_prog_compiler_pic_F77='-fno-common'
20904 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20905 # Instead, we relocate shared libraries at runtime.
20909 # Just because we use GCC doesn't mean we suddenly get shared libraries
20910 # on systems that don't support them.
20911 lt_prog_compiler_can_build_shared_F77=no
20916 if test -d /usr/nec; then
20917 lt_prog_compiler_pic_F77=-Kconform_pic
20922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20923 # not for PA HP-UX.
20929 lt_prog_compiler_pic_F77='-fPIC'
20935 lt_prog_compiler_pic_F77='-fPIC'
20939 # PORTME Check for flag to pass linker flags through the system compiler.
20942 lt_prog_compiler_wl_F77='-Wl,'
20943 if test "$host_cpu" = ia64; then
20944 # AIX 5 now supports IA64 processor
20945 lt_prog_compiler_static_F77='-Bstatic'
20947 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20951 # PIC is the default on this platform
20952 # Common symbols not allowed in MH_DYLIB files
20953 case $cc_basename in
20955 lt_prog_compiler_pic_F77='-qnocommon'
20956 lt_prog_compiler_wl_F77='-Wl,'
20961 mingw* | pw32* | os2*)
20962 # This hack is so that the source file can tell whether it is being
20963 # built for inclusion in a dll (and should export symbols for example).
20964 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20967 hpux9* | hpux10* | hpux11*)
20968 lt_prog_compiler_wl_F77='-Wl,'
20969 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20970 # not for PA HP-UX.
20976 lt_prog_compiler_pic_F77='+Z'
20979 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20980 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20983 irix5* | irix6* | nonstopux*)
20984 lt_prog_compiler_wl_F77='-Wl,'
20985 # PIC (with -KPIC) is the default.
20986 lt_prog_compiler_static_F77='-non_shared'
20990 lt_prog_compiler_pic_F77='-KPIC'
20991 lt_prog_compiler_static_F77='-Bstatic'
20995 case $cc_basename in
20997 lt_prog_compiler_wl_F77='-Wl,'
20998 lt_prog_compiler_pic_F77='-KPIC'
20999 lt_prog_compiler_static_F77='-static'
21001 pgcc* | pgf77* | pgf90* | pgf95*)
21002 # Portland Group compilers (*not* the Pentium gcc compiler,
21003 # which looks to be a dead project)
21004 lt_prog_compiler_wl_F77='-Wl,'
21005 lt_prog_compiler_pic_F77='-fpic'
21006 lt_prog_compiler_static_F77='-Bstatic'
21009 lt_prog_compiler_wl_F77='-Wl,'
21010 # All Alpha code is PIC.
21011 lt_prog_compiler_static_F77='-non_shared'
21016 osf3* | osf4* | osf5*)
21017 lt_prog_compiler_wl_F77='-Wl,'
21018 # All OSF/1 code is PIC.
21019 lt_prog_compiler_static_F77='-non_shared'
21023 lt_prog_compiler_pic_F77='-KPIC'
21024 lt_prog_compiler_static_F77='-Bstatic'
21025 case $cc_basename in
21026 f77* | f90* | f95*)
21027 lt_prog_compiler_wl_F77='-Qoption ld ';;
21029 lt_prog_compiler_wl_F77='-Wl,';;
21034 lt_prog_compiler_wl_F77='-Qoption ld '
21035 lt_prog_compiler_pic_F77='-PIC'
21036 lt_prog_compiler_static_F77='-Bstatic'
21039 sysv4 | sysv4.2uw2* | sysv4.3*)
21040 lt_prog_compiler_wl_F77='-Wl,'
21041 lt_prog_compiler_pic_F77='-KPIC'
21042 lt_prog_compiler_static_F77='-Bstatic'
21046 if test -d /usr/nec ;then
21047 lt_prog_compiler_pic_F77='-Kconform_pic'
21048 lt_prog_compiler_static_F77='-Bstatic'
21052 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21053 lt_prog_compiler_wl_F77='-Wl,'
21054 lt_prog_compiler_pic_F77='-KPIC'
21055 lt_prog_compiler_static_F77='-Bstatic'
21059 lt_prog_compiler_wl_F77='-Wl,'
21060 lt_prog_compiler_can_build_shared_F77=no
21064 lt_prog_compiler_pic_F77='-pic'
21065 lt_prog_compiler_static_F77='-Bstatic'
21069 lt_prog_compiler_can_build_shared_F77=no
21074 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21075 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21078 # Check to make sure the PIC flag actually works.
21080 if test -n "$lt_prog_compiler_pic_F77"; then
21082 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21083 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21084 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21087 lt_prog_compiler_pic_works_F77=no
21088 ac_outfile=conftest.$ac_objext
21089 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21090 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21091 # Insert the option either (1) after the last *FLAGS variable, or
21092 # (2) before a word containing "conftest.", or (3) at the end.
21093 # Note that $ac_compile itself does not contain backslashes and begins
21094 # with a dollar sign (not a hyphen), so the echo should work correctly.
21095 # The option is referenced via a variable to avoid confusing sed.
21096 lt_compile=`echo "$ac_compile" | $SED \
21097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21099 -e 's:$: $lt_compiler_flag:'`
21100 (eval echo "\"\$as_me:21100: $lt_compile\"" >&5)
21101 (eval "$lt_compile" 2>conftest.err)
21103 cat conftest.err >&5
21104 echo "$as_me:21104: \$? = $ac_status" >&5
21105 if (exit $ac_status) && test -s "$ac_outfile"; then
21106 # The compiler can only warn and ignore the option if not recognized
21107 # So say no if there are warnings other than the usual output.
21108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21111 lt_prog_compiler_pic_works_F77=yes
21117 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21118 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21120 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21121 case $lt_prog_compiler_pic_F77 in
21123 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21126 lt_prog_compiler_pic_F77=
21127 lt_prog_compiler_can_build_shared_F77=no
21132 # For platforms which do not support PIC, -DPIC is meaningless:
21134 lt_prog_compiler_pic_F77=
21137 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21142 # Check to make sure the static flag actually works.
21144 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21145 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21146 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21147 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21150 lt_prog_compiler_static_works_F77=no
21151 save_LDFLAGS="$LDFLAGS"
21152 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21153 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21154 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21155 # The linker can only warn and ignore the option if not recognized
21156 # So say no if there are warnings
21157 if test -s conftest.err; then
21158 # Append any errors to the config.log.
21159 cat conftest.err 1>&5
21160 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21162 if diff conftest.exp conftest.er2 >/dev/null; then
21163 lt_prog_compiler_static_works_F77=yes
21166 lt_prog_compiler_static_works_F77=yes
21170 LDFLAGS="$save_LDFLAGS"
21173 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21174 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21176 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21179 lt_prog_compiler_static_F77=
21183 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21184 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21185 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 lt_cv_prog_compiler_c_o_F77=no
21189 $rm -r conftest 2>/dev/null
21193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21195 lt_compiler_flag="-o out/conftest2.$ac_objext"
21196 # Insert the option either (1) after the last *FLAGS variable, or
21197 # (2) before a word containing "conftest.", or (3) at the end.
21198 # Note that $ac_compile itself does not contain backslashes and begins
21199 # with a dollar sign (not a hyphen), so the echo should work correctly.
21200 lt_compile=`echo "$ac_compile" | $SED \
21201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21203 -e 's:$: $lt_compiler_flag:'`
21204 (eval echo "\"\$as_me:21204: $lt_compile\"" >&5)
21205 (eval "$lt_compile" 2>out/conftest.err)
21207 cat out/conftest.err >&5
21208 echo "$as_me:21208: \$? = $ac_status" >&5
21209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21211 # The compiler can only warn and ignore the option if not recognized
21212 # So say no if there are warnings
21213 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21216 lt_cv_prog_compiler_c_o_F77=yes
21221 # SGI C++ compiler will create directory out/ii_files/ for
21222 # template instantiation
21223 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21224 $rm out/* && rmdir out
21230 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21231 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21234 hard_links="nottested"
21235 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21236 # do not overwrite the value of need_locks provided by the user
21237 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21238 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21241 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21243 ln conftest.a conftest.b 2>&5 || hard_links=no
21244 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21245 { echo "$as_me:$LINENO: result: $hard_links" >&5
21246 echo "${ECHO_T}$hard_links" >&6; }
21247 if test "$hard_links" = no; then
21248 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21249 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21256 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21257 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21260 allow_undefined_flag_F77=
21261 enable_shared_with_static_runtimes_F77=no
21263 archive_expsym_cmds_F77=
21264 old_archive_From_new_cmds_F77=
21265 old_archive_from_expsyms_cmds_F77=
21266 export_dynamic_flag_spec_F77=
21267 whole_archive_flag_spec_F77=
21268 thread_safe_flag_spec_F77=
21269 hardcode_libdir_flag_spec_F77=
21270 hardcode_libdir_flag_spec_ld_F77=
21271 hardcode_libdir_separator_F77=
21272 hardcode_direct_F77=no
21273 hardcode_minus_L_F77=no
21274 hardcode_shlibpath_var_F77=unsupported
21275 link_all_deplibs_F77=unknown
21276 hardcode_automatic_F77=no
21278 module_expsym_cmds_F77=
21279 always_export_symbols_F77=no
21280 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21281 # include_expsyms should be a list of space-separated symbols to be *always*
21282 # included in the symbol list
21283 include_expsyms_F77=
21284 # exclude_expsyms can be an extended regexp of symbols to exclude
21285 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21286 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21287 # as well as any symbol that contains `d'.
21288 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21289 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21290 # platforms (ab)use it in PIC code, but their linkers get confused if
21291 # the symbol is explicitly referenced. Since portable code cannot
21292 # rely on this symbol name, it's probably fine to never include it in
21293 # preloaded symbol tables.
21294 extract_expsyms_cmds=
21295 # Just being paranoid about ensuring that cc_basename is set.
21296 for cc_temp in $compiler""; do
21298 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21299 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21304 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21307 cygwin* | mingw* | pw32*)
21308 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21309 # When not using gcc, we currently assume that we are using
21310 # Microsoft Visual C++.
21311 if test "$GCC" != yes; then
21316 # we just hope/assume this is gcc and not c89 (= MSVC++)
21325 if test "$with_gnu_ld" = yes; then
21326 # If archive_cmds runs LD, not CC, wlarc should be empty
21329 # Set some defaults for GNU ld with shared library support. These
21330 # are reset later if shared libraries are not supported. Putting them
21331 # here allows them to be overridden if necessary.
21332 runpath_var=LD_RUN_PATH
21333 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21334 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21335 # ancient GNU ld didn't support --whole-archive et. al.
21336 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21337 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21339 whole_archive_flag_spec_F77=
21341 supports_anon_versioning=no
21342 case `$LD -v 2>/dev/null` in
21343 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21344 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21345 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21346 *\ 2.11.*) ;; # other 2.11 versions
21347 *) supports_anon_versioning=yes ;;
21350 # See if GNU ld supports shared libraries.
21352 aix3* | aix4* | aix5*)
21353 # On AIX/PPC, the GNU linker is very broken
21354 if test "$host_cpu" != ia64; then
21358 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21359 *** to be unable to reliably create shared libraries on AIX.
21360 *** Therefore, libtool is disabling shared libraries support. If you
21361 *** really care for shared libraries, you may want to modify your PATH
21362 *** so that a non-GNU linker is found, and then restart.
21369 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)'
21370 hardcode_libdir_flag_spec_F77='-L$libdir'
21371 hardcode_minus_L_F77=yes
21373 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21374 # that the semantics of dynamic libraries on AmigaOS, at least up
21375 # to version 4, is to share data among multiple programs linked
21376 # with the same dynamic library. Since this doesn't match the
21377 # behavior of shared libraries on other platforms, we can't use
21383 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21384 allow_undefined_flag_F77=unsupported
21385 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21386 # support --undefined. This deserves some investigation. FIXME
21387 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21393 cygwin* | mingw* | pw32*)
21394 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21395 # as there is no search path for DLLs.
21396 hardcode_libdir_flag_spec_F77='-L$libdir'
21397 allow_undefined_flag_F77=unsupported
21398 always_export_symbols_F77=no
21399 enable_shared_with_static_runtimes_F77=yes
21400 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21402 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21404 # If the export-symbols file already is a .def file (1st line
21405 # is EXPORTS), use it as is; otherwise, prepend...
21406 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21407 cp $export_symbols $output_objdir/$soname.def;
21409 echo EXPORTS > $output_objdir/$soname.def;
21410 cat $export_symbols >> $output_objdir/$soname.def;
21412 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21419 hardcode_direct_F77=no
21420 hardcode_shlibpath_var_F77=no
21421 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21422 export_dynamic_flag_spec_F77='${wl}-E'
21423 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21424 # Instead, shared libraries are loaded at an image base (0x10000000 by
21425 # default) and relocated if they conflict, which is a slow very memory
21426 # consuming and fragmenting process. To avoid this, we pick a random,
21427 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21428 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21429 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'
21430 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'
21434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21436 case $cc_basename,$host_cpu in
21437 pgcc*) # Portland Group C compiler
21438 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'
21439 tmp_addflag=' $pic_flag'
21441 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21442 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'
21443 tmp_addflag=' $pic_flag -Mnomain' ;;
21444 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21445 tmp_addflag=' -i_dynamic' ;;
21446 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21447 tmp_addflag=' -i_dynamic -nofor_main' ;;
21448 ifc* | ifort*) # Intel Fortran compiler
21449 tmp_addflag=' -nofor_main' ;;
21451 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21453 if test $supports_anon_versioning = yes; then
21454 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21456 $echo "local: *; };" >> $output_objdir/$libname.ver~
21457 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21466 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21469 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21470 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21475 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21479 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21480 *** create shared libraries on Solaris systems. Therefore, libtool
21481 *** is disabling shared libraries support. We urge you to upgrade GNU
21482 *** binutils to release 2.9.1 or newer. Another option is to modify
21483 *** your PATH or compiler configuration so that the native linker is
21484 *** used, and then restart.
21487 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21488 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21489 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21496 case `$LD -v 2>&1` in
21497 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21501 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21502 *** reliably create shared libraries on SCO systems. Therefore, libtool
21503 *** is disabling shared libraries support. We urge you to upgrade GNU
21504 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21505 *** your PATH or compiler configuration so that the native linker is
21506 *** used, and then restart.
21511 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21512 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21513 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21514 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21523 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21525 hardcode_direct_F77=yes
21526 hardcode_shlibpath_var_F77=no
21530 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21531 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21532 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21539 if test "$ld_shlibs_F77" = no; then
21541 hardcode_libdir_flag_spec_F77=
21542 export_dynamic_flag_spec_F77=
21543 whole_archive_flag_spec_F77=
21546 # PORTME fill in a description of your system's linker (not GNU ld)
21549 allow_undefined_flag_F77=unsupported
21550 always_export_symbols_F77=yes
21551 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'
21552 # Note: this linker hardcodes the directories in LIBPATH if there
21553 # are no directories specified by -L.
21554 hardcode_minus_L_F77=yes
21555 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21556 # Neither direct hardcoding nor static linking is supported with a
21558 hardcode_direct_F77=unsupported
21563 if test "$host_cpu" = ia64; then
21564 # On IA64, the linker does run time linking by default, so we don't
21565 # have to do anything special.
21566 aix_use_runtimelinking=no
21567 exp_sym_flag='-Bexport'
21570 # If we're using GNU nm, then we don't want the "-C" option.
21571 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21572 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21573 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'
21575 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'
21577 aix_use_runtimelinking=no
21579 # Test if we are trying to use run time linking or normal
21580 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21581 # need to do runtime linking.
21582 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21583 for ld_flag in $LDFLAGS; do
21584 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21585 aix_use_runtimelinking=yes
21592 exp_sym_flag='-bexport'
21593 no_entry_flag='-bnoentry'
21596 # When large executables or shared objects are built, AIX ld can
21597 # have problems creating the table of contents. If linking a library
21598 # or program results in "error TOC overflow" add -mminimal-toc to
21599 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21600 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21602 archive_cmds_F77=''
21603 hardcode_direct_F77=yes
21604 hardcode_libdir_separator_F77=':'
21605 link_all_deplibs_F77=yes
21607 if test "$GCC" = yes; then
21608 case $host_os in aix4.[012]|aix4.[012].*)
21609 # We only want to do this on AIX 4.2 and lower, the check
21610 # below for broken collect2 doesn't work under 4.3+
21611 collect2name=`${CC} -print-prog-name=collect2`
21612 if test -f "$collect2name" && \
21613 strings "$collect2name" | grep resolve_lib_name >/dev/null
21615 # We have reworked collect2
21616 hardcode_direct_F77=yes
21618 # We have old collect2
21619 hardcode_direct_F77=unsupported
21620 # It fails to find uninstalled libraries when the uninstalled
21621 # path is not listed in the libpath. Setting hardcode_minus_L
21622 # to unsupported forces relinking
21623 hardcode_minus_L_F77=yes
21624 hardcode_libdir_flag_spec_F77='-L$libdir'
21625 hardcode_libdir_separator_F77=
21629 shared_flag='-shared'
21630 if test "$aix_use_runtimelinking" = yes; then
21631 shared_flag="$shared_flag "'${wl}-G'
21635 if test "$host_cpu" = ia64; then
21636 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21637 # chokes on -Wl,-G. The following line is correct:
21640 if test "$aix_use_runtimelinking" = yes; then
21641 shared_flag='${wl}-G'
21643 shared_flag='${wl}-bM:SRE'
21648 # It seems that -bexpall does not export symbols beginning with
21649 # underscore (_), so it is better to generate a list of symbols to export.
21650 always_export_symbols_F77=yes
21651 if test "$aix_use_runtimelinking" = yes; then
21652 # Warning - without using the other runtime loading flags (-brtl),
21653 # -berok will link without error, but may produce a broken library.
21654 allow_undefined_flag_F77='-berok'
21655 # Determine the default libpath from the value encoded in an empty executable.
21656 cat >conftest.$ac_ext <<_ACEOF
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (ac_try="$ac_link"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_link") 2>conftest.er1
21670 grep -v '^ *+' conftest.er1 >conftest.err
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } &&
21675 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21676 { (case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_try") 2>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } &&
21685 { ac_try='test -s conftest$ac_exeext'
21686 { (case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691 (eval "$ac_try") 2>&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; }; then
21696 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21698 # Check for a 64-bit object if we didn't find anything.
21699 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; }
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21708 rm -f core conftest.err conftest.$ac_objext \
21709 conftest$ac_exeext conftest.$ac_ext
21710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21712 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21713 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"
21715 if test "$host_cpu" = ia64; then
21716 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21717 allow_undefined_flag_F77="-z nodefs"
21718 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"
21720 # Determine the default libpath from the value encoded in an empty executable.
21721 cat >conftest.$ac_ext <<_ACEOF
21726 rm -f conftest.$ac_objext conftest$ac_exeext
21727 if { (ac_try="$ac_link"
21728 case "(($ac_try" in
21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_link") 2>conftest.er1
21735 grep -v '^ *+' conftest.er1 >conftest.err
21737 cat conftest.err >&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
21740 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21741 { (case "(($ac_try" in
21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743 *) ac_try_echo=$ac_try;;
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746 (eval "$ac_try") 2>&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; } &&
21750 { ac_try='test -s conftest$ac_exeext'
21751 { (case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_try") 2>&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; }; then
21761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21763 # Check for a 64-bit object if we didn't find anything.
21764 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; }
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21773 rm -f core conftest.err conftest.$ac_objext \
21774 conftest$ac_exeext conftest.$ac_ext
21775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21777 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21778 # Warning - without using the other run time loading flags,
21779 # -berok will link without error, but may produce a broken library.
21780 no_undefined_flag_F77=' ${wl}-bernotok'
21781 allow_undefined_flag_F77=' ${wl}-berok'
21782 # Exported symbols can be pulled into shared objects from archives
21783 whole_archive_flag_spec_F77='$convenience'
21784 archive_cmds_need_lc_F77=yes
21785 # This is similar to how AIX traditionally builds its shared libraries.
21786 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'
21792 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)'
21793 hardcode_libdir_flag_spec_F77='-L$libdir'
21794 hardcode_minus_L_F77=yes
21795 # see comment about different semantics on the GNU ld section
21800 export_dynamic_flag_spec_F77=-rdynamic
21803 cygwin* | mingw* | pw32*)
21804 # When not using gcc, we currently assume that we are using
21805 # Microsoft Visual C++.
21806 # hardcode_libdir_flag_spec is actually meaningless, as there is
21807 # no search path for DLLs.
21808 hardcode_libdir_flag_spec_F77=' '
21809 allow_undefined_flag_F77=unsupported
21810 # Tell ltmain to make .lib files, not .a files.
21812 # Tell ltmain to make .dll files, not .so files.
21814 # FIXME: Setting linknames here is a bad hack.
21815 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21816 # The linker will automatically build a .lib file if we build a DLL.
21817 old_archive_From_new_cmds_F77='true'
21818 # FIXME: Should let the user specify the lib program.
21819 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21820 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21821 enable_shared_with_static_runtimes_F77=yes
21824 darwin* | rhapsody*)
21826 rhapsody* | darwin1.[012])
21827 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21830 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21831 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21833 case ${MACOSX_DEPLOYMENT_TARGET} in
21835 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21838 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21844 archive_cmds_need_lc_F77=no
21845 hardcode_direct_F77=no
21846 hardcode_automatic_F77=yes
21847 hardcode_shlibpath_var_F77=unsupported
21848 whole_archive_flag_spec_F77=''
21849 link_all_deplibs_F77=yes
21850 if test "$GCC" = yes ; then
21851 output_verbose_link_cmd='echo'
21852 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21853 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21854 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21855 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}'
21856 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}'
21858 case $cc_basename in
21860 output_verbose_link_cmd='echo'
21861 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21862 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21863 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21864 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}'
21865 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}'
21875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21876 hardcode_libdir_flag_spec_F77='-L$libdir'
21877 hardcode_shlibpath_var_F77=no
21884 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21885 # support. Future versions do this automatically, but an explicit c++rt0.o
21886 # does not break anything, and helps significantly (at the cost of a little
21889 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21890 hardcode_libdir_flag_spec_F77='-R$libdir'
21891 hardcode_direct_F77=yes
21892 hardcode_shlibpath_var_F77=no
21895 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21897 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21898 hardcode_direct_F77=yes
21899 hardcode_minus_L_F77=yes
21900 hardcode_shlibpath_var_F77=no
21903 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21904 freebsd* | kfreebsd*-gnu | dragonfly*)
21905 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21906 hardcode_libdir_flag_spec_F77='-R$libdir'
21907 hardcode_direct_F77=yes
21908 hardcode_shlibpath_var_F77=no
21912 if test "$GCC" = yes; then
21913 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'
21915 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'
21917 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21918 hardcode_libdir_separator_F77=:
21919 hardcode_direct_F77=yes
21921 # hardcode_minus_L: Not really in the search PATH,
21922 # but as the default location of the library.
21923 hardcode_minus_L_F77=yes
21924 export_dynamic_flag_spec_F77='${wl}-E'
21928 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21929 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21931 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21933 if test "$with_gnu_ld" = no; then
21934 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21935 hardcode_libdir_separator_F77=:
21937 hardcode_direct_F77=yes
21938 export_dynamic_flag_spec_F77='${wl}-E'
21940 # hardcode_minus_L: Not really in the search PATH,
21941 # but as the default location of the library.
21942 hardcode_minus_L_F77=yes
21947 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21950 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21953 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21956 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21962 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21965 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21968 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21972 if test "$with_gnu_ld" = no; then
21973 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21974 hardcode_libdir_separator_F77=:
21978 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21979 hardcode_direct_F77=no
21980 hardcode_shlibpath_var_F77=no
21983 hardcode_direct_F77=yes
21984 export_dynamic_flag_spec_F77='${wl}-E'
21986 # hardcode_minus_L: Not really in the search PATH,
21987 # but as the default location of the library.
21988 hardcode_minus_L_F77=yes
21994 irix5* | irix6* | nonstopux*)
21995 if test "$GCC" = yes; then
21996 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'
21998 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'
21999 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22001 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22002 hardcode_libdir_separator_F77=:
22003 link_all_deplibs_F77=yes
22007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22008 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22010 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22012 hardcode_libdir_flag_spec_F77='-R$libdir'
22013 hardcode_direct_F77=yes
22014 hardcode_shlibpath_var_F77=no
22018 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22019 hardcode_direct_F77=yes
22020 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22021 hardcode_libdir_separator_F77=:
22022 hardcode_shlibpath_var_F77=no
22026 hardcode_direct_F77=yes
22027 hardcode_shlibpath_var_F77=no
22028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22029 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22030 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22031 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22032 export_dynamic_flag_spec_F77='${wl}-E'
22035 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22036 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22037 hardcode_libdir_flag_spec_F77='-R$libdir'
22040 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22041 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22048 hardcode_libdir_flag_spec_F77='-L$libdir'
22049 hardcode_minus_L_F77=yes
22050 allow_undefined_flag_F77=unsupported
22051 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'
22052 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22056 if test "$GCC" = yes; then
22057 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22058 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'
22060 allow_undefined_flag_F77=' -expect_unresolved \*'
22061 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'
22063 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22064 hardcode_libdir_separator_F77=:
22067 osf4* | osf5*) # as osf3* with the addition of -msym flag
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}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22071 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22073 allow_undefined_flag_F77=' -expect_unresolved \*'
22074 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'
22075 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~
22076 $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'
22078 # Both c and cxx compiler support -rpath directly
22079 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22081 hardcode_libdir_separator_F77=:
22085 no_undefined_flag_F77=' -z text'
22086 if test "$GCC" = yes; then
22088 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22089 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22090 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22093 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22094 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22095 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22097 hardcode_libdir_flag_spec_F77='-R$libdir'
22098 hardcode_shlibpath_var_F77=no
22100 solaris2.[0-5] | solaris2.[0-5].*) ;;
22102 # The compiler driver will combine linker options so we
22103 # cannot just pass the convience library names through
22104 # without $wl, iff we do not link with $LD.
22105 # Luckily, gcc supports the same syntax we need for Sun Studio.
22106 # Supported since Solaris 2.6 (maybe 2.5.1?)
22109 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22111 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' ;;
22114 link_all_deplibs_F77=yes
22118 if test "x$host_vendor" = xsequent; then
22119 # Use $CC to link under sequent, because it throws in some extra .o
22120 # files that make .init and .fini sections work.
22121 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22123 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22125 hardcode_libdir_flag_spec_F77='-L$libdir'
22126 hardcode_direct_F77=yes
22127 hardcode_minus_L_F77=yes
22128 hardcode_shlibpath_var_F77=no
22132 case $host_vendor in
22134 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22135 hardcode_direct_F77=yes # is this really true???
22138 ## LD is ld it makes a PLAMLIB
22139 ## CC just makes a GrossModule.
22140 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22141 reload_cmds_F77='$CC -r -o $output$reload_objs'
22142 hardcode_direct_F77=no
22145 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22146 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22149 runpath_var='LD_RUN_PATH'
22150 hardcode_shlibpath_var_F77=no
22154 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22155 hardcode_shlibpath_var_F77=no
22156 export_dynamic_flag_spec_F77='-Bexport'
22160 if test -d /usr/nec; then
22161 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22162 hardcode_shlibpath_var_F77=no
22163 runpath_var=LD_RUN_PATH
22164 hardcode_runpath_var=yes
22169 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22170 no_undefined_flag_F77='${wl}-z,text'
22171 archive_cmds_need_lc_F77=no
22172 hardcode_shlibpath_var_F77=no
22173 runpath_var='LD_RUN_PATH'
22175 if test "$GCC" = yes; then
22176 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22177 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22179 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22180 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22184 sysv5* | sco3.2v5* | sco5v6*)
22185 # Note: We can NOT use -z defs as we might desire, because we do not
22186 # link with -lc, and that would cause any symbols used from libc to
22187 # always be unresolved, which means just about no library would
22188 # ever link correctly. If we're not using GNU ld we use -z text
22189 # though, which does catch some bad symbols but isn't as heavy-handed
22191 no_undefined_flag_F77='${wl}-z,text'
22192 allow_undefined_flag_F77='${wl}-z,nodefs'
22193 archive_cmds_need_lc_F77=no
22194 hardcode_shlibpath_var_F77=no
22195 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22196 hardcode_libdir_separator_F77=':'
22197 link_all_deplibs_F77=yes
22198 export_dynamic_flag_spec_F77='${wl}-Bexport'
22199 runpath_var='LD_RUN_PATH'
22201 if test "$GCC" = yes; then
22202 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22203 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22205 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22206 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22212 hardcode_libdir_flag_spec_F77='-L$libdir'
22213 hardcode_shlibpath_var_F77=no
22222 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22223 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22224 test "$ld_shlibs_F77" = no && can_build_shared=no
22227 # Do we need to explicitly link libc?
22229 case "x$archive_cmds_need_lc_F77" in
22231 # Assume -lc should be added
22232 archive_cmds_need_lc_F77=yes
22234 if test "$enable_shared" = yes && test "$GCC" = yes; then
22235 case $archive_cmds_F77 in
22237 # FIXME: we may have to deal with multi-command sequences.
22240 # Test whether the compiler implicitly links with -lc since on some
22241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22242 # to ld, don't add -lc before -lgcc.
22243 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22244 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22249 (eval $ac_compile) 2>&5
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } 2>conftest.err; then
22255 libobjs=conftest.$ac_objext
22257 wl=$lt_prog_compiler_wl_F77
22258 pic_flag=$lt_prog_compiler_pic_F77
22264 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22265 allow_undefined_flag_F77=
22266 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22267 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); }
22272 archive_cmds_need_lc_F77=no
22274 archive_cmds_need_lc_F77=yes
22276 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22278 cat conftest.err 1>&5
22281 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22282 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22289 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22290 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22291 library_names_spec=
22292 libname_spec='lib$name'
22296 postuninstall_cmds=
22300 shlibpath_overrides_runpath=unknown
22302 dynamic_linker="$host_os ld.so"
22303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22304 if test "$GCC" = yes; then
22305 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22306 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22307 # if the path contains ";" then we assume it to be the separator
22308 # otherwise default to the standard path separator (i.e. ":") - it is
22309 # assumed that no part of a normal pathname contains ";" but that should
22310 # okay in the real world where ";" in dirpaths is itself problematic.
22311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22316 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22318 need_lib_prefix=unknown
22319 hardcode_into_libs=no
22321 # when you set need_version to no, make sure it does not cause -set_version
22322 # flags to be left without arguments
22323 need_version=unknown
22328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22329 shlibpath_var=LIBPATH
22331 # AIX 3 has no versioning support, so we append a major version to the name.
22332 soname_spec='${libname}${release}${shared_ext}$major'
22339 hardcode_into_libs=yes
22340 if test "$host_cpu" = ia64; then
22341 # AIX 5 supports IA64
22342 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22343 shlibpath_var=LD_LIBRARY_PATH
22345 # With GCC up to 2.95.x, collect2 would create an import file
22346 # for dependence libraries. The import file would start with
22347 # the line `#! .'. This would cause the generated library to
22348 # depend on `.', always an invalid library. This was fixed in
22349 # development snapshots of GCC prior to 3.0.
22351 aix4 | aix4.[01] | aix4.[01].*)
22352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22354 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22357 can_build_shared=no
22361 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22362 # soname into executable. Probably we can add versioning support to
22363 # collect2, so additional links can be useful in future.
22364 if test "$aix_use_runtimelinking" = yes; then
22365 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22366 # instead of lib<name>.a to let people know that these are not
22367 # typical AIX shared libraries.
22368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22370 # We preserve .a as extension for shared libraries through AIX4.2
22371 # and later when we are not doing run time linking.
22372 library_names_spec='${libname}${release}.a $libname.a'
22373 soname_spec='${libname}${release}${shared_ext}$major'
22375 shlibpath_var=LIBPATH
22380 library_names_spec='$libname.ixlibrary $libname.a'
22381 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22382 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'
22386 library_names_spec='${libname}${shared_ext}'
22387 dynamic_linker="$host_os ld.so"
22388 shlibpath_var=LIBRARY_PATH
22394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22395 soname_spec='${libname}${release}${shared_ext}$major'
22396 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22397 shlibpath_var=LD_LIBRARY_PATH
22398 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22399 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22400 # the default ld.so.conf also contains /usr/contrib/lib and
22401 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22402 # libtool to hard-code these into programs
22405 cygwin* | mingw* | pw32*)
22406 version_type=windows
22411 case $GCC,$host_os in
22412 yes,cygwin* | yes,mingw* | yes,pw32*)
22413 library_names_spec='$libname.dll.a'
22414 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22415 postinstall_cmds='base_file=`basename \${file}`~
22416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22417 dldir=$destdir/`dirname \$dlpath`~
22418 test -d \$dldir || mkdir -p \$dldir~
22419 $install_prog $dir/$dlname \$dldir/$dlname~
22420 chmod a+x \$dldir/$dlname'
22421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22422 dlpath=$dir/\$dldll~
22424 shlibpath_overrides_runpath=yes
22428 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22429 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22430 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22433 # MinGW DLLs use traditional 'lib' prefix
22434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22435 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22436 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22437 # It is most probably a Windows format PATH printed by
22438 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22439 # path with ; separators, and with drive letters. We can handle the
22440 # drive letters (cygwin fileutils understands them), so leave them,
22441 # especially as we might pass files found there to a mingw objdump,
22442 # which wouldn't understand a cygwinified path. Ahh.
22443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22445 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22449 # pw32 DLLs use 'pw' prefix rather than 'lib'
22450 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22456 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22459 dynamic_linker='Win32 ld.exe'
22460 # FIXME: first we should search . and the directory the executable is in
22464 darwin* | rhapsody*)
22465 dynamic_linker="$host_os dyld"
22466 version_type=darwin
22469 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22470 soname_spec='${libname}${release}${major}$shared_ext'
22471 shlibpath_overrides_runpath=yes
22472 shlibpath_var=DYLD_LIBRARY_PATH
22473 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22474 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22475 if test "$GCC" = yes; then
22476 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"`
22478 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22480 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22488 soname_spec='${libname}${release}${shared_ext}$major'
22489 shlibpath_var=LD_LIBRARY_PATH
22500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22501 soname_spec='${libname}${release}${shared_ext}$major'
22502 shlibpath_var=LD_LIBRARY_PATH
22503 shlibpath_overrides_runpath=no
22504 hardcode_into_libs=yes
22505 dynamic_linker='GNU ld.so'
22508 freebsd* | dragonfly*)
22509 # DragonFly does not have aout. When/if they implement a new
22510 # versioning mechanism, adjust this.
22511 if test -x /usr/bin/objformat; then
22512 objformat=`/usr/bin/objformat`
22515 freebsd[123]*) objformat=aout ;;
22516 *) objformat=elf ;;
22519 version_type=freebsd-$objformat
22520 case $version_type in
22522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22531 shlibpath_var=LD_LIBRARY_PATH
22534 shlibpath_overrides_runpath=yes
22536 freebsd3.[01]* | freebsdelf3.[01]*)
22537 shlibpath_overrides_runpath=yes
22538 hardcode_into_libs=yes
22540 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22541 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22542 shlibpath_overrides_runpath=no
22543 hardcode_into_libs=yes
22545 freebsd*) # from 4.6 on
22546 shlibpath_overrides_runpath=yes
22547 hardcode_into_libs=yes
22556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22557 soname_spec='${libname}${release}${shared_ext}$major'
22558 shlibpath_var=LD_LIBRARY_PATH
22559 hardcode_into_libs=yes
22562 hpux9* | hpux10* | hpux11*)
22563 # Give a soname corresponding to the major version so that dld.sl refuses to
22564 # link against other versions.
22571 hardcode_into_libs=yes
22572 dynamic_linker="$host_os dld.so"
22573 shlibpath_var=LD_LIBRARY_PATH
22574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22576 soname_spec='${libname}${release}${shared_ext}$major'
22577 if test "X$HPUX_IA64_MODE" = X32; then
22578 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22580 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22586 hardcode_into_libs=yes
22587 dynamic_linker="$host_os dld.sl"
22588 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22591 soname_spec='${libname}${release}${shared_ext}$major'
22592 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22597 dynamic_linker="$host_os dld.sl"
22598 shlibpath_var=SHLIB_PATH
22599 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22601 soname_spec='${libname}${release}${shared_ext}$major'
22604 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22605 postinstall_cmds='chmod 555 $lib'
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'
22614 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22615 shlibpath_var=LD_LIBRARY_PATH
22616 shlibpath_overrides_runpath=no
22617 hardcode_into_libs=yes
22620 irix5* | irix6* | nonstopux*)
22622 nonstopux*) version_type=nonstopux ;;
22624 if test "$lt_cv_prog_gnu_ld" = yes; then
22632 soname_spec='${libname}${release}${shared_ext}$major'
22633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22635 irix5* | nonstopux*)
22636 libsuff= shlibsuff=
22639 case $LD in # libtool.m4 will add one of these switches to LD
22640 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22641 libsuff= shlibsuff= libmagic=32-bit;;
22642 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22643 libsuff=32 shlibsuff=N32 libmagic=N32;;
22644 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22645 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22646 *) libsuff= shlibsuff= libmagic=never-match;;
22650 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22651 shlibpath_overrides_runpath=no
22652 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22653 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22654 hardcode_into_libs=yes
22657 # No shared lib support for Linux oldld, aout, or coff.
22658 linux*oldld* | linux*aout* | linux*coff*)
22662 # This must be Linux ELF.
22667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22668 soname_spec='${libname}${release}${shared_ext}$major'
22669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22670 shlibpath_var=LD_LIBRARY_PATH
22671 shlibpath_overrides_runpath=no
22672 # This implies no fast_install, which is unacceptable.
22673 # Some rework will be needed to allow for fast_install
22674 # before this can be enabled.
22675 hardcode_into_libs=yes
22677 # Append ld.so.conf contents to the search path
22678 if test -f /etc/ld.so.conf; then
22679 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' ' '`
22680 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22683 # We used to test for /lib/ld.so.1 and disable shared libraries on
22684 # powerpc, because MkLinux only supported shared libraries with the
22685 # GNU dynamic linker. Since this was broken with cross compilers,
22686 # most powerpc-linux boxes support dynamic linking these days and
22687 # people can always --disable-shared, the test was removed, and we
22688 # assume the GNU/Linux dynamic linker is in use.
22689 dynamic_linker='GNU/Linux ld.so'
22696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22697 soname_spec='${libname}${release}${shared_ext}$major'
22698 shlibpath_var=LD_LIBRARY_PATH
22699 shlibpath_overrides_runpath=no
22700 hardcode_into_libs=yes
22701 dynamic_linker='GNU ld.so'
22708 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22711 dynamic_linker='NetBSD (a.out) ld.so'
22713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22714 soname_spec='${libname}${release}${shared_ext}$major'
22715 dynamic_linker='NetBSD ld.elf_so'
22717 shlibpath_var=LD_LIBRARY_PATH
22718 shlibpath_overrides_runpath=yes
22719 hardcode_into_libs=yes
22724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22725 shlibpath_var=LD_LIBRARY_PATH
22726 shlibpath_overrides_runpath=yes
22733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22734 soname_spec='${libname}${release}${shared_ext}$major'
22735 shlibpath_var=LD_LIBRARY_PATH
22736 shlibpath_overrides_runpath=yes
22741 sys_lib_dlsearch_path_spec="/usr/lib"
22743 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22745 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22746 *) need_version=no ;;
22748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22750 shlibpath_var=LD_LIBRARY_PATH
22751 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22753 openbsd2.[89] | openbsd2.[89].*)
22754 shlibpath_overrides_runpath=no
22757 shlibpath_overrides_runpath=yes
22761 shlibpath_overrides_runpath=yes
22766 libname_spec='$name'
22769 library_names_spec='$libname${shared_ext} $libname.a'
22770 dynamic_linker='OS/2 ld.exe'
22771 shlibpath_var=LIBPATH
22774 osf3* | osf4* | osf5*)
22778 soname_spec='${libname}${release}${shared_ext}$major'
22779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22780 shlibpath_var=LD_LIBRARY_PATH
22781 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22782 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22790 soname_spec='${libname}${release}${shared_ext}$major'
22791 shlibpath_var=LD_LIBRARY_PATH
22792 shlibpath_overrides_runpath=yes
22793 hardcode_into_libs=yes
22794 # ldd complains unless libraries are executable
22795 postinstall_cmds='chmod +x $lib'
22800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22802 shlibpath_var=LD_LIBRARY_PATH
22803 shlibpath_overrides_runpath=yes
22804 if test "$with_gnu_ld" = yes; then
22812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22813 soname_spec='${libname}${release}${shared_ext}$major'
22814 shlibpath_var=LD_LIBRARY_PATH
22815 case $host_vendor in
22817 shlibpath_overrides_runpath=no
22819 export_dynamic_flag_spec='${wl}-Blargedynsym'
22820 runpath_var=LD_RUN_PATH
22828 shlibpath_overrides_runpath=no
22829 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22835 if test -d /usr/nec ;then
22837 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22838 soname_spec='$libname${shared_ext}.$major'
22839 shlibpath_var=LD_LIBRARY_PATH
22843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22844 version_type=freebsd-elf
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22848 soname_spec='${libname}${release}${shared_ext}$major'
22849 shlibpath_var=LD_LIBRARY_PATH
22850 hardcode_into_libs=yes
22851 if test "$with_gnu_ld" = yes; then
22852 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22853 shlibpath_overrides_runpath=no
22855 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22856 shlibpath_overrides_runpath=yes
22859 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22863 sys_lib_dlsearch_path_spec='/usr/lib'
22868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22869 soname_spec='${libname}${release}${shared_ext}$major'
22870 shlibpath_var=LD_LIBRARY_PATH
22877 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22878 echo "${ECHO_T}$dynamic_linker" >&6; }
22879 test "$dynamic_linker" = no && can_build_shared=no
22881 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22882 if test "$GCC" = yes; then
22883 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22886 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22887 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22888 hardcode_action_F77=
22889 if test -n "$hardcode_libdir_flag_spec_F77" || \
22890 test -n "$runpath_var_F77" || \
22891 test "X$hardcode_automatic_F77" = "Xyes" ; then
22893 # We can hardcode non-existant directories.
22894 if test "$hardcode_direct_F77" != no &&
22895 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22896 # have to relink, otherwise we might link with an installed library
22897 # when we should be linking with a yet-to-be-installed one
22898 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22899 test "$hardcode_minus_L_F77" != no; then
22900 # Linking always hardcodes the temporary library directory.
22901 hardcode_action_F77=relink
22903 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22904 hardcode_action_F77=immediate
22907 # We cannot hardcode anything, or else we can only hardcode existing
22909 hardcode_action_F77=unsupported
22911 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22912 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22914 if test "$hardcode_action_F77" = relink; then
22915 # Fast installation is not supported
22916 enable_fast_install=no
22917 elif test "$shlibpath_overrides_runpath" = yes ||
22918 test "$enable_shared" = no; then
22919 # Fast installation is not necessary
22920 enable_fast_install=needless
22924 # The else clause should only fire when bootstrapping the
22925 # libtool distribution, otherwise you forgot to ship ltmain.sh
22926 # with your package, and you will get complaints that there are
22927 # no rules to generate ltmain.sh.
22928 if test -f "$ltmain"; then
22929 # See if we are running on zsh, and set the options which allow our commands through
22930 # without removal of \ escapes.
22931 if test -n "${ZSH_VERSION+set}" ; then
22932 setopt NO_GLOB_SUBST
22934 # Now quote all the things that may contain metacharacters while being
22935 # careful not to overquote the AC_SUBSTed values. We take copies of the
22936 # variables and quote the copies for generation of the libtool script.
22937 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22939 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22940 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22941 deplibs_check_method reload_flag reload_cmds need_locks \
22942 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22943 lt_cv_sys_global_symbol_to_c_name_address \
22944 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22945 old_postinstall_cmds old_postuninstall_cmds \
22949 lt_prog_compiler_wl_F77 \
22950 lt_prog_compiler_pic_F77 \
22951 lt_prog_compiler_static_F77 \
22952 lt_prog_compiler_no_builtin_flag_F77 \
22953 export_dynamic_flag_spec_F77 \
22954 thread_safe_flag_spec_F77 \
22955 whole_archive_flag_spec_F77 \
22956 enable_shared_with_static_runtimes_F77 \
22957 old_archive_cmds_F77 \
22958 old_archive_from_new_cmds_F77 \
22959 predep_objects_F77 \
22960 postdep_objects_F77 \
22963 compiler_lib_search_path_F77 \
22965 archive_expsym_cmds_F77 \
22966 postinstall_cmds_F77 \
22967 postuninstall_cmds_F77 \
22968 old_archive_from_expsyms_cmds_F77 \
22969 allow_undefined_flag_F77 \
22970 no_undefined_flag_F77 \
22971 export_symbols_cmds_F77 \
22972 hardcode_libdir_flag_spec_F77 \
22973 hardcode_libdir_flag_spec_ld_F77 \
22974 hardcode_libdir_separator_F77 \
22975 hardcode_automatic_F77 \
22977 module_expsym_cmds_F77 \
22978 lt_cv_prog_compiler_c_o_F77 \
22979 exclude_expsyms_F77 \
22980 include_expsyms_F77; do
22983 old_archive_cmds_F77 | \
22984 old_archive_from_new_cmds_F77 | \
22985 archive_cmds_F77 | \
22986 archive_expsym_cmds_F77 | \
22987 module_cmds_F77 | \
22988 module_expsym_cmds_F77 | \
22989 old_archive_from_expsyms_cmds_F77 | \
22990 export_symbols_cmds_F77 | \
22991 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22992 postinstall_cmds | postuninstall_cmds | \
22993 old_postinstall_cmds | old_postuninstall_cmds | \
22994 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22995 # Double-quote double-evaled strings.
22996 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22999 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23005 *'\$0 --fallback-echo"')
23006 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23012 cat <<__EOF__ >> "$cfgfile"
23013 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23015 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23017 # Shell to use when invoking shell scripts.
23020 # Whether or not to build shared libraries.
23021 build_libtool_libs=$enable_shared
23023 # Whether or not to build static libraries.
23024 build_old_libs=$enable_static
23026 # Whether or not to add -lc for building shared libraries.
23027 build_libtool_need_lc=$archive_cmds_need_lc_F77
23029 # Whether or not to disallow shared libs when runtime libs are static
23030 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23032 # Whether or not to optimize for fast installation.
23033 fast_install=$enable_fast_install
23036 host_alias=$host_alias
23040 # The build system.
23041 build_alias=$build_alias
23045 # An echo program that does not interpret backslashes.
23050 AR_FLAGS=$lt_AR_FLAGS
23055 # LTCC compiler flags.
23056 LTCFLAGS=$lt_LTCFLAGS
23058 # A language-specific compiler.
23059 CC=$lt_compiler_F77
23061 # Is the compiler the GNU C compiler?
23067 # The linker used to build libraries.
23070 # Whether we need hard or soft links.
23073 # A BSD-compatible nm program.
23076 # A symbol stripping program
23079 # Used to examine libraries when file_magic_cmd begins "file"
23080 MAGIC_CMD=$MAGIC_CMD
23082 # Used on cygwin: DLL creation program.
23085 # Used on cygwin: object dumper.
23088 # Used on cygwin: assembler.
23091 # The name of the directory that contains temporary libtool files.
23094 # How to create reloadable object files.
23095 reload_flag=$lt_reload_flag
23096 reload_cmds=$lt_reload_cmds
23098 # How to pass a linker flag through the compiler.
23099 wl=$lt_lt_prog_compiler_wl_F77
23101 # Object file suffix (normally "o").
23102 objext="$ac_objext"
23104 # Old archive suffix (normally "a").
23107 # Shared library suffix (normally ".so").
23108 shrext_cmds='$shrext_cmds'
23110 # Executable file suffix (normally "").
23113 # Additional compiler flags for building library objects.
23114 pic_flag=$lt_lt_prog_compiler_pic_F77
23117 # What is the maximum length of a command?
23118 max_cmd_len=$lt_cv_sys_max_cmd_len
23120 # Does compiler simultaneously support -c and -o options?
23121 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23123 # Must we lock files when doing compilation?
23124 need_locks=$lt_need_locks
23126 # Do we need the lib prefix for modules?
23127 need_lib_prefix=$need_lib_prefix
23129 # Do we need a version for libraries?
23130 need_version=$need_version
23132 # Whether dlopen is supported.
23133 dlopen_support=$enable_dlopen
23135 # Whether dlopen of programs is supported.
23136 dlopen_self=$enable_dlopen_self
23138 # Whether dlopen of statically linked programs is supported.
23139 dlopen_self_static=$enable_dlopen_self_static
23141 # Compiler flag to prevent dynamic linking.
23142 link_static_flag=$lt_lt_prog_compiler_static_F77
23144 # Compiler flag to turn off builtin functions.
23145 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23147 # Compiler flag to allow reflexive dlopens.
23148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23150 # Compiler flag to generate shared objects directly from archives.
23151 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23153 # Compiler flag to generate thread-safe objects.
23154 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23156 # Library versioning type.
23157 version_type=$version_type
23159 # Format of library name prefix.
23160 libname_spec=$lt_libname_spec
23162 # List of archive names. First name is the real one, the rest are links.
23163 # The last name is the one that the linker finds with -lNAME.
23164 library_names_spec=$lt_library_names_spec
23166 # The coded name of the library, if different from the real name.
23167 soname_spec=$lt_soname_spec
23169 # Commands used to build and install an old-style archive.
23171 old_archive_cmds=$lt_old_archive_cmds_F77
23172 old_postinstall_cmds=$lt_old_postinstall_cmds
23173 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23175 # Create an old-style archive from a shared archive.
23176 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23178 # Create a temporary old-style archive to link instead of a shared archive.
23179 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23181 # Commands used to build and install a shared archive.
23182 archive_cmds=$lt_archive_cmds_F77
23183 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23184 postinstall_cmds=$lt_postinstall_cmds
23185 postuninstall_cmds=$lt_postuninstall_cmds
23187 # Commands used to build a loadable module (assumed same as above if empty)
23188 module_cmds=$lt_module_cmds_F77
23189 module_expsym_cmds=$lt_module_expsym_cmds_F77
23191 # Commands to strip libraries.
23192 old_striplib=$lt_old_striplib
23193 striplib=$lt_striplib
23195 # Dependencies to place before the objects being linked to create a
23197 predep_objects=$lt_predep_objects_F77
23199 # Dependencies to place after the objects being linked to create a
23201 postdep_objects=$lt_postdep_objects_F77
23203 # Dependencies to place before the objects being linked to create a
23205 predeps=$lt_predeps_F77
23207 # Dependencies to place after the objects being linked to create a
23209 postdeps=$lt_postdeps_F77
23211 # The library search path used internally by the compiler when linking
23212 # a shared library.
23213 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23215 # Method to check whether dependent libraries are shared objects.
23216 deplibs_check_method=$lt_deplibs_check_method
23218 # Command to use when deplibs_check_method == file_magic.
23219 file_magic_cmd=$lt_file_magic_cmd
23221 # Flag that allows shared libraries with undefined symbols to be built.
23222 allow_undefined_flag=$lt_allow_undefined_flag_F77
23224 # Flag that forces no undefined symbols.
23225 no_undefined_flag=$lt_no_undefined_flag_F77
23227 # Commands used to finish a libtool library installation in a directory.
23228 finish_cmds=$lt_finish_cmds
23230 # Same as above, but a single script fragment to be evaled but not shown.
23231 finish_eval=$lt_finish_eval
23233 # Take the output of nm and produce a listing of raw symbols and C names.
23234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23236 # Transform the output of nm in a proper C declaration
23237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23239 # Transform the output of nm in a C name address pair
23240 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23242 # This is the shared library runtime path variable.
23243 runpath_var=$runpath_var
23245 # This is the shared library path variable.
23246 shlibpath_var=$shlibpath_var
23248 # Is shlibpath searched before the hard-coded library search path?
23249 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23251 # How to hardcode a shared library path into an executable.
23252 hardcode_action=$hardcode_action_F77
23254 # Whether we should hardcode library paths into libraries.
23255 hardcode_into_libs=$hardcode_into_libs
23257 # Flag to hardcode \$libdir into a binary during linking.
23258 # This must work even if \$libdir does not exist.
23259 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23261 # If ld is used when linking, flag to hardcode \$libdir into
23262 # a binary during linking. This must work even if \$libdir does
23264 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23266 # Whether we need a single -rpath flag with a separated argument.
23267 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23269 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23270 # resulting binary.
23271 hardcode_direct=$hardcode_direct_F77
23273 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23274 # resulting binary.
23275 hardcode_minus_L=$hardcode_minus_L_F77
23277 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23278 # the resulting binary.
23279 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23281 # Set to yes if building a shared library automatically hardcodes DIR into the library
23282 # and all subsequent libraries and executables linked against it.
23283 hardcode_automatic=$hardcode_automatic_F77
23285 # Variables whose values should be saved in libtool wrapper scripts and
23286 # restored at relink time.
23287 variables_saved_for_relink="$variables_saved_for_relink"
23289 # Whether libtool must link a program against all its dependency libraries.
23290 link_all_deplibs=$link_all_deplibs_F77
23292 # Compile-time system search path for libraries
23293 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23295 # Run-time system search path for libraries
23296 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23298 # Fix the shell variable \$srcfile for the compiler.
23299 fix_srcfile_path="$fix_srcfile_path_F77"
23301 # Set to yes if exported symbols are required.
23302 always_export_symbols=$always_export_symbols_F77
23304 # The commands to list exported symbols.
23305 export_symbols_cmds=$lt_export_symbols_cmds_F77
23307 # The commands to extract the exported symbol list from a shared archive.
23308 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23310 # Symbols that should not be listed in the preloaded symbols.
23311 exclude_expsyms=$lt_exclude_expsyms_F77
23313 # Symbols that must always be exported.
23314 include_expsyms=$lt_include_expsyms_F77
23316 # ### END LIBTOOL TAG CONFIG: $tagname
23322 # If there is no Makefile yet, we rely on a make rule to execute
23323 # `config.status --recheck' to rerun these tests and create the
23324 # libtool script then.
23325 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23326 if test -f "$ltmain_in"; then
23327 test -f Makefile && make "$ltmain"
23333 ac_cpp='$CPP $CPPFLAGS'
23334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23346 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23348 ac_cpp='$CPP $CPPFLAGS'
23349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23354 # Source file extension for Java test sources.
23357 # Object file extension for compiled Java test sources.
23361 # Code to be used in simple compile tests
23362 lt_simple_compile_test_code="class foo {}\n"
23364 # Code to be used in simple link tests
23365 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23367 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23369 # If no C compiler was specified, use CC.
23372 # If no C compiler flags were specified, use CFLAGS.
23373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23375 # Allow CC to be a program name with arguments.
23379 # save warnings/boilerplate of simple test code
23380 ac_outfile=conftest.$ac_objext
23381 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23382 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23383 _lt_compiler_boilerplate=`cat conftest.err`
23386 ac_outfile=conftest.$ac_objext
23387 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23388 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23389 _lt_linker_boilerplate=`cat conftest.err`
23393 # Allow CC to be a program name with arguments.
23398 for cc_temp in $compiler""; do
23400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23406 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23409 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23410 archive_cmds_need_lc_GCJ=no
23412 old_archive_cmds_GCJ=$old_archive_cmds
23415 lt_prog_compiler_no_builtin_flag_GCJ=
23417 if test "$GCC" = yes; then
23418 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23421 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23422 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23423 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23424 echo $ECHO_N "(cached) $ECHO_C" >&6
23426 lt_cv_prog_compiler_rtti_exceptions=no
23427 ac_outfile=conftest.$ac_objext
23428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23429 lt_compiler_flag="-fno-rtti -fno-exceptions"
23430 # Insert the option either (1) after the last *FLAGS variable, or
23431 # (2) before a word containing "conftest.", or (3) at the end.
23432 # Note that $ac_compile itself does not contain backslashes and begins
23433 # with a dollar sign (not a hyphen), so the echo should work correctly.
23434 # The option is referenced via a variable to avoid confusing sed.
23435 lt_compile=`echo "$ac_compile" | $SED \
23436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23438 -e 's:$: $lt_compiler_flag:'`
23439 (eval echo "\"\$as_me:23439: $lt_compile\"" >&5)
23440 (eval "$lt_compile" 2>conftest.err)
23442 cat conftest.err >&5
23443 echo "$as_me:23443: \$? = $ac_status" >&5
23444 if (exit $ac_status) && test -s "$ac_outfile"; then
23445 # The compiler can only warn and ignore the option if not recognized
23446 # So say no if there are warnings other than the usual output.
23447 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23450 lt_cv_prog_compiler_rtti_exceptions=yes
23456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23457 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23459 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23460 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23467 lt_prog_compiler_wl_GCJ=
23468 lt_prog_compiler_pic_GCJ=
23469 lt_prog_compiler_static_GCJ=
23471 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23472 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23474 if test "$GCC" = yes; then
23475 lt_prog_compiler_wl_GCJ='-Wl,'
23476 lt_prog_compiler_static_GCJ='-static'
23480 # All AIX code is PIC.
23481 if test "$host_cpu" = ia64; then
23482 # AIX 5 now supports IA64 processor
23483 lt_prog_compiler_static_GCJ='-Bstatic'
23488 # FIXME: we need at least 68020 code to build shared libraries, but
23489 # adding the `-m68020' flag to GCC prevents building anything better,
23491 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23494 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23495 # PIC is the default for these OSes.
23498 mingw* | pw32* | os2*)
23499 # This hack is so that the source file can tell whether it is being
23500 # built for inclusion in a dll (and should export symbols for example).
23501 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23504 darwin* | rhapsody*)
23505 # PIC is the default on this platform
23506 # Common symbols not allowed in MH_DYLIB files
23507 lt_prog_compiler_pic_GCJ='-fno-common'
23511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23512 # Instead, we relocate shared libraries at runtime.
23516 # Just because we use GCC doesn't mean we suddenly get shared libraries
23517 # on systems that don't support them.
23518 lt_prog_compiler_can_build_shared_GCJ=no
23523 if test -d /usr/nec; then
23524 lt_prog_compiler_pic_GCJ=-Kconform_pic
23529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23530 # not for PA HP-UX.
23536 lt_prog_compiler_pic_GCJ='-fPIC'
23542 lt_prog_compiler_pic_GCJ='-fPIC'
23546 # PORTME Check for flag to pass linker flags through the system compiler.
23549 lt_prog_compiler_wl_GCJ='-Wl,'
23550 if test "$host_cpu" = ia64; then
23551 # AIX 5 now supports IA64 processor
23552 lt_prog_compiler_static_GCJ='-Bstatic'
23554 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23558 # PIC is the default on this platform
23559 # Common symbols not allowed in MH_DYLIB files
23560 case $cc_basename in
23562 lt_prog_compiler_pic_GCJ='-qnocommon'
23563 lt_prog_compiler_wl_GCJ='-Wl,'
23568 mingw* | pw32* | os2*)
23569 # This hack is so that the source file can tell whether it is being
23570 # built for inclusion in a dll (and should export symbols for example).
23571 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23574 hpux9* | hpux10* | hpux11*)
23575 lt_prog_compiler_wl_GCJ='-Wl,'
23576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23577 # not for PA HP-UX.
23583 lt_prog_compiler_pic_GCJ='+Z'
23586 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23587 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23590 irix5* | irix6* | nonstopux*)
23591 lt_prog_compiler_wl_GCJ='-Wl,'
23592 # PIC (with -KPIC) is the default.
23593 lt_prog_compiler_static_GCJ='-non_shared'
23597 lt_prog_compiler_pic_GCJ='-KPIC'
23598 lt_prog_compiler_static_GCJ='-Bstatic'
23602 case $cc_basename in
23604 lt_prog_compiler_wl_GCJ='-Wl,'
23605 lt_prog_compiler_pic_GCJ='-KPIC'
23606 lt_prog_compiler_static_GCJ='-static'
23608 pgcc* | pgf77* | pgf90* | pgf95*)
23609 # Portland Group compilers (*not* the Pentium gcc compiler,
23610 # which looks to be a dead project)
23611 lt_prog_compiler_wl_GCJ='-Wl,'
23612 lt_prog_compiler_pic_GCJ='-fpic'
23613 lt_prog_compiler_static_GCJ='-Bstatic'
23616 lt_prog_compiler_wl_GCJ='-Wl,'
23617 # All Alpha code is PIC.
23618 lt_prog_compiler_static_GCJ='-non_shared'
23623 osf3* | osf4* | osf5*)
23624 lt_prog_compiler_wl_GCJ='-Wl,'
23625 # All OSF/1 code is PIC.
23626 lt_prog_compiler_static_GCJ='-non_shared'
23630 lt_prog_compiler_pic_GCJ='-KPIC'
23631 lt_prog_compiler_static_GCJ='-Bstatic'
23632 case $cc_basename in
23633 f77* | f90* | f95*)
23634 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23636 lt_prog_compiler_wl_GCJ='-Wl,';;
23641 lt_prog_compiler_wl_GCJ='-Qoption ld '
23642 lt_prog_compiler_pic_GCJ='-PIC'
23643 lt_prog_compiler_static_GCJ='-Bstatic'
23646 sysv4 | sysv4.2uw2* | sysv4.3*)
23647 lt_prog_compiler_wl_GCJ='-Wl,'
23648 lt_prog_compiler_pic_GCJ='-KPIC'
23649 lt_prog_compiler_static_GCJ='-Bstatic'
23653 if test -d /usr/nec ;then
23654 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23655 lt_prog_compiler_static_GCJ='-Bstatic'
23659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23660 lt_prog_compiler_wl_GCJ='-Wl,'
23661 lt_prog_compiler_pic_GCJ='-KPIC'
23662 lt_prog_compiler_static_GCJ='-Bstatic'
23666 lt_prog_compiler_wl_GCJ='-Wl,'
23667 lt_prog_compiler_can_build_shared_GCJ=no
23671 lt_prog_compiler_pic_GCJ='-pic'
23672 lt_prog_compiler_static_GCJ='-Bstatic'
23676 lt_prog_compiler_can_build_shared_GCJ=no
23681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23682 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23685 # Check to make sure the PIC flag actually works.
23687 if test -n "$lt_prog_compiler_pic_GCJ"; then
23689 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23690 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23691 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23692 echo $ECHO_N "(cached) $ECHO_C" >&6
23694 lt_prog_compiler_pic_works_GCJ=no
23695 ac_outfile=conftest.$ac_objext
23696 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23697 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23698 # Insert the option either (1) after the last *FLAGS variable, or
23699 # (2) before a word containing "conftest.", or (3) at the end.
23700 # Note that $ac_compile itself does not contain backslashes and begins
23701 # with a dollar sign (not a hyphen), so the echo should work correctly.
23702 # The option is referenced via a variable to avoid confusing sed.
23703 lt_compile=`echo "$ac_compile" | $SED \
23704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23706 -e 's:$: $lt_compiler_flag:'`
23707 (eval echo "\"\$as_me:23707: $lt_compile\"" >&5)
23708 (eval "$lt_compile" 2>conftest.err)
23710 cat conftest.err >&5
23711 echo "$as_me:23711: \$? = $ac_status" >&5
23712 if (exit $ac_status) && test -s "$ac_outfile"; then
23713 # The compiler can only warn and ignore the option if not recognized
23714 # So say no if there are warnings other than the usual output.
23715 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23718 lt_prog_compiler_pic_works_GCJ=yes
23724 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23725 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23727 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23728 case $lt_prog_compiler_pic_GCJ in
23730 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23733 lt_prog_compiler_pic_GCJ=
23734 lt_prog_compiler_can_build_shared_GCJ=no
23739 # For platforms which do not support PIC, -DPIC is meaningless:
23741 lt_prog_compiler_pic_GCJ=
23744 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23749 # Check to make sure the static flag actually works.
23751 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23752 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23753 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23754 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23755 echo $ECHO_N "(cached) $ECHO_C" >&6
23757 lt_prog_compiler_static_works_GCJ=no
23758 save_LDFLAGS="$LDFLAGS"
23759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23760 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23762 # The linker can only warn and ignore the option if not recognized
23763 # So say no if there are warnings
23764 if test -s conftest.err; then
23765 # Append any errors to the config.log.
23766 cat conftest.err 1>&5
23767 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23769 if diff conftest.exp conftest.er2 >/dev/null; then
23770 lt_prog_compiler_static_works_GCJ=yes
23773 lt_prog_compiler_static_works_GCJ=yes
23777 LDFLAGS="$save_LDFLAGS"
23780 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23781 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23783 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23786 lt_prog_compiler_static_GCJ=
23790 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23792 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23793 echo $ECHO_N "(cached) $ECHO_C" >&6
23795 lt_cv_prog_compiler_c_o_GCJ=no
23796 $rm -r conftest 2>/dev/null
23800 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23802 lt_compiler_flag="-o out/conftest2.$ac_objext"
23803 # Insert the option either (1) after the last *FLAGS variable, or
23804 # (2) before a word containing "conftest.", or (3) at the end.
23805 # Note that $ac_compile itself does not contain backslashes and begins
23806 # with a dollar sign (not a hyphen), so the echo should work correctly.
23807 lt_compile=`echo "$ac_compile" | $SED \
23808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23810 -e 's:$: $lt_compiler_flag:'`
23811 (eval echo "\"\$as_me:23811: $lt_compile\"" >&5)
23812 (eval "$lt_compile" 2>out/conftest.err)
23814 cat out/conftest.err >&5
23815 echo "$as_me:23815: \$? = $ac_status" >&5
23816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23818 # The compiler can only warn and ignore the option if not recognized
23819 # So say no if there are warnings
23820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23823 lt_cv_prog_compiler_c_o_GCJ=yes
23828 # SGI C++ compiler will create directory out/ii_files/ for
23829 # template instantiation
23830 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23831 $rm out/* && rmdir out
23837 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23838 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23841 hard_links="nottested"
23842 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23843 # do not overwrite the value of need_locks provided by the user
23844 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23845 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23850 ln conftest.a conftest.b 2>&5 || hard_links=no
23851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23852 { echo "$as_me:$LINENO: result: $hard_links" >&5
23853 echo "${ECHO_T}$hard_links" >&6; }
23854 if test "$hard_links" = no; then
23855 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23856 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23863 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23864 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23867 allow_undefined_flag_GCJ=
23868 enable_shared_with_static_runtimes_GCJ=no
23870 archive_expsym_cmds_GCJ=
23871 old_archive_From_new_cmds_GCJ=
23872 old_archive_from_expsyms_cmds_GCJ=
23873 export_dynamic_flag_spec_GCJ=
23874 whole_archive_flag_spec_GCJ=
23875 thread_safe_flag_spec_GCJ=
23876 hardcode_libdir_flag_spec_GCJ=
23877 hardcode_libdir_flag_spec_ld_GCJ=
23878 hardcode_libdir_separator_GCJ=
23879 hardcode_direct_GCJ=no
23880 hardcode_minus_L_GCJ=no
23881 hardcode_shlibpath_var_GCJ=unsupported
23882 link_all_deplibs_GCJ=unknown
23883 hardcode_automatic_GCJ=no
23885 module_expsym_cmds_GCJ=
23886 always_export_symbols_GCJ=no
23887 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23888 # include_expsyms should be a list of space-separated symbols to be *always*
23889 # included in the symbol list
23890 include_expsyms_GCJ=
23891 # exclude_expsyms can be an extended regexp of symbols to exclude
23892 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23893 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23894 # as well as any symbol that contains `d'.
23895 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23896 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23897 # platforms (ab)use it in PIC code, but their linkers get confused if
23898 # the symbol is explicitly referenced. Since portable code cannot
23899 # rely on this symbol name, it's probably fine to never include it in
23900 # preloaded symbol tables.
23901 extract_expsyms_cmds=
23902 # Just being paranoid about ensuring that cc_basename is set.
23903 for cc_temp in $compiler""; do
23905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23911 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23914 cygwin* | mingw* | pw32*)
23915 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23916 # When not using gcc, we currently assume that we are using
23917 # Microsoft Visual C++.
23918 if test "$GCC" != yes; then
23923 # we just hope/assume this is gcc and not c89 (= MSVC++)
23932 if test "$with_gnu_ld" = yes; then
23933 # If archive_cmds runs LD, not CC, wlarc should be empty
23936 # Set some defaults for GNU ld with shared library support. These
23937 # are reset later if shared libraries are not supported. Putting them
23938 # here allows them to be overridden if necessary.
23939 runpath_var=LD_RUN_PATH
23940 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23941 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23942 # ancient GNU ld didn't support --whole-archive et. al.
23943 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23944 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23946 whole_archive_flag_spec_GCJ=
23948 supports_anon_versioning=no
23949 case `$LD -v 2>/dev/null` in
23950 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23953 *\ 2.11.*) ;; # other 2.11 versions
23954 *) supports_anon_versioning=yes ;;
23957 # See if GNU ld supports shared libraries.
23959 aix3* | aix4* | aix5*)
23960 # On AIX/PPC, the GNU linker is very broken
23961 if test "$host_cpu" != ia64; then
23965 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23966 *** to be unable to reliably create shared libraries on AIX.
23967 *** Therefore, libtool is disabling shared libraries support. If you
23968 *** really care for shared libraries, you may want to modify your PATH
23969 *** so that a non-GNU linker is found, and then restart.
23976 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)'
23977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23978 hardcode_minus_L_GCJ=yes
23980 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23981 # that the semantics of dynamic libraries on AmigaOS, at least up
23982 # to version 4, is to share data among multiple programs linked
23983 # with the same dynamic library. Since this doesn't match the
23984 # behavior of shared libraries on other platforms, we can't use
23990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23991 allow_undefined_flag_GCJ=unsupported
23992 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23993 # support --undefined. This deserves some investigation. FIXME
23994 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24000 cygwin* | mingw* | pw32*)
24001 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24002 # as there is no search path for DLLs.
24003 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24004 allow_undefined_flag_GCJ=unsupported
24005 always_export_symbols_GCJ=no
24006 enable_shared_with_static_runtimes_GCJ=yes
24007 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24009 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24010 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24011 # If the export-symbols file already is a .def file (1st line
24012 # is EXPORTS), use it as is; otherwise, prepend...
24013 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24014 cp $export_symbols $output_objdir/$soname.def;
24016 echo EXPORTS > $output_objdir/$soname.def;
24017 cat $export_symbols >> $output_objdir/$soname.def;
24019 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24026 hardcode_direct_GCJ=no
24027 hardcode_shlibpath_var_GCJ=no
24028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24029 export_dynamic_flag_spec_GCJ='${wl}-E'
24030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24031 # Instead, shared libraries are loaded at an image base (0x10000000 by
24032 # default) and relocated if they conflict, which is a slow very memory
24033 # consuming and fragmenting process. To avoid this, we pick a random,
24034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24035 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24036 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'
24037 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'
24041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24043 case $cc_basename,$host_cpu in
24044 pgcc*) # Portland Group C compiler
24045 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'
24046 tmp_addflag=' $pic_flag'
24048 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24049 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'
24050 tmp_addflag=' $pic_flag -Mnomain' ;;
24051 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24052 tmp_addflag=' -i_dynamic' ;;
24053 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24054 tmp_addflag=' -i_dynamic -nofor_main' ;;
24055 ifc* | ifort*) # Intel Fortran compiler
24056 tmp_addflag=' -nofor_main' ;;
24058 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24060 if test $supports_anon_versioning = yes; then
24061 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24063 $echo "local: *; };" >> $output_objdir/$libname.ver~
24064 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24073 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24076 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24077 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24082 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24086 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24087 *** create shared libraries on Solaris systems. Therefore, libtool
24088 *** is disabling shared libraries support. We urge you to upgrade GNU
24089 *** binutils to release 2.9.1 or newer. Another option is to modify
24090 *** your PATH or compiler configuration so that the native linker is
24091 *** used, and then restart.
24094 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24095 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24096 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24103 case `$LD -v 2>&1` in
24104 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24108 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24109 *** reliably create shared libraries on SCO systems. Therefore, libtool
24110 *** is disabling shared libraries support. We urge you to upgrade GNU
24111 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24112 *** your PATH or compiler configuration so that the native linker is
24113 *** used, and then restart.
24118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24119 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24120 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24121 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24130 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24132 hardcode_direct_GCJ=yes
24133 hardcode_shlibpath_var_GCJ=no
24137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24138 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24139 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24146 if test "$ld_shlibs_GCJ" = no; then
24148 hardcode_libdir_flag_spec_GCJ=
24149 export_dynamic_flag_spec_GCJ=
24150 whole_archive_flag_spec_GCJ=
24153 # PORTME fill in a description of your system's linker (not GNU ld)
24156 allow_undefined_flag_GCJ=unsupported
24157 always_export_symbols_GCJ=yes
24158 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'
24159 # Note: this linker hardcodes the directories in LIBPATH if there
24160 # are no directories specified by -L.
24161 hardcode_minus_L_GCJ=yes
24162 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24163 # Neither direct hardcoding nor static linking is supported with a
24165 hardcode_direct_GCJ=unsupported
24170 if test "$host_cpu" = ia64; then
24171 # On IA64, the linker does run time linking by default, so we don't
24172 # have to do anything special.
24173 aix_use_runtimelinking=no
24174 exp_sym_flag='-Bexport'
24177 # If we're using GNU nm, then we don't want the "-C" option.
24178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24179 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24180 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'
24182 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'
24184 aix_use_runtimelinking=no
24186 # Test if we are trying to use run time linking or normal
24187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24188 # need to do runtime linking.
24189 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24190 for ld_flag in $LDFLAGS; do
24191 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24192 aix_use_runtimelinking=yes
24199 exp_sym_flag='-bexport'
24200 no_entry_flag='-bnoentry'
24203 # When large executables or shared objects are built, AIX ld can
24204 # have problems creating the table of contents. If linking a library
24205 # or program results in "error TOC overflow" add -mminimal-toc to
24206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24209 archive_cmds_GCJ=''
24210 hardcode_direct_GCJ=yes
24211 hardcode_libdir_separator_GCJ=':'
24212 link_all_deplibs_GCJ=yes
24214 if test "$GCC" = yes; then
24215 case $host_os in aix4.[012]|aix4.[012].*)
24216 # We only want to do this on AIX 4.2 and lower, the check
24217 # below for broken collect2 doesn't work under 4.3+
24218 collect2name=`${CC} -print-prog-name=collect2`
24219 if test -f "$collect2name" && \
24220 strings "$collect2name" | grep resolve_lib_name >/dev/null
24222 # We have reworked collect2
24223 hardcode_direct_GCJ=yes
24225 # We have old collect2
24226 hardcode_direct_GCJ=unsupported
24227 # It fails to find uninstalled libraries when the uninstalled
24228 # path is not listed in the libpath. Setting hardcode_minus_L
24229 # to unsupported forces relinking
24230 hardcode_minus_L_GCJ=yes
24231 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24232 hardcode_libdir_separator_GCJ=
24236 shared_flag='-shared'
24237 if test "$aix_use_runtimelinking" = yes; then
24238 shared_flag="$shared_flag "'${wl}-G'
24242 if test "$host_cpu" = ia64; then
24243 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24244 # chokes on -Wl,-G. The following line is correct:
24247 if test "$aix_use_runtimelinking" = yes; then
24248 shared_flag='${wl}-G'
24250 shared_flag='${wl}-bM:SRE'
24255 # It seems that -bexpall does not export symbols beginning with
24256 # underscore (_), so it is better to generate a list of symbols to export.
24257 always_export_symbols_GCJ=yes
24258 if test "$aix_use_runtimelinking" = yes; then
24259 # Warning - without using the other runtime loading flags (-brtl),
24260 # -berok will link without error, but may produce a broken library.
24261 allow_undefined_flag_GCJ='-berok'
24262 # Determine the default libpath from the value encoded in an empty executable.
24263 cat >conftest.$ac_ext <<_ACEOF
24266 cat confdefs.h >>conftest.$ac_ext
24267 cat >>conftest.$ac_ext <<_ACEOF
24268 /* end confdefs.h. */
24278 rm -f conftest.$ac_objext conftest$ac_exeext
24279 if { (ac_try="$ac_link"
24280 case "(($ac_try" in
24281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24282 *) ac_try_echo=$ac_try;;
24284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24285 (eval "$ac_link") 2>conftest.er1
24287 grep -v '^ *+' conftest.er1 >conftest.err
24289 cat conftest.err >&5
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
24292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24293 { (case "(($ac_try" in
24294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295 *) ac_try_echo=$ac_try;;
24297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24298 (eval "$ac_try") 2>&5
24300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); }; } &&
24302 { ac_try='test -s conftest$ac_exeext'
24303 { (case "(($ac_try" in
24304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305 *) ac_try_echo=$ac_try;;
24307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24308 (eval "$ac_try") 2>&5
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; }; then
24313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24315 # Check for a 64-bit object if we didn't find anything.
24316 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; }
24319 echo "$as_me: failed program was:" >&5
24320 sed 's/^/| /' conftest.$ac_ext >&5
24325 rm -f core conftest.err conftest.$ac_objext \
24326 conftest$ac_exeext conftest.$ac_ext
24327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24329 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24330 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"
24332 if test "$host_cpu" = ia64; then
24333 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24334 allow_undefined_flag_GCJ="-z nodefs"
24335 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"
24337 # Determine the default libpath from the value encoded in an empty executable.
24338 cat >conftest.$ac_ext <<_ACEOF
24341 cat confdefs.h >>conftest.$ac_ext
24342 cat >>conftest.$ac_ext <<_ACEOF
24343 /* end confdefs.h. */
24353 rm -f conftest.$ac_objext conftest$ac_exeext
24354 if { (ac_try="$ac_link"
24355 case "(($ac_try" in
24356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24357 *) ac_try_echo=$ac_try;;
24359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24360 (eval "$ac_link") 2>conftest.er1
24362 grep -v '^ *+' conftest.er1 >conftest.err
24364 cat conftest.err >&5
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); } &&
24367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24368 { (case "(($ac_try" in
24369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24370 *) ac_try_echo=$ac_try;;
24372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24373 (eval "$ac_try") 2>&5
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); }; } &&
24377 { ac_try='test -s conftest$ac_exeext'
24378 { (case "(($ac_try" in
24379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24380 *) ac_try_echo=$ac_try;;
24382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24383 (eval "$ac_try") 2>&5
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); }; }; then
24388 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24390 # Check for a 64-bit object if we didn't find anything.
24391 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; }
24394 echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24400 rm -f core conftest.err conftest.$ac_objext \
24401 conftest$ac_exeext conftest.$ac_ext
24402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24404 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24405 # Warning - without using the other run time loading flags,
24406 # -berok will link without error, but may produce a broken library.
24407 no_undefined_flag_GCJ=' ${wl}-bernotok'
24408 allow_undefined_flag_GCJ=' ${wl}-berok'
24409 # Exported symbols can be pulled into shared objects from archives
24410 whole_archive_flag_spec_GCJ='$convenience'
24411 archive_cmds_need_lc_GCJ=yes
24412 # This is similar to how AIX traditionally builds its shared libraries.
24413 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'
24419 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)'
24420 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24421 hardcode_minus_L_GCJ=yes
24422 # see comment about different semantics on the GNU ld section
24427 export_dynamic_flag_spec_GCJ=-rdynamic
24430 cygwin* | mingw* | pw32*)
24431 # When not using gcc, we currently assume that we are using
24432 # Microsoft Visual C++.
24433 # hardcode_libdir_flag_spec is actually meaningless, as there is
24434 # no search path for DLLs.
24435 hardcode_libdir_flag_spec_GCJ=' '
24436 allow_undefined_flag_GCJ=unsupported
24437 # Tell ltmain to make .lib files, not .a files.
24439 # Tell ltmain to make .dll files, not .so files.
24441 # FIXME: Setting linknames here is a bad hack.
24442 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24443 # The linker will automatically build a .lib file if we build a DLL.
24444 old_archive_From_new_cmds_GCJ='true'
24445 # FIXME: Should let the user specify the lib program.
24446 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24447 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24448 enable_shared_with_static_runtimes_GCJ=yes
24451 darwin* | rhapsody*)
24453 rhapsody* | darwin1.[012])
24454 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24457 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24458 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24460 case ${MACOSX_DEPLOYMENT_TARGET} in
24462 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24465 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24471 archive_cmds_need_lc_GCJ=no
24472 hardcode_direct_GCJ=no
24473 hardcode_automatic_GCJ=yes
24474 hardcode_shlibpath_var_GCJ=unsupported
24475 whole_archive_flag_spec_GCJ=''
24476 link_all_deplibs_GCJ=yes
24477 if test "$GCC" = yes ; then
24478 output_verbose_link_cmd='echo'
24479 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24480 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24481 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24482 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}'
24483 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}'
24485 case $cc_basename in
24487 output_verbose_link_cmd='echo'
24488 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24489 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24490 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24491 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}'
24492 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}'
24502 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24503 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24504 hardcode_shlibpath_var_GCJ=no
24511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24512 # support. Future versions do this automatically, but an explicit c++rt0.o
24513 # does not break anything, and helps significantly (at the cost of a little
24516 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24517 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24518 hardcode_direct_GCJ=yes
24519 hardcode_shlibpath_var_GCJ=no
24522 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24524 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24525 hardcode_direct_GCJ=yes
24526 hardcode_minus_L_GCJ=yes
24527 hardcode_shlibpath_var_GCJ=no
24530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24531 freebsd* | kfreebsd*-gnu | dragonfly*)
24532 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24533 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24534 hardcode_direct_GCJ=yes
24535 hardcode_shlibpath_var_GCJ=no
24539 if test "$GCC" = yes; then
24540 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'
24542 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'
24544 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24545 hardcode_libdir_separator_GCJ=:
24546 hardcode_direct_GCJ=yes
24548 # hardcode_minus_L: Not really in the search PATH,
24549 # but as the default location of the library.
24550 hardcode_minus_L_GCJ=yes
24551 export_dynamic_flag_spec_GCJ='${wl}-E'
24555 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24556 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24558 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24560 if test "$with_gnu_ld" = no; then
24561 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24562 hardcode_libdir_separator_GCJ=:
24564 hardcode_direct_GCJ=yes
24565 export_dynamic_flag_spec_GCJ='${wl}-E'
24567 # hardcode_minus_L: Not really in the search PATH,
24568 # but as the default location of the library.
24569 hardcode_minus_L_GCJ=yes
24574 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24577 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24580 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24583 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24589 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24592 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24595 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24599 if test "$with_gnu_ld" = no; then
24600 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24601 hardcode_libdir_separator_GCJ=:
24605 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24606 hardcode_direct_GCJ=no
24607 hardcode_shlibpath_var_GCJ=no
24610 hardcode_direct_GCJ=yes
24611 export_dynamic_flag_spec_GCJ='${wl}-E'
24613 # hardcode_minus_L: Not really in the search PATH,
24614 # but as the default location of the library.
24615 hardcode_minus_L_GCJ=yes
24621 irix5* | irix6* | nonstopux*)
24622 if test "$GCC" = yes; then
24623 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'
24625 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'
24626 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24628 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24629 hardcode_libdir_separator_GCJ=:
24630 link_all_deplibs_GCJ=yes
24634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24635 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24637 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24639 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24640 hardcode_direct_GCJ=yes
24641 hardcode_shlibpath_var_GCJ=no
24645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24646 hardcode_direct_GCJ=yes
24647 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24648 hardcode_libdir_separator_GCJ=:
24649 hardcode_shlibpath_var_GCJ=no
24653 hardcode_direct_GCJ=yes
24654 hardcode_shlibpath_var_GCJ=no
24655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24656 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24657 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24658 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24659 export_dynamic_flag_spec_GCJ='${wl}-E'
24662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24663 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24664 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24667 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24668 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24675 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24676 hardcode_minus_L_GCJ=yes
24677 allow_undefined_flag_GCJ=unsupported
24678 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'
24679 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24683 if test "$GCC" = yes; then
24684 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24685 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'
24687 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24688 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'
24690 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24691 hardcode_libdir_separator_GCJ=:
24694 osf4* | osf5*) # as osf3* with the addition of -msym flag
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}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24700 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24701 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'
24702 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~
24703 $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'
24705 # Both c and cxx compiler support -rpath directly
24706 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24708 hardcode_libdir_separator_GCJ=:
24712 no_undefined_flag_GCJ=' -z text'
24713 if test "$GCC" = yes; then
24715 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24716 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24717 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24720 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24721 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24722 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24724 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24725 hardcode_shlibpath_var_GCJ=no
24727 solaris2.[0-5] | solaris2.[0-5].*) ;;
24729 # The compiler driver will combine linker options so we
24730 # cannot just pass the convience library names through
24731 # without $wl, iff we do not link with $LD.
24732 # Luckily, gcc supports the same syntax we need for Sun Studio.
24733 # Supported since Solaris 2.6 (maybe 2.5.1?)
24736 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24738 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' ;;
24741 link_all_deplibs_GCJ=yes
24745 if test "x$host_vendor" = xsequent; then
24746 # Use $CC to link under sequent, because it throws in some extra .o
24747 # files that make .init and .fini sections work.
24748 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24750 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24752 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24753 hardcode_direct_GCJ=yes
24754 hardcode_minus_L_GCJ=yes
24755 hardcode_shlibpath_var_GCJ=no
24759 case $host_vendor in
24761 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24762 hardcode_direct_GCJ=yes # is this really true???
24765 ## LD is ld it makes a PLAMLIB
24766 ## CC just makes a GrossModule.
24767 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24768 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24769 hardcode_direct_GCJ=no
24772 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24773 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24776 runpath_var='LD_RUN_PATH'
24777 hardcode_shlibpath_var_GCJ=no
24781 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24782 hardcode_shlibpath_var_GCJ=no
24783 export_dynamic_flag_spec_GCJ='-Bexport'
24787 if test -d /usr/nec; then
24788 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24789 hardcode_shlibpath_var_GCJ=no
24790 runpath_var=LD_RUN_PATH
24791 hardcode_runpath_var=yes
24796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24797 no_undefined_flag_GCJ='${wl}-z,text'
24798 archive_cmds_need_lc_GCJ=no
24799 hardcode_shlibpath_var_GCJ=no
24800 runpath_var='LD_RUN_PATH'
24802 if test "$GCC" = yes; then
24803 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24804 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24806 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24807 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24811 sysv5* | sco3.2v5* | sco5v6*)
24812 # Note: We can NOT use -z defs as we might desire, because we do not
24813 # link with -lc, and that would cause any symbols used from libc to
24814 # always be unresolved, which means just about no library would
24815 # ever link correctly. If we're not using GNU ld we use -z text
24816 # though, which does catch some bad symbols but isn't as heavy-handed
24818 no_undefined_flag_GCJ='${wl}-z,text'
24819 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24820 archive_cmds_need_lc_GCJ=no
24821 hardcode_shlibpath_var_GCJ=no
24822 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24823 hardcode_libdir_separator_GCJ=':'
24824 link_all_deplibs_GCJ=yes
24825 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24826 runpath_var='LD_RUN_PATH'
24828 if test "$GCC" = yes; then
24829 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24830 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24832 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24833 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24838 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24839 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24840 hardcode_shlibpath_var_GCJ=no
24849 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24850 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24851 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24854 # Do we need to explicitly link libc?
24856 case "x$archive_cmds_need_lc_GCJ" in
24858 # Assume -lc should be added
24859 archive_cmds_need_lc_GCJ=yes
24861 if test "$enable_shared" = yes && test "$GCC" = yes; then
24862 case $archive_cmds_GCJ in
24864 # FIXME: we may have to deal with multi-command sequences.
24867 # Test whether the compiler implicitly links with -lc since on some
24868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24869 # to ld, don't add -lc before -lgcc.
24870 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24871 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24876 (eval $ac_compile) 2>&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); } 2>conftest.err; then
24882 libobjs=conftest.$ac_objext
24884 wl=$lt_prog_compiler_wl_GCJ
24885 pic_flag=$lt_prog_compiler_pic_GCJ
24891 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24892 allow_undefined_flag_GCJ=
24893 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24894 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); }
24899 archive_cmds_need_lc_GCJ=no
24901 archive_cmds_need_lc_GCJ=yes
24903 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24905 cat conftest.err 1>&5
24908 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24909 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24916 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24917 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24918 library_names_spec=
24919 libname_spec='lib$name'
24923 postuninstall_cmds=
24927 shlibpath_overrides_runpath=unknown
24929 dynamic_linker="$host_os ld.so"
24930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24931 if test "$GCC" = yes; then
24932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24933 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24934 # if the path contains ";" then we assume it to be the separator
24935 # otherwise default to the standard path separator (i.e. ":") - it is
24936 # assumed that no part of a normal pathname contains ";" but that should
24937 # okay in the real world where ";" in dirpaths is itself problematic.
24938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24945 need_lib_prefix=unknown
24946 hardcode_into_libs=no
24948 # when you set need_version to no, make sure it does not cause -set_version
24949 # flags to be left without arguments
24950 need_version=unknown
24955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24956 shlibpath_var=LIBPATH
24958 # AIX 3 has no versioning support, so we append a major version to the name.
24959 soname_spec='${libname}${release}${shared_ext}$major'
24966 hardcode_into_libs=yes
24967 if test "$host_cpu" = ia64; then
24968 # AIX 5 supports IA64
24969 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24970 shlibpath_var=LD_LIBRARY_PATH
24972 # With GCC up to 2.95.x, collect2 would create an import file
24973 # for dependence libraries. The import file would start with
24974 # the line `#! .'. This would cause the generated library to
24975 # depend on `.', always an invalid library. This was fixed in
24976 # development snapshots of GCC prior to 3.0.
24978 aix4 | aix4.[01] | aix4.[01].*)
24979 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24981 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24984 can_build_shared=no
24988 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24989 # soname into executable. Probably we can add versioning support to
24990 # collect2, so additional links can be useful in future.
24991 if test "$aix_use_runtimelinking" = yes; then
24992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24993 # instead of lib<name>.a to let people know that these are not
24994 # typical AIX shared libraries.
24995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24997 # We preserve .a as extension for shared libraries through AIX4.2
24998 # and later when we are not doing run time linking.
24999 library_names_spec='${libname}${release}.a $libname.a'
25000 soname_spec='${libname}${release}${shared_ext}$major'
25002 shlibpath_var=LIBPATH
25007 library_names_spec='$libname.ixlibrary $libname.a'
25008 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25009 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'
25013 library_names_spec='${libname}${shared_ext}'
25014 dynamic_linker="$host_os ld.so"
25015 shlibpath_var=LIBRARY_PATH
25021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25022 soname_spec='${libname}${release}${shared_ext}$major'
25023 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25024 shlibpath_var=LD_LIBRARY_PATH
25025 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25026 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25027 # the default ld.so.conf also contains /usr/contrib/lib and
25028 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25029 # libtool to hard-code these into programs
25032 cygwin* | mingw* | pw32*)
25033 version_type=windows
25038 case $GCC,$host_os in
25039 yes,cygwin* | yes,mingw* | yes,pw32*)
25040 library_names_spec='$libname.dll.a'
25041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25042 postinstall_cmds='base_file=`basename \${file}`~
25043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25044 dldir=$destdir/`dirname \$dlpath`~
25045 test -d \$dldir || mkdir -p \$dldir~
25046 $install_prog $dir/$dlname \$dldir/$dlname~
25047 chmod a+x \$dldir/$dlname'
25048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25049 dlpath=$dir/\$dldll~
25051 shlibpath_overrides_runpath=yes
25055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25056 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25057 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25060 # MinGW DLLs use traditional 'lib' prefix
25061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25062 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25063 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25064 # It is most probably a Windows format PATH printed by
25065 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25066 # path with ; separators, and with drive letters. We can handle the
25067 # drive letters (cygwin fileutils understands them), so leave them,
25068 # especially as we might pass files found there to a mingw objdump,
25069 # which wouldn't understand a cygwinified path. Ahh.
25070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25076 # pw32 DLLs use 'pw' prefix rather than 'lib'
25077 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25086 dynamic_linker='Win32 ld.exe'
25087 # FIXME: first we should search . and the directory the executable is in
25091 darwin* | rhapsody*)
25092 dynamic_linker="$host_os dyld"
25093 version_type=darwin
25096 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25097 soname_spec='${libname}${release}${major}$shared_ext'
25098 shlibpath_overrides_runpath=yes
25099 shlibpath_var=DYLD_LIBRARY_PATH
25100 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25101 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25102 if test "$GCC" = yes; then
25103 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"`
25105 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25115 soname_spec='${libname}${release}${shared_ext}$major'
25116 shlibpath_var=LD_LIBRARY_PATH
25127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25128 soname_spec='${libname}${release}${shared_ext}$major'
25129 shlibpath_var=LD_LIBRARY_PATH
25130 shlibpath_overrides_runpath=no
25131 hardcode_into_libs=yes
25132 dynamic_linker='GNU ld.so'
25135 freebsd* | dragonfly*)
25136 # DragonFly does not have aout. When/if they implement a new
25137 # versioning mechanism, adjust this.
25138 if test -x /usr/bin/objformat; then
25139 objformat=`/usr/bin/objformat`
25142 freebsd[123]*) objformat=aout ;;
25143 *) objformat=elf ;;
25146 version_type=freebsd-$objformat
25147 case $version_type in
25149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25158 shlibpath_var=LD_LIBRARY_PATH
25161 shlibpath_overrides_runpath=yes
25163 freebsd3.[01]* | freebsdelf3.[01]*)
25164 shlibpath_overrides_runpath=yes
25165 hardcode_into_libs=yes
25167 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25168 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25169 shlibpath_overrides_runpath=no
25170 hardcode_into_libs=yes
25172 freebsd*) # from 4.6 on
25173 shlibpath_overrides_runpath=yes
25174 hardcode_into_libs=yes
25183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25184 soname_spec='${libname}${release}${shared_ext}$major'
25185 shlibpath_var=LD_LIBRARY_PATH
25186 hardcode_into_libs=yes
25189 hpux9* | hpux10* | hpux11*)
25190 # Give a soname corresponding to the major version so that dld.sl refuses to
25191 # link against other versions.
25198 hardcode_into_libs=yes
25199 dynamic_linker="$host_os dld.so"
25200 shlibpath_var=LD_LIBRARY_PATH
25201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25203 soname_spec='${libname}${release}${shared_ext}$major'
25204 if test "X$HPUX_IA64_MODE" = X32; then
25205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25213 hardcode_into_libs=yes
25214 dynamic_linker="$host_os dld.sl"
25215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25218 soname_spec='${libname}${release}${shared_ext}$major'
25219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25224 dynamic_linker="$host_os dld.sl"
25225 shlibpath_var=SHLIB_PATH
25226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25228 soname_spec='${libname}${release}${shared_ext}$major'
25231 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25232 postinstall_cmds='chmod 555 $lib'
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'
25241 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25242 shlibpath_var=LD_LIBRARY_PATH
25243 shlibpath_overrides_runpath=no
25244 hardcode_into_libs=yes
25247 irix5* | irix6* | nonstopux*)
25249 nonstopux*) version_type=nonstopux ;;
25251 if test "$lt_cv_prog_gnu_ld" = yes; then
25259 soname_spec='${libname}${release}${shared_ext}$major'
25260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25262 irix5* | nonstopux*)
25263 libsuff= shlibsuff=
25266 case $LD in # libtool.m4 will add one of these switches to LD
25267 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25268 libsuff= shlibsuff= libmagic=32-bit;;
25269 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25270 libsuff=32 shlibsuff=N32 libmagic=N32;;
25271 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25272 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25273 *) libsuff= shlibsuff= libmagic=never-match;;
25277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25278 shlibpath_overrides_runpath=no
25279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25281 hardcode_into_libs=yes
25284 # No shared lib support for Linux oldld, aout, or coff.
25285 linux*oldld* | linux*aout* | linux*coff*)
25289 # This must be Linux ELF.
25294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25295 soname_spec='${libname}${release}${shared_ext}$major'
25296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25297 shlibpath_var=LD_LIBRARY_PATH
25298 shlibpath_overrides_runpath=no
25299 # This implies no fast_install, which is unacceptable.
25300 # Some rework will be needed to allow for fast_install
25301 # before this can be enabled.
25302 hardcode_into_libs=yes
25304 # Append ld.so.conf contents to the search path
25305 if test -f /etc/ld.so.conf; then
25306 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' ' '`
25307 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25310 # We used to test for /lib/ld.so.1 and disable shared libraries on
25311 # powerpc, because MkLinux only supported shared libraries with the
25312 # GNU dynamic linker. Since this was broken with cross compilers,
25313 # most powerpc-linux boxes support dynamic linking these days and
25314 # people can always --disable-shared, the test was removed, and we
25315 # assume the GNU/Linux dynamic linker is in use.
25316 dynamic_linker='GNU/Linux ld.so'
25323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25324 soname_spec='${libname}${release}${shared_ext}$major'
25325 shlibpath_var=LD_LIBRARY_PATH
25326 shlibpath_overrides_runpath=no
25327 hardcode_into_libs=yes
25328 dynamic_linker='GNU ld.so'
25335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25338 dynamic_linker='NetBSD (a.out) ld.so'
25340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25341 soname_spec='${libname}${release}${shared_ext}$major'
25342 dynamic_linker='NetBSD ld.elf_so'
25344 shlibpath_var=LD_LIBRARY_PATH
25345 shlibpath_overrides_runpath=yes
25346 hardcode_into_libs=yes
25351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25352 shlibpath_var=LD_LIBRARY_PATH
25353 shlibpath_overrides_runpath=yes
25360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25361 soname_spec='${libname}${release}${shared_ext}$major'
25362 shlibpath_var=LD_LIBRARY_PATH
25363 shlibpath_overrides_runpath=yes
25368 sys_lib_dlsearch_path_spec="/usr/lib"
25370 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25372 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25373 *) need_version=no ;;
25375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25377 shlibpath_var=LD_LIBRARY_PATH
25378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25380 openbsd2.[89] | openbsd2.[89].*)
25381 shlibpath_overrides_runpath=no
25384 shlibpath_overrides_runpath=yes
25388 shlibpath_overrides_runpath=yes
25393 libname_spec='$name'
25396 library_names_spec='$libname${shared_ext} $libname.a'
25397 dynamic_linker='OS/2 ld.exe'
25398 shlibpath_var=LIBPATH
25401 osf3* | osf4* | osf5*)
25405 soname_spec='${libname}${release}${shared_ext}$major'
25406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25407 shlibpath_var=LD_LIBRARY_PATH
25408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25417 soname_spec='${libname}${release}${shared_ext}$major'
25418 shlibpath_var=LD_LIBRARY_PATH
25419 shlibpath_overrides_runpath=yes
25420 hardcode_into_libs=yes
25421 # ldd complains unless libraries are executable
25422 postinstall_cmds='chmod +x $lib'
25427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25429 shlibpath_var=LD_LIBRARY_PATH
25430 shlibpath_overrides_runpath=yes
25431 if test "$with_gnu_ld" = yes; then
25439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25440 soname_spec='${libname}${release}${shared_ext}$major'
25441 shlibpath_var=LD_LIBRARY_PATH
25442 case $host_vendor in
25444 shlibpath_overrides_runpath=no
25446 export_dynamic_flag_spec='${wl}-Blargedynsym'
25447 runpath_var=LD_RUN_PATH
25455 shlibpath_overrides_runpath=no
25456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25462 if test -d /usr/nec ;then
25464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25465 soname_spec='$libname${shared_ext}.$major'
25466 shlibpath_var=LD_LIBRARY_PATH
25470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25471 version_type=freebsd-elf
25474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25475 soname_spec='${libname}${release}${shared_ext}$major'
25476 shlibpath_var=LD_LIBRARY_PATH
25477 hardcode_into_libs=yes
25478 if test "$with_gnu_ld" = yes; then
25479 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25480 shlibpath_overrides_runpath=no
25482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25483 shlibpath_overrides_runpath=yes
25486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25490 sys_lib_dlsearch_path_spec='/usr/lib'
25495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25496 soname_spec='${libname}${release}${shared_ext}$major'
25497 shlibpath_var=LD_LIBRARY_PATH
25504 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25505 echo "${ECHO_T}$dynamic_linker" >&6; }
25506 test "$dynamic_linker" = no && can_build_shared=no
25508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25509 if test "$GCC" = yes; then
25510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25513 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25514 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25515 hardcode_action_GCJ=
25516 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25517 test -n "$runpath_var_GCJ" || \
25518 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25520 # We can hardcode non-existant directories.
25521 if test "$hardcode_direct_GCJ" != no &&
25522 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25523 # have to relink, otherwise we might link with an installed library
25524 # when we should be linking with a yet-to-be-installed one
25525 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25526 test "$hardcode_minus_L_GCJ" != no; then
25527 # Linking always hardcodes the temporary library directory.
25528 hardcode_action_GCJ=relink
25530 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25531 hardcode_action_GCJ=immediate
25534 # We cannot hardcode anything, or else we can only hardcode existing
25536 hardcode_action_GCJ=unsupported
25538 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25539 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25541 if test "$hardcode_action_GCJ" = relink; then
25542 # Fast installation is not supported
25543 enable_fast_install=no
25544 elif test "$shlibpath_overrides_runpath" = yes ||
25545 test "$enable_shared" = no; then
25546 # Fast installation is not necessary
25547 enable_fast_install=needless
25551 # The else clause should only fire when bootstrapping the
25552 # libtool distribution, otherwise you forgot to ship ltmain.sh
25553 # with your package, and you will get complaints that there are
25554 # no rules to generate ltmain.sh.
25555 if test -f "$ltmain"; then
25556 # See if we are running on zsh, and set the options which allow our commands through
25557 # without removal of \ escapes.
25558 if test -n "${ZSH_VERSION+set}" ; then
25559 setopt NO_GLOB_SUBST
25561 # Now quote all the things that may contain metacharacters while being
25562 # careful not to overquote the AC_SUBSTed values. We take copies of the
25563 # variables and quote the copies for generation of the libtool script.
25564 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25566 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25567 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25568 deplibs_check_method reload_flag reload_cmds need_locks \
25569 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25570 lt_cv_sys_global_symbol_to_c_name_address \
25571 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25572 old_postinstall_cmds old_postuninstall_cmds \
25576 lt_prog_compiler_wl_GCJ \
25577 lt_prog_compiler_pic_GCJ \
25578 lt_prog_compiler_static_GCJ \
25579 lt_prog_compiler_no_builtin_flag_GCJ \
25580 export_dynamic_flag_spec_GCJ \
25581 thread_safe_flag_spec_GCJ \
25582 whole_archive_flag_spec_GCJ \
25583 enable_shared_with_static_runtimes_GCJ \
25584 old_archive_cmds_GCJ \
25585 old_archive_from_new_cmds_GCJ \
25586 predep_objects_GCJ \
25587 postdep_objects_GCJ \
25590 compiler_lib_search_path_GCJ \
25592 archive_expsym_cmds_GCJ \
25593 postinstall_cmds_GCJ \
25594 postuninstall_cmds_GCJ \
25595 old_archive_from_expsyms_cmds_GCJ \
25596 allow_undefined_flag_GCJ \
25597 no_undefined_flag_GCJ \
25598 export_symbols_cmds_GCJ \
25599 hardcode_libdir_flag_spec_GCJ \
25600 hardcode_libdir_flag_spec_ld_GCJ \
25601 hardcode_libdir_separator_GCJ \
25602 hardcode_automatic_GCJ \
25604 module_expsym_cmds_GCJ \
25605 lt_cv_prog_compiler_c_o_GCJ \
25606 exclude_expsyms_GCJ \
25607 include_expsyms_GCJ; do
25610 old_archive_cmds_GCJ | \
25611 old_archive_from_new_cmds_GCJ | \
25612 archive_cmds_GCJ | \
25613 archive_expsym_cmds_GCJ | \
25614 module_cmds_GCJ | \
25615 module_expsym_cmds_GCJ | \
25616 old_archive_from_expsyms_cmds_GCJ | \
25617 export_symbols_cmds_GCJ | \
25618 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25619 postinstall_cmds | postuninstall_cmds | \
25620 old_postinstall_cmds | old_postuninstall_cmds | \
25621 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25622 # Double-quote double-evaled strings.
25623 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25626 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25632 *'\$0 --fallback-echo"')
25633 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25639 cat <<__EOF__ >> "$cfgfile"
25640 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25642 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25644 # Shell to use when invoking shell scripts.
25647 # Whether or not to build shared libraries.
25648 build_libtool_libs=$enable_shared
25650 # Whether or not to build static libraries.
25651 build_old_libs=$enable_static
25653 # Whether or not to add -lc for building shared libraries.
25654 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25656 # Whether or not to disallow shared libs when runtime libs are static
25657 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25659 # Whether or not to optimize for fast installation.
25660 fast_install=$enable_fast_install
25663 host_alias=$host_alias
25667 # The build system.
25668 build_alias=$build_alias
25672 # An echo program that does not interpret backslashes.
25677 AR_FLAGS=$lt_AR_FLAGS
25682 # LTCC compiler flags.
25683 LTCFLAGS=$lt_LTCFLAGS
25685 # A language-specific compiler.
25686 CC=$lt_compiler_GCJ
25688 # Is the compiler the GNU C compiler?
25694 # The linker used to build libraries.
25697 # Whether we need hard or soft links.
25700 # A BSD-compatible nm program.
25703 # A symbol stripping program
25706 # Used to examine libraries when file_magic_cmd begins "file"
25707 MAGIC_CMD=$MAGIC_CMD
25709 # Used on cygwin: DLL creation program.
25712 # Used on cygwin: object dumper.
25715 # Used on cygwin: assembler.
25718 # The name of the directory that contains temporary libtool files.
25721 # How to create reloadable object files.
25722 reload_flag=$lt_reload_flag
25723 reload_cmds=$lt_reload_cmds
25725 # How to pass a linker flag through the compiler.
25726 wl=$lt_lt_prog_compiler_wl_GCJ
25728 # Object file suffix (normally "o").
25729 objext="$ac_objext"
25731 # Old archive suffix (normally "a").
25734 # Shared library suffix (normally ".so").
25735 shrext_cmds='$shrext_cmds'
25737 # Executable file suffix (normally "").
25740 # Additional compiler flags for building library objects.
25741 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25744 # What is the maximum length of a command?
25745 max_cmd_len=$lt_cv_sys_max_cmd_len
25747 # Does compiler simultaneously support -c and -o options?
25748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25750 # Must we lock files when doing compilation?
25751 need_locks=$lt_need_locks
25753 # Do we need the lib prefix for modules?
25754 need_lib_prefix=$need_lib_prefix
25756 # Do we need a version for libraries?
25757 need_version=$need_version
25759 # Whether dlopen is supported.
25760 dlopen_support=$enable_dlopen
25762 # Whether dlopen of programs is supported.
25763 dlopen_self=$enable_dlopen_self
25765 # Whether dlopen of statically linked programs is supported.
25766 dlopen_self_static=$enable_dlopen_self_static
25768 # Compiler flag to prevent dynamic linking.
25769 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25771 # Compiler flag to turn off builtin functions.
25772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25774 # Compiler flag to allow reflexive dlopens.
25775 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25777 # Compiler flag to generate shared objects directly from archives.
25778 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25780 # Compiler flag to generate thread-safe objects.
25781 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25783 # Library versioning type.
25784 version_type=$version_type
25786 # Format of library name prefix.
25787 libname_spec=$lt_libname_spec
25789 # List of archive names. First name is the real one, the rest are links.
25790 # The last name is the one that the linker finds with -lNAME.
25791 library_names_spec=$lt_library_names_spec
25793 # The coded name of the library, if different from the real name.
25794 soname_spec=$lt_soname_spec
25796 # Commands used to build and install an old-style archive.
25798 old_archive_cmds=$lt_old_archive_cmds_GCJ
25799 old_postinstall_cmds=$lt_old_postinstall_cmds
25800 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25802 # Create an old-style archive from a shared archive.
25803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25805 # Create a temporary old-style archive to link instead of a shared archive.
25806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25808 # Commands used to build and install a shared archive.
25809 archive_cmds=$lt_archive_cmds_GCJ
25810 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25811 postinstall_cmds=$lt_postinstall_cmds
25812 postuninstall_cmds=$lt_postuninstall_cmds
25814 # Commands used to build a loadable module (assumed same as above if empty)
25815 module_cmds=$lt_module_cmds_GCJ
25816 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25818 # Commands to strip libraries.
25819 old_striplib=$lt_old_striplib
25820 striplib=$lt_striplib
25822 # Dependencies to place before the objects being linked to create a
25824 predep_objects=$lt_predep_objects_GCJ
25826 # Dependencies to place after the objects being linked to create a
25828 postdep_objects=$lt_postdep_objects_GCJ
25830 # Dependencies to place before the objects being linked to create a
25832 predeps=$lt_predeps_GCJ
25834 # Dependencies to place after the objects being linked to create a
25836 postdeps=$lt_postdeps_GCJ
25838 # The library search path used internally by the compiler when linking
25839 # a shared library.
25840 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25842 # Method to check whether dependent libraries are shared objects.
25843 deplibs_check_method=$lt_deplibs_check_method
25845 # Command to use when deplibs_check_method == file_magic.
25846 file_magic_cmd=$lt_file_magic_cmd
25848 # Flag that allows shared libraries with undefined symbols to be built.
25849 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25851 # Flag that forces no undefined symbols.
25852 no_undefined_flag=$lt_no_undefined_flag_GCJ
25854 # Commands used to finish a libtool library installation in a directory.
25855 finish_cmds=$lt_finish_cmds
25857 # Same as above, but a single script fragment to be evaled but not shown.
25858 finish_eval=$lt_finish_eval
25860 # Take the output of nm and produce a listing of raw symbols and C names.
25861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25863 # Transform the output of nm in a proper C declaration
25864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25866 # Transform the output of nm in a C name address pair
25867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25869 # This is the shared library runtime path variable.
25870 runpath_var=$runpath_var
25872 # This is the shared library path variable.
25873 shlibpath_var=$shlibpath_var
25875 # Is shlibpath searched before the hard-coded library search path?
25876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25878 # How to hardcode a shared library path into an executable.
25879 hardcode_action=$hardcode_action_GCJ
25881 # Whether we should hardcode library paths into libraries.
25882 hardcode_into_libs=$hardcode_into_libs
25884 # Flag to hardcode \$libdir into a binary during linking.
25885 # This must work even if \$libdir does not exist.
25886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25888 # If ld is used when linking, flag to hardcode \$libdir into
25889 # a binary during linking. This must work even if \$libdir does
25891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25893 # Whether we need a single -rpath flag with a separated argument.
25894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25897 # resulting binary.
25898 hardcode_direct=$hardcode_direct_GCJ
25900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25901 # resulting binary.
25902 hardcode_minus_L=$hardcode_minus_L_GCJ
25904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25905 # the resulting binary.
25906 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25908 # Set to yes if building a shared library automatically hardcodes DIR into the library
25909 # and all subsequent libraries and executables linked against it.
25910 hardcode_automatic=$hardcode_automatic_GCJ
25912 # Variables whose values should be saved in libtool wrapper scripts and
25913 # restored at relink time.
25914 variables_saved_for_relink="$variables_saved_for_relink"
25916 # Whether libtool must link a program against all its dependency libraries.
25917 link_all_deplibs=$link_all_deplibs_GCJ
25919 # Compile-time system search path for libraries
25920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25922 # Run-time system search path for libraries
25923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25925 # Fix the shell variable \$srcfile for the compiler.
25926 fix_srcfile_path="$fix_srcfile_path_GCJ"
25928 # Set to yes if exported symbols are required.
25929 always_export_symbols=$always_export_symbols_GCJ
25931 # The commands to list exported symbols.
25932 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25934 # The commands to extract the exported symbol list from a shared archive.
25935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25937 # Symbols that should not be listed in the preloaded symbols.
25938 exclude_expsyms=$lt_exclude_expsyms_GCJ
25940 # Symbols that must always be exported.
25941 include_expsyms=$lt_include_expsyms_GCJ
25943 # ### END LIBTOOL TAG CONFIG: $tagname
25949 # If there is no Makefile yet, we rely on a make rule to execute
25950 # `config.status --recheck' to rerun these tests and create the
25951 # libtool script then.
25952 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25953 if test -f "$ltmain_in"; then
25954 test -f Makefile && make "$ltmain"
25960 ac_cpp='$CPP $CPPFLAGS'
25961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25974 ac_cpp='$CPP $CPPFLAGS'
25975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25980 # Source file extension for RC test sources.
25983 # Object file extension for compiled RC test sources.
25987 # Code to be used in simple compile tests
25988 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25990 # Code to be used in simple link tests
25991 lt_simple_link_test_code="$lt_simple_compile_test_code"
25993 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25995 # If no C compiler was specified, use CC.
25998 # If no C compiler flags were specified, use CFLAGS.
25999 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26001 # Allow CC to be a program name with arguments.
26005 # save warnings/boilerplate of simple test code
26006 ac_outfile=conftest.$ac_objext
26007 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26008 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26009 _lt_compiler_boilerplate=`cat conftest.err`
26012 ac_outfile=conftest.$ac_objext
26013 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26014 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26015 _lt_linker_boilerplate=`cat conftest.err`
26019 # Allow CC to be a program name with arguments.
26024 for cc_temp in $compiler""; do
26026 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26027 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26032 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26034 lt_cv_prog_compiler_c_o_RC=yes
26036 # The else clause should only fire when bootstrapping the
26037 # libtool distribution, otherwise you forgot to ship ltmain.sh
26038 # with your package, and you will get complaints that there are
26039 # no rules to generate ltmain.sh.
26040 if test -f "$ltmain"; then
26041 # See if we are running on zsh, and set the options which allow our commands through
26042 # without removal of \ escapes.
26043 if test -n "${ZSH_VERSION+set}" ; then
26044 setopt NO_GLOB_SUBST
26046 # Now quote all the things that may contain metacharacters while being
26047 # careful not to overquote the AC_SUBSTed values. We take copies of the
26048 # variables and quote the copies for generation of the libtool script.
26049 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26051 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26052 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26053 deplibs_check_method reload_flag reload_cmds need_locks \
26054 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26055 lt_cv_sys_global_symbol_to_c_name_address \
26056 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26057 old_postinstall_cmds old_postuninstall_cmds \
26061 lt_prog_compiler_wl_RC \
26062 lt_prog_compiler_pic_RC \
26063 lt_prog_compiler_static_RC \
26064 lt_prog_compiler_no_builtin_flag_RC \
26065 export_dynamic_flag_spec_RC \
26066 thread_safe_flag_spec_RC \
26067 whole_archive_flag_spec_RC \
26068 enable_shared_with_static_runtimes_RC \
26069 old_archive_cmds_RC \
26070 old_archive_from_new_cmds_RC \
26071 predep_objects_RC \
26072 postdep_objects_RC \
26075 compiler_lib_search_path_RC \
26077 archive_expsym_cmds_RC \
26078 postinstall_cmds_RC \
26079 postuninstall_cmds_RC \
26080 old_archive_from_expsyms_cmds_RC \
26081 allow_undefined_flag_RC \
26082 no_undefined_flag_RC \
26083 export_symbols_cmds_RC \
26084 hardcode_libdir_flag_spec_RC \
26085 hardcode_libdir_flag_spec_ld_RC \
26086 hardcode_libdir_separator_RC \
26087 hardcode_automatic_RC \
26089 module_expsym_cmds_RC \
26090 lt_cv_prog_compiler_c_o_RC \
26091 exclude_expsyms_RC \
26092 include_expsyms_RC; do
26095 old_archive_cmds_RC | \
26096 old_archive_from_new_cmds_RC | \
26097 archive_cmds_RC | \
26098 archive_expsym_cmds_RC | \
26100 module_expsym_cmds_RC | \
26101 old_archive_from_expsyms_cmds_RC | \
26102 export_symbols_cmds_RC | \
26103 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26104 postinstall_cmds | postuninstall_cmds | \
26105 old_postinstall_cmds | old_postuninstall_cmds | \
26106 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26107 # Double-quote double-evaled strings.
26108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26117 *'\$0 --fallback-echo"')
26118 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26124 cat <<__EOF__ >> "$cfgfile"
26125 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26127 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26129 # Shell to use when invoking shell scripts.
26132 # Whether or not to build shared libraries.
26133 build_libtool_libs=$enable_shared
26135 # Whether or not to build static libraries.
26136 build_old_libs=$enable_static
26138 # Whether or not to add -lc for building shared libraries.
26139 build_libtool_need_lc=$archive_cmds_need_lc_RC
26141 # Whether or not to disallow shared libs when runtime libs are static
26142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26144 # Whether or not to optimize for fast installation.
26145 fast_install=$enable_fast_install
26148 host_alias=$host_alias
26152 # The build system.
26153 build_alias=$build_alias
26157 # An echo program that does not interpret backslashes.
26162 AR_FLAGS=$lt_AR_FLAGS
26167 # LTCC compiler flags.
26168 LTCFLAGS=$lt_LTCFLAGS
26170 # A language-specific compiler.
26173 # Is the compiler the GNU C compiler?
26179 # The linker used to build libraries.
26182 # Whether we need hard or soft links.
26185 # A BSD-compatible nm program.
26188 # A symbol stripping program
26191 # Used to examine libraries when file_magic_cmd begins "file"
26192 MAGIC_CMD=$MAGIC_CMD
26194 # Used on cygwin: DLL creation program.
26197 # Used on cygwin: object dumper.
26200 # Used on cygwin: assembler.
26203 # The name of the directory that contains temporary libtool files.
26206 # How to create reloadable object files.
26207 reload_flag=$lt_reload_flag
26208 reload_cmds=$lt_reload_cmds
26210 # How to pass a linker flag through the compiler.
26211 wl=$lt_lt_prog_compiler_wl_RC
26213 # Object file suffix (normally "o").
26214 objext="$ac_objext"
26216 # Old archive suffix (normally "a").
26219 # Shared library suffix (normally ".so").
26220 shrext_cmds='$shrext_cmds'
26222 # Executable file suffix (normally "").
26225 # Additional compiler flags for building library objects.
26226 pic_flag=$lt_lt_prog_compiler_pic_RC
26229 # What is the maximum length of a command?
26230 max_cmd_len=$lt_cv_sys_max_cmd_len
26232 # Does compiler simultaneously support -c and -o options?
26233 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26235 # Must we lock files when doing compilation?
26236 need_locks=$lt_need_locks
26238 # Do we need the lib prefix for modules?
26239 need_lib_prefix=$need_lib_prefix
26241 # Do we need a version for libraries?
26242 need_version=$need_version
26244 # Whether dlopen is supported.
26245 dlopen_support=$enable_dlopen
26247 # Whether dlopen of programs is supported.
26248 dlopen_self=$enable_dlopen_self
26250 # Whether dlopen of statically linked programs is supported.
26251 dlopen_self_static=$enable_dlopen_self_static
26253 # Compiler flag to prevent dynamic linking.
26254 link_static_flag=$lt_lt_prog_compiler_static_RC
26256 # Compiler flag to turn off builtin functions.
26257 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26259 # Compiler flag to allow reflexive dlopens.
26260 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26262 # Compiler flag to generate shared objects directly from archives.
26263 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26265 # Compiler flag to generate thread-safe objects.
26266 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26268 # Library versioning type.
26269 version_type=$version_type
26271 # Format of library name prefix.
26272 libname_spec=$lt_libname_spec
26274 # List of archive names. First name is the real one, the rest are links.
26275 # The last name is the one that the linker finds with -lNAME.
26276 library_names_spec=$lt_library_names_spec
26278 # The coded name of the library, if different from the real name.
26279 soname_spec=$lt_soname_spec
26281 # Commands used to build and install an old-style archive.
26283 old_archive_cmds=$lt_old_archive_cmds_RC
26284 old_postinstall_cmds=$lt_old_postinstall_cmds
26285 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26287 # Create an old-style archive from a shared archive.
26288 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26290 # Create a temporary old-style archive to link instead of a shared archive.
26291 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26293 # Commands used to build and install a shared archive.
26294 archive_cmds=$lt_archive_cmds_RC
26295 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26296 postinstall_cmds=$lt_postinstall_cmds
26297 postuninstall_cmds=$lt_postuninstall_cmds
26299 # Commands used to build a loadable module (assumed same as above if empty)
26300 module_cmds=$lt_module_cmds_RC
26301 module_expsym_cmds=$lt_module_expsym_cmds_RC
26303 # Commands to strip libraries.
26304 old_striplib=$lt_old_striplib
26305 striplib=$lt_striplib
26307 # Dependencies to place before the objects being linked to create a
26309 predep_objects=$lt_predep_objects_RC
26311 # Dependencies to place after the objects being linked to create a
26313 postdep_objects=$lt_postdep_objects_RC
26315 # Dependencies to place before the objects being linked to create a
26317 predeps=$lt_predeps_RC
26319 # Dependencies to place after the objects being linked to create a
26321 postdeps=$lt_postdeps_RC
26323 # The library search path used internally by the compiler when linking
26324 # a shared library.
26325 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26327 # Method to check whether dependent libraries are shared objects.
26328 deplibs_check_method=$lt_deplibs_check_method
26330 # Command to use when deplibs_check_method == file_magic.
26331 file_magic_cmd=$lt_file_magic_cmd
26333 # Flag that allows shared libraries with undefined symbols to be built.
26334 allow_undefined_flag=$lt_allow_undefined_flag_RC
26336 # Flag that forces no undefined symbols.
26337 no_undefined_flag=$lt_no_undefined_flag_RC
26339 # Commands used to finish a libtool library installation in a directory.
26340 finish_cmds=$lt_finish_cmds
26342 # Same as above, but a single script fragment to be evaled but not shown.
26343 finish_eval=$lt_finish_eval
26345 # Take the output of nm and produce a listing of raw symbols and C names.
26346 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26348 # Transform the output of nm in a proper C declaration
26349 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26351 # Transform the output of nm in a C name address pair
26352 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26354 # This is the shared library runtime path variable.
26355 runpath_var=$runpath_var
26357 # This is the shared library path variable.
26358 shlibpath_var=$shlibpath_var
26360 # Is shlibpath searched before the hard-coded library search path?
26361 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26363 # How to hardcode a shared library path into an executable.
26364 hardcode_action=$hardcode_action_RC
26366 # Whether we should hardcode library paths into libraries.
26367 hardcode_into_libs=$hardcode_into_libs
26369 # Flag to hardcode \$libdir into a binary during linking.
26370 # This must work even if \$libdir does not exist.
26371 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26373 # If ld is used when linking, flag to hardcode \$libdir into
26374 # a binary during linking. This must work even if \$libdir does
26376 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26378 # Whether we need a single -rpath flag with a separated argument.
26379 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26381 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26382 # resulting binary.
26383 hardcode_direct=$hardcode_direct_RC
26385 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26386 # resulting binary.
26387 hardcode_minus_L=$hardcode_minus_L_RC
26389 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26390 # the resulting binary.
26391 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26393 # Set to yes if building a shared library automatically hardcodes DIR into the library
26394 # and all subsequent libraries and executables linked against it.
26395 hardcode_automatic=$hardcode_automatic_RC
26397 # Variables whose values should be saved in libtool wrapper scripts and
26398 # restored at relink time.
26399 variables_saved_for_relink="$variables_saved_for_relink"
26401 # Whether libtool must link a program against all its dependency libraries.
26402 link_all_deplibs=$link_all_deplibs_RC
26404 # Compile-time system search path for libraries
26405 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26407 # Run-time system search path for libraries
26408 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26410 # Fix the shell variable \$srcfile for the compiler.
26411 fix_srcfile_path="$fix_srcfile_path_RC"
26413 # Set to yes if exported symbols are required.
26414 always_export_symbols=$always_export_symbols_RC
26416 # The commands to list exported symbols.
26417 export_symbols_cmds=$lt_export_symbols_cmds_RC
26419 # The commands to extract the exported symbol list from a shared archive.
26420 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26422 # Symbols that should not be listed in the preloaded symbols.
26423 exclude_expsyms=$lt_exclude_expsyms_RC
26425 # Symbols that must always be exported.
26426 include_expsyms=$lt_include_expsyms_RC
26428 # ### END LIBTOOL TAG CONFIG: $tagname
26434 # If there is no Makefile yet, we rely on a make rule to execute
26435 # `config.status --recheck' to rerun these tests and create the
26436 # libtool script then.
26437 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26438 if test -f "$ltmain_in"; then
26439 test -f Makefile && make "$ltmain"
26445 ac_cpp='$CPP $CPPFLAGS'
26446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26455 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26456 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26457 { (exit 1); exit 1; }; }
26461 # Append the new tag name to the list of available tags.
26462 if test -n "$tagname" ; then
26463 available_tags="$available_tags $tagname"
26469 # Now substitute the updated list of available tags.
26470 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26471 mv "${ofile}T" "$ofile"
26475 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26476 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26477 { (exit 1); exit 1; }; }
26483 # This can be used to rebuild libtool when needed
26484 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26486 # Always use our own libtool.
26487 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26489 # Prevent multiple expansion
26511 if test "$lt_cv_dlopen_self" = "yes" ; then
26513 cat >>confdefs.h <<\_ACEOF
26514 #define CAN_DLOPEN_SELF 1
26519 etags_version=`$ETAGS --version 2>&1`
26520 case "$etags_version" in
26521 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26522 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26523 *) ETAGSFLAGS="" ;;
26525 ETAGSFLAGS=$ETAGSFLAGS
26528 if test "$WITH_LLVMGCCDIR" = "default" ; then
26529 LLVMGCC="llvm-gcc${EXEEXT}"
26530 LLVMGXX="llvm-g++${EXEEXT}"
26531 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26532 set dummy $LLVMGCC; ac_word=$2
26533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26535 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26536 echo $ECHO_N "(cached) $ECHO_C" >&6
26540 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26544 for as_dir in $PATH
26547 test -z "$as_dir" && as_dir=.
26548 for ac_exec_ext in '' $ac_executable_extensions; do
26549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26550 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26561 LLVMGCC=$ac_cv_path_LLVMGCC
26562 if test -n "$LLVMGCC"; then
26563 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26564 echo "${ECHO_T}$LLVMGCC" >&6; }
26566 { echo "$as_me:$LINENO: result: no" >&5
26567 echo "${ECHO_T}no" >&6; }
26571 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26572 set dummy $LLVMGXX; ac_word=$2
26573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26575 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26576 echo $ECHO_N "(cached) $ECHO_C" >&6
26580 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26584 for as_dir in $PATH
26587 test -z "$as_dir" && as_dir=.
26588 for ac_exec_ext in '' $ac_executable_extensions; do
26589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26590 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26601 LLVMGXX=$ac_cv_path_LLVMGXX
26602 if test -n "$LLVMGXX"; then
26603 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26604 echo "${ECHO_T}$LLVMGXX" >&6; }
26606 { echo "$as_me:$LINENO: result: no" >&5
26607 echo "${ECHO_T}no" >&6; }
26612 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26613 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26620 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26621 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26634 if test "$GCC" != "yes" && test "$ICC" != "yes"
26636 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26637 echo "$as_me: error: gcc|icc required but not found" >&2;}
26638 { (exit 1); exit 1; }; }
26641 if test "$GXX" != "yes" && test "$IXX" != "yes"
26643 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26644 echo "$as_me: error: g++|icc required but not found" >&2;}
26645 { (exit 1); exit 1; }; }
26648 if test "$GCC" = "yes"
26650 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26651 if test "$gccmajor" -lt "3"
26653 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26654 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26655 { (exit 1); exit 1; }; }
26659 if test -z "$llvm_cv_gnu_make_command"
26661 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26662 echo "$as_me: error: GNU Make required but not found" >&2;}
26663 { (exit 1); exit 1; }; }
26666 { echo "$as_me:$LINENO: result: ok" >&5
26667 echo "${ECHO_T}ok" >&6; }
26671 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26672 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26673 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26674 echo $ECHO_N "(cached) $ECHO_C" >&6
26676 ac_check_lib_save_LIBS=$LIBS
26678 cat >conftest.$ac_ext <<_ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h. */
26685 /* Override any GCC internal prototype to avoid an error.
26686 Use char because int might match the return type of a GCC
26687 builtin and then its argument prototype would still apply. */
26695 return elf_begin ();
26700 rm -f conftest.$ac_objext conftest$ac_exeext
26701 if { (ac_try="$ac_link"
26702 case "(($ac_try" in
26703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26704 *) ac_try_echo=$ac_try;;
26706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26707 (eval "$ac_link") 2>conftest.er1
26709 grep -v '^ *+' conftest.er1 >conftest.err
26711 cat conftest.err >&5
26712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713 (exit $ac_status); } &&
26714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26715 { (case "(($ac_try" in
26716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26717 *) ac_try_echo=$ac_try;;
26719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26720 (eval "$ac_try") 2>&5
26722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723 (exit $ac_status); }; } &&
26724 { ac_try='test -s conftest$ac_exeext'
26725 { (case "(($ac_try" in
26726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26727 *) ac_try_echo=$ac_try;;
26729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26730 (eval "$ac_try") 2>&5
26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); }; }; then
26734 ac_cv_lib_elf_elf_begin=yes
26736 echo "$as_me: failed program was:" >&5
26737 sed 's/^/| /' conftest.$ac_ext >&5
26739 ac_cv_lib_elf_elf_begin=no
26742 rm -f core conftest.err conftest.$ac_objext \
26743 conftest$ac_exeext conftest.$ac_ext
26744 LIBS=$ac_check_lib_save_LIBS
26746 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26747 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26748 if test $ac_cv_lib_elf_elf_begin = yes; then
26749 cat >>confdefs.h <<_ACEOF
26750 #define HAVE_LIBELF 1
26758 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26759 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26760 if test "${ac_cv_lib_m_sin+set}" = set; then
26761 echo $ECHO_N "(cached) $ECHO_C" >&6
26763 ac_check_lib_save_LIBS=$LIBS
26765 cat >conftest.$ac_ext <<_ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h. */
26772 /* Override any GCC internal prototype to avoid an error.
26773 Use char because int might match the return type of a GCC
26774 builtin and then its argument prototype would still apply. */
26787 rm -f conftest.$ac_objext conftest$ac_exeext
26788 if { (ac_try="$ac_link"
26789 case "(($ac_try" in
26790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26791 *) ac_try_echo=$ac_try;;
26793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26794 (eval "$ac_link") 2>conftest.er1
26796 grep -v '^ *+' conftest.er1 >conftest.err
26798 cat conftest.err >&5
26799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800 (exit $ac_status); } &&
26801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26802 { (case "(($ac_try" in
26803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26804 *) ac_try_echo=$ac_try;;
26806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26807 (eval "$ac_try") 2>&5
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); }; } &&
26811 { ac_try='test -s conftest$ac_exeext'
26812 { (case "(($ac_try" in
26813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814 *) ac_try_echo=$ac_try;;
26816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817 (eval "$ac_try") 2>&5
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; }; then
26821 ac_cv_lib_m_sin=yes
26823 echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26829 rm -f core conftest.err conftest.$ac_objext \
26830 conftest$ac_exeext conftest.$ac_ext
26831 LIBS=$ac_check_lib_save_LIBS
26833 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26834 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26835 if test $ac_cv_lib_m_sin = yes; then
26836 cat >>confdefs.h <<_ACEOF
26837 #define HAVE_LIBM 1
26844 if test "$llvm_cv_os_type" == "MingW" ; then
26846 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26847 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26848 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26849 echo $ECHO_N "(cached) $ECHO_C" >&6
26851 ac_check_lib_save_LIBS=$LIBS
26852 LIBS="-limagehlp $LIBS"
26853 cat >conftest.$ac_ext <<_ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h. */
26869 rm -f conftest.$ac_objext conftest$ac_exeext
26870 if { (ac_try="$ac_link"
26871 case "(($ac_try" in
26872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26873 *) ac_try_echo=$ac_try;;
26875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26876 (eval "$ac_link") 2>conftest.er1
26878 grep -v '^ *+' conftest.er1 >conftest.err
26880 cat conftest.err >&5
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); } &&
26883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26884 { (case "(($ac_try" in
26885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26886 *) ac_try_echo=$ac_try;;
26888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26889 (eval "$ac_try") 2>&5
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); }; } &&
26893 { ac_try='test -s conftest$ac_exeext'
26894 { (case "(($ac_try" in
26895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896 *) ac_try_echo=$ac_try;;
26898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26899 (eval "$ac_try") 2>&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); }; }; then
26903 ac_cv_lib_imagehlp_main=yes
26905 echo "$as_me: failed program was:" >&5
26906 sed 's/^/| /' conftest.$ac_ext >&5
26908 ac_cv_lib_imagehlp_main=no
26911 rm -f core conftest.err conftest.$ac_objext \
26912 conftest$ac_exeext conftest.$ac_ext
26913 LIBS=$ac_check_lib_save_LIBS
26915 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26916 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26917 if test $ac_cv_lib_imagehlp_main = yes; then
26918 cat >>confdefs.h <<_ACEOF
26919 #define HAVE_LIBIMAGEHLP 1
26922 LIBS="-limagehlp $LIBS"
26927 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26928 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26929 if test "${ac_cv_lib_psapi_main+set}" = set; then
26930 echo $ECHO_N "(cached) $ECHO_C" >&6
26932 ac_check_lib_save_LIBS=$LIBS
26933 LIBS="-lpsapi $LIBS"
26934 cat >conftest.$ac_ext <<_ACEOF
26937 cat confdefs.h >>conftest.$ac_ext
26938 cat >>conftest.$ac_ext <<_ACEOF
26939 /* end confdefs.h. */
26950 rm -f conftest.$ac_objext conftest$ac_exeext
26951 if { (ac_try="$ac_link"
26952 case "(($ac_try" in
26953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26954 *) ac_try_echo=$ac_try;;
26956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26957 (eval "$ac_link") 2>conftest.er1
26959 grep -v '^ *+' conftest.er1 >conftest.err
26961 cat conftest.err >&5
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); } &&
26964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26965 { (case "(($ac_try" in
26966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967 *) ac_try_echo=$ac_try;;
26969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26970 (eval "$ac_try") 2>&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); }; } &&
26974 { ac_try='test -s conftest$ac_exeext'
26975 { (case "(($ac_try" in
26976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26977 *) ac_try_echo=$ac_try;;
26979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26980 (eval "$ac_try") 2>&5
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; }; then
26984 ac_cv_lib_psapi_main=yes
26986 echo "$as_me: failed program was:" >&5
26987 sed 's/^/| /' conftest.$ac_ext >&5
26989 ac_cv_lib_psapi_main=no
26992 rm -f core conftest.err conftest.$ac_objext \
26993 conftest$ac_exeext conftest.$ac_ext
26994 LIBS=$ac_check_lib_save_LIBS
26996 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26997 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26998 if test $ac_cv_lib_psapi_main = yes; then
26999 cat >>confdefs.h <<_ACEOF
27000 #define HAVE_LIBPSAPI 1
27003 LIBS="-lpsapi $LIBS"
27009 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27010 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27011 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27012 echo $ECHO_N "(cached) $ECHO_C" >&6
27014 ac_func_search_save_LIBS=$LIBS
27015 cat >conftest.$ac_ext <<_ACEOF
27018 cat confdefs.h >>conftest.$ac_ext
27019 cat >>conftest.$ac_ext <<_ACEOF
27020 /* end confdefs.h. */
27022 /* Override any GCC internal prototype to avoid an error.
27023 Use char because int might match the return type of a GCC
27024 builtin and then its argument prototype would still apply. */
27032 return lt_dlopen ();
27037 for ac_lib in '' ltdl; do
27038 if test -z "$ac_lib"; then
27039 ac_res="none required"
27042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27044 rm -f conftest.$ac_objext conftest$ac_exeext
27045 if { (ac_try="$ac_link"
27046 case "(($ac_try" in
27047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27048 *) ac_try_echo=$ac_try;;
27050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27051 (eval "$ac_link") 2>conftest.er1
27053 grep -v '^ *+' conftest.er1 >conftest.err
27055 cat conftest.err >&5
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); } &&
27058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27059 { (case "(($ac_try" in
27060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27061 *) ac_try_echo=$ac_try;;
27063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27064 (eval "$ac_try") 2>&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); }; } &&
27068 { ac_try='test -s conftest$ac_exeext'
27069 { (case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_try") 2>&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; }; then
27078 ac_cv_search_lt_dlopen=$ac_res
27080 echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27086 rm -f core conftest.err conftest.$ac_objext \
27088 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27092 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27095 ac_cv_search_lt_dlopen=no
27097 rm conftest.$ac_ext
27098 LIBS=$ac_func_search_save_LIBS
27100 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27101 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27102 ac_res=$ac_cv_search_lt_dlopen
27103 if test "$ac_res" != no; then
27104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27106 cat >>confdefs.h <<\_ACEOF
27107 #define HAVE_LT_DLOPEN 1
27111 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27112 not be available" >&5
27113 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27114 not be available" >&2;}
27118 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27119 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27120 if test "${ac_cv_search_dlopen+set}" = set; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27123 ac_func_search_save_LIBS=$LIBS
27124 cat >conftest.$ac_ext <<_ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h. */
27131 /* Override any GCC internal prototype to avoid an error.
27132 Use char because int might match the return type of a GCC
27133 builtin and then its argument prototype would still apply. */
27146 for ac_lib in '' dl; do
27147 if test -z "$ac_lib"; then
27148 ac_res="none required"
27151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27153 rm -f conftest.$ac_objext conftest$ac_exeext
27154 if { (ac_try="$ac_link"
27155 case "(($ac_try" in
27156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27157 *) ac_try_echo=$ac_try;;
27159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27160 (eval "$ac_link") 2>conftest.er1
27162 grep -v '^ *+' conftest.er1 >conftest.err
27164 cat conftest.err >&5
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); } &&
27167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27168 { (case "(($ac_try" in
27169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27170 *) ac_try_echo=$ac_try;;
27172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27173 (eval "$ac_try") 2>&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); }; } &&
27177 { ac_try='test -s conftest$ac_exeext'
27178 { (case "(($ac_try" in
27179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27180 *) ac_try_echo=$ac_try;;
27182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27183 (eval "$ac_try") 2>&5
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; }; then
27187 ac_cv_search_dlopen=$ac_res
27189 echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27195 rm -f core conftest.err conftest.$ac_objext \
27197 if test "${ac_cv_search_dlopen+set}" = set; then
27201 if test "${ac_cv_search_dlopen+set}" = set; then
27204 ac_cv_search_dlopen=no
27206 rm conftest.$ac_ext
27207 LIBS=$ac_func_search_save_LIBS
27209 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27210 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27211 ac_res=$ac_cv_search_dlopen
27212 if test "$ac_res" != no; then
27213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27215 cat >>confdefs.h <<\_ACEOF
27216 #define HAVE_DLOPEN 1
27220 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27221 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27225 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27226 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27227 if test "${ac_cv_search_mallinfo+set}" = set; then
27228 echo $ECHO_N "(cached) $ECHO_C" >&6
27230 ac_func_search_save_LIBS=$LIBS
27231 cat >conftest.$ac_ext <<_ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h. */
27238 /* Override any GCC internal prototype to avoid an error.
27239 Use char because int might match the return type of a GCC
27240 builtin and then its argument prototype would still apply. */
27248 return mallinfo ();
27253 for ac_lib in '' malloc; do
27254 if test -z "$ac_lib"; then
27255 ac_res="none required"
27258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27260 rm -f conftest.$ac_objext conftest$ac_exeext
27261 if { (ac_try="$ac_link"
27262 case "(($ac_try" in
27263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27264 *) ac_try_echo=$ac_try;;
27266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267 (eval "$ac_link") 2>conftest.er1
27269 grep -v '^ *+' conftest.er1 >conftest.err
27271 cat conftest.err >&5
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); } &&
27274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27275 { (case "(($ac_try" in
27276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27277 *) ac_try_echo=$ac_try;;
27279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27280 (eval "$ac_try") 2>&5
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); }; } &&
27284 { ac_try='test -s conftest$ac_exeext'
27285 { (case "(($ac_try" in
27286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287 *) ac_try_echo=$ac_try;;
27289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27290 (eval "$ac_try") 2>&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); }; }; then
27294 ac_cv_search_mallinfo=$ac_res
27296 echo "$as_me: failed program was:" >&5
27297 sed 's/^/| /' conftest.$ac_ext >&5
27302 rm -f core conftest.err conftest.$ac_objext \
27304 if test "${ac_cv_search_mallinfo+set}" = set; then
27308 if test "${ac_cv_search_mallinfo+set}" = set; then
27311 ac_cv_search_mallinfo=no
27313 rm conftest.$ac_ext
27314 LIBS=$ac_func_search_save_LIBS
27316 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27317 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27318 ac_res=$ac_cv_search_mallinfo
27319 if test "$ac_res" != no; then
27320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27322 cat >>confdefs.h <<\_ACEOF
27323 #define HAVE_MALLINFO 1
27329 if test "$ENABLE_THREADS" -eq 1 ; then
27331 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27332 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27333 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27334 echo $ECHO_N "(cached) $ECHO_C" >&6
27336 ac_check_lib_save_LIBS=$LIBS
27337 LIBS="-lpthread $LIBS"
27338 cat >conftest.$ac_ext <<_ACEOF
27341 cat confdefs.h >>conftest.$ac_ext
27342 cat >>conftest.$ac_ext <<_ACEOF
27343 /* end confdefs.h. */
27345 /* Override any GCC internal prototype to avoid an error.
27346 Use char because int might match the return type of a GCC
27347 builtin and then its argument prototype would still apply. */
27351 char pthread_mutex_init ();
27355 return pthread_mutex_init ();
27360 rm -f conftest.$ac_objext conftest$ac_exeext
27361 if { (ac_try="$ac_link"
27362 case "(($ac_try" in
27363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27364 *) ac_try_echo=$ac_try;;
27366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27367 (eval "$ac_link") 2>conftest.er1
27369 grep -v '^ *+' conftest.er1 >conftest.err
27371 cat conftest.err >&5
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); } &&
27374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27375 { (case "(($ac_try" in
27376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377 *) ac_try_echo=$ac_try;;
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380 (eval "$ac_try") 2>&5
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); }; } &&
27384 { ac_try='test -s conftest$ac_exeext'
27385 { (case "(($ac_try" in
27386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387 *) ac_try_echo=$ac_try;;
27389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27390 (eval "$ac_try") 2>&5
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); }; }; then
27394 ac_cv_lib_pthread_pthread_mutex_init=yes
27396 echo "$as_me: failed program was:" >&5
27397 sed 's/^/| /' conftest.$ac_ext >&5
27399 ac_cv_lib_pthread_pthread_mutex_init=no
27402 rm -f core conftest.err conftest.$ac_objext \
27403 conftest$ac_exeext conftest.$ac_ext
27404 LIBS=$ac_check_lib_save_LIBS
27406 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27407 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27408 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27409 cat >>confdefs.h <<_ACEOF
27410 #define HAVE_LIBPTHREAD 1
27413 LIBS="-lpthread $LIBS"
27417 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27418 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27419 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27420 echo $ECHO_N "(cached) $ECHO_C" >&6
27422 ac_func_search_save_LIBS=$LIBS
27423 cat >conftest.$ac_ext <<_ACEOF
27426 cat confdefs.h >>conftest.$ac_ext
27427 cat >>conftest.$ac_ext <<_ACEOF
27428 /* end confdefs.h. */
27430 /* Override any GCC internal prototype to avoid an error.
27431 Use char because int might match the return type of a GCC
27432 builtin and then its argument prototype would still apply. */
27436 char pthread_mutex_lock ();
27440 return pthread_mutex_lock ();
27445 for ac_lib in '' pthread; do
27446 if test -z "$ac_lib"; then
27447 ac_res="none required"
27450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27452 rm -f conftest.$ac_objext conftest$ac_exeext
27453 if { (ac_try="$ac_link"
27454 case "(($ac_try" in
27455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27456 *) ac_try_echo=$ac_try;;
27458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27459 (eval "$ac_link") 2>conftest.er1
27461 grep -v '^ *+' conftest.er1 >conftest.err
27463 cat conftest.err >&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } &&
27466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27467 { (case "(($ac_try" in
27468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469 *) ac_try_echo=$ac_try;;
27471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27472 (eval "$ac_try") 2>&5
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); }; } &&
27476 { ac_try='test -s conftest$ac_exeext'
27477 { (case "(($ac_try" in
27478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27479 *) ac_try_echo=$ac_try;;
27481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27482 (eval "$ac_try") 2>&5
27484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); }; }; then
27486 ac_cv_search_pthread_mutex_lock=$ac_res
27488 echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27494 rm -f core conftest.err conftest.$ac_objext \
27496 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27500 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27503 ac_cv_search_pthread_mutex_lock=no
27505 rm conftest.$ac_ext
27506 LIBS=$ac_func_search_save_LIBS
27508 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27509 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27510 ac_res=$ac_cv_search_pthread_mutex_lock
27511 if test "$ac_res" != no; then
27512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27514 cat >>confdefs.h <<\_ACEOF
27515 #define HAVE_PTHREAD_MUTEX_LOCK 1
27528 ac_header_dirent=no
27529 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27530 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27531 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27532 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27534 echo $ECHO_N "(cached) $ECHO_C" >&6
27536 cat >conftest.$ac_ext <<_ACEOF
27539 cat confdefs.h >>conftest.$ac_ext
27540 cat >>conftest.$ac_ext <<_ACEOF
27541 /* end confdefs.h. */
27542 #include <sys/types.h>
27554 rm -f conftest.$ac_objext
27555 if { (ac_try="$ac_compile"
27556 case "(($ac_try" in
27557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27558 *) ac_try_echo=$ac_try;;
27560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27561 (eval "$ac_compile") 2>conftest.er1
27563 grep -v '^ *+' conftest.er1 >conftest.err
27565 cat conftest.err >&5
27566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567 (exit $ac_status); } &&
27568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27569 { (case "(($ac_try" in
27570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571 *) ac_try_echo=$ac_try;;
27573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27574 (eval "$ac_try") 2>&5
27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577 (exit $ac_status); }; } &&
27578 { ac_try='test -s conftest.$ac_objext'
27579 { (case "(($ac_try" in
27580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27581 *) ac_try_echo=$ac_try;;
27583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27584 (eval "$ac_try") 2>&5
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); }; }; then
27588 eval "$as_ac_Header=yes"
27590 echo "$as_me: failed program was:" >&5
27591 sed 's/^/| /' conftest.$ac_ext >&5
27593 eval "$as_ac_Header=no"
27596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27598 ac_res=`eval echo '${'$as_ac_Header'}'`
27599 { echo "$as_me:$LINENO: result: $ac_res" >&5
27600 echo "${ECHO_T}$ac_res" >&6; }
27601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27602 cat >>confdefs.h <<_ACEOF
27603 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27606 ac_header_dirent=$ac_hdr; break
27610 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27611 if test $ac_header_dirent = dirent.h; then
27612 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27613 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27614 if test "${ac_cv_search_opendir+set}" = set; then
27615 echo $ECHO_N "(cached) $ECHO_C" >&6
27617 ac_func_search_save_LIBS=$LIBS
27618 cat >conftest.$ac_ext <<_ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27625 /* Override any GCC internal prototype to avoid an error.
27626 Use char because int might match the return type of a GCC
27627 builtin and then its argument prototype would still apply. */
27640 for ac_lib in '' dir; do
27641 if test -z "$ac_lib"; then
27642 ac_res="none required"
27645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27647 rm -f conftest.$ac_objext conftest$ac_exeext
27648 if { (ac_try="$ac_link"
27649 case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654 (eval "$ac_link") 2>conftest.er1
27656 grep -v '^ *+' conftest.er1 >conftest.err
27658 cat conftest.err >&5
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); } &&
27661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27662 { (case "(($ac_try" in
27663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664 *) ac_try_echo=$ac_try;;
27666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667 (eval "$ac_try") 2>&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; } &&
27671 { ac_try='test -s conftest$ac_exeext'
27672 { (case "(($ac_try" in
27673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27674 *) ac_try_echo=$ac_try;;
27676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27677 (eval "$ac_try") 2>&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; }; then
27681 ac_cv_search_opendir=$ac_res
27683 echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27689 rm -f core conftest.err conftest.$ac_objext \
27691 if test "${ac_cv_search_opendir+set}" = set; then
27695 if test "${ac_cv_search_opendir+set}" = set; then
27698 ac_cv_search_opendir=no
27700 rm conftest.$ac_ext
27701 LIBS=$ac_func_search_save_LIBS
27703 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27704 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27705 ac_res=$ac_cv_search_opendir
27706 if test "$ac_res" != no; then
27707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27712 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27713 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27714 if test "${ac_cv_search_opendir+set}" = set; then
27715 echo $ECHO_N "(cached) $ECHO_C" >&6
27717 ac_func_search_save_LIBS=$LIBS
27718 cat >conftest.$ac_ext <<_ACEOF
27721 cat confdefs.h >>conftest.$ac_ext
27722 cat >>conftest.$ac_ext <<_ACEOF
27723 /* end confdefs.h. */
27725 /* Override any GCC internal prototype to avoid an error.
27726 Use char because int might match the return type of a GCC
27727 builtin and then its argument prototype would still apply. */
27740 for ac_lib in '' x; do
27741 if test -z "$ac_lib"; then
27742 ac_res="none required"
27745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27747 rm -f conftest.$ac_objext conftest$ac_exeext
27748 if { (ac_try="$ac_link"
27749 case "(($ac_try" in
27750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751 *) ac_try_echo=$ac_try;;
27753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27754 (eval "$ac_link") 2>conftest.er1
27756 grep -v '^ *+' conftest.er1 >conftest.err
27758 cat conftest.err >&5
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); } &&
27761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27762 { (case "(($ac_try" in
27763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27764 *) ac_try_echo=$ac_try;;
27766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27767 (eval "$ac_try") 2>&5
27769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); }; } &&
27771 { ac_try='test -s conftest$ac_exeext'
27772 { (case "(($ac_try" in
27773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27774 *) ac_try_echo=$ac_try;;
27776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27777 (eval "$ac_try") 2>&5
27779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780 (exit $ac_status); }; }; then
27781 ac_cv_search_opendir=$ac_res
27783 echo "$as_me: failed program was:" >&5
27784 sed 's/^/| /' conftest.$ac_ext >&5
27789 rm -f core conftest.err conftest.$ac_objext \
27791 if test "${ac_cv_search_opendir+set}" = set; then
27795 if test "${ac_cv_search_opendir+set}" = set; then
27798 ac_cv_search_opendir=no
27800 rm conftest.$ac_ext
27801 LIBS=$ac_func_search_save_LIBS
27803 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27804 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27805 ac_res=$ac_cv_search_opendir
27806 if test "$ac_res" != no; then
27807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27813 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27814 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27815 if test "${ac_cv_header_mmap_anon+set}" = set; then
27816 echo $ECHO_N "(cached) $ECHO_C" >&6
27819 ac_cpp='$CPP $CPPFLAGS'
27820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27824 cat >conftest.$ac_ext <<_ACEOF
27827 cat confdefs.h >>conftest.$ac_ext
27828 cat >>conftest.$ac_ext <<_ACEOF
27829 /* end confdefs.h. */
27830 #include <sys/mman.h>
27831 #include <unistd.h>
27836 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27841 rm -f conftest.$ac_objext
27842 if { (ac_try="$ac_compile"
27843 case "(($ac_try" in
27844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27845 *) ac_try_echo=$ac_try;;
27847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27848 (eval "$ac_compile") 2>conftest.er1
27850 grep -v '^ *+' conftest.er1 >conftest.err
27852 cat conftest.err >&5
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); } &&
27855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27856 { (case "(($ac_try" in
27857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858 *) ac_try_echo=$ac_try;;
27860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861 (eval "$ac_try") 2>&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; } &&
27865 { ac_try='test -s conftest.$ac_objext'
27866 { (case "(($ac_try" in
27867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868 *) ac_try_echo=$ac_try;;
27870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871 (eval "$ac_try") 2>&5
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); }; }; then
27875 ac_cv_header_mmap_anon=yes
27877 echo "$as_me: failed program was:" >&5
27878 sed 's/^/| /' conftest.$ac_ext >&5
27880 ac_cv_header_mmap_anon=no
27883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27885 ac_cpp='$CPP $CPPFLAGS'
27886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27892 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27893 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27894 if test "$ac_cv_header_mmap_anon" = yes; then
27896 cat >>confdefs.h <<\_ACEOF
27897 #define HAVE_MMAP_ANONYMOUS 1
27902 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27903 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27904 if test "${ac_cv_header_stat_broken+set}" = set; then
27905 echo $ECHO_N "(cached) $ECHO_C" >&6
27907 cat >conftest.$ac_ext <<_ACEOF
27910 cat confdefs.h >>conftest.$ac_ext
27911 cat >>conftest.$ac_ext <<_ACEOF
27912 /* end confdefs.h. */
27913 #include <sys/types.h>
27914 #include <sys/stat.h>
27916 #if defined S_ISBLK && defined S_IFDIR
27917 # if S_ISBLK (S_IFDIR)
27922 #if defined S_ISBLK && defined S_IFCHR
27923 # if S_ISBLK (S_IFCHR)
27928 #if defined S_ISLNK && defined S_IFREG
27929 # if S_ISLNK (S_IFREG)
27934 #if defined S_ISSOCK && defined S_IFREG
27935 # if S_ISSOCK (S_IFREG)
27941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27942 $EGREP "You lose" >/dev/null 2>&1; then
27943 ac_cv_header_stat_broken=yes
27945 ac_cv_header_stat_broken=no
27950 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27951 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27952 if test $ac_cv_header_stat_broken = yes; then
27954 cat >>confdefs.h <<\_ACEOF
27955 #define STAT_MACROS_BROKEN 1
27960 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27961 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27962 if test "${ac_cv_header_stdc+set}" = set; then
27963 echo $ECHO_N "(cached) $ECHO_C" >&6
27965 cat >conftest.$ac_ext <<_ACEOF
27968 cat confdefs.h >>conftest.$ac_ext
27969 cat >>conftest.$ac_ext <<_ACEOF
27970 /* end confdefs.h. */
27971 #include <stdlib.h>
27972 #include <stdarg.h>
27973 #include <string.h>
27984 rm -f conftest.$ac_objext
27985 if { (ac_try="$ac_compile"
27986 case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991 (eval "$ac_compile") 2>conftest.er1
27993 grep -v '^ *+' conftest.er1 >conftest.err
27995 cat conftest.err >&5
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); } &&
27998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27999 { (case "(($ac_try" in
28000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28001 *) ac_try_echo=$ac_try;;
28003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28004 (eval "$ac_try") 2>&5
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); }; } &&
28008 { ac_try='test -s conftest.$ac_objext'
28009 { (case "(($ac_try" in
28010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28011 *) ac_try_echo=$ac_try;;
28013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28014 (eval "$ac_try") 2>&5
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); }; }; then
28018 ac_cv_header_stdc=yes
28020 echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.$ac_ext >&5
28023 ac_cv_header_stdc=no
28026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28028 if test $ac_cv_header_stdc = yes; then
28029 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28030 cat >conftest.$ac_ext <<_ACEOF
28033 cat confdefs.h >>conftest.$ac_ext
28034 cat >>conftest.$ac_ext <<_ACEOF
28035 /* end confdefs.h. */
28036 #include <string.h>
28039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28040 $EGREP "memchr" >/dev/null 2>&1; then
28043 ac_cv_header_stdc=no
28049 if test $ac_cv_header_stdc = yes; then
28050 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28051 cat >conftest.$ac_ext <<_ACEOF
28054 cat confdefs.h >>conftest.$ac_ext
28055 cat >>conftest.$ac_ext <<_ACEOF
28056 /* end confdefs.h. */
28057 #include <stdlib.h>
28060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28061 $EGREP "free" >/dev/null 2>&1; then
28064 ac_cv_header_stdc=no
28070 if test $ac_cv_header_stdc = yes; then
28071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28072 if test "$cross_compiling" = yes; then
28075 cat >conftest.$ac_ext <<_ACEOF
28078 cat confdefs.h >>conftest.$ac_ext
28079 cat >>conftest.$ac_ext <<_ACEOF
28080 /* end confdefs.h. */
28082 #include <stdlib.h>
28083 #if ((' ' & 0x0FF) == 0x020)
28084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28087 # define ISLOWER(c) \
28088 (('a' <= (c) && (c) <= 'i') \
28089 || ('j' <= (c) && (c) <= 'r') \
28090 || ('s' <= (c) && (c) <= 'z'))
28091 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28094 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28099 for (i = 0; i < 256; i++)
28100 if (XOR (islower (i), ISLOWER (i))
28101 || toupper (i) != TOUPPER (i))
28106 rm -f conftest$ac_exeext
28107 if { (ac_try="$ac_link"
28108 case "(($ac_try" in
28109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110 *) ac_try_echo=$ac_try;;
28112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28113 (eval "$ac_link") 2>&5
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28117 { (case "(($ac_try" in
28118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119 *) ac_try_echo=$ac_try;;
28121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122 (eval "$ac_try") 2>&5
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; }; then
28128 echo "$as_me: program exited with status $ac_status" >&5
28129 echo "$as_me: failed program was:" >&5
28130 sed 's/^/| /' conftest.$ac_ext >&5
28132 ( exit $ac_status )
28133 ac_cv_header_stdc=no
28135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28141 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28142 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28143 if test $ac_cv_header_stdc = yes; then
28145 cat >>confdefs.h <<\_ACEOF
28146 #define STDC_HEADERS 1
28151 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28152 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28153 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28154 echo $ECHO_N "(cached) $ECHO_C" >&6
28156 cat >conftest.$ac_ext <<_ACEOF
28159 cat confdefs.h >>conftest.$ac_ext
28160 cat >>conftest.$ac_ext <<_ACEOF
28161 /* end confdefs.h. */
28162 #include <sys/types.h>
28163 #include <sys/wait.h>
28164 #ifndef WEXITSTATUS
28165 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28168 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28181 rm -f conftest.$ac_objext
28182 if { (ac_try="$ac_compile"
28183 case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_compile") 2>conftest.er1
28190 grep -v '^ *+' conftest.er1 >conftest.err
28192 cat conftest.err >&5
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); } &&
28195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28196 { (case "(($ac_try" in
28197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28198 *) ac_try_echo=$ac_try;;
28200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28201 (eval "$ac_try") 2>&5
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); }; } &&
28205 { ac_try='test -s conftest.$ac_objext'
28206 { (case "(($ac_try" in
28207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28208 *) ac_try_echo=$ac_try;;
28210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28211 (eval "$ac_try") 2>&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); }; }; then
28215 ac_cv_header_sys_wait_h=yes
28217 echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28220 ac_cv_header_sys_wait_h=no
28223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28225 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28226 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28227 if test $ac_cv_header_sys_wait_h = yes; then
28229 cat >>confdefs.h <<\_ACEOF
28230 #define HAVE_SYS_WAIT_H 1
28235 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28236 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28237 if test "${ac_cv_header_time+set}" = set; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28240 cat >conftest.$ac_ext <<_ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h. */
28246 #include <sys/types.h>
28247 #include <sys/time.h>
28253 if ((struct tm *) 0)
28259 rm -f conftest.$ac_objext
28260 if { (ac_try="$ac_compile"
28261 case "(($ac_try" in
28262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28263 *) ac_try_echo=$ac_try;;
28265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28266 (eval "$ac_compile") 2>conftest.er1
28268 grep -v '^ *+' conftest.er1 >conftest.err
28270 cat conftest.err >&5
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); } &&
28273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28274 { (case "(($ac_try" in
28275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276 *) ac_try_echo=$ac_try;;
28278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279 (eval "$ac_try") 2>&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); }; } &&
28283 { ac_try='test -s conftest.$ac_objext'
28284 { (case "(($ac_try" in
28285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28286 *) ac_try_echo=$ac_try;;
28288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28289 (eval "$ac_try") 2>&5
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; }; then
28293 ac_cv_header_time=yes
28295 echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.$ac_ext >&5
28298 ac_cv_header_time=no
28301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28303 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28304 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28305 if test $ac_cv_header_time = yes; then
28307 cat >>confdefs.h <<\_ACEOF
28308 #define TIME_WITH_SYS_TIME 1
28320 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28327 echo $ECHO_N "(cached) $ECHO_C" >&6
28329 ac_res=`eval echo '${'$as_ac_Header'}'`
28330 { echo "$as_me:$LINENO: result: $ac_res" >&5
28331 echo "${ECHO_T}$ac_res" >&6; }
28333 # Is the header compilable?
28334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28336 cat >conftest.$ac_ext <<_ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h. */
28342 $ac_includes_default
28343 #include <$ac_header>
28345 rm -f conftest.$ac_objext
28346 if { (ac_try="$ac_compile"
28347 case "(($ac_try" in
28348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349 *) ac_try_echo=$ac_try;;
28351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352 (eval "$ac_compile") 2>conftest.er1
28354 grep -v '^ *+' conftest.er1 >conftest.err
28356 cat conftest.err >&5
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); } &&
28359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28360 { (case "(($ac_try" in
28361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362 *) ac_try_echo=$ac_try;;
28364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365 (eval "$ac_try") 2>&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; } &&
28369 { ac_try='test -s conftest.$ac_objext'
28370 { (case "(($ac_try" in
28371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28372 *) ac_try_echo=$ac_try;;
28374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28375 (eval "$ac_try") 2>&5
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); }; }; then
28379 ac_header_compiler=yes
28381 echo "$as_me: failed program was:" >&5
28382 sed 's/^/| /' conftest.$ac_ext >&5
28384 ac_header_compiler=no
28387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28389 echo "${ECHO_T}$ac_header_compiler" >&6; }
28391 # Is the header present?
28392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28394 cat >conftest.$ac_ext <<_ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h. */
28400 #include <$ac_header>
28402 if { (ac_try="$ac_cpp conftest.$ac_ext"
28403 case "(($ac_try" in
28404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405 *) ac_try_echo=$ac_try;;
28407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28410 grep -v '^ *+' conftest.er1 >conftest.err
28412 cat conftest.err >&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); } >/dev/null; then
28415 if test -s conftest.err; then
28416 ac_cpp_err=$ac_c_preproc_warn_flag
28417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28424 if test -z "$ac_cpp_err"; then
28425 ac_header_preproc=yes
28427 echo "$as_me: failed program was:" >&5
28428 sed 's/^/| /' conftest.$ac_ext >&5
28430 ac_header_preproc=no
28433 rm -f conftest.err conftest.$ac_ext
28434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28435 echo "${ECHO_T}$ac_header_preproc" >&6; }
28437 # So? What about this header?
28438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28444 ac_header_preproc=yes
28447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28460 ## ----------------------------------- ##
28461 ## Report this to llvmbugs@cs.uiuc.edu ##
28462 ## ----------------------------------- ##
28464 ) | sed "s/^/$as_me: WARNING: /" >&2
28467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28470 echo $ECHO_N "(cached) $ECHO_C" >&6
28472 eval "$as_ac_Header=\$ac_header_preproc"
28474 ac_res=`eval echo '${'$as_ac_Header'}'`
28475 { echo "$as_me:$LINENO: result: $ac_res" >&5
28476 echo "${ECHO_T}$ac_res" >&6; }
28479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28480 cat >>confdefs.h <<_ACEOF
28481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28494 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28501 echo $ECHO_N "(cached) $ECHO_C" >&6
28503 ac_res=`eval echo '${'$as_ac_Header'}'`
28504 { echo "$as_me:$LINENO: result: $ac_res" >&5
28505 echo "${ECHO_T}$ac_res" >&6; }
28507 # Is the header compilable?
28508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28510 cat >conftest.$ac_ext <<_ACEOF
28513 cat confdefs.h >>conftest.$ac_ext
28514 cat >>conftest.$ac_ext <<_ACEOF
28515 /* end confdefs.h. */
28516 $ac_includes_default
28517 #include <$ac_header>
28519 rm -f conftest.$ac_objext
28520 if { (ac_try="$ac_compile"
28521 case "(($ac_try" in
28522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28523 *) ac_try_echo=$ac_try;;
28525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28526 (eval "$ac_compile") 2>conftest.er1
28528 grep -v '^ *+' conftest.er1 >conftest.err
28530 cat conftest.err >&5
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); } &&
28533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28534 { (case "(($ac_try" in
28535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28536 *) ac_try_echo=$ac_try;;
28538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539 (eval "$ac_try") 2>&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); }; } &&
28543 { ac_try='test -s conftest.$ac_objext'
28544 { (case "(($ac_try" in
28545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28546 *) ac_try_echo=$ac_try;;
28548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28549 (eval "$ac_try") 2>&5
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); }; }; then
28553 ac_header_compiler=yes
28555 echo "$as_me: failed program was:" >&5
28556 sed 's/^/| /' conftest.$ac_ext >&5
28558 ac_header_compiler=no
28561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28563 echo "${ECHO_T}$ac_header_compiler" >&6; }
28565 # Is the header present?
28566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28568 cat >conftest.$ac_ext <<_ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h. */
28574 #include <$ac_header>
28576 if { (ac_try="$ac_cpp conftest.$ac_ext"
28577 case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28584 grep -v '^ *+' conftest.er1 >conftest.err
28586 cat conftest.err >&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); } >/dev/null; then
28589 if test -s conftest.err; then
28590 ac_cpp_err=$ac_c_preproc_warn_flag
28591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28598 if test -z "$ac_cpp_err"; then
28599 ac_header_preproc=yes
28601 echo "$as_me: failed program was:" >&5
28602 sed 's/^/| /' conftest.$ac_ext >&5
28604 ac_header_preproc=no
28607 rm -f conftest.err conftest.$ac_ext
28608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28609 echo "${ECHO_T}$ac_header_preproc" >&6; }
28611 # So? What about this header?
28612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28618 ac_header_preproc=yes
28621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28634 ## ----------------------------------- ##
28635 ## Report this to llvmbugs@cs.uiuc.edu ##
28636 ## ----------------------------------- ##
28638 ) | sed "s/^/$as_me: WARNING: /" >&2
28641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28644 echo $ECHO_N "(cached) $ECHO_C" >&6
28646 eval "$as_ac_Header=\$ac_header_preproc"
28648 ac_res=`eval echo '${'$as_ac_Header'}'`
28649 { echo "$as_me:$LINENO: result: $ac_res" >&5
28650 echo "${ECHO_T}$ac_res" >&6; }
28653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28654 cat >>confdefs.h <<_ACEOF
28655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28667 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28674 echo $ECHO_N "(cached) $ECHO_C" >&6
28676 ac_res=`eval echo '${'$as_ac_Header'}'`
28677 { echo "$as_me:$LINENO: result: $ac_res" >&5
28678 echo "${ECHO_T}$ac_res" >&6; }
28680 # Is the header compilable?
28681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28683 cat >conftest.$ac_ext <<_ACEOF
28686 cat confdefs.h >>conftest.$ac_ext
28687 cat >>conftest.$ac_ext <<_ACEOF
28688 /* end confdefs.h. */
28689 $ac_includes_default
28690 #include <$ac_header>
28692 rm -f conftest.$ac_objext
28693 if { (ac_try="$ac_compile"
28694 case "(($ac_try" in
28695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28696 *) ac_try_echo=$ac_try;;
28698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28699 (eval "$ac_compile") 2>conftest.er1
28701 grep -v '^ *+' conftest.er1 >conftest.err
28703 cat conftest.err >&5
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); } &&
28706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28707 { (case "(($ac_try" in
28708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709 *) ac_try_echo=$ac_try;;
28711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712 (eval "$ac_try") 2>&5
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); }; } &&
28716 { ac_try='test -s conftest.$ac_objext'
28717 { (case "(($ac_try" in
28718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28719 *) ac_try_echo=$ac_try;;
28721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28722 (eval "$ac_try") 2>&5
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); }; }; then
28726 ac_header_compiler=yes
28728 echo "$as_me: failed program was:" >&5
28729 sed 's/^/| /' conftest.$ac_ext >&5
28731 ac_header_compiler=no
28734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28736 echo "${ECHO_T}$ac_header_compiler" >&6; }
28738 # Is the header present?
28739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28741 cat >conftest.$ac_ext <<_ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h. */
28747 #include <$ac_header>
28749 if { (ac_try="$ac_cpp conftest.$ac_ext"
28750 case "(($ac_try" in
28751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28752 *) ac_try_echo=$ac_try;;
28754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28757 grep -v '^ *+' conftest.er1 >conftest.err
28759 cat conftest.err >&5
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); } >/dev/null; then
28762 if test -s conftest.err; then
28763 ac_cpp_err=$ac_c_preproc_warn_flag
28764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28771 if test -z "$ac_cpp_err"; then
28772 ac_header_preproc=yes
28774 echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28777 ac_header_preproc=no
28780 rm -f conftest.err conftest.$ac_ext
28781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28782 echo "${ECHO_T}$ac_header_preproc" >&6; }
28784 # So? What about this header?
28785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28791 ac_header_preproc=yes
28794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28807 ## ----------------------------------- ##
28808 ## Report this to llvmbugs@cs.uiuc.edu ##
28809 ## ----------------------------------- ##
28811 ) | sed "s/^/$as_me: WARNING: /" >&2
28814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28817 echo $ECHO_N "(cached) $ECHO_C" >&6
28819 eval "$as_ac_Header=\$ac_header_preproc"
28821 ac_res=`eval echo '${'$as_ac_Header'}'`
28822 { echo "$as_me:$LINENO: result: $ac_res" >&5
28823 echo "${ECHO_T}$ac_res" >&6; }
28826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28827 cat >>confdefs.h <<_ACEOF
28828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28838 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28845 echo $ECHO_N "(cached) $ECHO_C" >&6
28847 ac_res=`eval echo '${'$as_ac_Header'}'`
28848 { echo "$as_me:$LINENO: result: $ac_res" >&5
28849 echo "${ECHO_T}$ac_res" >&6; }
28851 # Is the header compilable?
28852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28854 cat >conftest.$ac_ext <<_ACEOF
28857 cat confdefs.h >>conftest.$ac_ext
28858 cat >>conftest.$ac_ext <<_ACEOF
28859 /* end confdefs.h. */
28860 $ac_includes_default
28861 #include <$ac_header>
28863 rm -f conftest.$ac_objext
28864 if { (ac_try="$ac_compile"
28865 case "(($ac_try" in
28866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867 *) ac_try_echo=$ac_try;;
28869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28870 (eval "$ac_compile") 2>conftest.er1
28872 grep -v '^ *+' conftest.er1 >conftest.err
28874 cat conftest.err >&5
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); } &&
28877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28878 { (case "(($ac_try" in
28879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28880 *) ac_try_echo=$ac_try;;
28882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28883 (eval "$ac_try") 2>&5
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; } &&
28887 { ac_try='test -s conftest.$ac_objext'
28888 { (case "(($ac_try" in
28889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28890 *) ac_try_echo=$ac_try;;
28892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28893 (eval "$ac_try") 2>&5
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); }; }; then
28897 ac_header_compiler=yes
28899 echo "$as_me: failed program was:" >&5
28900 sed 's/^/| /' conftest.$ac_ext >&5
28902 ac_header_compiler=no
28905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28907 echo "${ECHO_T}$ac_header_compiler" >&6; }
28909 # Is the header present?
28910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28912 cat >conftest.$ac_ext <<_ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h. */
28918 #include <$ac_header>
28920 if { (ac_try="$ac_cpp conftest.$ac_ext"
28921 case "(($ac_try" in
28922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28923 *) ac_try_echo=$ac_try;;
28925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28928 grep -v '^ *+' conftest.er1 >conftest.err
28930 cat conftest.err >&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } >/dev/null; then
28933 if test -s conftest.err; then
28934 ac_cpp_err=$ac_c_preproc_warn_flag
28935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28942 if test -z "$ac_cpp_err"; then
28943 ac_header_preproc=yes
28945 echo "$as_me: failed program was:" >&5
28946 sed 's/^/| /' conftest.$ac_ext >&5
28948 ac_header_preproc=no
28951 rm -f conftest.err conftest.$ac_ext
28952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28953 echo "${ECHO_T}$ac_header_preproc" >&6; }
28955 # So? What about this header?
28956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28962 ac_header_preproc=yes
28965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28978 ## ----------------------------------- ##
28979 ## Report this to llvmbugs@cs.uiuc.edu ##
28980 ## ----------------------------------- ##
28982 ) | sed "s/^/$as_me: WARNING: /" >&2
28985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28988 echo $ECHO_N "(cached) $ECHO_C" >&6
28990 eval "$as_ac_Header=\$ac_header_preproc"
28992 ac_res=`eval echo '${'$as_ac_Header'}'`
28993 { echo "$as_me:$LINENO: result: $ac_res" >&5
28994 echo "${ECHO_T}$ac_res" >&6; }
28997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28998 cat >>confdefs.h <<_ACEOF
28999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29006 if test "$ENABLE_THREADS" -eq 1 ; then
29008 for ac_header in pthread.h
29010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29015 echo $ECHO_N "(cached) $ECHO_C" >&6
29017 ac_res=`eval echo '${'$as_ac_Header'}'`
29018 { echo "$as_me:$LINENO: result: $ac_res" >&5
29019 echo "${ECHO_T}$ac_res" >&6; }
29021 # Is the header compilable?
29022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29024 cat >conftest.$ac_ext <<_ACEOF
29027 cat confdefs.h >>conftest.$ac_ext
29028 cat >>conftest.$ac_ext <<_ACEOF
29029 /* end confdefs.h. */
29030 $ac_includes_default
29031 #include <$ac_header>
29033 rm -f conftest.$ac_objext
29034 if { (ac_try="$ac_compile"
29035 case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_compile") 2>conftest.er1
29042 grep -v '^ *+' conftest.er1 >conftest.err
29044 cat conftest.err >&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); } &&
29047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29048 { (case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053 (eval "$ac_try") 2>&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; } &&
29057 { ac_try='test -s conftest.$ac_objext'
29058 { (case "(($ac_try" in
29059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060 *) ac_try_echo=$ac_try;;
29062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063 (eval "$ac_try") 2>&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); }; }; then
29067 ac_header_compiler=yes
29069 echo "$as_me: failed program was:" >&5
29070 sed 's/^/| /' conftest.$ac_ext >&5
29072 ac_header_compiler=no
29075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29077 echo "${ECHO_T}$ac_header_compiler" >&6; }
29079 # Is the header present?
29080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29082 cat >conftest.$ac_ext <<_ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h. */
29088 #include <$ac_header>
29090 if { (ac_try="$ac_cpp conftest.$ac_ext"
29091 case "(($ac_try" in
29092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093 *) ac_try_echo=$ac_try;;
29095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29098 grep -v '^ *+' conftest.er1 >conftest.err
29100 cat conftest.err >&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } >/dev/null; then
29103 if test -s conftest.err; then
29104 ac_cpp_err=$ac_c_preproc_warn_flag
29105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29112 if test -z "$ac_cpp_err"; then
29113 ac_header_preproc=yes
29115 echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29118 ac_header_preproc=no
29121 rm -f conftest.err conftest.$ac_ext
29122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29123 echo "${ECHO_T}$ac_header_preproc" >&6; }
29125 # So? What about this header?
29126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29132 ac_header_preproc=yes
29135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29148 ## ----------------------------------- ##
29149 ## Report this to llvmbugs@cs.uiuc.edu ##
29150 ## ----------------------------------- ##
29152 ) | sed "s/^/$as_me: WARNING: /" >&2
29155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29160 eval "$as_ac_Header=\$ac_header_preproc"
29162 ac_res=`eval echo '${'$as_ac_Header'}'`
29163 { echo "$as_me:$LINENO: result: $ac_res" >&5
29164 echo "${ECHO_T}$ac_res" >&6; }
29167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29168 cat >>confdefs.h <<_ACEOF
29169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29180 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29181 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29182 if test "${ac_cv_huge_val_sanity+set}" = set; then
29183 echo $ECHO_N "(cached) $ECHO_C" >&6
29187 ac_cpp='$CXXCPP $CPPFLAGS'
29188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29193 if test "$cross_compiling" = yes; then
29194 ac_cv_huge_val_sanity=yes
29196 cat >conftest.$ac_ext <<_ACEOF
29199 cat confdefs.h >>conftest.$ac_ext
29200 cat >>conftest.$ac_ext <<_ACEOF
29201 /* end confdefs.h. */
29206 double x = HUGE_VAL; return x != x;
29211 rm -f conftest$ac_exeext
29212 if { (ac_try="$ac_link"
29213 case "(($ac_try" in
29214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29215 *) ac_try_echo=$ac_try;;
29217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29218 (eval "$ac_link") 2>&5
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29222 { (case "(($ac_try" in
29223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29224 *) ac_try_echo=$ac_try;;
29226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29227 (eval "$ac_try") 2>&5
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); }; }; then
29231 ac_cv_huge_val_sanity=yes
29233 echo "$as_me: program exited with status $ac_status" >&5
29234 echo "$as_me: failed program was:" >&5
29235 sed 's/^/| /' conftest.$ac_ext >&5
29237 ( exit $ac_status )
29238 ac_cv_huge_val_sanity=no
29240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29245 ac_cpp='$CPP $CPPFLAGS'
29246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29252 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29253 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29254 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29257 { echo "$as_me:$LINENO: checking for pid_t" >&5
29258 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29259 if test "${ac_cv_type_pid_t+set}" = set; then
29260 echo $ECHO_N "(cached) $ECHO_C" >&6
29262 cat >conftest.$ac_ext <<_ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h. */
29268 $ac_includes_default
29269 typedef pid_t ac__type_new_;
29273 if ((ac__type_new_ *) 0)
29275 if (sizeof (ac__type_new_))
29281 rm -f conftest.$ac_objext
29282 if { (ac_try="$ac_compile"
29283 case "(($ac_try" in
29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285 *) ac_try_echo=$ac_try;;
29287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29288 (eval "$ac_compile") 2>conftest.er1
29290 grep -v '^ *+' conftest.er1 >conftest.err
29292 cat conftest.err >&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } &&
29295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29296 { (case "(($ac_try" in
29297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_try") 2>&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; } &&
29305 { ac_try='test -s conftest.$ac_objext'
29306 { (case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_try") 2>&5
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
29315 ac_cv_type_pid_t=yes
29317 echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29320 ac_cv_type_pid_t=no
29323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29325 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29326 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29327 if test $ac_cv_type_pid_t = yes; then
29331 cat >>confdefs.h <<_ACEOF
29337 { echo "$as_me:$LINENO: checking for size_t" >&5
29338 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29339 if test "${ac_cv_type_size_t+set}" = set; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29342 cat >conftest.$ac_ext <<_ACEOF
29345 cat confdefs.h >>conftest.$ac_ext
29346 cat >>conftest.$ac_ext <<_ACEOF
29347 /* end confdefs.h. */
29348 $ac_includes_default
29349 typedef size_t ac__type_new_;
29353 if ((ac__type_new_ *) 0)
29355 if (sizeof (ac__type_new_))
29361 rm -f conftest.$ac_objext
29362 if { (ac_try="$ac_compile"
29363 case "(($ac_try" in
29364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365 *) ac_try_echo=$ac_try;;
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368 (eval "$ac_compile") 2>conftest.er1
29370 grep -v '^ *+' conftest.er1 >conftest.err
29372 cat conftest.err >&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } &&
29375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29376 { (case "(($ac_try" in
29377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29378 *) ac_try_echo=$ac_try;;
29380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29381 (eval "$ac_try") 2>&5
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; } &&
29385 { ac_try='test -s conftest.$ac_objext'
29386 { (case "(($ac_try" in
29387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388 *) ac_try_echo=$ac_try;;
29390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391 (eval "$ac_try") 2>&5
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); }; }; then
29395 ac_cv_type_size_t=yes
29397 echo "$as_me: failed program was:" >&5
29398 sed 's/^/| /' conftest.$ac_ext >&5
29400 ac_cv_type_size_t=no
29403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29405 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29406 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29407 if test $ac_cv_type_size_t = yes; then
29411 cat >>confdefs.h <<_ACEOF
29412 #define size_t unsigned int
29417 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29418 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29419 if test "${ac_cv_type_signal+set}" = set; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29422 cat >conftest.$ac_ext <<_ACEOF
29425 cat confdefs.h >>conftest.$ac_ext
29426 cat >>conftest.$ac_ext <<_ACEOF
29427 /* end confdefs.h. */
29428 #include <sys/types.h>
29429 #include <signal.h>
29434 return *(signal (0, 0)) (0) == 1;
29439 rm -f conftest.$ac_objext
29440 if { (ac_try="$ac_compile"
29441 case "(($ac_try" in
29442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443 *) ac_try_echo=$ac_try;;
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446 (eval "$ac_compile") 2>conftest.er1
29448 grep -v '^ *+' conftest.er1 >conftest.err
29450 cat conftest.err >&5
29451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452 (exit $ac_status); } &&
29453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29454 { (case "(($ac_try" in
29455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456 *) ac_try_echo=$ac_try;;
29458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459 (eval "$ac_try") 2>&5
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); }; } &&
29463 { ac_try='test -s conftest.$ac_objext'
29464 { (case "(($ac_try" in
29465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466 *) ac_try_echo=$ac_try;;
29468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469 (eval "$ac_try") 2>&5
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); }; }; then
29473 ac_cv_type_signal=int
29475 echo "$as_me: failed program was:" >&5
29476 sed 's/^/| /' conftest.$ac_ext >&5
29478 ac_cv_type_signal=void
29481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29483 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29484 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29486 cat >>confdefs.h <<_ACEOF
29487 #define RETSIGTYPE $ac_cv_type_signal
29491 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29492 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29493 if test "${ac_cv_struct_tm+set}" = set; then
29494 echo $ECHO_N "(cached) $ECHO_C" >&6
29496 cat >conftest.$ac_ext <<_ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h. */
29502 #include <sys/types.h>
29508 struct tm *tp; tp->tm_sec;
29513 rm -f conftest.$ac_objext
29514 if { (ac_try="$ac_compile"
29515 case "(($ac_try" in
29516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517 *) ac_try_echo=$ac_try;;
29519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29520 (eval "$ac_compile") 2>conftest.er1
29522 grep -v '^ *+' conftest.er1 >conftest.err
29524 cat conftest.err >&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); } &&
29527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29528 { (case "(($ac_try" in
29529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29530 *) ac_try_echo=$ac_try;;
29532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29533 (eval "$ac_try") 2>&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); }; } &&
29537 { ac_try='test -s conftest.$ac_objext'
29538 { (case "(($ac_try" in
29539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_try") 2>&5
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); }; }; then
29547 ac_cv_struct_tm=time.h
29549 echo "$as_me: failed program was:" >&5
29550 sed 's/^/| /' conftest.$ac_ext >&5
29552 ac_cv_struct_tm=sys/time.h
29555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29557 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29558 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29559 if test $ac_cv_struct_tm = sys/time.h; then
29561 cat >>confdefs.h <<\_ACEOF
29562 #define TM_IN_SYS_TIME 1
29567 { echo "$as_me:$LINENO: checking for int64_t" >&5
29568 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29569 if test "${ac_cv_type_int64_t+set}" = set; then
29570 echo $ECHO_N "(cached) $ECHO_C" >&6
29572 cat >conftest.$ac_ext <<_ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h. */
29578 $ac_includes_default
29579 typedef int64_t ac__type_new_;
29583 if ((ac__type_new_ *) 0)
29585 if (sizeof (ac__type_new_))
29591 rm -f conftest.$ac_objext
29592 if { (ac_try="$ac_compile"
29593 case "(($ac_try" in
29594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595 *) ac_try_echo=$ac_try;;
29597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598 (eval "$ac_compile") 2>conftest.er1
29600 grep -v '^ *+' conftest.er1 >conftest.err
29602 cat conftest.err >&5
29603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); } &&
29605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29606 { (case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_try") 2>&5
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; } &&
29615 { ac_try='test -s conftest.$ac_objext'
29616 { (case "(($ac_try" in
29617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618 *) ac_try_echo=$ac_try;;
29620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621 (eval "$ac_try") 2>&5
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 ac_cv_type_int64_t=yes
29627 echo "$as_me: failed program was:" >&5
29628 sed 's/^/| /' conftest.$ac_ext >&5
29630 ac_cv_type_int64_t=no
29633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29635 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29636 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29637 if test $ac_cv_type_int64_t = yes; then
29639 cat >>confdefs.h <<_ACEOF
29640 #define HAVE_INT64_T 1
29645 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29646 echo "$as_me: error: Type int64_t required but not found" >&2;}
29647 { (exit 1); exit 1; }; }
29650 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29651 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29652 if test "${ac_cv_type_uint64_t+set}" = set; then
29653 echo $ECHO_N "(cached) $ECHO_C" >&6
29655 cat >conftest.$ac_ext <<_ACEOF
29658 cat confdefs.h >>conftest.$ac_ext
29659 cat >>conftest.$ac_ext <<_ACEOF
29660 /* end confdefs.h. */
29661 $ac_includes_default
29662 typedef uint64_t ac__type_new_;
29666 if ((ac__type_new_ *) 0)
29668 if (sizeof (ac__type_new_))
29674 rm -f conftest.$ac_objext
29675 if { (ac_try="$ac_compile"
29676 case "(($ac_try" in
29677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29678 *) ac_try_echo=$ac_try;;
29680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29681 (eval "$ac_compile") 2>conftest.er1
29683 grep -v '^ *+' conftest.er1 >conftest.err
29685 cat conftest.err >&5
29686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); } &&
29688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29689 { (case "(($ac_try" in
29690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29691 *) ac_try_echo=$ac_try;;
29693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29694 (eval "$ac_try") 2>&5
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); }; } &&
29698 { ac_try='test -s conftest.$ac_objext'
29699 { (case "(($ac_try" in
29700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29701 *) ac_try_echo=$ac_try;;
29703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29704 (eval "$ac_try") 2>&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); }; }; then
29708 ac_cv_type_uint64_t=yes
29710 echo "$as_me: failed program was:" >&5
29711 sed 's/^/| /' conftest.$ac_ext >&5
29713 ac_cv_type_uint64_t=no
29716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29718 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29719 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29720 if test $ac_cv_type_uint64_t = yes; then
29722 cat >>confdefs.h <<_ACEOF
29723 #define HAVE_UINT64_T 1
29728 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29729 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29730 if test "${ac_cv_type_u_int64_t+set}" = set; then
29731 echo $ECHO_N "(cached) $ECHO_C" >&6
29733 cat >conftest.$ac_ext <<_ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h. */
29739 $ac_includes_default
29740 typedef u_int64_t ac__type_new_;
29744 if ((ac__type_new_ *) 0)
29746 if (sizeof (ac__type_new_))
29752 rm -f conftest.$ac_objext
29753 if { (ac_try="$ac_compile"
29754 case "(($ac_try" in
29755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756 *) ac_try_echo=$ac_try;;
29758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759 (eval "$ac_compile") 2>conftest.er1
29761 grep -v '^ *+' conftest.er1 >conftest.err
29763 cat conftest.err >&5
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); } &&
29766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29767 { (case "(($ac_try" in
29768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29769 *) ac_try_echo=$ac_try;;
29771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29772 (eval "$ac_try") 2>&5
29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); }; } &&
29776 { ac_try='test -s conftest.$ac_objext'
29777 { (case "(($ac_try" in
29778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29779 *) ac_try_echo=$ac_try;;
29781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29782 (eval "$ac_try") 2>&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; }; then
29786 ac_cv_type_u_int64_t=yes
29788 echo "$as_me: failed program was:" >&5
29789 sed 's/^/| /' conftest.$ac_ext >&5
29791 ac_cv_type_u_int64_t=no
29794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29796 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29797 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29798 if test $ac_cv_type_u_int64_t = yes; then
29800 cat >>confdefs.h <<_ACEOF
29801 #define HAVE_U_INT64_T 1
29806 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29807 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29808 { (exit 1); exit 1; }; }
29822 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29828 echo $ECHO_N "(cached) $ECHO_C" >&6
29830 cat >conftest.$ac_ext <<_ACEOF
29833 cat confdefs.h >>conftest.$ac_ext
29834 cat >>conftest.$ac_ext <<_ACEOF
29835 /* end confdefs.h. */
29836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29838 #define $ac_func innocuous_$ac_func
29840 /* System header to define __stub macros and hopefully few prototypes,
29841 which can conflict with char $ac_func (); below.
29842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29843 <limits.h> exists even on freestanding compilers. */
29846 # include <limits.h>
29848 # include <assert.h>
29853 /* Override any GCC internal prototype to avoid an error.
29854 Use char because int might match the return type of a GCC
29855 builtin and then its argument prototype would still apply. */
29860 /* The GNU C library defines this for functions which it implements
29861 to always fail with ENOSYS. Some functions are actually named
29862 something starting with __ and the normal name is an alias. */
29863 #if defined __stub_$ac_func || defined __stub___$ac_func
29870 return $ac_func ();
29875 rm -f conftest.$ac_objext conftest$ac_exeext
29876 if { (ac_try="$ac_link"
29877 case "(($ac_try" in
29878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29879 *) ac_try_echo=$ac_try;;
29881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29882 (eval "$ac_link") 2>conftest.er1
29884 grep -v '^ *+' conftest.er1 >conftest.err
29886 cat conftest.err >&5
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); } &&
29889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29890 { (case "(($ac_try" in
29891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29892 *) ac_try_echo=$ac_try;;
29894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29895 (eval "$ac_try") 2>&5
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); }; } &&
29899 { ac_try='test -s conftest$ac_exeext'
29900 { (case "(($ac_try" in
29901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902 *) ac_try_echo=$ac_try;;
29904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905 (eval "$ac_try") 2>&5
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); }; }; then
29909 eval "$as_ac_var=yes"
29911 echo "$as_me: failed program was:" >&5
29912 sed 's/^/| /' conftest.$ac_ext >&5
29914 eval "$as_ac_var=no"
29917 rm -f core conftest.err conftest.$ac_objext \
29918 conftest$ac_exeext conftest.$ac_ext
29920 ac_res=`eval echo '${'$as_ac_var'}'`
29921 { echo "$as_me:$LINENO: result: $ac_res" >&5
29922 echo "${ECHO_T}$ac_res" >&6; }
29923 if test `eval echo '${'$as_ac_var'}'` = yes; then
29924 cat >>confdefs.h <<_ACEOF
29925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29937 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29943 echo $ECHO_N "(cached) $ECHO_C" >&6
29945 cat >conftest.$ac_ext <<_ACEOF
29948 cat confdefs.h >>conftest.$ac_ext
29949 cat >>conftest.$ac_ext <<_ACEOF
29950 /* end confdefs.h. */
29951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29953 #define $ac_func innocuous_$ac_func
29955 /* System header to define __stub macros and hopefully few prototypes,
29956 which can conflict with char $ac_func (); below.
29957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29958 <limits.h> exists even on freestanding compilers. */
29961 # include <limits.h>
29963 # include <assert.h>
29968 /* Override any GCC internal prototype to avoid an error.
29969 Use char because int might match the return type of a GCC
29970 builtin and then its argument prototype would still apply. */
29975 /* The GNU C library defines this for functions which it implements
29976 to always fail with ENOSYS. Some functions are actually named
29977 something starting with __ and the normal name is an alias. */
29978 #if defined __stub_$ac_func || defined __stub___$ac_func
29985 return $ac_func ();
29990 rm -f conftest.$ac_objext conftest$ac_exeext
29991 if { (ac_try="$ac_link"
29992 case "(($ac_try" in
29993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994 *) ac_try_echo=$ac_try;;
29996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997 (eval "$ac_link") 2>conftest.er1
29999 grep -v '^ *+' conftest.er1 >conftest.err
30001 cat conftest.err >&5
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); } &&
30004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30005 { (case "(($ac_try" in
30006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30007 *) ac_try_echo=$ac_try;;
30009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30010 (eval "$ac_try") 2>&5
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; } &&
30014 { ac_try='test -s conftest$ac_exeext'
30015 { (case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_try") 2>&5
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); }; }; then
30024 eval "$as_ac_var=yes"
30026 echo "$as_me: failed program was:" >&5
30027 sed 's/^/| /' conftest.$ac_ext >&5
30029 eval "$as_ac_var=no"
30032 rm -f core conftest.err conftest.$ac_objext \
30033 conftest$ac_exeext conftest.$ac_ext
30035 ac_res=`eval echo '${'$as_ac_var'}'`
30036 { echo "$as_me:$LINENO: result: $ac_res" >&5
30037 echo "${ECHO_T}$ac_res" >&6; }
30038 if test `eval echo '${'$as_ac_var'}'` = yes; then
30039 cat >>confdefs.h <<_ACEOF
30040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30053 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30059 echo $ECHO_N "(cached) $ECHO_C" >&6
30061 cat >conftest.$ac_ext <<_ACEOF
30064 cat confdefs.h >>conftest.$ac_ext
30065 cat >>conftest.$ac_ext <<_ACEOF
30066 /* end confdefs.h. */
30067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30069 #define $ac_func innocuous_$ac_func
30071 /* System header to define __stub macros and hopefully few prototypes,
30072 which can conflict with char $ac_func (); below.
30073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30074 <limits.h> exists even on freestanding compilers. */
30077 # include <limits.h>
30079 # include <assert.h>
30084 /* Override any GCC internal prototype to avoid an error.
30085 Use char because int might match the return type of a GCC
30086 builtin and then its argument prototype would still apply. */
30091 /* The GNU C library defines this for functions which it implements
30092 to always fail with ENOSYS. Some functions are actually named
30093 something starting with __ and the normal name is an alias. */
30094 #if defined __stub_$ac_func || defined __stub___$ac_func
30101 return $ac_func ();
30106 rm -f conftest.$ac_objext conftest$ac_exeext
30107 if { (ac_try="$ac_link"
30108 case "(($ac_try" in
30109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30110 *) ac_try_echo=$ac_try;;
30112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30113 (eval "$ac_link") 2>conftest.er1
30115 grep -v '^ *+' conftest.er1 >conftest.err
30117 cat conftest.err >&5
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); } &&
30120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30121 { (case "(($ac_try" in
30122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123 *) ac_try_echo=$ac_try;;
30125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30126 (eval "$ac_try") 2>&5
30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129 (exit $ac_status); }; } &&
30130 { ac_try='test -s conftest$ac_exeext'
30131 { (case "(($ac_try" in
30132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30133 *) ac_try_echo=$ac_try;;
30135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30136 (eval "$ac_try") 2>&5
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); }; }; then
30140 eval "$as_ac_var=yes"
30142 echo "$as_me: failed program was:" >&5
30143 sed 's/^/| /' conftest.$ac_ext >&5
30145 eval "$as_ac_var=no"
30148 rm -f core conftest.err conftest.$ac_objext \
30149 conftest$ac_exeext conftest.$ac_ext
30151 ac_res=`eval echo '${'$as_ac_var'}'`
30152 { echo "$as_me:$LINENO: result: $ac_res" >&5
30153 echo "${ECHO_T}$ac_res" >&6; }
30154 if test `eval echo '${'$as_ac_var'}'` = yes; then
30155 cat >>confdefs.h <<_ACEOF
30156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30166 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30172 echo $ECHO_N "(cached) $ECHO_C" >&6
30174 cat >conftest.$ac_ext <<_ACEOF
30177 cat confdefs.h >>conftest.$ac_ext
30178 cat >>conftest.$ac_ext <<_ACEOF
30179 /* end confdefs.h. */
30180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30182 #define $ac_func innocuous_$ac_func
30184 /* System header to define __stub macros and hopefully few prototypes,
30185 which can conflict with char $ac_func (); below.
30186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30187 <limits.h> exists even on freestanding compilers. */
30190 # include <limits.h>
30192 # include <assert.h>
30197 /* Override any GCC internal prototype to avoid an error.
30198 Use char because int might match the return type of a GCC
30199 builtin and then its argument prototype would still apply. */
30204 /* The GNU C library defines this for functions which it implements
30205 to always fail with ENOSYS. Some functions are actually named
30206 something starting with __ and the normal name is an alias. */
30207 #if defined __stub_$ac_func || defined __stub___$ac_func
30214 return $ac_func ();
30219 rm -f conftest.$ac_objext conftest$ac_exeext
30220 if { (ac_try="$ac_link"
30221 case "(($ac_try" in
30222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30223 *) ac_try_echo=$ac_try;;
30225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30226 (eval "$ac_link") 2>conftest.er1
30228 grep -v '^ *+' conftest.er1 >conftest.err
30230 cat conftest.err >&5
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); } &&
30233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30234 { (case "(($ac_try" in
30235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30236 *) ac_try_echo=$ac_try;;
30238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30239 (eval "$ac_try") 2>&5
30241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30242 (exit $ac_status); }; } &&
30243 { ac_try='test -s conftest$ac_exeext'
30244 { (case "(($ac_try" in
30245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246 *) ac_try_echo=$ac_try;;
30248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249 (eval "$ac_try") 2>&5
30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252 (exit $ac_status); }; }; then
30253 eval "$as_ac_var=yes"
30255 echo "$as_me: failed program was:" >&5
30256 sed 's/^/| /' conftest.$ac_ext >&5
30258 eval "$as_ac_var=no"
30261 rm -f core conftest.err conftest.$ac_objext \
30262 conftest$ac_exeext conftest.$ac_ext
30264 ac_res=`eval echo '${'$as_ac_var'}'`
30265 { echo "$as_me:$LINENO: result: $ac_res" >&5
30266 echo "${ECHO_T}$ac_res" >&6; }
30267 if test `eval echo '${'$as_ac_var'}'` = yes; then
30268 cat >>confdefs.h <<_ACEOF
30269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30281 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30287 echo $ECHO_N "(cached) $ECHO_C" >&6
30289 cat >conftest.$ac_ext <<_ACEOF
30292 cat confdefs.h >>conftest.$ac_ext
30293 cat >>conftest.$ac_ext <<_ACEOF
30294 /* end confdefs.h. */
30295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30297 #define $ac_func innocuous_$ac_func
30299 /* System header to define __stub macros and hopefully few prototypes,
30300 which can conflict with char $ac_func (); below.
30301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30302 <limits.h> exists even on freestanding compilers. */
30305 # include <limits.h>
30307 # include <assert.h>
30312 /* Override any GCC internal prototype to avoid an error.
30313 Use char because int might match the return type of a GCC
30314 builtin and then its argument prototype would still apply. */
30319 /* The GNU C library defines this for functions which it implements
30320 to always fail with ENOSYS. Some functions are actually named
30321 something starting with __ and the normal name is an alias. */
30322 #if defined __stub_$ac_func || defined __stub___$ac_func
30329 return $ac_func ();
30334 rm -f conftest.$ac_objext conftest$ac_exeext
30335 if { (ac_try="$ac_link"
30336 case "(($ac_try" in
30337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30338 *) ac_try_echo=$ac_try;;
30340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30341 (eval "$ac_link") 2>conftest.er1
30343 grep -v '^ *+' conftest.er1 >conftest.err
30345 cat conftest.err >&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } &&
30348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30349 { (case "(($ac_try" in
30350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30351 *) ac_try_echo=$ac_try;;
30353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354 (eval "$ac_try") 2>&5
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; } &&
30358 { ac_try='test -s conftest$ac_exeext'
30359 { (case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_try") 2>&5
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); }; }; then
30368 eval "$as_ac_var=yes"
30370 echo "$as_me: failed program was:" >&5
30371 sed 's/^/| /' conftest.$ac_ext >&5
30373 eval "$as_ac_var=no"
30376 rm -f core conftest.err conftest.$ac_objext \
30377 conftest$ac_exeext conftest.$ac_ext
30379 ac_res=`eval echo '${'$as_ac_var'}'`
30380 { echo "$as_me:$LINENO: result: $ac_res" >&5
30381 echo "${ECHO_T}$ac_res" >&6; }
30382 if test `eval echo '${'$as_ac_var'}'` = yes; then
30383 cat >>confdefs.h <<_ACEOF
30384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30390 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30391 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30392 if test "${llvm_cv_c_printf_a+set}" = set; then
30393 echo $ECHO_N "(cached) $ECHO_C" >&6
30396 ac_cpp='$CPP $CPPFLAGS'
30397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30401 if test "$cross_compiling" = yes; then
30402 llvmac_cv_c_printf_a=no
30404 cat >conftest.$ac_ext <<_ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h. */
30413 #include <stdlib.h>
30419 volatile double A, B;
30423 sprintf(Buffer, "%a", A);
30427 if (A != 0x1.999999999999ap-4)
30434 rm -f conftest$ac_exeext
30435 if { (ac_try="$ac_link"
30436 case "(($ac_try" in
30437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30438 *) ac_try_echo=$ac_try;;
30440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30441 (eval "$ac_link") 2>&5
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30445 { (case "(($ac_try" in
30446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447 *) ac_try_echo=$ac_try;;
30449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450 (eval "$ac_try") 2>&5
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); }; }; then
30454 llvm_cv_c_printf_a=yes
30456 echo "$as_me: program exited with status $ac_status" >&5
30457 echo "$as_me: failed program was:" >&5
30458 sed 's/^/| /' conftest.$ac_ext >&5
30460 ( exit $ac_status )
30461 llvmac_cv_c_printf_a=no
30463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30468 ac_cpp='$CPP $CPPFLAGS'
30469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30474 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30475 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30476 if test "$llvm_cv_c_printf_a" = "yes"; then
30478 cat >>confdefs.h <<\_ACEOF
30479 #define HAVE_PRINTF_A 1
30484 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30485 # for constant arguments. Useless!
30486 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30487 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30488 if test "${ac_cv_working_alloca_h+set}" = set; then
30489 echo $ECHO_N "(cached) $ECHO_C" >&6
30491 cat >conftest.$ac_ext <<_ACEOF
30494 cat confdefs.h >>conftest.$ac_ext
30495 cat >>conftest.$ac_ext <<_ACEOF
30496 /* end confdefs.h. */
30497 #include <alloca.h>
30501 char *p = (char *) alloca (2 * sizeof (int));
30507 rm -f conftest.$ac_objext conftest$ac_exeext
30508 if { (ac_try="$ac_link"
30509 case "(($ac_try" in
30510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511 *) ac_try_echo=$ac_try;;
30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514 (eval "$ac_link") 2>conftest.er1
30516 grep -v '^ *+' conftest.er1 >conftest.err
30518 cat conftest.err >&5
30519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520 (exit $ac_status); } &&
30521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30522 { (case "(($ac_try" in
30523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30524 *) ac_try_echo=$ac_try;;
30526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30527 (eval "$ac_try") 2>&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); }; } &&
30531 { ac_try='test -s conftest$ac_exeext'
30532 { (case "(($ac_try" in
30533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30534 *) ac_try_echo=$ac_try;;
30536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30537 (eval "$ac_try") 2>&5
30539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540 (exit $ac_status); }; }; then
30541 ac_cv_working_alloca_h=yes
30543 echo "$as_me: failed program was:" >&5
30544 sed 's/^/| /' conftest.$ac_ext >&5
30546 ac_cv_working_alloca_h=no
30549 rm -f core conftest.err conftest.$ac_objext \
30550 conftest$ac_exeext conftest.$ac_ext
30552 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30553 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30554 if test $ac_cv_working_alloca_h = yes; then
30556 cat >>confdefs.h <<\_ACEOF
30557 #define HAVE_ALLOCA_H 1
30562 { echo "$as_me:$LINENO: checking for alloca" >&5
30563 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30564 if test "${ac_cv_func_alloca_works+set}" = set; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30567 cat >conftest.$ac_ext <<_ACEOF
30570 cat confdefs.h >>conftest.$ac_ext
30571 cat >>conftest.$ac_ext <<_ACEOF
30572 /* end confdefs.h. */
30574 # define alloca __builtin_alloca
30577 # include <malloc.h>
30578 # define alloca _alloca
30581 # include <alloca.h>
30586 # ifndef alloca /* predefined by HP cc +Olibcalls */
30597 char *p = (char *) alloca (1);
30603 rm -f conftest.$ac_objext conftest$ac_exeext
30604 if { (ac_try="$ac_link"
30605 case "(($ac_try" in
30606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607 *) ac_try_echo=$ac_try;;
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610 (eval "$ac_link") 2>conftest.er1
30612 grep -v '^ *+' conftest.er1 >conftest.err
30614 cat conftest.err >&5
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); } &&
30617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30618 { (case "(($ac_try" in
30619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30620 *) ac_try_echo=$ac_try;;
30622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30623 (eval "$ac_try") 2>&5
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); }; } &&
30627 { ac_try='test -s conftest$ac_exeext'
30628 { (case "(($ac_try" in
30629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30630 *) ac_try_echo=$ac_try;;
30632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30633 (eval "$ac_try") 2>&5
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); }; }; then
30637 ac_cv_func_alloca_works=yes
30639 echo "$as_me: failed program was:" >&5
30640 sed 's/^/| /' conftest.$ac_ext >&5
30642 ac_cv_func_alloca_works=no
30645 rm -f core conftest.err conftest.$ac_objext \
30646 conftest$ac_exeext conftest.$ac_ext
30648 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30649 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30651 if test $ac_cv_func_alloca_works = yes; then
30653 cat >>confdefs.h <<\_ACEOF
30654 #define HAVE_ALLOCA 1
30658 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30659 # that cause trouble. Some versions do not even contain alloca or
30660 # contain a buggy version. If you still want to use their alloca,
30661 # use ar to extract alloca.o from them instead of compiling alloca.c.
30663 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30665 cat >>confdefs.h <<\_ACEOF
30670 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30671 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30672 if test "${ac_cv_os_cray+set}" = set; then
30673 echo $ECHO_N "(cached) $ECHO_C" >&6
30675 cat >conftest.$ac_ext <<_ACEOF
30678 cat confdefs.h >>conftest.$ac_ext
30679 cat >>conftest.$ac_ext <<_ACEOF
30680 /* end confdefs.h. */
30681 #if defined CRAY && ! defined CRAY2
30688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30689 $EGREP "webecray" >/dev/null 2>&1; then
30697 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30698 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30699 if test $ac_cv_os_cray = yes; then
30700 for ac_func in _getb67 GETB67 getb67; do
30701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30705 echo $ECHO_N "(cached) $ECHO_C" >&6
30707 cat >conftest.$ac_ext <<_ACEOF
30710 cat confdefs.h >>conftest.$ac_ext
30711 cat >>conftest.$ac_ext <<_ACEOF
30712 /* end confdefs.h. */
30713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30715 #define $ac_func innocuous_$ac_func
30717 /* System header to define __stub macros and hopefully few prototypes,
30718 which can conflict with char $ac_func (); below.
30719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30720 <limits.h> exists even on freestanding compilers. */
30723 # include <limits.h>
30725 # include <assert.h>
30730 /* Override any GCC internal prototype to avoid an error.
30731 Use char because int might match the return type of a GCC
30732 builtin and then its argument prototype would still apply. */
30737 /* The GNU C library defines this for functions which it implements
30738 to always fail with ENOSYS. Some functions are actually named
30739 something starting with __ and the normal name is an alias. */
30740 #if defined __stub_$ac_func || defined __stub___$ac_func
30747 return $ac_func ();
30752 rm -f conftest.$ac_objext conftest$ac_exeext
30753 if { (ac_try="$ac_link"
30754 case "(($ac_try" in
30755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30756 *) ac_try_echo=$ac_try;;
30758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30759 (eval "$ac_link") 2>conftest.er1
30761 grep -v '^ *+' conftest.er1 >conftest.err
30763 cat conftest.err >&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); } &&
30766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30767 { (case "(($ac_try" in
30768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769 *) ac_try_echo=$ac_try;;
30771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772 (eval "$ac_try") 2>&5
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); }; } &&
30776 { ac_try='test -s conftest$ac_exeext'
30777 { (case "(($ac_try" in
30778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30779 *) ac_try_echo=$ac_try;;
30781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30782 (eval "$ac_try") 2>&5
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); }; }; then
30786 eval "$as_ac_var=yes"
30788 echo "$as_me: failed program was:" >&5
30789 sed 's/^/| /' conftest.$ac_ext >&5
30791 eval "$as_ac_var=no"
30794 rm -f core conftest.err conftest.$ac_objext \
30795 conftest$ac_exeext conftest.$ac_ext
30797 ac_res=`eval echo '${'$as_ac_var'}'`
30798 { echo "$as_me:$LINENO: result: $ac_res" >&5
30799 echo "${ECHO_T}$ac_res" >&6; }
30800 if test `eval echo '${'$as_ac_var'}'` = yes; then
30802 cat >>confdefs.h <<_ACEOF
30803 #define CRAY_STACKSEG_END $ac_func
30812 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30813 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30814 if test "${ac_cv_c_stack_direction+set}" = set; then
30815 echo $ECHO_N "(cached) $ECHO_C" >&6
30817 if test "$cross_compiling" = yes; then
30818 ac_cv_c_stack_direction=0
30820 cat >conftest.$ac_ext <<_ACEOF
30823 cat confdefs.h >>conftest.$ac_ext
30824 cat >>conftest.$ac_ext <<_ACEOF
30825 /* end confdefs.h. */
30826 $ac_includes_default
30828 find_stack_direction ()
30830 static char *addr = 0;
30835 return find_stack_direction ();
30838 return (&dummy > addr) ? 1 : -1;
30844 return find_stack_direction () < 0;
30847 rm -f conftest$ac_exeext
30848 if { (ac_try="$ac_link"
30849 case "(($ac_try" in
30850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30851 *) ac_try_echo=$ac_try;;
30853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30854 (eval "$ac_link") 2>&5
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30858 { (case "(($ac_try" in
30859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30860 *) ac_try_echo=$ac_try;;
30862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30863 (eval "$ac_try") 2>&5
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); }; }; then
30867 ac_cv_c_stack_direction=1
30869 echo "$as_me: program exited with status $ac_status" >&5
30870 echo "$as_me: failed program was:" >&5
30871 sed 's/^/| /' conftest.$ac_ext >&5
30873 ( exit $ac_status )
30874 ac_cv_c_stack_direction=-1
30876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30881 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30882 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30884 cat >>confdefs.h <<_ACEOF
30885 #define STACK_DIRECTION $ac_cv_c_stack_direction
30892 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30893 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30894 if test "${ac_cv_func_rand48+set}" = set; then
30895 echo $ECHO_N "(cached) $ECHO_C" >&6
30898 ac_cpp='$CXXCPP $CPPFLAGS'
30899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30903 cat >conftest.$ac_ext <<_ACEOF
30906 cat confdefs.h >>conftest.$ac_ext
30907 cat >>conftest.$ac_ext <<_ACEOF
30908 /* end confdefs.h. */
30909 #include <stdlib.h>
30913 srand48(0);lrand48();drand48();
30918 rm -f conftest.$ac_objext
30919 if { (ac_try="$ac_compile"
30920 case "(($ac_try" in
30921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30922 *) ac_try_echo=$ac_try;;
30924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30925 (eval "$ac_compile") 2>conftest.er1
30927 grep -v '^ *+' conftest.er1 >conftest.err
30929 cat conftest.err >&5
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); } &&
30932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30933 { (case "(($ac_try" in
30934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935 *) ac_try_echo=$ac_try;;
30937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938 (eval "$ac_try") 2>&5
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941 (exit $ac_status); }; } &&
30942 { ac_try='test -s conftest.$ac_objext'
30943 { (case "(($ac_try" in
30944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30945 *) ac_try_echo=$ac_try;;
30947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30948 (eval "$ac_try") 2>&5
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); }; }; then
30952 ac_cv_func_rand48=yes
30954 echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30957 ac_cv_func_rand48=no
30960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30962 ac_cpp='$CPP $CPPFLAGS'
30963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30968 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30969 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30971 if test "$ac_cv_func_rand48" = "yes" ; then
30973 cat >>confdefs.h <<\_ACEOF
30974 #define HAVE_RAND48 1
30980 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30981 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30982 if test "${ac_cv_cxx_namespaces+set}" = set; then
30983 echo $ECHO_N "(cached) $ECHO_C" >&6
30986 ac_cpp='$CXXCPP $CPPFLAGS'
30987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30991 cat >conftest.$ac_ext <<_ACEOF
30994 cat confdefs.h >>conftest.$ac_ext
30995 cat >>conftest.$ac_ext <<_ACEOF
30996 /* end confdefs.h. */
30997 namespace Outer { namespace Inner { int i = 0; }}
31001 using namespace Outer::Inner; return i;
31006 rm -f conftest.$ac_objext
31007 if { (ac_try="$ac_compile"
31008 case "(($ac_try" in
31009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31010 *) ac_try_echo=$ac_try;;
31012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31013 (eval "$ac_compile") 2>conftest.er1
31015 grep -v '^ *+' conftest.er1 >conftest.err
31017 cat conftest.err >&5
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); } &&
31020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31021 { (case "(($ac_try" in
31022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31023 *) ac_try_echo=$ac_try;;
31025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31026 (eval "$ac_try") 2>&5
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); }; } &&
31030 { ac_try='test -s conftest.$ac_objext'
31031 { (case "(($ac_try" in
31032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31033 *) ac_try_echo=$ac_try;;
31035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31036 (eval "$ac_try") 2>&5
31038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039 (exit $ac_status); }; }; then
31040 ac_cv_cxx_namespaces=yes
31042 echo "$as_me: failed program was:" >&5
31043 sed 's/^/| /' conftest.$ac_ext >&5
31045 ac_cv_cxx_namespaces=no
31048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31050 ac_cpp='$CPP $CPPFLAGS'
31051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31057 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31058 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31059 if test "$ac_cv_cxx_namespaces" = yes; then
31061 cat >>confdefs.h <<\_ACEOF
31062 #define HAVE_NAMESPACES
31067 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31068 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31069 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31070 echo $ECHO_N "(cached) $ECHO_C" >&6
31074 ac_cpp='$CXXCPP $CPPFLAGS'
31075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31079 cat >conftest.$ac_ext <<_ACEOF
31082 cat confdefs.h >>conftest.$ac_ext
31083 cat >>conftest.$ac_ext <<_ACEOF
31084 /* end confdefs.h. */
31085 #include <ext/hash_map>
31086 #ifdef HAVE_NAMESPACES
31087 using namespace std;
31092 hash_map<int, int> t;
31097 rm -f conftest.$ac_objext
31098 if { (ac_try="$ac_compile"
31099 case "(($ac_try" in
31100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31101 *) ac_try_echo=$ac_try;;
31103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31104 (eval "$ac_compile") 2>conftest.er1
31106 grep -v '^ *+' conftest.er1 >conftest.err
31108 cat conftest.err >&5
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); } &&
31111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31112 { (case "(($ac_try" in
31113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31114 *) ac_try_echo=$ac_try;;
31116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31117 (eval "$ac_try") 2>&5
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); }; } &&
31121 { ac_try='test -s conftest.$ac_objext'
31122 { (case "(($ac_try" in
31123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31124 *) ac_try_echo=$ac_try;;
31126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31127 (eval "$ac_try") 2>&5
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); }; }; then
31131 ac_cv_cxx_have_std_ext_hash_map=yes
31133 echo "$as_me: failed program was:" >&5
31134 sed 's/^/| /' conftest.$ac_ext >&5
31136 ac_cv_cxx_have_std_ext_hash_map=no
31139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31141 ac_cpp='$CPP $CPPFLAGS'
31142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31147 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31148 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31149 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31152 cat >>confdefs.h <<\_ACEOF
31153 #define HAVE_STD_EXT_HASH_MAP 1
31158 cat >>confdefs.h <<\_ACEOF
31159 #define HAVE_STD_EXT_HASH_MAP 0
31164 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31165 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31166 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31167 echo $ECHO_N "(cached) $ECHO_C" >&6
31171 ac_cpp='$CXXCPP $CPPFLAGS'
31172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31176 cat >conftest.$ac_ext <<_ACEOF
31179 cat confdefs.h >>conftest.$ac_ext
31180 cat >>conftest.$ac_ext <<_ACEOF
31181 /* end confdefs.h. */
31182 #include <ext/hash_map>
31183 #ifdef HAVE_NAMESPACES
31184 using namespace __gnu_cxx;
31189 hash_map<int,int> t;
31194 rm -f conftest.$ac_objext
31195 if { (ac_try="$ac_compile"
31196 case "(($ac_try" in
31197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31198 *) ac_try_echo=$ac_try;;
31200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31201 (eval "$ac_compile") 2>conftest.er1
31203 grep -v '^ *+' conftest.er1 >conftest.err
31205 cat conftest.err >&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); } &&
31208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31209 { (case "(($ac_try" in
31210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211 *) ac_try_echo=$ac_try;;
31213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214 (eval "$ac_try") 2>&5
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); }; } &&
31218 { ac_try='test -s conftest.$ac_objext'
31219 { (case "(($ac_try" in
31220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31221 *) ac_try_echo=$ac_try;;
31223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31224 (eval "$ac_try") 2>&5
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); }; }; then
31228 ac_cv_cxx_have_gnu_ext_hash_map=yes
31230 echo "$as_me: failed program was:" >&5
31231 sed 's/^/| /' conftest.$ac_ext >&5
31233 ac_cv_cxx_have_gnu_ext_hash_map=no
31236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31238 ac_cpp='$CPP $CPPFLAGS'
31239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31244 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31245 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31246 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31249 cat >>confdefs.h <<\_ACEOF
31250 #define HAVE_GNU_EXT_HASH_MAP 1
31255 cat >>confdefs.h <<\_ACEOF
31256 #define HAVE_GNU_EXT_HASH_MAP 0
31261 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31262 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31263 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31264 echo $ECHO_N "(cached) $ECHO_C" >&6
31268 ac_cpp='$CXXCPP $CPPFLAGS'
31269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31273 cat >conftest.$ac_ext <<_ACEOF
31276 cat confdefs.h >>conftest.$ac_ext
31277 cat >>conftest.$ac_ext <<_ACEOF
31278 /* end confdefs.h. */
31279 #include <hash_map>
31283 hash_map<int,int> t;
31288 rm -f conftest.$ac_objext
31289 if { (ac_try="$ac_compile"
31290 case "(($ac_try" in
31291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31292 *) ac_try_echo=$ac_try;;
31294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31295 (eval "$ac_compile") 2>conftest.er1
31297 grep -v '^ *+' conftest.er1 >conftest.err
31299 cat conftest.err >&5
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); } &&
31302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31303 { (case "(($ac_try" in
31304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305 *) ac_try_echo=$ac_try;;
31307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308 (eval "$ac_try") 2>&5
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; } &&
31312 { ac_try='test -s conftest.$ac_objext'
31313 { (case "(($ac_try" in
31314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31315 *) ac_try_echo=$ac_try;;
31317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31318 (eval "$ac_try") 2>&5
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); }; }; then
31322 ac_cv_cxx_have_global_hash_map=yes
31324 echo "$as_me: failed program was:" >&5
31325 sed 's/^/| /' conftest.$ac_ext >&5
31327 ac_cv_cxx_have_global_hash_map=no
31330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31332 ac_cpp='$CPP $CPPFLAGS'
31333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31338 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31339 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31340 if test "$ac_cv_cxx_have_global_hash_map" = yes
31343 cat >>confdefs.h <<\_ACEOF
31344 #define HAVE_GLOBAL_HASH_MAP 1
31349 cat >>confdefs.h <<\_ACEOF
31350 #define HAVE_GLOBAL_HASH_MAP 0
31355 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31356 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31357 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31358 echo $ECHO_N "(cached) $ECHO_C" >&6
31362 ac_cpp='$CXXCPP $CPPFLAGS'
31363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31367 cat >conftest.$ac_ext <<_ACEOF
31370 cat confdefs.h >>conftest.$ac_ext
31371 cat >>conftest.$ac_ext <<_ACEOF
31372 /* end confdefs.h. */
31373 #include <ext/hash_set>
31374 #ifdef HAVE_NAMESPACES
31375 using namespace std;
31385 rm -f conftest.$ac_objext
31386 if { (ac_try="$ac_compile"
31387 case "(($ac_try" in
31388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31389 *) ac_try_echo=$ac_try;;
31391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31392 (eval "$ac_compile") 2>conftest.er1
31394 grep -v '^ *+' conftest.er1 >conftest.err
31396 cat conftest.err >&5
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); } &&
31399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31400 { (case "(($ac_try" in
31401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402 *) ac_try_echo=$ac_try;;
31404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405 (eval "$ac_try") 2>&5
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); }; } &&
31409 { ac_try='test -s conftest.$ac_objext'
31410 { (case "(($ac_try" in
31411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31412 *) ac_try_echo=$ac_try;;
31414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31415 (eval "$ac_try") 2>&5
31417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418 (exit $ac_status); }; }; then
31419 ac_cv_cxx_have_std_ext_hash_set=yes
31421 echo "$as_me: failed program was:" >&5
31422 sed 's/^/| /' conftest.$ac_ext >&5
31424 ac_cv_cxx_have_std_ext_hash_set=no
31427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31429 ac_cpp='$CPP $CPPFLAGS'
31430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31435 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31436 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31437 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31440 cat >>confdefs.h <<\_ACEOF
31441 #define HAVE_STD_EXT_HASH_SET 1
31446 cat >>confdefs.h <<\_ACEOF
31447 #define HAVE_STD_EXT_HASH_SET 0
31452 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31453 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31454 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31455 echo $ECHO_N "(cached) $ECHO_C" >&6
31459 ac_cpp='$CXXCPP $CPPFLAGS'
31460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31464 cat >conftest.$ac_ext <<_ACEOF
31467 cat confdefs.h >>conftest.$ac_ext
31468 cat >>conftest.$ac_ext <<_ACEOF
31469 /* end confdefs.h. */
31470 #include <ext/hash_set>
31471 #ifdef HAVE_NAMESPACES
31472 using namespace __gnu_cxx;
31482 rm -f conftest.$ac_objext
31483 if { (ac_try="$ac_compile"
31484 case "(($ac_try" in
31485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31486 *) ac_try_echo=$ac_try;;
31488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31489 (eval "$ac_compile") 2>conftest.er1
31491 grep -v '^ *+' conftest.er1 >conftest.err
31493 cat conftest.err >&5
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); } &&
31496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31497 { (case "(($ac_try" in
31498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31499 *) ac_try_echo=$ac_try;;
31501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31502 (eval "$ac_try") 2>&5
31504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505 (exit $ac_status); }; } &&
31506 { ac_try='test -s conftest.$ac_objext'
31507 { (case "(($ac_try" in
31508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31509 *) ac_try_echo=$ac_try;;
31511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31512 (eval "$ac_try") 2>&5
31514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515 (exit $ac_status); }; }; then
31516 ac_cv_cxx_have_gnu_ext_hash_set=yes
31518 echo "$as_me: failed program was:" >&5
31519 sed 's/^/| /' conftest.$ac_ext >&5
31521 ac_cv_cxx_have_gnu_ext_hash_set=no
31524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31526 ac_cpp='$CPP $CPPFLAGS'
31527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31532 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31533 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31534 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31537 cat >>confdefs.h <<\_ACEOF
31538 #define HAVE_GNU_EXT_HASH_SET 1
31543 cat >>confdefs.h <<\_ACEOF
31544 #define HAVE_GNU_EXT_HASH_SET 0
31549 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31550 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31551 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31552 echo $ECHO_N "(cached) $ECHO_C" >&6
31556 ac_cpp='$CXXCPP $CPPFLAGS'
31557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31561 cat >conftest.$ac_ext <<_ACEOF
31564 cat confdefs.h >>conftest.$ac_ext
31565 cat >>conftest.$ac_ext <<_ACEOF
31566 /* end confdefs.h. */
31567 #include <hash_set>
31571 hash_set<int> t; return 0;
31576 rm -f conftest.$ac_objext
31577 if { (ac_try="$ac_compile"
31578 case "(($ac_try" in
31579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31580 *) ac_try_echo=$ac_try;;
31582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31583 (eval "$ac_compile") 2>conftest.er1
31585 grep -v '^ *+' conftest.er1 >conftest.err
31587 cat conftest.err >&5
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); } &&
31590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31591 { (case "(($ac_try" in
31592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593 *) ac_try_echo=$ac_try;;
31595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31596 (eval "$ac_try") 2>&5
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); }; } &&
31600 { ac_try='test -s conftest.$ac_objext'
31601 { (case "(($ac_try" in
31602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31603 *) ac_try_echo=$ac_try;;
31605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31606 (eval "$ac_try") 2>&5
31608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31609 (exit $ac_status); }; }; then
31610 ac_cv_cxx_have_global_hash_set=yes
31612 echo "$as_me: failed program was:" >&5
31613 sed 's/^/| /' conftest.$ac_ext >&5
31615 ac_cv_cxx_have_global_hash_set=no
31618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31620 ac_cpp='$CPP $CPPFLAGS'
31621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31626 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31627 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31628 if test "$ac_cv_cxx_have_global_hash_set" = yes
31631 cat >>confdefs.h <<\_ACEOF
31632 #define HAVE_GLOBAL_HASH_SET 1
31637 cat >>confdefs.h <<\_ACEOF
31638 #define HAVE_GLOBAL_HASH_SET 0
31643 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31644 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31645 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31646 echo $ECHO_N "(cached) $ECHO_C" >&6
31650 ac_cpp='$CXXCPP $CPPFLAGS'
31651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31655 cat >conftest.$ac_ext <<_ACEOF
31658 cat confdefs.h >>conftest.$ac_ext
31659 cat >>conftest.$ac_ext <<_ACEOF
31660 /* end confdefs.h. */
31661 #include <iterator>
31662 #ifdef HAVE_NAMESPACES
31663 using namespace std;
31668 iterator<int,int,int> t; return 0;
31673 rm -f conftest.$ac_objext
31674 if { (ac_try="$ac_compile"
31675 case "(($ac_try" in
31676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677 *) ac_try_echo=$ac_try;;
31679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680 (eval "$ac_compile") 2>conftest.er1
31682 grep -v '^ *+' conftest.er1 >conftest.err
31684 cat conftest.err >&5
31685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31686 (exit $ac_status); } &&
31687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31688 { (case "(($ac_try" in
31689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31690 *) ac_try_echo=$ac_try;;
31692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31693 (eval "$ac_try") 2>&5
31695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696 (exit $ac_status); }; } &&
31697 { ac_try='test -s conftest.$ac_objext'
31698 { (case "(($ac_try" in
31699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31700 *) ac_try_echo=$ac_try;;
31702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31703 (eval "$ac_try") 2>&5
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); }; }; then
31707 ac_cv_cxx_have_std_iterator=yes
31709 echo "$as_me: failed program was:" >&5
31710 sed 's/^/| /' conftest.$ac_ext >&5
31712 ac_cv_cxx_have_std_iterator=no
31715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31717 ac_cpp='$CPP $CPPFLAGS'
31718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31724 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31725 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31726 if test "$ac_cv_cxx_have_std_iterator" = yes
31729 cat >>confdefs.h <<\_ACEOF
31730 #define HAVE_STD_ITERATOR 1
31735 cat >>confdefs.h <<\_ACEOF
31736 #define HAVE_STD_ITERATOR 0
31741 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31742 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31743 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31744 echo $ECHO_N "(cached) $ECHO_C" >&6
31748 ac_cpp='$CXXCPP $CPPFLAGS'
31749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31753 cat >conftest.$ac_ext <<_ACEOF
31756 cat confdefs.h >>conftest.$ac_ext
31757 cat >>conftest.$ac_ext <<_ACEOF
31758 /* end confdefs.h. */
31759 #include <iterator>
31760 #ifdef HAVE_NAMESPACES
31761 using namespace std;
31766 bidirectional_iterator<int,int> t; return 0;
31771 rm -f conftest.$ac_objext
31772 if { (ac_try="$ac_compile"
31773 case "(($ac_try" in
31774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775 *) ac_try_echo=$ac_try;;
31777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778 (eval "$ac_compile") 2>conftest.er1
31780 grep -v '^ *+' conftest.er1 >conftest.err
31782 cat conftest.err >&5
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); } &&
31785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31786 { (case "(($ac_try" in
31787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788 *) ac_try_echo=$ac_try;;
31790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791 (eval "$ac_try") 2>&5
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; } &&
31795 { ac_try='test -s conftest.$ac_objext'
31796 { (case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_try") 2>&5
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); }; }; then
31805 ac_cv_cxx_have_bi_iterator=yes
31807 echo "$as_me: failed program was:" >&5
31808 sed 's/^/| /' conftest.$ac_ext >&5
31810 ac_cv_cxx_have_bi_iterator=no
31813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31815 ac_cpp='$CPP $CPPFLAGS'
31816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31822 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31823 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31824 if test "$ac_cv_cxx_have_bi_iterator" = yes
31827 cat >>confdefs.h <<\_ACEOF
31828 #define HAVE_BI_ITERATOR 1
31833 cat >>confdefs.h <<\_ACEOF
31834 #define HAVE_BI_ITERATOR 0
31839 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31840 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31841 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31842 echo $ECHO_N "(cached) $ECHO_C" >&6
31846 ac_cpp='$CXXCPP $CPPFLAGS'
31847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31851 cat >conftest.$ac_ext <<_ACEOF
31854 cat confdefs.h >>conftest.$ac_ext
31855 cat >>conftest.$ac_ext <<_ACEOF
31856 /* end confdefs.h. */
31857 #include <iterator>
31858 #ifdef HAVE_NAMESPACES
31859 using namespace std;
31864 forward_iterator<int,int> t; return 0;
31869 rm -f conftest.$ac_objext
31870 if { (ac_try="$ac_compile"
31871 case "(($ac_try" in
31872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31873 *) ac_try_echo=$ac_try;;
31875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31876 (eval "$ac_compile") 2>conftest.er1
31878 grep -v '^ *+' conftest.er1 >conftest.err
31880 cat conftest.err >&5
31881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); } &&
31883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31884 { (case "(($ac_try" in
31885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31886 *) ac_try_echo=$ac_try;;
31888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31889 (eval "$ac_try") 2>&5
31891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892 (exit $ac_status); }; } &&
31893 { ac_try='test -s conftest.$ac_objext'
31894 { (case "(($ac_try" in
31895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31896 *) ac_try_echo=$ac_try;;
31898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31899 (eval "$ac_try") 2>&5
31901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902 (exit $ac_status); }; }; then
31903 ac_cv_cxx_have_fwd_iterator=yes
31905 echo "$as_me: failed program was:" >&5
31906 sed 's/^/| /' conftest.$ac_ext >&5
31908 ac_cv_cxx_have_fwd_iterator=no
31911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31913 ac_cpp='$CPP $CPPFLAGS'
31914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31920 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31921 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31922 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31925 cat >>confdefs.h <<\_ACEOF
31926 #define HAVE_FWD_ITERATOR 1
31931 cat >>confdefs.h <<\_ACEOF
31932 #define HAVE_FWD_ITERATOR 0
31938 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31939 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31940 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31941 echo $ECHO_N "(cached) $ECHO_C" >&6
31944 ac_cpp='$CXXCPP $CPPFLAGS'
31945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31949 cat >conftest.$ac_ext <<_ACEOF
31952 cat confdefs.h >>conftest.$ac_ext
31953 cat >>conftest.$ac_ext <<_ACEOF
31954 /* end confdefs.h. */
31964 rm -f conftest.$ac_objext
31965 if { (ac_try="$ac_compile"
31966 case "(($ac_try" in
31967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31968 *) ac_try_echo=$ac_try;;
31970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971 (eval "$ac_compile") 2>conftest.er1
31973 grep -v '^ *+' conftest.er1 >conftest.err
31975 cat conftest.err >&5
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); } &&
31978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31979 { (case "(($ac_try" in
31980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31981 *) ac_try_echo=$ac_try;;
31983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984 (eval "$ac_try") 2>&5
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); }; } &&
31988 { ac_try='test -s conftest.$ac_objext'
31989 { (case "(($ac_try" in
31990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31991 *) ac_try_echo=$ac_try;;
31993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31994 (eval "$ac_try") 2>&5
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); }; }; then
31998 ac_cv_func_isnan_in_math_h=yes
32000 echo "$as_me: failed program was:" >&5
32001 sed 's/^/| /' conftest.$ac_ext >&5
32003 ac_cv_func_isnan_in_math_h=no
32006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32008 ac_cpp='$CPP $CPPFLAGS'
32009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32014 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32015 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32018 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32020 cat >>confdefs.h <<\_ACEOF
32021 #define HAVE_ISNAN_IN_MATH_H 1
32026 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32027 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32028 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32029 echo $ECHO_N "(cached) $ECHO_C" >&6
32032 ac_cpp='$CXXCPP $CPPFLAGS'
32033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32037 cat >conftest.$ac_ext <<_ACEOF
32040 cat confdefs.h >>conftest.$ac_ext
32041 cat >>conftest.$ac_ext <<_ACEOF
32042 /* end confdefs.h. */
32052 rm -f conftest.$ac_objext
32053 if { (ac_try="$ac_compile"
32054 case "(($ac_try" in
32055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32056 *) ac_try_echo=$ac_try;;
32058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32059 (eval "$ac_compile") 2>conftest.er1
32061 grep -v '^ *+' conftest.er1 >conftest.err
32063 cat conftest.err >&5
32064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065 (exit $ac_status); } &&
32066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32067 { (case "(($ac_try" in
32068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32069 *) ac_try_echo=$ac_try;;
32071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32072 (eval "$ac_try") 2>&5
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); }; } &&
32076 { ac_try='test -s conftest.$ac_objext'
32077 { (case "(($ac_try" in
32078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32079 *) ac_try_echo=$ac_try;;
32081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082 (eval "$ac_try") 2>&5
32084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085 (exit $ac_status); }; }; then
32086 ac_cv_func_isnan_in_cmath=yes
32088 echo "$as_me: failed program was:" >&5
32089 sed 's/^/| /' conftest.$ac_ext >&5
32091 ac_cv_func_isnan_in_cmath=no
32094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32096 ac_cpp='$CPP $CPPFLAGS'
32097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32102 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32103 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32105 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32107 cat >>confdefs.h <<\_ACEOF
32108 #define HAVE_ISNAN_IN_CMATH 1
32113 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32114 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32115 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32116 echo $ECHO_N "(cached) $ECHO_C" >&6
32119 ac_cpp='$CXXCPP $CPPFLAGS'
32120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32124 cat >conftest.$ac_ext <<_ACEOF
32127 cat confdefs.h >>conftest.$ac_ext
32128 cat >>conftest.$ac_ext <<_ACEOF
32129 /* end confdefs.h. */
32134 float f; std::isnan(f);
32139 rm -f conftest.$ac_objext
32140 if { (ac_try="$ac_compile"
32141 case "(($ac_try" in
32142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143 *) ac_try_echo=$ac_try;;
32145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146 (eval "$ac_compile") 2>conftest.er1
32148 grep -v '^ *+' conftest.er1 >conftest.err
32150 cat conftest.err >&5
32151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32152 (exit $ac_status); } &&
32153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32154 { (case "(($ac_try" in
32155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156 *) ac_try_echo=$ac_try;;
32158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159 (eval "$ac_try") 2>&5
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; } &&
32163 { ac_try='test -s conftest.$ac_objext'
32164 { (case "(($ac_try" in
32165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166 *) ac_try_echo=$ac_try;;
32168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169 (eval "$ac_try") 2>&5
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; }; then
32173 ac_cv_func_std_isnan_in_cmath=yes
32175 echo "$as_me: failed program was:" >&5
32176 sed 's/^/| /' conftest.$ac_ext >&5
32178 ac_cv_func_std_isnan_in_cmath=no
32181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32183 ac_cpp='$CPP $CPPFLAGS'
32184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32189 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32190 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32192 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32194 cat >>confdefs.h <<\_ACEOF
32195 #define HAVE_STD_ISNAN_IN_CMATH 1
32201 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32202 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32203 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32204 echo $ECHO_N "(cached) $ECHO_C" >&6
32207 ac_cpp='$CXXCPP $CPPFLAGS'
32208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32212 cat >conftest.$ac_ext <<_ACEOF
32215 cat confdefs.h >>conftest.$ac_ext
32216 cat >>conftest.$ac_ext <<_ACEOF
32217 /* end confdefs.h. */
32227 rm -f conftest.$ac_objext
32228 if { (ac_try="$ac_compile"
32229 case "(($ac_try" in
32230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231 *) ac_try_echo=$ac_try;;
32233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32234 (eval "$ac_compile") 2>conftest.er1
32236 grep -v '^ *+' conftest.er1 >conftest.err
32238 cat conftest.err >&5
32239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); } &&
32241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32242 { (case "(($ac_try" in
32243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32244 *) ac_try_echo=$ac_try;;
32246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32247 (eval "$ac_try") 2>&5
32249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250 (exit $ac_status); }; } &&
32251 { ac_try='test -s conftest.$ac_objext'
32252 { (case "(($ac_try" in
32253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32254 *) ac_try_echo=$ac_try;;
32256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32257 (eval "$ac_try") 2>&5
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); }; }; then
32261 ac_cv_func_isinf_in_math_h=yes
32263 echo "$as_me: failed program was:" >&5
32264 sed 's/^/| /' conftest.$ac_ext >&5
32266 ac_cv_func_isinf_in_math_h=no
32269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32271 ac_cpp='$CPP $CPPFLAGS'
32272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32277 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32278 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32280 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32282 cat >>confdefs.h <<\_ACEOF
32283 #define HAVE_ISINF_IN_MATH_H 1
32288 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32289 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32290 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32291 echo $ECHO_N "(cached) $ECHO_C" >&6
32294 ac_cpp='$CXXCPP $CPPFLAGS'
32295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32299 cat >conftest.$ac_ext <<_ACEOF
32302 cat confdefs.h >>conftest.$ac_ext
32303 cat >>conftest.$ac_ext <<_ACEOF
32304 /* end confdefs.h. */
32314 rm -f conftest.$ac_objext
32315 if { (ac_try="$ac_compile"
32316 case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_compile") 2>conftest.er1
32323 grep -v '^ *+' conftest.er1 >conftest.err
32325 cat conftest.err >&5
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); } &&
32328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32329 { (case "(($ac_try" in
32330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32331 *) ac_try_echo=$ac_try;;
32333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32334 (eval "$ac_try") 2>&5
32336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32337 (exit $ac_status); }; } &&
32338 { ac_try='test -s conftest.$ac_objext'
32339 { (case "(($ac_try" in
32340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341 *) ac_try_echo=$ac_try;;
32343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32344 (eval "$ac_try") 2>&5
32346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32347 (exit $ac_status); }; }; then
32348 ac_cv_func_isinf_in_cmath=yes
32350 echo "$as_me: failed program was:" >&5
32351 sed 's/^/| /' conftest.$ac_ext >&5
32353 ac_cv_func_isinf_in_cmath=no
32356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32358 ac_cpp='$CPP $CPPFLAGS'
32359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32364 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32365 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32367 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32369 cat >>confdefs.h <<\_ACEOF
32370 #define HAVE_ISINF_IN_CMATH 1
32375 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32376 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32377 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32378 echo $ECHO_N "(cached) $ECHO_C" >&6
32381 ac_cpp='$CXXCPP $CPPFLAGS'
32382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32386 cat >conftest.$ac_ext <<_ACEOF
32389 cat confdefs.h >>conftest.$ac_ext
32390 cat >>conftest.$ac_ext <<_ACEOF
32391 /* end confdefs.h. */
32396 float f; std::isinf(f)}
32401 rm -f conftest.$ac_objext
32402 if { (ac_try="$ac_compile"
32403 case "(($ac_try" in
32404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32405 *) ac_try_echo=$ac_try;;
32407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32408 (eval "$ac_compile") 2>conftest.er1
32410 grep -v '^ *+' conftest.er1 >conftest.err
32412 cat conftest.err >&5
32413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); } &&
32415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32416 { (case "(($ac_try" in
32417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32418 *) ac_try_echo=$ac_try;;
32420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32421 (eval "$ac_try") 2>&5
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); }; } &&
32425 { ac_try='test -s conftest.$ac_objext'
32426 { (case "(($ac_try" in
32427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32428 *) ac_try_echo=$ac_try;;
32430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32431 (eval "$ac_try") 2>&5
32433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434 (exit $ac_status); }; }; then
32435 ac_cv_func_std_isinf_in_cmath=yes
32437 echo "$as_me: failed program was:" >&5
32438 sed 's/^/| /' conftest.$ac_ext >&5
32440 ac_cv_func_std_isinf_in_cmath=no
32443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32445 ac_cpp='$CPP $CPPFLAGS'
32446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32451 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32452 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32454 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32456 cat >>confdefs.h <<\_ACEOF
32457 #define HAVE_STD_ISINF_IN_CMATH 1
32462 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32463 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32464 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32465 echo $ECHO_N "(cached) $ECHO_C" >&6
32468 ac_cpp='$CXXCPP $CPPFLAGS'
32469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32473 cat >conftest.$ac_ext <<_ACEOF
32476 cat confdefs.h >>conftest.$ac_ext
32477 cat >>conftest.$ac_ext <<_ACEOF
32478 /* end confdefs.h. */
32479 #include <ieeefp.h>
32483 float f; finite(f);
32488 rm -f conftest.$ac_objext
32489 if { (ac_try="$ac_compile"
32490 case "(($ac_try" in
32491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32492 *) ac_try_echo=$ac_try;;
32494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32495 (eval "$ac_compile") 2>conftest.er1
32497 grep -v '^ *+' conftest.er1 >conftest.err
32499 cat conftest.err >&5
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); } &&
32502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32503 { (case "(($ac_try" in
32504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32505 *) ac_try_echo=$ac_try;;
32507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32508 (eval "$ac_try") 2>&5
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); }; } &&
32512 { ac_try='test -s conftest.$ac_objext'
32513 { (case "(($ac_try" in
32514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32515 *) ac_try_echo=$ac_try;;
32517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32518 (eval "$ac_try") 2>&5
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); }; }; then
32522 ac_cv_func_finite_in_ieeefp_h=yes
32524 echo "$as_me: failed program was:" >&5
32525 sed 's/^/| /' conftest.$ac_ext >&5
32527 ac_cv_func_finite_in_ieeefp_h=no
32530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32532 ac_cpp='$CPP $CPPFLAGS'
32533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32538 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32539 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32541 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32543 cat >>confdefs.h <<\_ACEOF
32544 #define HAVE_FINITE_IN_IEEEFP_H 1
32553 for ac_header in stdlib.h unistd.h
32555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32560 echo $ECHO_N "(cached) $ECHO_C" >&6
32562 ac_res=`eval echo '${'$as_ac_Header'}'`
32563 { echo "$as_me:$LINENO: result: $ac_res" >&5
32564 echo "${ECHO_T}$ac_res" >&6; }
32566 # Is the header compilable?
32567 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32569 cat >conftest.$ac_ext <<_ACEOF
32572 cat confdefs.h >>conftest.$ac_ext
32573 cat >>conftest.$ac_ext <<_ACEOF
32574 /* end confdefs.h. */
32575 $ac_includes_default
32576 #include <$ac_header>
32578 rm -f conftest.$ac_objext
32579 if { (ac_try="$ac_compile"
32580 case "(($ac_try" in
32581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582 *) ac_try_echo=$ac_try;;
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585 (eval "$ac_compile") 2>conftest.er1
32587 grep -v '^ *+' conftest.er1 >conftest.err
32589 cat conftest.err >&5
32590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591 (exit $ac_status); } &&
32592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32593 { (case "(($ac_try" in
32594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32595 *) ac_try_echo=$ac_try;;
32597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32598 (eval "$ac_try") 2>&5
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); }; } &&
32602 { ac_try='test -s conftest.$ac_objext'
32603 { (case "(($ac_try" in
32604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32605 *) ac_try_echo=$ac_try;;
32607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32608 (eval "$ac_try") 2>&5
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); }; }; then
32612 ac_header_compiler=yes
32614 echo "$as_me: failed program was:" >&5
32615 sed 's/^/| /' conftest.$ac_ext >&5
32617 ac_header_compiler=no
32620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32622 echo "${ECHO_T}$ac_header_compiler" >&6; }
32624 # Is the header present?
32625 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32627 cat >conftest.$ac_ext <<_ACEOF
32630 cat confdefs.h >>conftest.$ac_ext
32631 cat >>conftest.$ac_ext <<_ACEOF
32632 /* end confdefs.h. */
32633 #include <$ac_header>
32635 if { (ac_try="$ac_cpp conftest.$ac_ext"
32636 case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32643 grep -v '^ *+' conftest.er1 >conftest.err
32645 cat conftest.err >&5
32646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647 (exit $ac_status); } >/dev/null; then
32648 if test -s conftest.err; then
32649 ac_cpp_err=$ac_c_preproc_warn_flag
32650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32657 if test -z "$ac_cpp_err"; then
32658 ac_header_preproc=yes
32660 echo "$as_me: failed program was:" >&5
32661 sed 's/^/| /' conftest.$ac_ext >&5
32663 ac_header_preproc=no
32666 rm -f conftest.err conftest.$ac_ext
32667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32668 echo "${ECHO_T}$ac_header_preproc" >&6; }
32670 # So? What about this header?
32671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32677 ac_header_preproc=yes
32680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32693 ## ----------------------------------- ##
32694 ## Report this to llvmbugs@cs.uiuc.edu ##
32695 ## ----------------------------------- ##
32697 ) | sed "s/^/$as_me: WARNING: /" >&2
32700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32703 echo $ECHO_N "(cached) $ECHO_C" >&6
32705 eval "$as_ac_Header=\$ac_header_preproc"
32707 ac_res=`eval echo '${'$as_ac_Header'}'`
32708 { echo "$as_me:$LINENO: result: $ac_res" >&5
32709 echo "${ECHO_T}$ac_res" >&6; }
32712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32713 cat >>confdefs.h <<_ACEOF
32714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32722 for ac_func in getpagesize
32724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32728 echo $ECHO_N "(cached) $ECHO_C" >&6
32730 cat >conftest.$ac_ext <<_ACEOF
32733 cat confdefs.h >>conftest.$ac_ext
32734 cat >>conftest.$ac_ext <<_ACEOF
32735 /* end confdefs.h. */
32736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32738 #define $ac_func innocuous_$ac_func
32740 /* System header to define __stub macros and hopefully few prototypes,
32741 which can conflict with char $ac_func (); below.
32742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32743 <limits.h> exists even on freestanding compilers. */
32746 # include <limits.h>
32748 # include <assert.h>
32753 /* Override any GCC internal prototype to avoid an error.
32754 Use char because int might match the return type of a GCC
32755 builtin and then its argument prototype would still apply. */
32760 /* The GNU C library defines this for functions which it implements
32761 to always fail with ENOSYS. Some functions are actually named
32762 something starting with __ and the normal name is an alias. */
32763 #if defined __stub_$ac_func || defined __stub___$ac_func
32770 return $ac_func ();
32775 rm -f conftest.$ac_objext conftest$ac_exeext
32776 if { (ac_try="$ac_link"
32777 case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_link") 2>conftest.er1
32784 grep -v '^ *+' conftest.er1 >conftest.err
32786 cat conftest.err >&5
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); } &&
32789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest$ac_exeext'
32800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
32809 eval "$as_ac_var=yes"
32811 echo "$as_me: failed program was:" >&5
32812 sed 's/^/| /' conftest.$ac_ext >&5
32814 eval "$as_ac_var=no"
32817 rm -f core conftest.err conftest.$ac_objext \
32818 conftest$ac_exeext conftest.$ac_ext
32820 ac_res=`eval echo '${'$as_ac_var'}'`
32821 { echo "$as_me:$LINENO: result: $ac_res" >&5
32822 echo "${ECHO_T}$ac_res" >&6; }
32823 if test `eval echo '${'$as_ac_var'}'` = yes; then
32824 cat >>confdefs.h <<_ACEOF
32825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32831 { echo "$as_me:$LINENO: checking for working mmap" >&5
32832 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32833 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32834 echo $ECHO_N "(cached) $ECHO_C" >&6
32836 if test "$cross_compiling" = yes; then
32837 ac_cv_func_mmap_fixed_mapped=no
32839 cat >conftest.$ac_ext <<_ACEOF
32842 cat confdefs.h >>conftest.$ac_ext
32843 cat >>conftest.$ac_ext <<_ACEOF
32844 /* end confdefs.h. */
32845 $ac_includes_default
32846 /* malloc might have been renamed as rpl_malloc. */
32849 /* Thanks to Mike Haertel and Jim Avera for this test.
32850 Here is a matrix of mmap possibilities:
32851 mmap private not fixed
32852 mmap private fixed at somewhere currently unmapped
32853 mmap private fixed at somewhere already mapped
32854 mmap shared not fixed
32855 mmap shared fixed at somewhere currently unmapped
32856 mmap shared fixed at somewhere already mapped
32857 For private mappings, we should verify that changes cannot be read()
32858 back from the file, nor mmap's back from the file at a different
32859 address. (There have been systems where private was not correctly
32860 implemented like the infamous i386 svr4.0, and systems where the
32861 VM page cache was not coherent with the file system buffer cache
32862 like early versions of FreeBSD and possibly contemporary NetBSD.)
32863 For shared mappings, we should conversely verify that changes get
32864 propagated back to all the places they're supposed to be.
32866 Grep wants private fixed already mapped.
32867 The main things grep needs to know about mmap are:
32868 * does it exist and is it safe to write into the mmap'd area
32869 * how to use it (BSD variants) */
32872 #include <sys/mman.h>
32874 #if !STDC_HEADERS && !HAVE_STDLIB_H
32878 /* This mess was copied from the GNU getpagesize.h. */
32879 #if !HAVE_GETPAGESIZE
32880 /* Assume that all systems that can run configure have sys/param.h. */
32881 # if !HAVE_SYS_PARAM_H
32882 # define HAVE_SYS_PARAM_H 1
32885 # ifdef _SC_PAGESIZE
32886 # define getpagesize() sysconf(_SC_PAGESIZE)
32887 # else /* no _SC_PAGESIZE */
32888 # if HAVE_SYS_PARAM_H
32889 # include <sys/param.h>
32890 # ifdef EXEC_PAGESIZE
32891 # define getpagesize() EXEC_PAGESIZE
32892 # else /* no EXEC_PAGESIZE */
32894 # define getpagesize() NBPG * CLSIZE
32897 # endif /* no CLSIZE */
32898 # else /* no NBPG */
32900 # define getpagesize() NBPC
32901 # else /* no NBPC */
32903 # define getpagesize() PAGESIZE
32904 # endif /* PAGESIZE */
32905 # endif /* no NBPC */
32906 # endif /* no NBPG */
32907 # endif /* no EXEC_PAGESIZE */
32908 # else /* no HAVE_SYS_PARAM_H */
32909 # define getpagesize() 8192 /* punt totally */
32910 # endif /* no HAVE_SYS_PARAM_H */
32911 # endif /* no _SC_PAGESIZE */
32913 #endif /* no HAVE_GETPAGESIZE */
32918 char *data, *data2, *data3;
32922 pagesize = getpagesize ();
32924 /* First, make a file with some known garbage in it. */
32925 data = (char *) malloc (pagesize);
32928 for (i = 0; i < pagesize; ++i)
32929 *(data + i) = rand ();
32931 fd = creat ("conftest.mmap", 0600);
32934 if (write (fd, data, pagesize) != pagesize)
32938 /* Next, try to mmap the file at a fixed address which already has
32939 something else allocated at it. If we can, also make sure that
32940 we see the same garbage. */
32941 fd = open ("conftest.mmap", O_RDWR);
32944 data2 = (char *) malloc (2 * pagesize);
32947 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32948 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32949 MAP_PRIVATE | MAP_FIXED, fd, 0L))
32951 for (i = 0; i < pagesize; ++i)
32952 if (*(data + i) != *(data2 + i))
32955 /* Finally, make sure that changes to the mapped area do not
32956 percolate back to the file as seen by read(). (This is a bug on
32957 some variants of i386 svr4.0.) */
32958 for (i = 0; i < pagesize; ++i)
32959 *(data2 + i) = *(data2 + i) + 1;
32960 data3 = (char *) malloc (pagesize);
32963 if (read (fd, data3, pagesize) != pagesize)
32965 for (i = 0; i < pagesize; ++i)
32966 if (*(data + i) != *(data3 + i))
32972 rm -f conftest$ac_exeext
32973 if { (ac_try="$ac_link"
32974 case "(($ac_try" in
32975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976 *) ac_try_echo=$ac_try;;
32978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979 (eval "$ac_link") 2>&5
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32983 { (case "(($ac_try" in
32984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985 *) ac_try_echo=$ac_try;;
32987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988 (eval "$ac_try") 2>&5
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; }; then
32992 ac_cv_func_mmap_fixed_mapped=yes
32994 echo "$as_me: program exited with status $ac_status" >&5
32995 echo "$as_me: failed program was:" >&5
32996 sed 's/^/| /' conftest.$ac_ext >&5
32998 ( exit $ac_status )
32999 ac_cv_func_mmap_fixed_mapped=no
33001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33006 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33007 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33008 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33010 cat >>confdefs.h <<\_ACEOF
33011 #define HAVE_MMAP 1
33015 rm -f conftest.mmap
33017 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33018 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33019 if test "${ac_cv_func_mmap_file+set}" = set; then
33020 echo $ECHO_N "(cached) $ECHO_C" >&6
33023 ac_cpp='$CPP $CPPFLAGS'
33024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33028 if test "$cross_compiling" = yes; then
33029 ac_cv_func_mmap_file=no
33031 cat >conftest.$ac_ext <<_ACEOF
33035 cat confdefs.h >>conftest.$ac_ext
33036 cat >>conftest.$ac_ext <<_ACEOF
33037 /* end confdefs.h. */
33039 #include <sys/types.h>
33040 #include <sys/mman.h>
33048 fd = creat ("foo",0777);
33049 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33051 return (fd != (int) MAP_FAILED);
33056 rm -f conftest$ac_exeext
33057 if { (ac_try="$ac_link"
33058 case "(($ac_try" in
33059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33060 *) ac_try_echo=$ac_try;;
33062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33063 (eval "$ac_link") 2>&5
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33067 { (case "(($ac_try" in
33068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33069 *) ac_try_echo=$ac_try;;
33071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33072 (eval "$ac_try") 2>&5
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); }; }; then
33076 ac_cv_func_mmap_file=yes
33078 echo "$as_me: program exited with status $ac_status" >&5
33079 echo "$as_me: failed program was:" >&5
33080 sed 's/^/| /' conftest.$ac_ext >&5
33082 ( exit $ac_status )
33083 ac_cv_func_mmap_file=no
33085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33090 ac_cpp='$CPP $CPPFLAGS'
33091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33097 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33098 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33099 if test "$ac_cv_func_mmap_file" = yes; then
33101 cat >>confdefs.h <<\_ACEOF
33102 #define HAVE_MMAP_FILE
33109 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33110 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33111 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33112 echo $ECHO_N "(cached) $ECHO_C" >&6
33114 if test "$llvm_cv_os_type" = "Interix" ; then
33115 ac_cv_need_dev_zero_for_mmap=yes
33117 ac_cv_need_dev_zero_for_mmap=no
33121 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33122 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33123 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33125 cat >>confdefs.h <<\_ACEOF
33126 #define NEED_DEV_ZERO_FOR_MMAP 1
33130 { echo "$as_me:$LINENO: checking for mprotect" >&5
33131 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33132 if test "${ac_cv_func_mprotect+set}" = set; then
33133 echo $ECHO_N "(cached) $ECHO_C" >&6
33135 cat >conftest.$ac_ext <<_ACEOF
33138 cat confdefs.h >>conftest.$ac_ext
33139 cat >>conftest.$ac_ext <<_ACEOF
33140 /* end confdefs.h. */
33141 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33143 #define mprotect innocuous_mprotect
33145 /* System header to define __stub macros and hopefully few prototypes,
33146 which can conflict with char mprotect (); below.
33147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33148 <limits.h> exists even on freestanding compilers. */
33151 # include <limits.h>
33153 # include <assert.h>
33158 /* Override any GCC internal prototype to avoid an error.
33159 Use char because int might match the return type of a GCC
33160 builtin and then its argument prototype would still apply. */
33165 /* The GNU C library defines this for functions which it implements
33166 to always fail with ENOSYS. Some functions are actually named
33167 something starting with __ and the normal name is an alias. */
33168 #if defined __stub_mprotect || defined __stub___mprotect
33175 return mprotect ();
33180 rm -f conftest.$ac_objext conftest$ac_exeext
33181 if { (ac_try="$ac_link"
33182 case "(($ac_try" in
33183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33184 *) ac_try_echo=$ac_try;;
33186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33187 (eval "$ac_link") 2>conftest.er1
33189 grep -v '^ *+' conftest.er1 >conftest.err
33191 cat conftest.err >&5
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); } &&
33194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33195 { (case "(($ac_try" in
33196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197 *) ac_try_echo=$ac_try;;
33199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200 (eval "$ac_try") 2>&5
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); }; } &&
33204 { ac_try='test -s conftest$ac_exeext'
33205 { (case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_try") 2>&5
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); }; }; then
33214 ac_cv_func_mprotect=yes
33216 echo "$as_me: failed program was:" >&5
33217 sed 's/^/| /' conftest.$ac_ext >&5
33219 ac_cv_func_mprotect=no
33222 rm -f core conftest.err conftest.$ac_objext \
33223 conftest$ac_exeext conftest.$ac_ext
33225 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33226 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33227 if test $ac_cv_func_mprotect = yes; then
33230 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33231 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33232 { (exit 1); exit 1; }; }
33236 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33238 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33239 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33241 if test "$ac_cv_func_mmap_file" = "no"
33243 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33244 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33248 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33249 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33250 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33251 echo $ECHO_N "(cached) $ECHO_C" >&6
33253 llvm_cv_llvmgcc_sanity="no"
33254 if test -x "$LLVMGCC" ; then
33255 cp /dev/null conftest.c
33256 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33257 if test $? -eq 0 ; then
33258 llvm_cv_llvmgcc_sanity="yes"
33263 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33264 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33266 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33267 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33268 LLVMCC1=$llvmcc1path
33270 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33271 LLVMCC1PLUS=$llvmcc1pluspath
33273 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33274 LLVMGCCDIR=$llvmgccdir
33276 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33277 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33278 LLVMGCC_VERSION=$llvmgccversion
33280 LLVMGCC_MAJVERS=$llvmgccmajvers
33284 SHLIBEXT=$libltdl_cv_shlibext
33287 # Translate the various configuration directories and other basic
33288 # information into substitutions that will end up in Makefile.config.in
33289 # that these configured values can be used by the makefiles
33290 if test "${prefix}" == "NONE" ; then
33291 prefix="/usr/local"
33293 eval LLVM_PREFIX="${prefix}";
33294 eval LLVM_BINDIR="${prefix}/bin";
33295 eval LLVM_LIBDIR="${prefix}/lib";
33296 eval LLVM_DATADIR="${prefix}/share/llvm";
33297 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33298 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33299 eval LLVM_INCLUDEDIR="${prefix}/include";
33300 eval LLVM_INFODIR="${prefix}/info";
33301 eval LLVM_MANDIR="${prefix}/man";
33302 LLVM_CONFIGTIME=`date`
33314 # Place the various directores into the config.h file as #defines so that we
33315 # can know about the installation paths within LLVM.
33317 cat >>confdefs.h <<_ACEOF
33318 #define LLVM_PREFIX "$LLVM_PREFIX"
33322 cat >>confdefs.h <<_ACEOF
33323 #define LLVM_BINDIR "$LLVM_BINDIR"
33327 cat >>confdefs.h <<_ACEOF
33328 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33332 cat >>confdefs.h <<_ACEOF
33333 #define LLVM_DATADIR "$LLVM_DATADIR"
33337 cat >>confdefs.h <<_ACEOF
33338 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33342 cat >>confdefs.h <<_ACEOF
33343 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33347 cat >>confdefs.h <<_ACEOF
33348 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33352 cat >>confdefs.h <<_ACEOF
33353 #define LLVM_INFODIR "$LLVM_INFODIR"
33357 cat >>confdefs.h <<_ACEOF
33358 #define LLVM_MANDIR "$LLVM_MANDIR"
33362 cat >>confdefs.h <<_ACEOF
33363 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33368 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33370 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33372 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33374 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33376 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33379 ac_config_files="$ac_config_files Makefile.config"
33382 ac_config_files="$ac_config_files llvm.spec"
33385 ac_config_files="$ac_config_files docs/doxygen.cfg"
33388 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33391 ac_config_commands="$ac_config_commands setup"
33393 ac_config_commands="$ac_config_commands Makefile"
33396 ac_config_commands="$ac_config_commands Makefile.common"
33399 ac_config_commands="$ac_config_commands examples/Makefile"
33402 ac_config_commands="$ac_config_commands lib/Makefile"
33405 ac_config_commands="$ac_config_commands runtime/Makefile"
33408 ac_config_commands="$ac_config_commands test/Makefile"
33411 ac_config_commands="$ac_config_commands test/Makefile.tests"
33414 ac_config_commands="$ac_config_commands tools/Makefile"
33417 ac_config_commands="$ac_config_commands utils/Makefile"
33420 ac_config_commands="$ac_config_commands projects/Makefile"
33424 cat >confcache <<\_ACEOF
33425 # This file is a shell script that caches the results of configure
33426 # tests run on this system so they can be shared between configure
33427 # scripts and configure runs, see configure's option --config-cache.
33428 # It is not useful on other systems. If it contains results you don't
33429 # want to keep, you may remove or edit it.
33431 # config.status only pays attention to the cache file if you give it
33432 # the --recheck option to rerun configure.
33434 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33435 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33436 # following values.
33440 # The following way of writing the cache mishandles newlines in values,
33441 # but we know of no workaround that is simple, portable, and efficient.
33442 # So, we kill variables containing newlines.
33443 # Ultrix sh set writes to stderr and can't be redirected directly,
33444 # and sets the high bit in the cache file unless we assign to the vars.
33446 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33447 eval ac_val=\$$ac_var
33451 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33452 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33455 _ | IFS | as_nl) ;; #(
33456 *) $as_unset $ac_var ;;
33462 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33463 *${as_nl}ac_space=\ *)
33464 # `set' does not quote correctly, so add quotes (double-quote
33465 # substitution turns \\\\ into \\, and sed turns \\ into \).
33468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33471 # `set' quotes correctly as required by POSIX, so do not add quotes.
33472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33481 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33483 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33485 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33486 if test -w "$cache_file"; then
33487 test "x$cache_file" != "x/dev/null" &&
33488 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33489 echo "$as_me: updating cache $cache_file" >&6;}
33490 cat confcache >$cache_file
33492 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33493 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33498 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33499 # Let make expand exec_prefix.
33500 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33502 DEFS=-DHAVE_CONFIG_H
33506 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33507 # 1. Remove the extension, and $U if already installed.
33508 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33509 ac_i=`echo "$ac_i" | sed "$ac_script"`
33510 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33511 # will be set to the directory where LIBOBJS objects are built.
33512 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33513 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33515 LIBOBJS=$ac_libobjs
33517 LTLIBOBJS=$ac_ltlibobjs
33520 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33521 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33522 Usually this means the macro was only invoked conditionally." >&5
33523 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33524 Usually this means the macro was only invoked conditionally." >&2;}
33525 { (exit 1); exit 1; }; }
33527 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33528 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33529 Usually this means the macro was only invoked conditionally." >&5
33530 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33531 Usually this means the macro was only invoked conditionally." >&2;}
33532 { (exit 1); exit 1; }; }
33535 : ${CONFIG_STATUS=./config.status}
33536 ac_clean_files_save=$ac_clean_files
33537 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33538 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33539 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33540 cat >$CONFIG_STATUS <<_ACEOF
33542 # Generated by $as_me.
33543 # Run this file to recreate the current configuration.
33544 # Compiler output produced by configure, useful for debugging
33545 # configure, is in config.log if it exists.
33548 ac_cs_recheck=false
33550 SHELL=\${CONFIG_SHELL-$SHELL}
33553 cat >>$CONFIG_STATUS <<\_ACEOF
33554 ## --------------------- ##
33555 ## M4sh Initialization. ##
33556 ## --------------------- ##
33558 # Be Bourne compatible
33559 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33562 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33563 # is contrary to our usage. Disable this feature.
33564 alias -g '${1+"$@"}'='"$@"'
33565 setopt NO_GLOB_SUBST
33567 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33569 BIN_SH=xpg4; export BIN_SH # for Tru64
33570 DUALCASE=1; export DUALCASE # for MKS sh
33574 # Avoid depending upon Character Ranges.
33575 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33576 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33577 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33578 as_cr_digits='0123456789'
33579 as_cr_alnum=$as_cr_Letters$as_cr_digits
33581 # The user is always right.
33582 if test "${PATH_SEPARATOR+set}" != set; then
33583 echo "#! /bin/sh" >conf$$.sh
33584 echo "exit 0" >>conf$$.sh
33586 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33594 # Support unset when possible.
33595 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33603 # We need space, tab and new line, in precisely that order. Quoting is
33604 # there to prevent editors from complaining about space-tab.
33605 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33606 # splitting by setting IFS to empty value.)
33611 # Find who we are. Look in the path if we contain no directory separator.
33613 *[\\/]* ) as_myself=$0 ;;
33614 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33615 for as_dir in $PATH
33618 test -z "$as_dir" && as_dir=.
33619 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33625 # We did not find ourselves, most probably we were run as `sh COMMAND'
33626 # in which case we are not to be found in the path.
33627 if test "x$as_myself" = x; then
33630 if test ! -f "$as_myself"; then
33631 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33632 { (exit 1); exit 1; }
33635 # Work around bugs in pre-3.0 UWIN ksh.
33636 for as_var in ENV MAIL MAILPATH
33637 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33645 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33646 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33647 LC_TELEPHONE LC_TIME
33649 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33650 eval $as_var=C; export $as_var
33652 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33656 # Required to use basename.
33657 if expr a : '\(a\)' >/dev/null 2>&1 &&
33658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33664 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33665 as_basename=basename
33671 # Name of the executable.
33672 as_me=`$as_basename -- "$0" ||
33673 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33674 X"$0" : 'X\(//\)$' \| \
33675 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33677 sed '/^.*\/\([^/][^/]*\)\/*$/{
33696 as_lineno_1=$LINENO
33697 as_lineno_2=$LINENO
33698 test "x$as_lineno_1" != "x$as_lineno_2" &&
33699 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33701 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33702 # uniformly replaced by the line number. The first 'sed' inserts a
33703 # line-number line after each line using $LINENO; the second 'sed'
33704 # does the real work. The second script uses 'N' to pair each
33705 # line-number line with the line containing $LINENO, and appends
33706 # trailing '-' during substitution so that $LINENO is not a special
33707 # case at line end.
33708 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33709 # scripts with optimization help from Paolo Bonzini. Blame Lee
33710 # E. McMahon (1931-1989) for sed's syntax. :-)
33722 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33725 ' >$as_me.lineno &&
33726 chmod +x "$as_me.lineno" ||
33727 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33728 { (exit 1); exit 1; }; }
33730 # Don't try to exec as it changes $[0], causing all sort of problems
33731 # (the dirname of $[0] is not the place where we might find the
33732 # original and so on. Autoconf is especially sensitive to this).
33733 . "./$as_me.lineno"
33734 # Exit status is that of the last command.
33739 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33745 ECHO_C= ECHO_N= ECHO_T=
33746 case `echo -n x` in
33748 case `echo 'x\c'` in
33749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33756 if expr a : '\(a\)' >/dev/null 2>&1 &&
33757 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33763 rm -f conf$$ conf$$.exe conf$$.file
33764 if test -d conf$$.dir; then
33765 rm -f conf$$.dir/conf$$.file
33771 if ln -s conf$$.file conf$$ 2>/dev/null; then
33773 # ... but there are two gotchas:
33774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33776 # In both cases, we have to default to `cp -p'.
33777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33779 elif ln conf$$.file conf$$ 2>/dev/null; then
33784 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33785 rmdir conf$$.dir 2>/dev/null
33787 if mkdir -p . 2>/dev/null; then
33790 test -d ./-p && rmdir ./-p
33794 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33795 # systems may use methods other than mode bits to determine executability.
33796 cat >conf$$.file <<_ASEOF
33800 chmod +x conf$$.file
33801 if test -x conf$$.file >/dev/null 2>&1; then
33802 as_executable_p="test -x"
33808 # Sed expression to map a string onto a valid CPP name.
33809 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33811 # Sed expression to map a string onto a valid variable name.
33812 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33817 # Save the log message, to keep $[0] and so on meaningful, and to
33818 # report actual input values of CONFIG_FILES etc. instead of their
33819 # values after options handling.
33821 This file was extended by llvm $as_me 1.9cvs, which was
33822 generated by GNU Autoconf 2.60. Invocation command line was
33824 CONFIG_FILES = $CONFIG_FILES
33825 CONFIG_HEADERS = $CONFIG_HEADERS
33826 CONFIG_LINKS = $CONFIG_LINKS
33827 CONFIG_COMMANDS = $CONFIG_COMMANDS
33830 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33835 cat >>$CONFIG_STATUS <<_ACEOF
33836 # Files that config.status was made for.
33837 config_files="$ac_config_files"
33838 config_headers="$ac_config_headers"
33839 config_commands="$ac_config_commands"
33843 cat >>$CONFIG_STATUS <<\_ACEOF
33845 \`$as_me' instantiates files from templates according to the
33846 current configuration.
33848 Usage: $0 [OPTIONS] [FILE]...
33850 -h, --help print this help, then exit
33851 -V, --version print version number, then exit
33852 -q, --quiet do not print progress messages
33853 -d, --debug don't remove temporary files
33854 --recheck update $as_me by reconfiguring in the same conditions
33855 --file=FILE[:TEMPLATE]
33856 instantiate the configuration file FILE
33857 --header=FILE[:TEMPLATE]
33858 instantiate the configuration header FILE
33860 Configuration files:
33863 Configuration headers:
33866 Configuration commands:
33869 Report bugs to <bug-autoconf@gnu.org>."
33872 cat >>$CONFIG_STATUS <<_ACEOF
33874 llvm config.status 1.9cvs
33875 configured by $0, generated by GNU Autoconf 2.60,
33876 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33878 Copyright (C) 2006 Free Software Foundation, Inc.
33879 This config.status script is free software; the Free Software Foundation
33880 gives unlimited permission to copy, distribute and modify it."
33887 cat >>$CONFIG_STATUS <<\_ACEOF
33888 # If no file are specified by the user, then we need to provide default
33889 # value. By we need to know if files were specified by the user.
33895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33907 # Handling of the options.
33908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33910 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33911 echo "$ac_cs_version"; exit ;;
33912 --debug | --debu | --deb | --de | --d | -d )
33914 --file | --fil | --fi | --f )
33916 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33917 ac_need_defaults=false;;
33918 --header | --heade | --head | --hea )
33920 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33921 ac_need_defaults=false;;
33923 # Conflict between --help and --header
33924 { echo "$as_me: error: ambiguous option: $1
33925 Try \`$0 --help' for more information." >&2
33926 { (exit 1); exit 1; }; };;
33927 --help | --hel | -h )
33928 echo "$ac_cs_usage"; exit ;;
33929 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33930 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33933 # This is an error.
33934 -*) { echo "$as_me: error: unrecognized option: $1
33935 Try \`$0 --help' for more information." >&2
33936 { (exit 1); exit 1; }; } ;;
33938 *) ac_config_targets="$ac_config_targets $1"
33939 ac_need_defaults=false ;;
33945 ac_configure_extra_args=
33947 if $ac_cs_silent; then
33949 ac_configure_extra_args="$ac_configure_extra_args --silent"
33953 cat >>$CONFIG_STATUS <<_ACEOF
33954 if \$ac_cs_recheck; then
33955 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33956 CONFIG_SHELL=$SHELL
33957 export CONFIG_SHELL
33958 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33962 cat >>$CONFIG_STATUS <<\_ACEOF
33966 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33967 ## Running $as_me. ##
33973 cat >>$CONFIG_STATUS <<_ACEOF
33977 llvm_src="${srcdir}"
33981 cat >>$CONFIG_STATUS <<\_ACEOF
33983 # Handling of arguments.
33984 for ac_config_target in $ac_config_targets
33986 case $ac_config_target in
33987 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33988 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
33989 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
33990 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
33991 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
33992 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
33993 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
33994 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
33995 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
33996 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
33997 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
33998 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
33999 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34000 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34001 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34002 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34003 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34004 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34005 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34006 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34008 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34009 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34010 { (exit 1); exit 1; }; };;
34015 # If the user did not use the arguments to specify the items to instantiate,
34016 # then the envvar interface is used. Set only those that are not.
34017 # We use the long form for the default assignment because of an extremely
34018 # bizarre bug on SunOS 4.1.3.
34019 if $ac_need_defaults; then
34020 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34021 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34022 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34025 # Have a temporary directory for convenience. Make it in the build tree
34026 # simply because there is no reason against having it here, and in addition,
34027 # creating and moving files from /tmp can sometimes cause problems.
34028 # Hook for its removal unless debugging.
34029 # Note that there is a small window in which the directory will not be cleaned:
34030 # after its creation but before its name has been assigned to `$tmp'.
34034 trap 'exit_status=$?
34035 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34037 trap '{ (exit 1); exit 1; }' 1 2 13 15
34039 # Create a (secure) tmp directory for tmp files.
34042 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34043 test -n "$tmp" && test -d "$tmp"
34046 tmp=./conf$$-$RANDOM
34047 (umask 077 && mkdir "$tmp")
34050 echo "$me: cannot create a temporary directory in ." >&2
34051 { (exit 1); exit 1; }
34055 # Set up the sed scripts for CONFIG_FILES section.
34058 # No need to generate the scripts if there are no CONFIG_FILES.
34059 # This happens for instance when ./config.status config.h
34060 if test -n "$CONFIG_FILES"; then
34067 for ac_last_try in false false false false false :; do
34068 cat >conf$$subs.sed <<_ACEOF
34069 SHELL!$SHELL$ac_delim
34070 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34071 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34072 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34073 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34074 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34075 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34076 exec_prefix!$exec_prefix$ac_delim
34077 prefix!$prefix$ac_delim
34078 program_transform_name!$program_transform_name$ac_delim
34079 bindir!$bindir$ac_delim
34080 sbindir!$sbindir$ac_delim
34081 libexecdir!$libexecdir$ac_delim
34082 datarootdir!$datarootdir$ac_delim
34083 datadir!$datadir$ac_delim
34084 sysconfdir!$sysconfdir$ac_delim
34085 sharedstatedir!$sharedstatedir$ac_delim
34086 localstatedir!$localstatedir$ac_delim
34087 includedir!$includedir$ac_delim
34088 oldincludedir!$oldincludedir$ac_delim
34089 docdir!$docdir$ac_delim
34090 infodir!$infodir$ac_delim
34091 htmldir!$htmldir$ac_delim
34092 dvidir!$dvidir$ac_delim
34093 pdfdir!$pdfdir$ac_delim
34094 psdir!$psdir$ac_delim
34095 libdir!$libdir$ac_delim
34096 localedir!$localedir$ac_delim
34097 mandir!$mandir$ac_delim
34098 DEFS!$DEFS$ac_delim
34099 ECHO_C!$ECHO_C$ac_delim
34100 ECHO_N!$ECHO_N$ac_delim
34101 ECHO_T!$ECHO_T$ac_delim
34102 LIBS!$LIBS$ac_delim
34103 build_alias!$build_alias$ac_delim
34104 host_alias!$host_alias$ac_delim
34105 target_alias!$target_alias$ac_delim
34106 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34107 subdirs!$subdirs$ac_delim
34108 build!$build$ac_delim
34109 build_cpu!$build_cpu$ac_delim
34110 build_vendor!$build_vendor$ac_delim
34111 build_os!$build_os$ac_delim
34112 host!$host$ac_delim
34113 host_cpu!$host_cpu$ac_delim
34114 host_vendor!$host_vendor$ac_delim
34115 host_os!$host_os$ac_delim
34116 target!$target$ac_delim
34117 target_cpu!$target_cpu$ac_delim
34118 target_vendor!$target_vendor$ac_delim
34119 target_os!$target_os$ac_delim
34121 LINKALL!$LINKALL$ac_delim
34122 NOLINKALL!$NOLINKALL$ac_delim
34123 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34124 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34125 ARCH!$ARCH$ac_delim
34126 ENDIAN!$ENDIAN$ac_delim
34128 CFLAGS!$CFLAGS$ac_delim
34129 LDFLAGS!$LDFLAGS$ac_delim
34130 CPPFLAGS!$CPPFLAGS$ac_delim
34131 ac_ct_CC!$ac_ct_CC$ac_delim
34132 EXEEXT!$EXEEXT$ac_delim
34133 OBJEXT!$OBJEXT$ac_delim
34135 GREP!$GREP$ac_delim
34136 EGREP!$EGREP$ac_delim
34137 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34138 BUILD_CC!$BUILD_CC$ac_delim
34139 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34140 CVSBUILD!$CVSBUILD$ac_delim
34141 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34142 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34143 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34145 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34146 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34147 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34148 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34149 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34151 CXXFLAGS!$CXXFLAGS$ac_delim
34152 ac_ct_CXX!$ac_ct_CXX$ac_delim
34154 LEXLIB!$LEXLIB$ac_delim
34155 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34156 FLEX!$FLEX$ac_delim
34157 YACC!$YACC$ac_delim
34158 YFLAGS!$YFLAGS$ac_delim
34159 BISON!$BISON$ac_delim
34161 ifGNUmake!$ifGNUmake$ac_delim
34162 LN_S!$LN_S$ac_delim
34165 DATE!$DATE$ac_delim
34168 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34170 elif $ac_last_try; then
34171 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34172 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34173 { (exit 1); exit 1; }; }
34175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34179 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34180 if test -n "$ac_eof"; then
34181 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34182 ac_eof=`expr $ac_eof + 1`
34185 cat >>$CONFIG_STATUS <<_ACEOF
34186 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34190 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34191 s/^/s,@/; s/!/@,|#_!!_#|/
34194 s/'"$ac_delim"'$/,g/; t
34196 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34197 ' >>$CONFIG_STATUS <conf$$subs.sed
34198 rm -f conf$$subs.sed
34199 cat >>$CONFIG_STATUS <<_ACEOF
34205 for ac_last_try in false false false false false :; do
34206 cat >conf$$subs.sed <<_ACEOF
34207 FIND!$FIND$ac_delim
34208 MKDIR!$MKDIR$ac_delim
34210 RANLIB!$RANLIB$ac_delim
34214 BINPWD!$BINPWD$ac_delim
34215 GRAPHVIZ!$GRAPHVIZ$ac_delim
34218 DOTTY!$DOTTY$ac_delim
34219 PERL!$PERL$ac_delim
34220 HAVE_PERL!$HAVE_PERL$ac_delim
34221 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34222 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34223 INSTALL_DATA!$INSTALL_DATA$ac_delim
34224 BZIP2!$BZIP2$ac_delim
34225 DOXYGEN!$DOXYGEN$ac_delim
34226 GROFF!$GROFF$ac_delim
34227 GZIP!$GZIP$ac_delim
34228 POD2HTML!$POD2HTML$ac_delim
34229 POD2MAN!$POD2MAN$ac_delim
34230 RUNTEST!$RUNTEST$ac_delim
34231 TCLSH!$TCLSH$ac_delim
34233 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34234 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34235 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34236 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34237 LIBADD_DL!$LIBADD_DL$ac_delim
34238 ECHO!$ECHO$ac_delim
34240 STRIP!$STRIP$ac_delim
34241 CXXCPP!$CXXCPP$ac_delim
34243 FFLAGS!$FFLAGS$ac_delim
34244 ac_ct_F77!$ac_ct_F77$ac_delim
34245 LIBTOOL!$LIBTOOL$ac_delim
34246 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34247 LLVMGCC!$LLVMGCC$ac_delim
34248 LLVMGXX!$LLVMGXX$ac_delim
34249 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34250 ALLOCA!$ALLOCA$ac_delim
34251 MMAP_FILE!$MMAP_FILE$ac_delim
34252 LLVMCC1!$LLVMCC1$ac_delim
34253 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34254 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34255 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34256 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34257 SHLIBEXT!$SHLIBEXT$ac_delim
34258 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34259 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34260 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34261 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34262 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34263 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34264 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34265 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34266 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34267 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34268 LIBOBJS!$LIBOBJS$ac_delim
34269 LTLIBOBJS!$LTLIBOBJS$ac_delim
34272 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
34274 elif $ac_last_try; then
34275 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34276 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34277 { (exit 1); exit 1; }; }
34279 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34283 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34284 if test -n "$ac_eof"; then
34285 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34286 ac_eof=`expr $ac_eof + 1`
34289 cat >>$CONFIG_STATUS <<_ACEOF
34290 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34291 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34294 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34295 s/^/s,@/; s/!/@,|#_!!_#|/
34298 s/'"$ac_delim"'$/,g/; t
34300 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34301 ' >>$CONFIG_STATUS <conf$$subs.sed
34302 rm -f conf$$subs.sed
34303 cat >>$CONFIG_STATUS <<_ACEOF
34310 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34311 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34312 # trailing colons and then remove the whole line if VPATH becomes empty
34313 # (actually we leave an empty line to preserve line numbers).
34314 if test "x$srcdir" = x.; then
34315 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34316 s/:*\$(srcdir):*/:/
34317 s/:*\${srcdir}:*/:/
34319 s/^\([^=]*=[ ]*\):*/\1/
34325 cat >>$CONFIG_STATUS <<\_ACEOF
34326 fi # test -n "$CONFIG_FILES"
34329 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34332 :[FHLC]) ac_mode=$ac_tag; continue;;
34334 case $ac_mode$ac_tag in
34336 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34337 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34338 { (exit 1); exit 1; }; };;
34339 :[FH]-) ac_tag=-:-;;
34340 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34357 -) ac_f="$tmp/stdin";;
34358 *) # Look for the file first in the build tree, then in the source tree
34359 # (if the path is not absolute). The absolute path cannot be DOS-style,
34360 # because $ac_f cannot contain `:'.
34364 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34366 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34367 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34368 { (exit 1); exit 1; }; };;
34370 ac_file_inputs="$ac_file_inputs $ac_f"
34373 # Let's still pretend it is `configure' which instantiates (i.e., don't
34374 # use $as_me), people would be surprised to read:
34375 # /* config.h. Generated by config.status. */
34376 configure_input="Generated from "`IFS=:
34377 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34378 if test x"$ac_file" != x-; then
34379 configure_input="$ac_file. $configure_input"
34380 { echo "$as_me:$LINENO: creating $ac_file" >&5
34381 echo "$as_me: creating $ac_file" >&6;}
34385 *:-:* | *:-) cat >"$tmp/stdin";;
34390 ac_dir=`$as_dirname -- "$ac_file" ||
34391 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34392 X"$ac_file" : 'X\(//\)[^/]' \| \
34393 X"$ac_file" : 'X\(//\)$' \| \
34394 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34400 /^X\(\/\/\)[^/].*/{
34415 -*) as_dir=./$as_dir;;
34417 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34421 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34422 *) as_qdir=$as_dir;;
34424 as_dirs="'$as_qdir' $as_dirs"
34425 as_dir=`$as_dirname -- "$as_dir" ||
34426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34427 X"$as_dir" : 'X\(//\)[^/]' \| \
34428 X"$as_dir" : 'X\(//\)$' \| \
34429 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34435 /^X\(\/\/\)[^/].*/{
34448 test -d "$as_dir" && break
34450 test -z "$as_dirs" || eval "mkdir $as_dirs"
34451 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34452 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34453 { (exit 1); exit 1; }; }; }
34457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34459 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34460 # A ".." for each directory in $ac_dir_suffix.
34461 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34462 case $ac_top_builddir_sub in
34463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34467 ac_abs_top_builddir=$ac_pwd
34468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34469 # for backward compatibility:
34470 ac_top_builddir=$ac_top_build_prefix
34473 .) # We are building in place.
34475 ac_top_srcdir=$ac_top_builddir_sub
34476 ac_abs_top_srcdir=$ac_pwd ;;
34477 [\\/]* | ?:[\\/]* ) # Absolute name.
34478 ac_srcdir=$srcdir$ac_dir_suffix;
34479 ac_top_srcdir=$srcdir
34480 ac_abs_top_srcdir=$srcdir ;;
34481 *) # Relative name.
34482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34483 ac_top_srcdir=$ac_top_build_prefix$srcdir
34484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34496 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34497 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34501 cat >>$CONFIG_STATUS <<\_ACEOF
34502 # If the template does not know about datarootdir, expand it.
34503 # FIXME: This hack should be removed a few years after 2.60.
34504 ac_datarootdir_hack=; ac_datarootdir_seen=
34506 case `sed -n '/datarootdir/ {
34515 ' $ac_file_inputs` in
34516 *datarootdir*) ac_datarootdir_seen=yes;;
34517 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34518 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34519 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34521 cat >>$CONFIG_STATUS <<_ACEOF
34522 ac_datarootdir_hack='
34523 s&@datadir@&$datadir&g
34524 s&@docdir@&$docdir&g
34525 s&@infodir@&$infodir&g
34526 s&@localedir@&$localedir&g
34527 s&@mandir@&$mandir&g
34528 s&\\\${datarootdir}&$datarootdir&g' ;;
34532 # Neutralize VPATH when `$srcdir' = `.'.
34533 # Shell code in configure.ac might set extrasub.
34534 # FIXME: do we really want to maintain this feature?
34535 cat >>$CONFIG_STATUS <<_ACEOF
34539 cat >>$CONFIG_STATUS <<\_ACEOF
34541 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34542 s&@configure_input@&$configure_input&;t t
34543 s&@top_builddir@&$ac_top_builddir_sub&;t t
34544 s&@srcdir@&$ac_srcdir&;t t
34545 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34546 s&@top_srcdir@&$ac_top_srcdir&;t t
34547 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34548 s&@builddir@&$ac_builddir&;t t
34549 s&@abs_builddir@&$ac_abs_builddir&;t t
34550 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34551 s&@INSTALL@&$ac_INSTALL&;t t
34552 $ac_datarootdir_hack
34553 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34555 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34556 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34557 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34558 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34559 which seems to be undefined. Please make sure it is defined." >&5
34560 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34561 which seems to be undefined. Please make sure it is defined." >&2;}
34565 -) cat "$tmp/out"; rm -f "$tmp/out";;
34566 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34575 # Transform confdefs.h into a sed script `conftest.defines', that
34576 # substitutes the proper values into config.h.in to produce config.h.
34577 rm -f conftest.defines conftest.tail
34578 # First, append a space to every undef/define line, to ease matching.
34579 echo 's/$/ /' >conftest.defines
34580 # Then, protect against being on the right side of a sed subst, or in
34581 # an unquoted here document, in config.status. If some macros were
34582 # called several times there might be several #defines for the same
34583 # symbol, which is useless. But do not sort them, since the last
34584 # AC_DEFINE must be honored.
34585 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34586 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34587 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34588 # PARAMS is the parameter list in the macro definition--in most cases, it's
34589 # just an empty string.
34590 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34591 ac_dB='\\)[ (].*,\\1define\\2'
34599 s/^[ ]*#[ ]*define[ ][ ]*//
34604 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34605 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34606 ' >>conftest.defines
34608 # Remove the space that was appended to ease matching.
34609 # Then replace #undef with comments. This is necessary, for
34610 # example, in the case of _POSIX_SOURCE, which is predefined and required
34611 # on some systems where configure will not decide to define it.
34612 # (The regexp can be short, since the line contains either #define or #undef.)
34614 s,^[ #]*u.*,/* & */,' >>conftest.defines
34616 # Break up conftest.defines:
34617 ac_max_sed_lines=50
34619 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34620 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34621 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34623 ac_in='$ac_file_inputs'
34624 ac_out='"$tmp/out1"'
34625 ac_nxt='"$tmp/out2"'
34629 # Write a here document:
34630 cat >>$CONFIG_STATUS <<_ACEOF
34631 # First, check the format of the line:
34632 cat >"\$tmp/defines.sed" <<\\CEOF
34633 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34634 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34638 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34640 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34641 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34642 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34643 grep . conftest.tail >/dev/null || break
34644 rm -f conftest.defines
34645 mv conftest.tail conftest.defines
34647 rm -f conftest.defines conftest.tail
34649 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34650 cat >>$CONFIG_STATUS <<\_ACEOF
34651 if test x"$ac_file" != x-; then
34652 echo "/* $configure_input */" >"$tmp/config.h"
34653 cat "$ac_result" >>"$tmp/config.h"
34654 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34655 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34656 echo "$as_me: $ac_file is unchanged" >&6;}
34659 mv "$tmp/config.h" $ac_file
34662 echo "/* $configure_input */"
34668 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34669 echo "$as_me: executing $ac_file commands" >&6;}
34674 case $ac_file$ac_mode in
34675 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34676 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34677 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34678 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34679 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34680 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34681 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34682 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34683 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34684 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34685 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34686 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34687 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34688 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34689 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34690 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34691 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34692 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34693 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34694 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34700 { (exit 0); exit 0; }
34702 chmod +x $CONFIG_STATUS
34703 ac_clean_files=$ac_clean_files_save
34706 # configure is writing to config.log, and then calls config.status.
34707 # config.status does its own redirection, appending to config.log.
34708 # Unfortunately, on DOS this fails, as config.log is still kept open
34709 # by configure, so config.status won't be able to write to it; its
34710 # output is simply discarded. So we exec the FD to /dev/null,
34711 # effectively closing config.log, so it can be properly (re)opened and
34712 # appended to by config.status. When coming back to configure, we
34713 # need to make the FD available again.
34714 if test "$no_create" != yes; then
34716 ac_config_status_args=
34717 test "$silent" = yes &&
34718 ac_config_status_args="$ac_config_status_args --quiet"
34720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34723 # would make configure fail if this is the last instruction.
34724 $ac_cs_success || { (exit 1); exit 1; }
34728 # CONFIG_SUBDIRS section.
34730 if test "$no_recursion" != yes; then
34732 # Remove --cache-file and --srcdir arguments so they do not pile up.
34733 ac_sub_configure_args=
34735 eval "set x $ac_configure_args"
34739 if test -n "$ac_prev"; then
34744 -cache-file | --cache-file | --cache-fil | --cache-fi \
34745 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34746 ac_prev=cache_file ;;
34747 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34748 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34751 --config-cache | -C)
34753 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34755 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34757 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34759 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34763 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34765 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34769 # Always prepend --prefix to ensure using the same prefix
34770 # in subdir configurations.
34771 ac_arg="--prefix=$prefix"
34773 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34775 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34778 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34780 # Do not complain, so a configure script can configure whichever
34781 # parts of a large source tree are present.
34782 test -d "$srcdir/$ac_dir" || continue
34784 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34785 echo "$as_me:$LINENO: $ac_msg" >&5
34789 -*) as_dir=./$as_dir;;
34791 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34795 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34796 *) as_qdir=$as_dir;;
34798 as_dirs="'$as_qdir' $as_dirs"
34799 as_dir=`$as_dirname -- "$as_dir" ||
34800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34801 X"$as_dir" : 'X\(//\)[^/]' \| \
34802 X"$as_dir" : 'X\(//\)$' \| \
34803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34809 /^X\(\/\/\)[^/].*/{
34822 test -d "$as_dir" && break
34824 test -z "$as_dirs" || eval "mkdir $as_dirs"
34825 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34826 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34827 { (exit 1); exit 1; }; }; }
34831 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34833 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34834 # A ".." for each directory in $ac_dir_suffix.
34835 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34836 case $ac_top_builddir_sub in
34837 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34838 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34841 ac_abs_top_builddir=$ac_pwd
34842 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34843 # for backward compatibility:
34844 ac_top_builddir=$ac_top_build_prefix
34847 .) # We are building in place.
34849 ac_top_srcdir=$ac_top_builddir_sub
34850 ac_abs_top_srcdir=$ac_pwd ;;
34851 [\\/]* | ?:[\\/]* ) # Absolute name.
34852 ac_srcdir=$srcdir$ac_dir_suffix;
34853 ac_top_srcdir=$srcdir
34854 ac_abs_top_srcdir=$srcdir ;;
34855 *) # Relative name.
34856 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34857 ac_top_srcdir=$ac_top_build_prefix$srcdir
34858 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34860 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34865 # Check for guested configure; otherwise get Cygnus style configure.
34866 if test -f "$ac_srcdir/configure.gnu"; then
34867 ac_sub_configure=$ac_srcdir/configure.gnu
34868 elif test -f "$ac_srcdir/configure"; then
34869 ac_sub_configure=$ac_srcdir/configure
34870 elif test -f "$ac_srcdir/configure.in"; then
34871 # This should be Cygnus configure.
34872 ac_sub_configure=$ac_aux_dir/configure
34874 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34875 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34879 # The recursion is here.
34880 if test -n "$ac_sub_configure"; then
34881 # Make the cache file name correct relative to the subdirectory.
34882 case $cache_file in
34883 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34884 *) # Relative name.
34885 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34888 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34889 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34890 # The eval makes quoting arguments work.
34891 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34892 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34893 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34894 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34895 { (exit 1); exit 1; }; }
34903 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
34904 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34905 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
34906 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&5
34907 echo "$as_me: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&2;}
34908 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
34909 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
34910 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
34911 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
34912 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
34913 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}