2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
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-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
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
834 ENABLE_EXPENSIVE_CHECKS
888 CONVENIENCE_LTDL_TRUE
889 CONVENIENCE_LTDL_FALSE
928 ENABLE_VISIBILITY_INLINES_HIDDEN
934 ac_precious_vars='build_alias
948 ac_subdirs_all='projects/sample
950 projects/llvm-stacker
957 projects/llvm-poolalloc
959 projects/llvm-kernel'
961 # Initialize some variables set by options.
963 ac_init_version=false
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
973 program_transform_name=s,x,x,
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1049 -datadir | --datadir | --datadi | --datad)
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1068 eval enable_$ac_feature=no ;;
1070 -docdir | --docdir | --docdi | --doc | --do)
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087 eval enable_$ac_feature=\$ac_optarg ;;
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 htmldir=$ac_optarg ;;
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1132 -libdir | --libdir | --libdi | --libd)
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1223 -psdir | --psdir | --psdi | --psd | --ps)
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 sbindir=$ac_optarg ;;
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 sharedstatedir=$ac_optarg ;;
1249 -site | --site | --sit)
1251 -site=* | --site=* | --sit=*)
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package| sed 's/-/_/g'`
1284 eval with_$ac_package=\$ac_optarg ;;
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_package=`echo $ac_package | sed 's/-/_/g'`
1293 eval with_$ac_package=no ;;
1296 # Obsolete; use --with-x.
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314 Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1344 # Be sure to have absolute directory names.
1345 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1350 eval ac_val=\$$ac_var
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380 test "$silent" = yes && exec 6>/dev/null
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
1398 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
1401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430 { (exit 1); exit 1; }; }
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435 { (exit 1); exit 1; }; }
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1461 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-expensive-checks
1538 --enable-debug-runtime
1539 --enable-jit Enable Just In Time Compiling (default is YES)
1540 --enable-doxygen Build doxygen documentation (default is NO)
1541 --enable-threads Use threads if available (default is YES)
1542 --enable-pic Build LLVM with Position Independent Code (default
1544 --enable-targets Build specific host targets:
1545 all,host-only,{target-name} (default=all)
1546 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1548 --enable-bindings Build specific language bindings:
1549 all,auto,none,{binding-name} (default=auto)
1550 --enable-ltdl-install install libltdl
1551 --enable-shared[=PKGS] build shared libraries
1553 --enable-static[=PKGS] build static libraries
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation
1558 --disable-libtool-lock avoid locking (might break parallel builds)
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1565 --with-llvmgcc Specify location of llvm-gcc driver (default
1567 --with-llvmgxx Specify location of llvm-g++ driver (default
1569 --with-extra-options Specify addtional options to compile LLVM with
1570 --with-ocaml-libdir Specify install location for ocaml bindings (default
1572 --with-binutils-include Specify path to binutils/include/ containing
1573 plugin-api.h file for gold plugin.
1574 --with-tclinclude directory where tcl headers are
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1578 --with-tags[=TAGS] include additional configurations [automatic]
1579 --with-udis86=<path> Use udis86 external x86 disassembler library
1581 Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 CXXCPP C++ preprocessor
1592 F77 Fortran 77 compiler command
1593 FFLAGS Fortran 77 compiler flags
1595 Use these variables to override the choices made by `configure' or to help
1596 it to find libraries and programs with nonstandard names/locations.
1598 Report bugs to <llvmbugs@cs.uiuc.edu>.
1603 if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606 test -d "$ac_dir" || continue
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1626 .) # We are building in place.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1650 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1659 llvm configure 2.6svn
1660 generated by GNU Autoconf 2.60
1662 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1663 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1667 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1671 cat >config.log <<_ACEOF
1672 This file contains any messages produced by compilers while
1673 running configure, to aid debugging if configure makes a mistake.
1675 It was created by llvm $as_me 2.6svn, which was
1676 generated by GNU Autoconf 2.60. Invocation command line was
1688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 test -z "$as_dir" && as_dir=.
1712 echo "PATH: $as_dir"
1728 # Keep a trace of the command line.
1729 # Strip out --no-create and --no-recursion so they do not pile up.
1730 # Strip out --silent because we don't want to record it for future runs.
1731 # Also quote any args containing shell meta-characters.
1732 # Make two passes to allow for proper duplicate-argument suppression.
1736 ac_must_keep_next=false
1742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744 | -silent | --silent | --silen | --sile | --sil)
1747 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1752 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1753 if test $ac_must_keep_next = true; then
1754 ac_must_keep_next=false # Got value, back to normal.
1757 *=* | --config-cache | -C | -disable-* | --disable-* \
1758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760 | -with-* | --with-* | -without-* | --without-* | --x)
1761 case "$ac_configure_args0 " in
1762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765 -* ) ac_must_keep_next=true ;;
1768 ac_configure_args="$ac_configure_args '$ac_arg'"
1773 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1774 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1776 # When interrupted or exit'd, cleanup temporary files, and complete
1777 # config.log. We remove comments because anyway the quotes in there
1778 # would cause problems or look ugly.
1779 # WARNING: Use '\'' to represent an apostrophe within the trap.
1780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781 trap 'exit_status=$?
1782 # Save into config.log some information that might help in debugging.
1787 ## ---------------- ##
1788 ## Cache variables. ##
1789 ## ---------------- ##
1792 # The following way of writing the cache mishandles newlines in values,
1794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795 eval ac_val=\$$ac_var
1799 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1803 _ | IFS | as_nl) ;; #(
1804 *) $as_unset $ac_var ;;
1809 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1810 *${as_nl}ac_space=\ *)
1812 "s/'\''/'\''\\\\'\'''\''/g;
1813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1824 ## ----------------- ##
1825 ## Output variables. ##
1826 ## ----------------- ##
1829 for ac_var in $ac_subst_vars
1831 eval ac_val=\$$ac_var
1833 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835 echo "$ac_var='\''$ac_val'\''"
1839 if test -n "$ac_subst_files"; then
1841 ## ------------------- ##
1842 ## File substitutions. ##
1843 ## ------------------- ##
1846 for ac_var in $ac_subst_files
1848 eval ac_val=\$$ac_var
1850 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852 echo "$ac_var='\''$ac_val'\''"
1857 if test -s confdefs.h; then
1867 test "$ac_signal" != 0 &&
1868 echo "$as_me: caught signal $ac_signal"
1869 echo "$as_me: exit $exit_status"
1871 rm -f core *.core core.conftest.* &&
1872 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1875 for ac_signal in 1 2 13 15; do
1876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1881 rm -f -r conftest* confdefs.h
1883 # Predefined preprocessor variables.
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_NAME "$PACKAGE_NAME"
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_STRING "$PACKAGE_STRING"
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910 # Let the site file select an alternate cache file if it wants to.
1911 # Prefer explicitly selected file to automatically selected ones.
1912 if test -n "$CONFIG_SITE"; then
1913 set x "$CONFIG_SITE"
1914 elif test "x$prefix" != xNONE; then
1915 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1917 set x "$ac_default_prefix/share/config.site" \
1918 "$ac_default_prefix/etc/config.site"
1923 if test -r "$ac_site_file"; then
1924 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1925 echo "$as_me: loading site script $ac_site_file" >&6;}
1926 sed 's/^/| /' "$ac_site_file" >&5
1931 if test -r "$cache_file"; then
1932 # Some versions of bash will fail to source /dev/null (special
1933 # files actually), so we avoid doing that.
1934 if test -f "$cache_file"; then
1935 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1936 echo "$as_me: loading cache $cache_file" >&6;}
1938 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1939 *) . "./$cache_file";;
1943 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1944 echo "$as_me: creating cache $cache_file" >&6;}
1948 # Check that the precious variables saved in the cache have kept the same
1950 ac_cache_corrupted=false
1951 for ac_var in $ac_precious_vars; do
1952 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953 eval ac_new_set=\$ac_env_${ac_var}_set
1954 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955 eval ac_new_val=\$ac_env_${ac_var}_value
1956 case $ac_old_set,$ac_new_set in
1958 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960 ac_cache_corrupted=: ;;
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1967 if test "x$ac_old_val" != "x$ac_new_val"; then
1968 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1969 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1970 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1971 echo "$as_me: former value: $ac_old_val" >&2;}
1972 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1973 echo "$as_me: current value: $ac_new_val" >&2;}
1974 ac_cache_corrupted=:
1977 # Pass precious variables to config.status.
1978 if test "$ac_new_set" = set; then
1980 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1981 *) ac_arg=$ac_var=$ac_new_val ;;
1983 case " $ac_configure_args " in
1984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1985 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989 if $ac_cache_corrupted; then
1990 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1991 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1992 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1993 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1994 { (exit 1); exit 1; }; }
2022 ac_cpp='$CPP $CPPFLAGS'
2023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2038 for ac_dir in autoconf "$srcdir"/autoconf; do
2039 if test -f "$ac_dir/install-sh"; then
2041 ac_install_sh="$ac_aux_dir/install-sh -c"
2043 elif test -f "$ac_dir/install.sh"; then
2045 ac_install_sh="$ac_aux_dir/install.sh -c"
2047 elif test -f "$ac_dir/shtool"; then
2049 ac_install_sh="$ac_aux_dir/shtool install -c"
2053 if test -z "$ac_aux_dir"; then
2054 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2055 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2056 { (exit 1); exit 1; }; }
2059 # These three variables are undocumented and unsupported,
2060 # and are intended to be withdrawn in a future Autoconf release.
2061 # They can cause serious problems if a builder's source tree is in a directory
2062 # whose full name contains unusual characters.
2063 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2064 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2065 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2069 if test ${srcdir} != "." ; then
2070 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2071 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2072 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2073 { (exit 1); exit 1; }; }
2077 for i in `ls ${srcdir}/projects`
2079 if test -d ${srcdir}/projects/${i} ; then
2082 sample) subdirs="$subdirs projects/sample"
2084 privbracket) subdirs="$subdirs projects/privbracket"
2086 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2088 # llvm-test is the old name of the test-suite, kept here for backwards
2090 llvm-test) subdirs="$subdirs projects/llvm-test"
2092 test-suite) subdirs="$subdirs projects/test-suite"
2094 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2096 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2098 llvm-java) subdirs="$subdirs projects/llvm-java"
2100 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2102 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2104 poolalloc) subdirs="$subdirs projects/poolalloc"
2106 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2109 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2117 # Make sure we can run config.sub.
2118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2121 { (exit 1); exit 1; }; }
2123 { echo "$as_me:$LINENO: checking build system type" >&5
2124 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2125 if test "${ac_cv_build+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 ac_build_alias=$build_alias
2129 test "x$ac_build_alias" = x &&
2130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131 test "x$ac_build_alias" = x &&
2132 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134 { (exit 1); exit 1; }; }
2135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2138 { (exit 1); exit 1; }; }
2141 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142 echo "${ECHO_T}$ac_cv_build" >&6; }
2143 case $ac_cv_build in
2145 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146 echo "$as_me: error: invalid value of canonical build" >&2;}
2147 { (exit 1); exit 1; }; };;
2150 ac_save_IFS=$IFS; IFS='-'
2156 # Remember, the first character of IFS is used to create $*,
2157 # except with old shells:
2160 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2163 { echo "$as_me:$LINENO: checking host system type" >&5
2164 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2165 if test "${ac_cv_host+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 if test "x$host_alias" = x; then
2169 ac_cv_host=$ac_cv_build
2171 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2174 { (exit 1); exit 1; }; }
2178 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179 echo "${ECHO_T}$ac_cv_host" >&6; }
2182 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183 echo "$as_me: error: invalid value of canonical host" >&2;}
2184 { (exit 1); exit 1; }; };;
2187 ac_save_IFS=$IFS; IFS='-'
2193 # Remember, the first character of IFS is used to create $*,
2194 # except with old shells:
2197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2200 { echo "$as_me:$LINENO: checking target system type" >&5
2201 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2202 if test "${ac_cv_target+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test "x$target_alias" = x; then
2206 ac_cv_target=$ac_cv_host
2208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2211 { (exit 1); exit 1; }; }
2215 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216 echo "${ECHO_T}$ac_cv_target" >&6; }
2217 case $ac_cv_target in
2219 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220 echo "$as_me: error: invalid value of canonical target" >&2;}
2221 { (exit 1); exit 1; }; };;
2223 target=$ac_cv_target
2224 ac_save_IFS=$IFS; IFS='-'
2230 # Remember, the first character of IFS is used to create $*,
2231 # except with old shells:
2234 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2237 # The aliases save the names the user supplied, while $host etc.
2238 # will get canonicalized.
2239 test -n "$target_alias" &&
2240 test "$program_prefix$program_suffix$program_transform_name" = \
2242 program_prefix=${target_alias}-
2244 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2246 if test "${llvm_cv_os_type+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="AIX"
2254 llvm_cv_platform_type="Unix" ;;
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="IRIX"
2259 llvm_cv_platform_type="Unix" ;;
2261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263 llvm_cv_os_type="Cygwin"
2264 llvm_cv_platform_type="Unix" ;;
2266 llvm_cv_link_all_option="-Wl,-all_load"
2267 llvm_cv_no_link_all_option="-Wl,-noall_load"
2268 llvm_cv_os_type="Darwin"
2269 llvm_cv_platform_type="Unix" ;;
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="FreeBSD"
2274 llvm_cv_platform_type="Unix" ;;
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="OpenBSD"
2279 llvm_cv_platform_type="Unix" ;;
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="NetBSD"
2284 llvm_cv_platform_type="Unix" ;;
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="DragonFly"
2289 llvm_cv_platform_type="Unix" ;;
2291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293 llvm_cv_os_type="HP-UX"
2294 llvm_cv_platform_type="Unix" ;;
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="Interix"
2299 llvm_cv_platform_type="Unix" ;;
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="Linux"
2304 llvm_cv_platform_type="Unix" ;;
2306 llvm_cv_link_all_option="-Wl,-z,allextract"
2307 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2308 llvm_cv_os_type="SunOS"
2309 llvm_cv_platform_type="Unix" ;;
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="Win32"
2314 llvm_cv_platform_type="Win32" ;;
2316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318 llvm_cv_os_type="MingW"
2319 llvm_cv_platform_type="Win32" ;;
2321 llvm_cv_link_all_option=""
2322 llvm_cv_no_link_all_option=""
2323 llvm_cv_os_type="Unknown"
2324 llvm_cv_platform_type="Unknown" ;;
2327 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2328 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2330 if test "$llvm_cv_os_type" = "Unknown" ; then
2331 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2332 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2333 { (exit 1); exit 1; }; }
2339 LINKALL=$llvm_cv_link_all_option
2341 NOLINKALL=$llvm_cv_no_link_all_option
2344 case $llvm_cv_platform_type in
2347 cat >>confdefs.h <<\_ACEOF
2348 #define LLVM_ON_UNIX 1
2358 cat >>confdefs.h <<\_ACEOF
2359 #define LLVM_ON_WIN32 1
2369 { echo "$as_me:$LINENO: checking target architecture" >&5
2370 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2371 if test "${llvm_cv_target_arch+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 i?86-*) llvm_cv_target_arch="x86" ;;
2376 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2377 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2378 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2379 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2380 ia64-*) llvm_cv_target_arch="IA64" ;;
2381 arm-*) llvm_cv_target_arch="ARM" ;;
2382 mips-*) llvm_cv_target_arch="Mips" ;;
2383 pic16-*) llvm_cv_target_arch="PIC16" ;;
2384 xcore-*) llvm_cv_target_arch="XCore" ;;
2385 *) llvm_cv_target_arch="Unknown" ;;
2388 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2389 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2391 if test "$llvm_cv_target_arch" = "Unknown" ; then
2392 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2393 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2396 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 if test -n "$CC"; then
2432 { echo "$as_me:$LINENO: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6; }
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2441 if test -z "$ac_cv_prog_CC"; then
2443 # Extract the first word of "gcc", so it can be a program name with args.
2444 set dummy gcc; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 if test -n "$ac_ct_CC"; then
2451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_ac_ct_CC="gcc"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471 if test -n "$ac_ct_CC"; then
2472 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473 echo "${ECHO_T}$ac_ct_CC" >&6; }
2475 { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2479 if test "x$ac_ct_CC" = x; then
2482 case $cross_compiling:$ac_tool_warned in
2484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2485 whose name does not start with the host triplet. If you think this
2486 configuration is useful to you, please write to autoconf@gnu.org." >&5
2487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet. If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2490 ac_tool_warned=yes ;;
2498 if test -z "$CC"; then
2499 if test -n "$ac_tool_prefix"; then
2500 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2501 set dummy ${ac_tool_prefix}cc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 ac_cv_prog_CC="${ac_tool_prefix}cc"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 if test -n "$CC"; then
2529 { echo "$as_me:$LINENO: result: $CC" >&5
2530 echo "${ECHO_T}$CC" >&6; }
2532 { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2539 if test -z "$CC"; then
2540 # Extract the first word of "cc", so it can be a program name with args.
2541 set dummy cc; ac_word=$2
2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544 if test "${ac_cv_prog_CC+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2559 ac_prog_rejected=yes
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 if test $ac_prog_rejected = yes; then
2571 # We found a bogon in the path, so make sure we never use it.
2572 set dummy $ac_cv_prog_CC
2574 if test $# != 0; then
2575 # We chose a different compiler from the bogus one.
2576 # However, it has the same basename, so the bogon will be chosen
2577 # first if we set CC to just the basename; use the full file name.
2579 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2585 if test -n "$CC"; then
2586 { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2595 if test -z "$CC"; then
2596 if test -n "$ac_tool_prefix"; then
2597 for ac_prog in cl.exe
2599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$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_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 if test -n "$CC"; then
2628 { echo "$as_me:$LINENO: result: $CC" >&5
2629 echo "${ECHO_T}$CC" >&6; }
2631 { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2636 test -n "$CC" && break
2639 if test -z "$CC"; then
2641 for ac_prog in cl.exe
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 if test -n "$ac_ct_CC"; then
2651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_ac_ct_CC="$ac_prog"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671 if test -n "$ac_ct_CC"; then
2672 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2673 echo "${ECHO_T}$ac_ct_CC" >&6; }
2675 { echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6; }
2680 test -n "$ac_ct_CC" && break
2683 if test "x$ac_ct_CC" = x; then
2686 case $cross_compiling:$ac_tool_warned in
2688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2689 whose name does not start with the host triplet. If you think this
2690 configuration is useful to you, please write to autoconf@gnu.org." >&5
2691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2692 whose name does not start with the host triplet. If you think this
2693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2694 ac_tool_warned=yes ;;
2703 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2704 See \`config.log' for more details." >&5
2705 echo "$as_me: error: no acceptable C compiler found in \$PATH
2706 See \`config.log' for more details." >&2;}
2707 { (exit 1); exit 1; }; }
2709 # Provide some information about the compiler.
2710 echo "$as_me:$LINENO: checking for C compiler version" >&5
2711 ac_compiler=`set X $ac_compile; echo $2`
2712 { (ac_try="$ac_compiler --version >&5"
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler --version >&5") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722 { (ac_try="$ac_compiler -v >&5"
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -v >&5") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2732 { (ac_try="$ac_compiler -V >&5"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler -V >&5") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2758 ac_clean_files_save=$ac_clean_files
2759 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2760 # Try to create an executable without -o first, disregard a.out.
2761 # It will help us diagnose broken compilers, and finding out an intuition
2763 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2764 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2765 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2767 # List of possible output files, starting from the most likely.
2768 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2769 # only as a last resort. b.out is created by i960 compilers.
2770 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2772 # The IRIX 6 linker writes into existing files which may not be
2773 # executable, retaining their permissions. Remove them first so a
2774 # subsequent execution test works.
2776 for ac_file in $ac_files
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2780 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2785 if { (ac_try="$ac_link_default"
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_link_default") 2>&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; then
2795 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2796 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2797 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2798 # so that the user can short-circuit this test for compilers unknown to
2800 for ac_file in $ac_files
2802 test -f "$ac_file" || continue
2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2807 # We found the default executable, but exeext='' is most
2811 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2815 # We set ac_cv_exeext here because the later test for it is not
2816 # safe: cross compilers may not add the suffix if given an `-o'
2817 # argument, so we may need to know it at that point already.
2818 # Even if this section looks crufty: it has the advantage of
2825 test "$ac_cv_exeext" = no && ac_cv_exeext=
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2831 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2832 See \`config.log' for more details." >&5
2833 echo "$as_me: error: C compiler cannot create executables
2834 See \`config.log' for more details." >&2;}
2835 { (exit 77); exit 77; }; }
2838 ac_exeext=$ac_cv_exeext
2839 { echo "$as_me:$LINENO: result: $ac_file" >&5
2840 echo "${ECHO_T}$ac_file" >&6; }
2842 # Check that the compiler produces executables we can run. If not, either
2843 # the compiler is broken, or we cross compile.
2844 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2847 # If not cross compiling, check that we can run a simple program.
2848 if test "$cross_compiling" != yes; then
2849 if { ac_try='./$ac_file'
2850 { (case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_try") 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2861 if test "$cross_compiling" = maybe; then
2864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2865 If you meant to cross compile, use \`--host'.
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details." >&2;}
2870 { (exit 1); exit 1; }; }
2874 { echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6; }
2877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2878 ac_clean_files=$ac_clean_files_save
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2883 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2884 echo "${ECHO_T}$cross_compiling" >&6; }
2886 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2888 if { (ac_try="$ac_link"
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_link") 2>&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; then
2898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2899 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2900 # work properly (i.e., refer to `conftest.exe'), while it won't with
2902 for ac_file in conftest.exe conftest conftest.*; do
2903 test -f "$ac_file" || continue
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2912 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2915 See \`config.log' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2919 rm -f conftest$ac_cv_exeext
2920 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2921 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2923 rm -f conftest.$ac_ext
2924 EXEEXT=$ac_cv_exeext
2926 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2927 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2928 if test "${ac_cv_objext+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2946 rm -f conftest.o conftest.obj
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
2957 for ac_file in conftest.o conftest.obj conftest.*; do
2958 test -f "$ac_file" || continue;
2960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2961 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2972 See \`config.log' for more details." >&2;}
2973 { (exit 1); exit 1; }; }
2976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2978 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2979 echo "${ECHO_T}$ac_cv_objext" >&6; }
2980 OBJEXT=$ac_cv_objext
2982 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3051 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3052 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3053 GCC=`test $ac_compiler_gnu = yes && echo yes`
3054 ac_test_CFLAGS=${CFLAGS+set}
3055 ac_save_CFLAGS=$CFLAGS
3056 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3058 if test "${ac_cv_prog_cc_g+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 ac_save_c_werror_flag=$ac_c_werror_flag
3062 ac_c_werror_flag=yes
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 ac_c_werror_flag=$ac_save_c_werror_flag
3176 cat >conftest.$ac_ext <<_ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compile") 2>conftest.er1
3200 grep -v '^ *+' conftest.er1 >conftest.err
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; } &&
3215 { ac_try='test -s conftest.$ac_objext'
3216 { (case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_try") 2>&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_c_werror_flag=$ac_save_c_werror_flag
3242 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3244 if test "$ac_test_CFLAGS" = set; then
3245 CFLAGS=$ac_save_CFLAGS
3246 elif test $ac_cv_prog_cc_g = yes; then
3247 if test "$GCC" = yes; then
3253 if test "$GCC" = yes; then
3259 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3260 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cc_c89+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 ac_cv_prog_cc_c89=no
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3274 #include <sys/types.h>
3275 #include <sys/stat.h>
3276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3277 struct buf { int x; };
3278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3279 static char *e (p, i)
3285 static char *f (char * (*g) (char **, int), char **p, ...)
3290 s = g (p, va_arg (v,int));
3295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3296 function prototypes and stuff, but not '\xHH' hex character constants.
3297 These don't provoke an error unfortunately, instead are silently treated
3298 as 'x'. The following induces an error, until -std is added to get
3299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3300 array size at least. It's necessary to write '\x00'==0 to get something
3301 that's true only with -std. */
3302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3304 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3305 inside strings and character constants. */
3307 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3309 int test (int i, double x);
3310 struct s1 {int (*f) (int a);};
3311 struct s2 {int (*f) (double a);};
3312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3318 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3323 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3324 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3326 CC="$ac_save_CC $ac_arg"
3327 rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_compile") 2>conftest.er1
3336 grep -v '^ *+' conftest.er1 >conftest.err
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_try") 2>&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 ac_cv_prog_cc_c89=$ac_arg
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3369 rm -f core conftest.err conftest.$ac_objext
3370 test "x$ac_cv_prog_cc_c89" != "xno" && break
3372 rm -f conftest.$ac_ext
3377 case "x$ac_cv_prog_cc_c89" in
3379 { echo "$as_me:$LINENO: result: none needed" >&5
3380 echo "${ECHO_T}none needed" >&6; } ;;
3382 { echo "$as_me:$LINENO: result: unsupported" >&5
3383 echo "${ECHO_T}unsupported" >&6; } ;;
3385 CC="$CC $ac_cv_prog_cc_c89"
3386 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3387 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
3399 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
3400 if test "${llvm_cv_linux_mixed+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 cat >conftest.$ac_ext <<_ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3416 error: Not x86-64 even if uname says so!
3427 rm -f conftest.$ac_objext
3428 if { (ac_try="$ac_compile"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_compile") 2>conftest.er1
3436 grep -v '^ *+' conftest.er1 >conftest.err
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3442 { (case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_try") 2>&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_try") 2>&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3461 llvm_cv_linux_mixed=no
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 llvm_cv_linux_mixed=yes
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
3479 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
3481 if test "$llvm_cv_linux_mixed" = "yes"; then
3482 llvm_cv_target_arch="x86"
3486 ARCH=$llvm_cv_target_arch
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3495 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3496 # On Suns, sometimes $CPP names a directory.
3497 if test -n "$CPP" && test -d "$CPP"; then
3500 if test -z "$CPP"; then
3501 if test "${ac_cv_prog_CPP+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 # Double quotes because CPP needs to be expanded
3505 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3508 for ac_c_preproc_warn_flag in '' yes
3510 # Use a header file that comes with gcc, so configuring glibc
3511 # with a fresh cross-compiler works.
3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513 # <limits.h> exists even on freestanding compilers.
3514 # On the NeXT, cc -E runs the code through the compiler's parser,
3515 # not just through cpp. "Syntax error" is here to catch this case.
3516 cat >conftest.$ac_ext <<_ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3523 # include <limits.h>
3525 # include <assert.h>
3529 if { (ac_try="$ac_cpp conftest.$ac_ext"
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } >/dev/null; then
3542 if test -s conftest.err; then
3543 ac_cpp_err=$ac_c_preproc_warn_flag
3544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3551 if test -z "$ac_cpp_err"; then
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 # Broken: fails on valid input.
3561 rm -f conftest.err conftest.$ac_ext
3563 # OK, works on sane cases. Now check whether nonexistent headers
3564 # can be detected and how.
3565 cat >conftest.$ac_ext <<_ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3571 #include <ac_nonexistent.h>
3573 if { (ac_try="$ac_cpp conftest.$ac_ext"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev/null; then
3586 if test -s conftest.err; then
3587 ac_cpp_err=$ac_c_preproc_warn_flag
3588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3595 if test -z "$ac_cpp_err"; then
3596 # Broken: success on invalid input.
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 # Passes both tests.
3607 rm -f conftest.err conftest.$ac_ext
3610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611 rm -f conftest.err conftest.$ac_ext
3612 if $ac_preproc_ok; then
3624 { echo "$as_me:$LINENO: result: $CPP" >&5
3625 echo "${ECHO_T}$CPP" >&6; }
3627 for ac_c_preproc_warn_flag in '' yes
3629 # Use a header file that comes with gcc, so configuring glibc
3630 # with a fresh cross-compiler works.
3631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3632 # <limits.h> exists even on freestanding compilers.
3633 # On the NeXT, cc -E runs the code through the compiler's parser,
3634 # not just through cpp. "Syntax error" is here to catch this case.
3635 cat >conftest.$ac_ext <<_ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3642 # include <limits.h>
3644 # include <assert.h>
3648 if { (ac_try="$ac_cpp conftest.$ac_ext"
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3656 grep -v '^ *+' conftest.er1 >conftest.err
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } >/dev/null; then
3661 if test -s conftest.err; then
3662 ac_cpp_err=$ac_c_preproc_warn_flag
3663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3670 if test -z "$ac_cpp_err"; then
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 # Broken: fails on valid input.
3680 rm -f conftest.err conftest.$ac_ext
3682 # OK, works on sane cases. Now check whether nonexistent headers
3683 # can be detected and how.
3684 cat >conftest.$ac_ext <<_ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 #include <ac_nonexistent.h>
3692 if { (ac_try="$ac_cpp conftest.$ac_ext"
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3700 grep -v '^ *+' conftest.er1 >conftest.err
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } >/dev/null; then
3705 if test -s conftest.err; then
3706 ac_cpp_err=$ac_c_preproc_warn_flag
3707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3714 if test -z "$ac_cpp_err"; then
3715 # Broken: success on invalid input.
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3721 # Passes both tests.
3726 rm -f conftest.err conftest.$ac_ext
3729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3730 rm -f conftest.err conftest.$ac_ext
3731 if $ac_preproc_ok; then
3734 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3735 See \`config.log' for more details." >&5
3736 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3737 See \`config.log' for more details." >&2;}
3738 { (exit 1); exit 1; }; }
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3749 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3750 if test "${ac_cv_path_GREP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 # Extract the first word of "grep ggrep" to use in msg output
3754 if test -z "$GREP"; then
3755 set dummy grep ggrep; ac_prog_name=$2
3756 if test "${ac_cv_path_GREP+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 ac_path_GREP_found=false
3760 # Loop through the user's path and test for each of PROGNAME-LIST
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3765 test -z "$as_dir" && as_dir=.
3766 for ac_prog in grep ggrep; do
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3769 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3770 # Check for GNU ac_path_GREP and select it if it is found.
3771 # Check for GNU $ac_path_GREP
3772 case `"$ac_path_GREP" --version 2>&1` in
3774 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3777 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3780 cat "conftest.in" "conftest.in" >"conftest.tmp"
3781 mv "conftest.tmp" "conftest.in"
3782 cp "conftest.in" "conftest.nl"
3783 echo 'GREP' >> "conftest.nl"
3784 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786 ac_count=`expr $ac_count + 1`
3787 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3788 # Best one so far, save it but keep looking for a better one
3789 ac_cv_path_GREP="$ac_path_GREP"
3790 ac_path_GREP_max=$ac_count
3792 # 10*(2^10) chars as input seems more than enough
3793 test $ac_count -gt 10 && break
3795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3799 $ac_path_GREP_found && break 3
3809 GREP="$ac_cv_path_GREP"
3810 if test -z "$GREP"; then
3811 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813 { (exit 1); exit 1; }; }
3817 ac_cv_path_GREP=$GREP
3822 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3823 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3824 GREP="$ac_cv_path_GREP"
3827 { echo "$as_me:$LINENO: checking for egrep" >&5
3828 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3829 if test "${ac_cv_path_EGREP+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3833 then ac_cv_path_EGREP="$GREP -E"
3835 # Extract the first word of "egrep" to use in msg output
3836 if test -z "$EGREP"; then
3837 set dummy egrep; ac_prog_name=$2
3838 if test "${ac_cv_path_EGREP+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 ac_path_EGREP_found=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in egrep; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3851 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3852 # Check for GNU ac_path_EGREP and select it if it is found.
3853 # Check for GNU $ac_path_EGREP
3854 case `"$ac_path_EGREP" --version 2>&1` in
3856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3859 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 echo 'EGREP' >> "conftest.nl"
3866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 ac_count=`expr $ac_count + 1`
3869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_EGREP="$ac_path_EGREP"
3872 ac_path_EGREP_max=$ac_count
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3881 $ac_path_EGREP_found && break 3
3891 EGREP="$ac_cv_path_EGREP"
3892 if test -z "$EGREP"; then
3893 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3894 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3895 { (exit 1); exit 1; }; }
3899 ac_cv_path_EGREP=$EGREP
3905 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3906 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3907 EGREP="$ac_cv_path_EGREP"
3910 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3911 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3912 if test "${ac_cv_header_stdc+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3943 grep -v '^ *+' conftest.er1 >conftest.err
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } &&
3948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3949 { (case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_try") 2>&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; } &&
3958 { ac_try='test -s conftest.$ac_objext'
3959 { (case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_try") 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3968 ac_cv_header_stdc=yes
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3973 ac_cv_header_stdc=no
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 if test $ac_cv_header_stdc = yes; then
3979 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3980 cat >conftest.$ac_ext <<_ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3990 $EGREP "memchr" >/dev/null 2>&1; then
3993 ac_cv_header_stdc=no
3999 if test $ac_cv_header_stdc = yes; then
4000 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4011 $EGREP "free" >/dev/null 2>&1; then
4014 ac_cv_header_stdc=no
4020 if test $ac_cv_header_stdc = yes; then
4021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4022 if test "$cross_compiling" = yes; then
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4033 #if ((' ' & 0x0FF) == 0x020)
4034 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4035 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4037 # define ISLOWER(c) \
4038 (('a' <= (c) && (c) <= 'i') \
4039 || ('j' <= (c) && (c) <= 'r') \
4040 || ('s' <= (c) && (c) <= 'z'))
4041 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4049 for (i = 0; i < 256; i++)
4050 if (XOR (islower (i), ISLOWER (i))
4051 || toupper (i) != TOUPPER (i))
4056 rm -f conftest$ac_exeext
4057 if { (ac_try="$ac_link"
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_link") 2>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4067 { (case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_try") 2>&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4078 echo "$as_me: program exited with status $ac_status" >&5
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4083 ac_cv_header_stdc=no
4085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4091 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4092 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4093 if test $ac_cv_header_stdc = yes; then
4095 cat >>confdefs.h <<\_ACEOF
4096 #define STDC_HEADERS 1
4101 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4111 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4112 inttypes.h stdint.h unistd.h
4114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 cat >conftest.$ac_ext <<_ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 $ac_includes_default
4128 #include <$ac_header>
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4145 { (case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_try") 2>&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 eval "$as_ac_Header=yes"
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 eval "$as_ac_Header=no"
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 ac_res=`eval echo '${'$as_ac_Header'}'`
4175 { echo "$as_me:$LINENO: result: $ac_res" >&5
4176 echo "${ECHO_T}$ac_res" >&6; }
4177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4178 cat >>confdefs.h <<_ACEOF
4179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4187 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4188 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4189 if test "${ac_cv_c_bigendian+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 # See if sys/param.h defines the BYTE_ORDER macro.
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 #include <sys/types.h>
4200 #include <sys/param.h>
4205 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4213 rm -f conftest.$ac_objext
4214 if { (ac_try="$ac_compile"
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_compile") 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try='test -s conftest.$ac_objext'
4238 { (case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_try") 2>&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 # It does; now see whether it defined to BIG_ENDIAN or not.
4248 cat >conftest.$ac_ext <<_ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 #include <sys/types.h>
4255 #include <sys/param.h>
4260 #if BYTE_ORDER != BIG_ENDIAN
4268 rm -f conftest.$ac_objext
4269 if { (ac_try="$ac_compile"
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_compile") 2>conftest.er1
4277 grep -v '^ *+' conftest.er1 >conftest.err
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } &&
4282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4283 { (case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_try") 2>&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; } &&
4292 { ac_try='test -s conftest.$ac_objext'
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=yes
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4307 ac_cv_c_bigendian=no
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 # It does not; compile a test program.
4316 if test "$cross_compiling" = yes; then
4317 # try to guess the endianness by grepping values into an object file
4318 ac_cv_c_bigendian=unknown
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4326 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4327 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4328 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4329 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4330 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4334 _ascii (); _ebcdic ();
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4374 ac_cv_c_bigendian=yes
4376 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4377 if test "$ac_cv_c_bigendian" = unknown; then
4378 ac_cv_c_bigendian=no
4380 # finding both strings is unlikely to happen, but who knows?
4381 ac_cv_c_bigendian=unknown
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 cat >conftest.$ac_ext <<_ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 $ac_includes_default
4404 /* Are we little or big endian? From Harbison&Steele. */
4408 char c[sizeof (long int)];
4411 return u.c[sizeof (long int) - 1] == 1;
4417 rm -f conftest$ac_exeext
4418 if { (ac_try="$ac_link"
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_link") 2>&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4428 { (case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_try") 2>&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_cv_c_bigendian=no
4439 echo "$as_me: program exited with status $ac_status" >&5
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4444 ac_cv_c_bigendian=yes
4446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4455 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4456 case $ac_cv_c_bigendian in
4464 { { echo "$as_me:$LINENO: error: unknown endianness
4465 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4466 echo "$as_me: error: unknown endianness
4467 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4468 { (exit 1); exit 1; }; } ;;
4472 if test "$cross_compiling" = yes; then
4473 LLVM_CROSS_COMPILING=1
4476 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4477 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4478 if test "${ac_cv_build_exeext+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4482 ac_cv_build_exeext=.exe
4484 ac_build_prefix=${build_alias}-
4486 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4487 set dummy ${ac_build_prefix}gcc; ac_word=$2
4488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4490 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 if test -n "$BUILD_CC"; then
4494 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 BUILD_CC=$ac_cv_prog_BUILD_CC
4514 if test -n "$BUILD_CC"; then
4515 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4516 echo "${ECHO_T}$BUILD_CC" >&6; }
4518 { echo "$as_me:$LINENO: result: no" >&5
4519 echo "${ECHO_T}no" >&6; }
4523 if test -z "$BUILD_CC"; then
4524 # Extract the first word of "gcc", so it can be a program name with args.
4525 set dummy gcc; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 if test -n "$BUILD_CC"; then
4532 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_prog_BUILD_CC="gcc"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 BUILD_CC=$ac_cv_prog_BUILD_CC
4552 if test -n "$BUILD_CC"; then
4553 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4554 echo "${ECHO_T}$BUILD_CC" >&6; }
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4561 if test -z "$BUILD_CC"; then
4562 # Extract the first word of "cc", so it can be a program name with args.
4563 set dummy cc; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 if test -n "$BUILD_CC"; then
4570 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4581 ac_prog_rejected=yes
4584 ac_cv_prog_BUILD_CC="cc"
4585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 if test $ac_prog_rejected = yes; then
4593 # We found a bogon in the path, so make sure we never use it.
4594 set dummy $ac_cv_prog_BUILD_CC
4596 if test $# != 0; then
4597 # We chose a different compiler from the bogus one.
4598 # However, it has the same basename, so the bogon will be chosen
4599 # first if we set BUILD_CC to just the basename; use the full file name.
4601 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4606 BUILD_CC=$ac_cv_prog_BUILD_CC
4607 if test -n "$BUILD_CC"; then
4608 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4609 echo "${ECHO_T}$BUILD_CC" >&6; }
4611 { echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6; }
4618 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4619 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4620 { (exit 1); exit 1; }; }
4621 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4623 echo 'int main () { return 0; }' > conftest.$ac_ext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4626 (eval $ac_build_link) 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; then
4630 for file in conftest.*; do
4632 *.c | *.o | *.obj | *.dSYM) ;;
4633 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4637 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4638 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4639 { (exit 1); exit 1; }; }
4642 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4647 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4648 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4649 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4650 ac_build_exeext=$BUILD_EXEEXT
4652 ac_build_prefix=${build_alias}-
4653 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4654 set dummy ${ac_build_prefix}g++; ac_word=$2
4655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 if test -n "$BUILD_CXX"; then
4661 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4681 if test -n "$BUILD_CXX"; then
4682 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4683 echo "${ECHO_T}$BUILD_CXX" >&6; }
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4690 if test -z "$BUILD_CXX"; then
4691 # Extract the first word of "g++", so it can be a program name with args.
4692 set dummy g++; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 if test -n "$BUILD_CXX"; then
4699 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_BUILD_CXX="g++"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4719 if test -n "$BUILD_CXX"; then
4720 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4721 echo "${ECHO_T}$BUILD_CXX" >&6; }
4723 { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4728 if test -z "$BUILD_CXX"; then
4729 # Extract the first word of "c++", so it can be a program name with args.
4730 set dummy c++; ac_word=$2
4731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 if test -n "$BUILD_CXX"; then
4737 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4748 ac_prog_rejected=yes
4751 ac_cv_prog_BUILD_CXX="c++"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 if test $ac_prog_rejected = yes; then
4760 # We found a bogon in the path, so make sure we never use it.
4761 set dummy $ac_cv_prog_BUILD_CXX
4763 if test $# != 0; then
4764 # We chose a different compiler from the bogus one.
4765 # However, it has the same basename, so the bogon will be chosen
4766 # first if we set BUILD_CXX to just the basename; use the full file name.
4768 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4773 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4774 if test -n "$BUILD_CXX"; then
4775 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4776 echo "${ECHO_T}$BUILD_CXX" >&6; }
4778 { echo "$as_me:$LINENO: result: no" >&5
4779 echo "${ECHO_T}no" >&6; }
4786 LLVM_CROSS_COMPILING=0
4790 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4801 # Check whether --enable-optimized was given.
4802 if test "${enable_optimized+set}" = set; then
4803 enableval=$enable_optimized;
4808 if test ${enableval} = "no" ; then
4812 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4816 # Check whether --enable-assertions was given.
4817 if test "${enable_assertions+set}" = set; then
4818 enableval=$enable_assertions;
4823 if test ${enableval} = "yes" ; then
4827 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4831 # Check whether --enable-expensive-checks was given.
4832 if test "${enable_expensive_checks+set}" = set; then
4833 enableval=$enable_expensive_checks;
4838 if test ${enableval} = "yes" ; then
4839 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4841 EXPENSIVE_CHECKS=yes
4844 ENABLE_EXPENSIVE_CHECKS=
4850 # Check whether --enable-debug-runtime was given.
4851 if test "${enable_debug_runtime+set}" = set; then
4852 enableval=$enable_debug_runtime;
4857 if test ${enableval} = "no" ; then
4861 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4865 # Check whether --enable-jit was given.
4866 if test "${enable_jit+set}" = set; then
4867 enableval=$enable_jit;
4872 if test ${enableval} = "no"
4877 case "$llvm_cv_target_arch" in
4878 x86) TARGET_HAS_JIT=1
4880 Sparc) TARGET_HAS_JIT=0
4882 PowerPC) TARGET_HAS_JIT=1
4884 x86_64) TARGET_HAS_JIT=1
4886 Alpha) TARGET_HAS_JIT=1
4888 IA64) TARGET_HAS_JIT=0
4890 ARM) TARGET_HAS_JIT=0
4892 Mips) TARGET_HAS_JIT=0
4894 PIC16) TARGET_HAS_JIT=0
4896 XCore) TARGET_HAS_JIT=0
4903 # Check whether --enable-doxygen was given.
4904 if test "${enable_doxygen+set}" = set; then
4905 enableval=$enable_doxygen;
4910 case "$enableval" in
4911 yes) ENABLE_DOXYGEN=1
4913 no) ENABLE_DOXYGEN=0
4915 default) ENABLE_DOXYGEN=0
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4918 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4922 # Check whether --enable-threads was given.
4923 if test "${enable_threads+set}" = set; then
4924 enableval=$enable_threads;
4929 case "$enableval" in
4930 yes) ENABLE_THREADS=1
4932 no) ENABLE_THREADS=0
4934 default) ENABLE_THREADS=1
4936 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4937 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4941 cat >>confdefs.h <<_ACEOF
4942 #define ENABLE_THREADS $ENABLE_THREADS
4946 # Check whether --enable-pic was given.
4947 if test "${enable_pic+set}" = set; then
4948 enableval=$enable_pic;
4953 case "$enableval" in
4958 default) ENABLE_PIC=1
4960 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4961 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4962 { (exit 1); exit 1; }; } ;;
4965 cat >>confdefs.h <<_ACEOF
4966 #define ENABLE_PIC $ENABLE_PIC
4971 # Check whether --enable-targets was given.
4972 if test "${enable_targets+set}" = set; then
4973 enableval=$enable_targets;
4978 case "$enableval" in
4979 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4981 case "$llvm_cv_target_arch" in
4982 x86) TARGETS_TO_BUILD="X86" ;;
4983 x86_64) TARGETS_TO_BUILD="X86" ;;
4984 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4985 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4986 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4987 IA64) TARGETS_TO_BUILD="IA64" ;;
4988 ARM) TARGETS_TO_BUILD="ARM" ;;
4989 Mips) TARGETS_TO_BUILD="Mips" ;;
4990 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4991 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4992 XCore) TARGETS_TO_BUILD="XCore" ;;
4993 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4994 echo "$as_me: error: Can not set target to build" >&2;}
4995 { (exit 1); exit 1; }; } ;;
4998 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5000 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5001 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5002 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5003 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5004 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5005 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
5006 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5007 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5008 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5009 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5010 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5011 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5012 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5013 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5014 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5015 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5016 { (exit 1); exit 1; }; } ;;
5021 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5024 # Check whether --enable-cbe-printf-a was given.
5025 if test "${enable_cbe_printf_a+set}" = set; then
5026 enableval=$enable_cbe_printf_a;
5031 case "$enableval" in
5032 yes) ENABLE_CBE_PRINTF_A=1
5034 no) ENABLE_CBE_PRINTF_A=0
5036 default) ENABLE_CBE_PRINTF_A=1
5038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5039 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5043 cat >>confdefs.h <<_ACEOF
5044 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5049 # Check whether --with-llvmgccdir was given.
5050 if test "${with_llvmgccdir+set}" = set; then
5051 withval=$with_llvmgccdir;
5057 default) WITH_LLVMGCCDIR=default ;;
5058 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5059 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5060 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5061 { (exit 1); exit 1; }; } ;;
5065 # Check whether --with-llvmgcc was given.
5066 if test "${with_llvmgcc+set}" = set; then
5067 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5073 # Check whether --with-llvmgxx was given.
5074 if test "${with_llvmgxx+set}" = set; then
5075 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5080 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5081 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5082 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5083 { (exit 1); exit 1; }; };
5086 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5087 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5088 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5089 { (exit 1); exit 1; }; };
5093 # Check whether --with-extra-options was given.
5094 if test "${with_extra_options+set}" = set; then
5095 withval=$with_extra_options;
5101 default) EXTRA_OPTIONS= ;;
5102 *) EXTRA_OPTIONS=$withval ;;
5104 EXTRA_OPTIONS=$EXTRA_OPTIONS
5107 # Check whether --enable-bindings was given.
5108 if test "${enable_bindings+set}" = set; then
5109 enableval=$enable_bindings;
5114 BINDINGS_TO_BUILD=""
5115 case "$enableval" in
5116 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5117 all ) BINDINGS_TO_BUILD="ocaml" ;;
5118 none | no) BINDINGS_TO_BUILD="" ;;
5119 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5120 case "$a_binding" in
5121 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5122 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5123 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5124 { (exit 1); exit 1; }; } ;;
5131 # Check whether --with-ocaml-libdir was given.
5132 if test "${with_ocaml_libdir+set}" = set; then
5133 withval=$with_ocaml_libdir;
5139 auto) with_ocaml_libdir="$withval" ;;
5140 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5141 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5142 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5147 # Check whether --with-binutils-include was given.
5148 if test "${with_binutils_include+set}" = set; then
5149 withval=$with_binutils_include;
5155 default) WITH_BINUTILS_INCDIR=default ;;
5156 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5157 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5158 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5161 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5162 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5164 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5165 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5166 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5167 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5168 { (exit 1); exit 1; }; };
5174 ac_cpp='$CPP $CPPFLAGS'
5175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5179 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5180 # On Suns, sometimes $CPP names a directory.
5181 if test -n "$CPP" && test -d "$CPP"; then
5184 if test -z "$CPP"; then
5185 if test "${ac_cv_prog_CPP+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 # Double quotes because CPP needs to be expanded
5189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5192 for ac_c_preproc_warn_flag in '' yes
5194 # Use a header file that comes with gcc, so configuring glibc
5195 # with a fresh cross-compiler works.
5196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 # <limits.h> exists even on freestanding compilers.
5198 # On the NeXT, cc -E runs the code through the compiler's parser,
5199 # not just through cpp. "Syntax error" is here to catch this case.
5200 cat >conftest.$ac_ext <<_ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5207 # include <limits.h>
5209 # include <assert.h>
5213 if { (ac_try="$ac_cpp conftest.$ac_ext"
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5221 grep -v '^ *+' conftest.er1 >conftest.err
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } >/dev/null; then
5226 if test -s conftest.err; then
5227 ac_cpp_err=$ac_c_preproc_warn_flag
5228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5235 if test -z "$ac_cpp_err"; then
5238 echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5241 # Broken: fails on valid input.
5245 rm -f conftest.err conftest.$ac_ext
5247 # OK, works on sane cases. Now check whether nonexistent headers
5248 # can be detected and how.
5249 cat >conftest.$ac_ext <<_ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 #include <ac_nonexistent.h>
5257 if { (ac_try="$ac_cpp conftest.$ac_ext"
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } >/dev/null; then
5270 if test -s conftest.err; then
5271 ac_cpp_err=$ac_c_preproc_warn_flag
5272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279 if test -z "$ac_cpp_err"; then
5280 # Broken: success on invalid input.
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 # Passes both tests.
5291 rm -f conftest.err conftest.$ac_ext
5294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5295 rm -f conftest.err conftest.$ac_ext
5296 if $ac_preproc_ok; then
5308 { echo "$as_me:$LINENO: result: $CPP" >&5
5309 echo "${ECHO_T}$CPP" >&6; }
5311 for ac_c_preproc_warn_flag in '' yes
5313 # Use a header file that comes with gcc, so configuring glibc
5314 # with a fresh cross-compiler works.
5315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316 # <limits.h> exists even on freestanding compilers.
5317 # On the NeXT, cc -E runs the code through the compiler's parser,
5318 # not just through cpp. "Syntax error" is here to catch this case.
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5326 # include <limits.h>
5328 # include <assert.h>
5332 if { (ac_try="$ac_cpp conftest.$ac_ext"
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5340 grep -v '^ *+' conftest.er1 >conftest.err
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null; then
5345 if test -s conftest.err; then
5346 ac_cpp_err=$ac_c_preproc_warn_flag
5347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5354 if test -z "$ac_cpp_err"; then
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 # Broken: fails on valid input.
5364 rm -f conftest.err conftest.$ac_ext
5366 # OK, works on sane cases. Now check whether nonexistent headers
5367 # can be detected and how.
5368 cat >conftest.$ac_ext <<_ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 #include <ac_nonexistent.h>
5376 if { (ac_try="$ac_cpp conftest.$ac_ext"
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5384 grep -v '^ *+' conftest.er1 >conftest.err
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } >/dev/null; then
5389 if test -s conftest.err; then
5390 ac_cpp_err=$ac_c_preproc_warn_flag
5391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5398 if test -z "$ac_cpp_err"; then
5399 # Broken: success on invalid input.
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5405 # Passes both tests.
5410 rm -f conftest.err conftest.$ac_ext
5413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414 rm -f conftest.err conftest.$ac_ext
5415 if $ac_preproc_ok; then
5418 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5419 See \`config.log' for more details." >&5
5420 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5421 See \`config.log' for more details." >&2;}
5422 { (exit 1); exit 1; }; }
5426 ac_cpp='$CPP $CPPFLAGS'
5427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432 ac_cpp='$CPP $CPPFLAGS'
5433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436 if test -n "$ac_tool_prefix"; then
5439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5443 if test "${ac_cv_prog_CC+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 if test -n "$CC"; then
5447 ac_cv_prog_CC="$CC" # Let the user override the test.
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5456 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 if test -n "$CC"; then
5468 { echo "$as_me:$LINENO: result: $CC" >&5
5469 echo "${ECHO_T}$CC" >&6; }
5471 { echo "$as_me:$LINENO: result: no" >&5
5472 echo "${ECHO_T}no" >&6; }
5476 test -n "$CC" && break
5479 if test -z "$CC"; then
5483 # Extract the first word of "$ac_prog", so it can be a program name with args.
5484 set dummy $ac_prog; ac_word=$2
5485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 if test -n "$ac_ct_CC"; then
5491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5500 ac_cv_prog_ac_ct_CC="$ac_prog"
5501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5511 if test -n "$ac_ct_CC"; then
5512 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5513 echo "${ECHO_T}$ac_ct_CC" >&6; }
5515 { echo "$as_me:$LINENO: result: no" >&5
5516 echo "${ECHO_T}no" >&6; }
5520 test -n "$ac_ct_CC" && break
5523 if test "x$ac_ct_CC" = x; then
5526 case $cross_compiling:$ac_tool_warned in
5528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5529 whose name does not start with the host triplet. If you think this
5530 configuration is useful to you, please write to autoconf@gnu.org." >&5
5531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5532 whose name does not start with the host triplet. If you think this
5533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5534 ac_tool_warned=yes ;;
5541 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5542 See \`config.log' for more details." >&5
5543 echo "$as_me: error: no acceptable C compiler found in \$PATH
5544 See \`config.log' for more details." >&2;}
5545 { (exit 1); exit 1; }; }
5547 # Provide some information about the compiler.
5548 echo "$as_me:$LINENO: checking for C compiler version" >&5
5549 ac_compiler=`set X $ac_compile; echo $2`
5550 { (ac_try="$ac_compiler --version >&5"
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_compiler --version >&5") 2>&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }
5560 { (ac_try="$ac_compiler -v >&5"
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_compiler -v >&5") 2>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }
5570 { (ac_try="$ac_compiler -V >&5"
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compiler -V >&5") 2>&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }
5581 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5582 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5583 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 cat >conftest.$ac_ext <<_ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5604 rm -f conftest.$ac_objext
5605 if { (ac_try="$ac_compile"
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_compile") 2>conftest.er1
5613 grep -v '^ *+' conftest.er1 >conftest.err
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5619 { (case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_try") 2>&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; } &&
5628 { ac_try='test -s conftest.$ac_objext'
5629 { (case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_try") 2>&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5650 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5651 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5652 GCC=`test $ac_compiler_gnu = yes && echo yes`
5653 ac_test_CFLAGS=${CFLAGS+set}
5654 ac_save_CFLAGS=$CFLAGS
5655 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5656 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5657 if test "${ac_cv_prog_cc_g+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 ac_save_c_werror_flag=$ac_c_werror_flag
5661 ac_c_werror_flag=yes
5664 cat >conftest.$ac_ext <<_ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5688 grep -v '^ *+' conftest.er1 >conftest.err
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5694 { (case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_try") 2>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_try") 2>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5719 cat >conftest.$ac_ext <<_ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5734 rm -f conftest.$ac_objext
5735 if { (ac_try="$ac_compile"
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5743 grep -v '^ *+' conftest.er1 >conftest.err
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5749 { (case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_try") 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_try") 2>&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 ac_c_werror_flag=$ac_save_c_werror_flag
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5799 grep -v '^ *+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5805 { (case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_try") 2>&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest.$ac_objext'
5815 { (case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_try") 2>&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 ac_c_werror_flag=$ac_save_c_werror_flag
5841 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5843 if test "$ac_test_CFLAGS" = set; then
5844 CFLAGS=$ac_save_CFLAGS
5845 elif test $ac_cv_prog_cc_g = yes; then
5846 if test "$GCC" = yes; then
5852 if test "$GCC" = yes; then
5858 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5859 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5860 if test "${ac_cv_prog_cc_c89+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 ac_cv_prog_cc_c89=no
5865 cat >conftest.$ac_ext <<_ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5873 #include <sys/types.h>
5874 #include <sys/stat.h>
5875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5876 struct buf { int x; };
5877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5878 static char *e (p, i)
5884 static char *f (char * (*g) (char **, int), char **p, ...)
5889 s = g (p, va_arg (v,int));
5894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5895 function prototypes and stuff, but not '\xHH' hex character constants.
5896 These don't provoke an error unfortunately, instead are silently treated
5897 as 'x'. The following induces an error, until -std is added to get
5898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5899 array size at least. It's necessary to write '\x00'==0 to get something
5900 that's true only with -std. */
5901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5904 inside strings and character constants. */
5906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5908 int test (int i, double x);
5909 struct s1 {int (*f) (int a);};
5910 struct s2 {int (*f) (double a);};
5911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5925 CC="$ac_save_CC $ac_arg"
5926 rm -f conftest.$ac_objext
5927 if { (ac_try="$ac_compile"
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_compile") 2>conftest.er1
5935 grep -v '^ *+' conftest.er1 >conftest.err
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5941 { (case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_try") 2>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest.$ac_objext'
5951 { (case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_try") 2>&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
5960 ac_cv_prog_cc_c89=$ac_arg
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5968 rm -f core conftest.err conftest.$ac_objext
5969 test "x$ac_cv_prog_cc_c89" != "xno" && break
5971 rm -f conftest.$ac_ext
5976 case "x$ac_cv_prog_cc_c89" in
5978 { echo "$as_me:$LINENO: result: none needed" >&5
5979 echo "${ECHO_T}none needed" >&6; } ;;
5981 { echo "$as_me:$LINENO: result: unsupported" >&5
5982 echo "${ECHO_T}unsupported" >&6; } ;;
5984 CC="$CC $ac_cv_prog_cc_c89"
5985 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5986 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5991 ac_cpp='$CPP $CPPFLAGS'
5992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997 ac_cpp='$CXXCPP $CPPFLAGS'
5998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6001 if test -z "$CXX"; then
6002 if test -n "$CCC"; then
6005 if test -n "$ac_tool_prefix"; then
6008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6012 if test "${ac_cv_prog_CXX+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 if test -n "$CXX"; then
6016 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 if test -n "$CXX"; then
6037 { echo "$as_me:$LINENO: result: $CXX" >&5
6038 echo "${ECHO_T}$CXX" >&6; }
6040 { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6045 test -n "$CXX" && break
6048 if test -z "$CXX"; then
6052 # Extract the first word of "$ac_prog", so it can be a program name with args.
6053 set dummy $ac_prog; ac_word=$2
6054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6056 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 if test -n "$ac_ct_CXX"; then
6060 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_ac_ct_CXX="$ac_prog"
6070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6080 if test -n "$ac_ct_CXX"; then
6081 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6082 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6084 { echo "$as_me:$LINENO: result: no" >&5
6085 echo "${ECHO_T}no" >&6; }
6089 test -n "$ac_ct_CXX" && break
6092 if test "x$ac_ct_CXX" = x; then
6095 case $cross_compiling:$ac_tool_warned in
6097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6098 whose name does not start with the host triplet. If you think this
6099 configuration is useful to you, please write to autoconf@gnu.org." >&5
6100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6101 whose name does not start with the host triplet. If you think this
6102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6103 ac_tool_warned=yes ;;
6111 # Provide some information about the compiler.
6112 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6113 ac_compiler=`set X $ac_compile; echo $2`
6114 { (ac_try="$ac_compiler --version >&5"
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_compiler --version >&5") 2>&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }
6124 { (ac_try="$ac_compiler -v >&5"
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_compiler -v >&5") 2>&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }
6134 { (ac_try="$ac_compiler -V >&5"
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_compiler -V >&5") 2>&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }
6145 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6146 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6147 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 cat >conftest.$ac_ext <<_ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6168 rm -f conftest.$ac_objext
6169 if { (ac_try="$ac_compile"
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_compile") 2>conftest.er1
6177 grep -v '^ *+' conftest.er1 >conftest.err
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6183 { (case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_try") 2>&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_try") 2>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6214 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6215 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6216 GXX=`test $ac_compiler_gnu = yes && echo yes`
6217 ac_test_CXXFLAGS=${CXXFLAGS+set}
6218 ac_save_CXXFLAGS=$CXXFLAGS
6219 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6220 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6221 if test "${ac_cv_prog_cxx_g+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6225 ac_cxx_werror_flag=yes
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6243 rm -f conftest.$ac_objext
6244 if { (ac_try="$ac_compile"
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_compile") 2>conftest.er1
6252 grep -v '^ *+' conftest.er1 >conftest.err
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6258 { (case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_try") 2>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; } &&
6267 { ac_try='test -s conftest.$ac_objext'
6268 { (case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_try") 2>&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }; then
6277 ac_cv_prog_cxx_g=yes
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6283 cat >conftest.$ac_ext <<_ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6298 rm -f conftest.$ac_objext
6299 if { (ac_try="$ac_compile"
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6307 grep -v '^ *+' conftest.er1 >conftest.err
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6313 { (case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_try") 2>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
6323 { (case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_try") 2>&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6337 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6339 cat >conftest.$ac_ext <<_ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6354 rm -f conftest.$ac_objext
6355 if { (ac_try="$ac_compile"
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compile") 2>conftest.er1
6363 grep -v '^ *+' conftest.er1 >conftest.err
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } &&
6368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6369 { (case "(($ac_try" in
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374 (eval "$ac_try") 2>&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; } &&
6378 { ac_try='test -s conftest.$ac_objext'
6379 { (case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_try") 2>&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6388 ac_cv_prog_cxx_g=yes
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6405 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6406 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6407 if test "$ac_test_CXXFLAGS" = set; then
6408 CXXFLAGS=$ac_save_CXXFLAGS
6409 elif test $ac_cv_prog_cxx_g = yes; then
6410 if test "$GXX" = yes; then
6416 if test "$GXX" = yes; then
6423 ac_cpp='$CPP $CPPFLAGS'
6424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6429 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6430 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6431 if test "${lt_cv_path_NM+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 if test -n "$NM"; then
6435 # Let the user override the test.
6438 lt_nm_to_check="${ac_tool_prefix}nm"
6439 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6440 lt_nm_to_check="$lt_nm_to_check nm"
6442 for lt_tmp_nm in $lt_nm_to_check; do
6443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6444 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6446 test -z "$ac_dir" && ac_dir=.
6447 tmp_nm="$ac_dir/$lt_tmp_nm"
6448 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6449 # Check to see if the nm accepts a BSD-compat flag.
6450 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6451 # nm: unknown option "B" ignored
6452 # Tru64's nm complains that /dev/null is an invalid object file
6453 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6454 */dev/null* | *'Invalid file or object type'*)
6455 lt_cv_path_NM="$tmp_nm -B"
6459 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6461 lt_cv_path_NM="$tmp_nm -p"
6465 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6466 continue # so that we can try to find one that supports BSD flags
6475 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6478 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6479 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6484 { echo "$as_me:$LINENO: checking for GNU make" >&5
6485 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6486 if test "${llvm_cv_gnu_make_command+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 llvm_cv_gnu_make_command=''
6490 for a in "$MAKE" make gmake gnumake ; do
6491 if test -z "$a" ; then continue ; fi ;
6492 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6494 llvm_cv_gnu_make_command=$a ;
6499 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6500 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6501 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6505 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6506 echo "${ECHO_T}\"Not found\"" >&6; };
6510 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6511 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6513 if test "$LN_S" = "ln -s"; then
6514 { echo "$as_me:$LINENO: result: yes" >&5
6515 echo "${ECHO_T}yes" >&6; }
6517 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6518 echo "${ECHO_T}no, using $LN_S" >&6; }
6521 # Extract the first word of "cmp", so it can be a program name with args.
6522 set dummy cmp; ac_word=$2
6523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525 if test "${ac_cv_path_CMP+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6540 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6553 if test -n "$CMP"; then
6554 { echo "$as_me:$LINENO: result: $CMP" >&5
6555 echo "${ECHO_T}$CMP" >&6; }
6557 { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6562 # Extract the first word of "cp", so it can be a program name with args.
6563 set dummy cp; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_path_CP+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6594 if test -n "$CP"; then
6595 { echo "$as_me:$LINENO: result: $CP" >&5
6596 echo "${ECHO_T}$CP" >&6; }
6598 { echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6; }
6603 # Extract the first word of "date", so it can be a program name with args.
6604 set dummy date; ac_word=$2
6605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607 if test "${ac_cv_path_DATE+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6622 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6634 DATE=$ac_cv_path_DATE
6635 if test -n "$DATE"; then
6636 { echo "$as_me:$LINENO: result: $DATE" >&5
6637 echo "${ECHO_T}$DATE" >&6; }
6639 { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6644 # Extract the first word of "find", so it can be a program name with args.
6645 set dummy find; ac_word=$2
6646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648 if test "${ac_cv_path_FIND+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6675 FIND=$ac_cv_path_FIND
6676 if test -n "$FIND"; then
6677 { echo "$as_me:$LINENO: result: $FIND" >&5
6678 echo "${ECHO_T}$FIND" >&6; }
6680 { echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6; }
6685 # Extract the first word of "grep", so it can be a program name with args.
6686 set dummy grep; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_path_GREP+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6716 GREP=$ac_cv_path_GREP
6717 if test -n "$GREP"; then
6718 { echo "$as_me:$LINENO: result: $GREP" >&5
6719 echo "${ECHO_T}$GREP" >&6; }
6721 { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6726 # Extract the first word of "mkdir", so it can be a program name with args.
6727 set dummy mkdir; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_path_MKDIR+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6757 MKDIR=$ac_cv_path_MKDIR
6758 if test -n "$MKDIR"; then
6759 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6760 echo "${ECHO_T}$MKDIR" >&6; }
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6767 # Extract the first word of "mv", so it can be a program name with args.
6768 set dummy mv; ac_word=$2
6769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771 if test "${ac_cv_path_MV+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6799 if test -n "$MV"; then
6800 { echo "$as_me:$LINENO: result: $MV" >&5
6801 echo "${ECHO_T}$MV" >&6; }
6803 { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_prog_RANLIB+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 if test -n "$RANLIB"; then
6817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 RANLIB=$ac_cv_prog_RANLIB
6837 if test -n "$RANLIB"; then
6838 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6839 echo "${ECHO_T}$RANLIB" >&6; }
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6847 if test -z "$ac_cv_prog_RANLIB"; then
6848 ac_ct_RANLIB=$RANLIB
6849 # Extract the first word of "ranlib", so it can be a program name with args.
6850 set dummy ranlib; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 if test -n "$ac_ct_RANLIB"; then
6857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_ac_ct_RANLIB="ranlib"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6877 if test -n "$ac_ct_RANLIB"; then
6878 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6879 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6881 { echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6; }
6885 if test "x$ac_ct_RANLIB" = x; then
6888 case $cross_compiling:$ac_tool_warned in
6890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6891 whose name does not start with the host triplet. If you think this
6892 configuration is useful to you, please write to autoconf@gnu.org." >&5
6893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6894 whose name does not start with the host triplet. If you think this
6895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6896 ac_tool_warned=yes ;;
6898 RANLIB=$ac_ct_RANLIB
6901 RANLIB="$ac_cv_prog_RANLIB"
6904 # Extract the first word of "rm", so it can be a program name with args.
6905 set dummy rm; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_RM+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6936 if test -n "$RM"; then
6937 { echo "$as_me:$LINENO: result: $RM" >&5
6938 echo "${ECHO_T}$RM" >&6; }
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6945 # Extract the first word of "sed", so it can be a program name with args.
6946 set dummy sed; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_SED+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6977 if test -n "$SED"; then
6978 { echo "$as_me:$LINENO: result: $SED" >&5
6979 echo "${ECHO_T}$SED" >&6; }
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6986 # Extract the first word of "tar", so it can be a program name with args.
6987 set dummy tar; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_TAR+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7018 if test -n "$TAR"; then
7019 { echo "$as_me:$LINENO: result: $TAR" >&5
7020 echo "${ECHO_T}$TAR" >&6; }
7022 { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7027 # Extract the first word of "pwd", so it can be a program name with args.
7028 set dummy pwd; ac_word=$2
7029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031 if test "${ac_cv_path_BINPWD+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7058 BINPWD=$ac_cv_path_BINPWD
7059 if test -n "$BINPWD"; then
7060 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7061 echo "${ECHO_T}$BINPWD" >&6; }
7063 { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7069 # Extract the first word of "Graphviz", so it can be a program name with args.
7070 set dummy Graphviz; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7100 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7101 if test -n "$GRAPHVIZ"; then
7102 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7103 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7105 { echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6; }
7110 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7112 cat >>confdefs.h <<\_ACEOF
7113 #define HAVE_GRAPHVIZ 1
7116 if test "$llvm_cv_os_type" = "MingW" ; then
7117 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7120 cat >>confdefs.h <<_ACEOF
7121 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7125 # Extract the first word of "dot", so it can be a program name with args.
7126 set dummy dot; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_path_DOT+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7157 if test -n "$DOT"; then
7158 { echo "$as_me:$LINENO: result: $DOT" >&5
7159 echo "${ECHO_T}$DOT" >&6; }
7161 { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7166 if test "$DOT" != "echo dot" ; then
7168 cat >>confdefs.h <<\_ACEOF
7172 if test "$llvm_cv_os_type" = "MingW" ; then
7173 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7176 cat >>confdefs.h <<_ACEOF
7177 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7181 for ac_prog in gv gsview32
7183 # Extract the first word of "$ac_prog", so it can be a program name with args.
7184 set dummy $ac_prog; ac_word=$2
7185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187 if test "${ac_cv_path_GV+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 if test -n "$GV"; then
7215 { echo "$as_me:$LINENO: result: $GV" >&5
7216 echo "${ECHO_T}$GV" >&6; }
7218 { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7223 test -n "$GV" && break
7225 test -n "$GV" || GV="echo gv"
7227 if test "$GV" != "echo gv" ; then
7229 cat >>confdefs.h <<\_ACEOF
7233 if test "$llvm_cv_os_type" = "MingW" ; then
7234 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7237 cat >>confdefs.h <<_ACEOF
7238 #define LLVM_PATH_GV "$GV${EXEEXT}"
7242 # Extract the first word of "dotty", so it can be a program name with args.
7243 set dummy dotty; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_DOTTY+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7273 DOTTY=$ac_cv_path_DOTTY
7274 if test -n "$DOTTY"; then
7275 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7276 echo "${ECHO_T}$DOTTY" >&6; }
7278 { echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6; }
7283 if test "$DOTTY" != "echo dotty" ; then
7285 cat >>confdefs.h <<\_ACEOF
7286 #define HAVE_DOTTY 1
7289 if test "$llvm_cv_os_type" = "MingW" ; then
7290 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7293 cat >>confdefs.h <<_ACEOF
7294 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7300 # Extract the first word of "perl", so it can be a program name with args.
7301 set dummy perl; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_path_PERL+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7331 PERL=$ac_cv_path_PERL
7332 if test -n "$PERL"; then
7333 { echo "$as_me:$LINENO: result: $PERL" >&5
7334 echo "${ECHO_T}$PERL" >&6; }
7336 { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7341 if test "$PERL" != "none"; then
7342 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7343 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7344 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7345 { echo "$as_me:$LINENO: result: yes" >&5
7346 echo "${ECHO_T}yes" >&6; }
7349 { echo "$as_me:$LINENO: result: not found" >&5
7350 echo "${ECHO_T}not found" >&6; }
7355 if test x"$PERL" = xnone; then
7358 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7359 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7360 { (exit 1); exit 1; }; }
7366 # Find a good install program. We prefer a C program (faster),
7367 # so one script is as good as another. But avoid the broken or
7368 # incompatible versions:
7369 # SysV /etc/install, /usr/sbin/install
7370 # SunOS /usr/etc/install
7371 # IRIX /sbin/install
7373 # AmigaOS /C/install, which installs bootblocks on floppy discs
7374 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7375 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7377 # OS/2's system install, which has a completely different semantic
7378 # ./install, which can be erroneously created by make from ./install.sh.
7379 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7380 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7381 if test -z "$INSTALL"; then
7382 if test "${ac_cv_path_install+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir=.
7390 # Account for people who put trailing slashes in PATH elements.
7392 ./ | .// | /cC/* | \
7393 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7394 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7397 # OSF1 and SCO ODT 3.0 have their own names for install.
7398 # Don't use installbsd from OSF since it installs stuff as root
7400 for ac_prog in ginstall scoinst install; do
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7403 if test $ac_prog = install &&
7404 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7405 # AIX install. It has an incompatible calling convention.
7407 elif test $ac_prog = install &&
7408 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7409 # program-specific install script used by HP pwplus--don't use.
7412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7425 if test "${ac_cv_path_install+set}" = set; then
7426 INSTALL=$ac_cv_path_install
7428 # As a last resort, use the slow shell script. Don't cache a
7429 # value for INSTALL within a source directory, because that will
7430 # break other packages using the cache if that directory is
7431 # removed, or if the value is a relative name.
7432 INSTALL=$ac_install_sh
7435 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7436 echo "${ECHO_T}$INSTALL" >&6; }
7438 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7439 # It thinks the first close brace ends the variable substitution.
7440 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7442 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7444 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7447 # Extract the first word of "bzip2", so it can be a program name with args.
7448 set dummy bzip2; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_path_BZIP2+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 BZIP2=$ac_cv_path_BZIP2
7478 if test -n "$BZIP2"; then
7479 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7480 echo "${ECHO_T}$BZIP2" >&6; }
7482 { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7487 # Extract the first word of "doxygen", so it can be a program name with args.
7488 set dummy doxygen; ac_word=$2
7489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7491 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7506 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 DOXYGEN=$ac_cv_path_DOXYGEN
7518 if test -n "$DOXYGEN"; then
7519 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7520 echo "${ECHO_T}$DOXYGEN" >&6; }
7522 { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7527 # Extract the first word of "groff", so it can be a program name with args.
7528 set dummy groff; ac_word=$2
7529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531 if test "${ac_cv_path_GROFF+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 GROFF=$ac_cv_path_GROFF
7558 if test -n "$GROFF"; then
7559 { echo "$as_me:$LINENO: result: $GROFF" >&5
7560 echo "${ECHO_T}$GROFF" >&6; }
7562 { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7567 # Extract the first word of "gzip", so it can be a program name with args.
7568 set dummy gzip; ac_word=$2
7569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7571 if test "${ac_cv_path_GZIP+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7586 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 GZIP=$ac_cv_path_GZIP
7598 if test -n "$GZIP"; then
7599 { echo "$as_me:$LINENO: result: $GZIP" >&5
7600 echo "${ECHO_T}$GZIP" >&6; }
7602 { echo "$as_me:$LINENO: result: no" >&5
7603 echo "${ECHO_T}no" >&6; }
7607 # Extract the first word of "pod2html", so it can be a program name with args.
7608 set dummy pod2html; ac_word=$2
7609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611 if test "${ac_cv_path_POD2HTML+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7626 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 POD2HTML=$ac_cv_path_POD2HTML
7638 if test -n "$POD2HTML"; then
7639 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7640 echo "${ECHO_T}$POD2HTML" >&6; }
7642 { echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6; }
7647 # Extract the first word of "pod2man", so it can be a program name with args.
7648 set dummy pod2man; ac_word=$2
7649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7651 if test "${ac_cv_path_POD2MAN+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7666 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 POD2MAN=$ac_cv_path_POD2MAN
7678 if test -n "$POD2MAN"; then
7679 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7680 echo "${ECHO_T}$POD2MAN" >&6; }
7682 { echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6; }
7687 # Extract the first word of "runtest", so it can be a program name with args.
7688 set dummy runtest; ac_word=$2
7689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691 if test "${ac_cv_path_RUNTEST+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7706 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 RUNTEST=$ac_cv_path_RUNTEST
7718 if test -n "$RUNTEST"; then
7719 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7720 echo "${ECHO_T}$RUNTEST" >&6; }
7722 { echo "$as_me:$LINENO: result: no" >&5
7723 echo "${ECHO_T}no" >&6; }
7729 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7730 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7732 # Check whether --with-tclinclude was given.
7733 if test "${with_tclinclude+set}" = set; then
7734 withval=$with_tclinclude; with_tclinclude=${withval}
7739 if test "${ac_cv_path_tclsh+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 if test x"${with_tclinclude}" != x ; then
7744 if test -f ${with_tclinclude}/tclsh ; then
7745 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7746 elif test -f ${with_tclinclude}/src/tclsh ; then
7747 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7749 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7750 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7751 { (exit 1); exit 1; }; }
7755 if test x"${ac_cv_path_tclsh}" = x ; then
7756 { echo "$as_me:$LINENO: result: none" >&5
7757 echo "${ECHO_T}none" >&6; }
7758 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
7760 # Extract the first word of "$ac_prog", so it can be a program name with args.
7761 set dummy $ac_prog; ac_word=$2
7762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764 if test "${ac_cv_path_TCLSH+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 TCLSH=$ac_cv_path_TCLSH
7791 if test -n "$TCLSH"; then
7792 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7793 echo "${ECHO_T}$TCLSH" >&6; }
7795 { echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6; }
7800 test -n "$TCLSH" && break
7803 if test x"${TCLSH}" = x ; then
7804 ac_cv_path_tclsh='';
7806 ac_cv_path_tclsh="${TCLSH}";
7809 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7810 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7811 TCLSH="${ac_cv_path_tclsh}"
7817 # Extract the first word of "zip", so it can be a program name with args.
7818 set dummy zip; ac_word=$2
7819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7821 if test "${ac_cv_path_ZIP+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 if test -n "$ZIP"; then
7849 { echo "$as_me:$LINENO: result: $ZIP" >&5
7850 echo "${ECHO_T}$ZIP" >&6; }
7852 { echo "$as_me:$LINENO: result: no" >&5
7853 echo "${ECHO_T}no" >&6; }
7857 for ac_prog in ocamlc
7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
7860 set dummy $ac_prog; ac_word=$2
7861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7863 if test "${ac_cv_path_OCAMLC+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7878 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 OCAMLC=$ac_cv_path_OCAMLC
7890 if test -n "$OCAMLC"; then
7891 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7892 echo "${ECHO_T}$OCAMLC" >&6; }
7894 { echo "$as_me:$LINENO: result: no" >&5
7895 echo "${ECHO_T}no" >&6; }
7899 test -n "$OCAMLC" && break
7902 for ac_prog in ocamlopt
7904 # Extract the first word of "$ac_prog", so it can be a program name with args.
7905 set dummy $ac_prog; ac_word=$2
7906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 OCAMLOPT=$ac_cv_path_OCAMLOPT
7935 if test -n "$OCAMLOPT"; then
7936 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7937 echo "${ECHO_T}$OCAMLOPT" >&6; }
7939 { echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6; }
7944 test -n "$OCAMLOPT" && break
7947 for ac_prog in ocamldep
7949 # Extract the first word of "$ac_prog", so it can be a program name with args.
7950 set dummy $ac_prog; ac_word=$2
7951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7968 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 OCAMLDEP=$ac_cv_path_OCAMLDEP
7980 if test -n "$OCAMLDEP"; then
7981 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7982 echo "${ECHO_T}$OCAMLDEP" >&6; }
7984 { echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6; }
7989 test -n "$OCAMLDEP" && break
7992 for ac_prog in ocamldoc
7994 # Extract the first word of "$ac_prog", so it can be a program name with args.
7995 set dummy $ac_prog; ac_word=$2
7996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7998 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 OCAMLDOC=$ac_cv_path_OCAMLDOC
8025 if test -n "$OCAMLDOC"; then
8026 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8027 echo "${ECHO_T}$OCAMLDOC" >&6; }
8029 { echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6; }
8034 test -n "$OCAMLDOC" && break
8037 for ac_prog in gas as
8039 # Extract the first word of "$ac_prog", so it can be a program name with args.
8040 set dummy $ac_prog; ac_word=$2
8041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8043 if test "${ac_cv_path_GAS+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8058 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 if test -n "$GAS"; then
8071 { echo "$as_me:$LINENO: result: $GAS" >&5
8072 echo "${ECHO_T}$GAS" >&6; }
8074 { echo "$as_me:$LINENO: result: no" >&5
8075 echo "${ECHO_T}no" >&6; }
8079 test -n "$GAS" && break
8083 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8084 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8085 if test "${llvm_cv_link_use_r+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 ac_cpp='$CPP $CPPFLAGS'
8090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095 CFLAGS="$CFLAGS -Wl,-R."
8096 cat >conftest.$ac_ext <<_ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8106 int main() { return 0; }
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_link") 2>conftest.er1
8120 grep -v '^ *+' conftest.er1 >conftest.err
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8126 { (case "(($ac_try" in
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_try") 2>&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest$ac_exeext'
8136 { (case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_try") 2>&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 llvm_cv_link_use_r=yes
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 llvm_cv_link_use_r=no
8153 rm -f core conftest.err conftest.$ac_objext \
8154 conftest$ac_exeext conftest.$ac_ext
8157 ac_cpp='$CPP $CPPFLAGS'
8158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8164 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8165 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8166 if test "$llvm_cv_link_use_r" = yes ; then
8168 cat >>confdefs.h <<\_ACEOF
8169 #define HAVE_LINK_R 1
8175 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8176 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8177 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 ac_cpp='$CPP $CPPFLAGS'
8182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8187 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8188 cat >conftest.$ac_ext <<_ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8198 int main() { return 0; }
8203 rm -f conftest.$ac_objext conftest$ac_exeext
8204 if { (ac_try="$ac_link"
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_link") 2>conftest.er1
8212 grep -v '^ *+' conftest.er1 >conftest.err
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } &&
8217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8218 { (case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_try") 2>&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest$ac_exeext'
8228 { (case "(($ac_try" in
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_try") 2>&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 llvm_cv_link_use_export_dynamic=yes
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 llvm_cv_link_use_export_dynamic=no
8245 rm -f core conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
8249 ac_cpp='$CPP $CPPFLAGS'
8250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8256 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8257 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8258 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8260 cat >>confdefs.h <<\_ACEOF
8261 #define HAVE_LINK_EXPORT_DYNAMIC 1
8269 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8270 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8271 if test "${ac_cv_c_const+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8284 /* FIXME: Include the comments suggested by Paul. */
8286 /* Ultrix mips cc rejects this. */
8287 typedef int charset[2];
8289 /* SunOS 4.1.1 cc rejects this. */
8290 char const *const *ccp;
8292 /* NEC SVR4.0.2 mips cc rejects this. */
8293 struct point {int x, y;};
8294 static struct point const zero = {0,0};
8295 /* AIX XL C 1.02.0.0 rejects this.
8296 It does not let you subtract one const X* pointer from another in
8297 an arm of an if-expression whose if-part is not a constant
8299 const char *g = "string";
8300 ccp = &g + (g ? g-g : 0);
8301 /* HPUX 7.0 cc rejects these. */
8304 ccp = (char const *const *) p;
8305 { /* SCO 3.2v4 cc rejects this. */
8307 char const *s = 0 ? (char *) 0 : (char const *) 0;
8312 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8314 const int *foo = &x[0];
8317 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8318 typedef const int *iptr;
8322 { /* AIX XL C 1.02.0.0 rejects this saying
8323 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8324 struct s { int j; const int *ap[3]; };
8325 struct s *b; b->j = 5;
8327 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8331 return !x[0] && !zero.x;
8338 rm -f conftest.$ac_objext
8339 if { (ac_try="$ac_compile"
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_compile") 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353 { (case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_try") 2>&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } &&
8362 { ac_try='test -s conftest.$ac_objext'
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8383 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8384 if test $ac_cv_c_const = no; then
8386 cat >>confdefs.h <<\_ACEOF
8398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8399 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8400 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8401 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 cat >conftest.$ac_ext <<_ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 #include <sys/types.h>
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compile") 2>conftest.er1
8432 grep -v '^ *+' conftest.er1 >conftest.err
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } &&
8437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8438 { (case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_try") 2>&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; } &&
8447 { ac_try='test -s conftest.$ac_objext'
8448 { (case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_try") 2>&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
8457 eval "$as_ac_Header=yes"
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 eval "$as_ac_Header=no"
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 ac_res=`eval echo '${'$as_ac_Header'}'`
8468 { echo "$as_me:$LINENO: result: $ac_res" >&5
8469 echo "${ECHO_T}$ac_res" >&6; }
8470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8471 cat >>confdefs.h <<_ACEOF
8472 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8475 ac_header_dirent=$ac_hdr; break
8479 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8480 if test $ac_header_dirent = dirent.h; then
8481 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8482 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8483 if test "${ac_cv_search_opendir+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 ac_func_search_save_LIBS=$LIBS
8487 cat >conftest.$ac_ext <<_ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8494 /* Override any GCC internal prototype to avoid an error.
8495 Use char because int might match the return type of a GCC
8496 builtin and then its argument prototype would still apply. */
8509 for ac_lib in '' dir; do
8510 if test -z "$ac_lib"; then
8511 ac_res="none required"
8514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (ac_try="$ac_link"
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_link") 2>conftest.er1
8525 grep -v '^ *+' conftest.er1 >conftest.err
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8531 { (case "(($ac_try" in
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_try") 2>&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest$ac_exeext'
8541 { (case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_try") 2>&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8550 ac_cv_search_opendir=$ac_res
8552 echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8558 rm -f core conftest.err conftest.$ac_objext \
8560 if test "${ac_cv_search_opendir+set}" = set; then
8564 if test "${ac_cv_search_opendir+set}" = set; then
8567 ac_cv_search_opendir=no
8570 LIBS=$ac_func_search_save_LIBS
8572 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8573 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8574 ac_res=$ac_cv_search_opendir
8575 if test "$ac_res" != no; then
8576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8581 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8582 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8583 if test "${ac_cv_search_opendir+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 ac_func_search_save_LIBS=$LIBS
8587 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8594 /* Override any GCC internal prototype to avoid an error.
8595 Use char because int might match the return type of a GCC
8596 builtin and then its argument prototype would still apply. */
8609 for ac_lib in '' x; do
8610 if test -z "$ac_lib"; then
8611 ac_res="none required"
8614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8616 rm -f conftest.$ac_objext conftest$ac_exeext
8617 if { (ac_try="$ac_link"
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_link") 2>conftest.er1
8625 grep -v '^ *+' conftest.er1 >conftest.err
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8631 { (case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_try") 2>&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; } &&
8640 { ac_try='test -s conftest$ac_exeext'
8641 { (case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_try") 2>&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 ac_cv_search_opendir=$ac_res
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8658 rm -f core conftest.err conftest.$ac_objext \
8660 if test "${ac_cv_search_opendir+set}" = set; then
8664 if test "${ac_cv_search_opendir+set}" = set; then
8667 ac_cv_search_opendir=no
8670 LIBS=$ac_func_search_save_LIBS
8672 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8673 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8674 ac_res=$ac_cv_search_opendir
8675 if test "$ac_res" != no; then
8676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8683 for ac_header in dlfcn.h
8685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 ac_res=`eval echo '${'$as_ac_Header'}'`
8693 { echo "$as_me:$LINENO: result: $ac_res" >&5
8694 echo "${ECHO_T}$ac_res" >&6; }
8696 # Is the header compilable?
8697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8699 cat >conftest.$ac_ext <<_ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 $ac_includes_default
8706 #include <$ac_header>
8708 rm -f conftest.$ac_objext
8709 if { (ac_try="$ac_compile"
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715 (eval "$ac_compile") 2>conftest.er1
8717 grep -v '^ *+' conftest.er1 >conftest.err
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8723 { (case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_try") 2>&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; } &&
8732 { ac_try='test -s conftest.$ac_objext'
8733 { (case "(($ac_try" in
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_try") 2>&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 ac_header_compiler=yes
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 ac_header_compiler=no
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8752 echo "${ECHO_T}$ac_header_compiler" >&6; }
8754 # Is the header present?
8755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8757 cat >conftest.$ac_ext <<_ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8763 #include <$ac_header>
8765 if { (ac_try="$ac_cpp conftest.$ac_ext"
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8773 grep -v '^ *+' conftest.er1 >conftest.err
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } >/dev/null; then
8778 if test -s conftest.err; then
8779 ac_cpp_err=$ac_c_preproc_warn_flag
8780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8787 if test -z "$ac_cpp_err"; then
8788 ac_header_preproc=yes
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8793 ac_header_preproc=no
8796 rm -f conftest.err conftest.$ac_ext
8797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8798 echo "${ECHO_T}$ac_header_preproc" >&6; }
8800 # So? What about this header?
8801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8807 ac_header_preproc=yes
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8823 ## ----------------------------------- ##
8824 ## Report this to llvmbugs@cs.uiuc.edu ##
8825 ## ----------------------------------- ##
8827 ) | sed "s/^/$as_me: WARNING: /" >&2
8830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 eval "$as_ac_Header=\$ac_header_preproc"
8837 ac_res=`eval echo '${'$as_ac_Header'}'`
8838 { echo "$as_me:$LINENO: result: $ac_res" >&5
8839 echo "${ECHO_T}$ac_res" >&6; }
8842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8843 cat >>confdefs.h <<_ACEOF
8844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8851 # Check whether --enable-ltdl-install was given.
8852 if test "${enable_ltdl_install+set}" = set; then
8853 enableval=$enable_ltdl_install;
8859 if test x"${enable_ltdl_install-no}" != xno; then
8861 INSTALL_LTDL_FALSE='#'
8863 INSTALL_LTDL_TRUE='#'
8869 if test x"${enable_ltdl_convenience-no}" != xno; then
8870 CONVENIENCE_LTDL_TRUE=
8871 CONVENIENCE_LTDL_FALSE='#'
8873 CONVENIENCE_LTDL_TRUE='#'
8874 CONVENIENCE_LTDL_FALSE=
8878 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8879 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8881 libname_spec='lib$name'
8889 shlibpath_overrides_runpath=unknown
8891 dynamic_linker="$host_os ld.so"
8892 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8893 if test "$GCC" = yes; then
8894 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8895 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8896 # if the path contains ";" then we assume it to be the separator
8897 # otherwise default to the standard path separator (i.e. ":") - it is
8898 # assumed that no part of a normal pathname contains ";" but that should
8899 # okay in the real world where ";" in dirpaths is itself problematic.
8900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8907 need_lib_prefix=unknown
8908 hardcode_into_libs=no
8910 # when you set need_version to no, make sure it does not cause -set_version
8911 # flags to be left without arguments
8912 need_version=unknown
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8918 shlibpath_var=LIBPATH
8920 # AIX 3 has no versioning support, so we append a major version to the name.
8921 soname_spec='${libname}${release}${shared_ext}$major'
8928 hardcode_into_libs=yes
8929 if test "$host_cpu" = ia64; then
8930 # AIX 5 supports IA64
8931 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8932 shlibpath_var=LD_LIBRARY_PATH
8934 # With GCC up to 2.95.x, collect2 would create an import file
8935 # for dependence libraries. The import file would start with
8936 # the line `#! .'. This would cause the generated library to
8937 # depend on `.', always an invalid library. This was fixed in
8938 # development snapshots of GCC prior to 3.0.
8940 aix4 | aix4.[01] | aix4.[01].*)
8941 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8943 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8950 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8951 # soname into executable. Probably we can add versioning support to
8952 # collect2, so additional links can be useful in future.
8953 if test "$aix_use_runtimelinking" = yes; then
8954 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8955 # instead of lib<name>.a to let people know that these are not
8956 # typical AIX shared libraries.
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959 # We preserve .a as extension for shared libraries through AIX4.2
8960 # and later when we are not doing run time linking.
8961 library_names_spec='${libname}${release}.a $libname.a'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8964 shlibpath_var=LIBPATH
8969 library_names_spec='$libname.ixlibrary $libname.a'
8970 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8971 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'
8975 library_names_spec='${libname}${shared_ext}'
8976 dynamic_linker="$host_os ld.so"
8977 shlibpath_var=LIBRARY_PATH
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8988 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8989 # the default ld.so.conf also contains /usr/contrib/lib and
8990 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8991 # libtool to hard-code these into programs
8994 cygwin* | mingw* | pw32*)
8995 version_type=windows
9000 case $GCC,$host_os in
9001 yes,cygwin* | yes,mingw* | yes,pw32*)
9002 library_names_spec='$libname.dll.a'
9003 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9004 postinstall_cmds='base_file=`basename \${file}`~
9005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9006 dldir=$destdir/`dirname \$dlpath`~
9007 test -d \$dldir || mkdir -p \$dldir~
9008 $install_prog $dir/$dlname \$dldir/$dlname~
9009 chmod a+x \$dldir/$dlname'
9010 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9011 dlpath=$dir/\$dldll~
9013 shlibpath_overrides_runpath=yes
9017 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9018 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9019 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9022 # MinGW DLLs use traditional 'lib' prefix
9023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9024 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9025 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9026 # It is most probably a Windows format PATH printed by
9027 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9028 # path with ; separators, and with drive letters. We can handle the
9029 # drive letters (cygwin fileutils understands them), so leave them,
9030 # especially as we might pass files found there to a mingw objdump,
9031 # which wouldn't understand a cygwinified path. Ahh.
9032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9038 # pw32 DLLs use 'pw' prefix rather than 'lib'
9039 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9045 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9048 dynamic_linker='Win32 ld.exe'
9049 # FIXME: first we should search . and the directory the executable is in
9053 darwin* | rhapsody*)
9054 dynamic_linker="$host_os dyld"
9058 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9059 soname_spec='${libname}${release}${major}$shared_ext'
9060 shlibpath_overrides_runpath=yes
9061 shlibpath_var=DYLD_LIBRARY_PATH
9062 shrext_cmds='.dylib'
9063 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9064 if test "$GCC" = yes; then
9065 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"`
9067 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9069 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 shlibpath_overrides_runpath=no
9093 hardcode_into_libs=yes
9094 dynamic_linker='GNU ld.so'
9097 freebsd* | dragonfly*)
9098 # DragonFly does not have aout. When/if they implement a new
9099 # versioning mechanism, adjust this.
9100 if test -x /usr/bin/objformat; then
9101 objformat=`/usr/bin/objformat`
9104 freebsd[123]*) objformat=aout ;;
9108 version_type=freebsd-$objformat
9109 case $version_type in
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9120 shlibpath_var=LD_LIBRARY_PATH
9123 shlibpath_overrides_runpath=yes
9125 freebsd3.[01]* | freebsdelf3.[01]*)
9126 shlibpath_overrides_runpath=yes
9127 hardcode_into_libs=yes
9129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9131 shlibpath_overrides_runpath=no
9132 hardcode_into_libs=yes
9134 freebsd*) # from 4.6 on
9135 shlibpath_overrides_runpath=yes
9136 hardcode_into_libs=yes
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 hardcode_into_libs=yes
9151 hpux9* | hpux10* | hpux11*)
9152 # Give a soname corresponding to the major version so that dld.sl refuses to
9153 # link against other versions.
9160 hardcode_into_libs=yes
9161 dynamic_linker="$host_os dld.so"
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 if test "X$HPUX_IA64_MODE" = X32; then
9167 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9169 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9175 hardcode_into_libs=yes
9176 dynamic_linker="$host_os dld.sl"
9177 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180 soname_spec='${libname}${release}${shared_ext}$major'
9181 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9182 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9186 dynamic_linker="$host_os dld.sl"
9187 shlibpath_var=SHLIB_PATH
9188 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9193 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9194 postinstall_cmds='chmod 555 $lib'
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 shlibpath_overrides_runpath=no
9206 hardcode_into_libs=yes
9209 irix5* | irix6* | nonstopux*)
9211 nonstopux*) version_type=nonstopux ;;
9213 if test "$lt_cv_prog_gnu_ld" = yes; then
9221 soname_spec='${libname}${release}${shared_ext}$major'
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9224 irix5* | nonstopux*)
9228 case $LD in # libtool.m4 will add one of these switches to LD
9229 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9230 libsuff= shlibsuff= libmagic=32-bit;;
9231 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9232 libsuff=32 shlibsuff=N32 libmagic=N32;;
9233 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9234 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9235 *) libsuff= shlibsuff= libmagic=never-match;;
9239 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9240 shlibpath_overrides_runpath=no
9241 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9242 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9243 hardcode_into_libs=yes
9246 # No shared lib support for Linux oldld, aout, or coff.
9247 linux*oldld* | linux*aout* | linux*coff*)
9251 # This must be Linux ELF.
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 shlibpath_overrides_runpath=no
9261 # This implies no fast_install, which is unacceptable.
9262 # Some rework will be needed to allow for fast_install
9263 # before this can be enabled.
9264 hardcode_into_libs=yes
9266 # Append ld.so.conf contents to the search path
9267 if test -f /etc/ld.so.conf; then
9268 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' ' '`
9269 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9272 # We used to test for /lib/ld.so.1 and disable shared libraries on
9273 # powerpc, because MkLinux only supported shared libraries with the
9274 # GNU dynamic linker. Since this was broken with cross compilers,
9275 # most powerpc-linux boxes support dynamic linking these days and
9276 # people can always --disable-shared, the test was removed, and we
9277 # assume the GNU/Linux dynamic linker is in use.
9278 dynamic_linker='GNU/Linux ld.so'
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=no
9289 hardcode_into_libs=yes
9290 dynamic_linker='GNU ld.so'
9297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9300 dynamic_linker='NetBSD (a.out) ld.so'
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 dynamic_linker='NetBSD ld.elf_so'
9306 shlibpath_var=LD_LIBRARY_PATH
9307 shlibpath_overrides_runpath=yes
9308 hardcode_into_libs=yes
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 shlibpath_overrides_runpath=yes
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 shlibpath_overrides_runpath=yes
9330 sys_lib_dlsearch_path_spec="/usr/lib"
9332 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9334 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9335 *) need_version=no ;;
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9342 openbsd2.[89] | openbsd2.[89].*)
9343 shlibpath_overrides_runpath=no
9346 shlibpath_overrides_runpath=yes
9350 shlibpath_overrides_runpath=yes
9355 libname_spec='$name'
9358 library_names_spec='$libname${shared_ext} $libname.a'
9359 dynamic_linker='OS/2 ld.exe'
9360 shlibpath_var=LIBPATH
9363 osf3* | osf4* | osf5*)
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9371 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 shlibpath_overrides_runpath=yes
9382 hardcode_into_libs=yes
9383 # ldd complains unless libraries are executable
9384 postinstall_cmds='chmod +x $lib'
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9391 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=yes
9393 if test "$with_gnu_ld" = yes; then
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402 soname_spec='${libname}${release}${shared_ext}$major'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 case $host_vendor in
9406 shlibpath_overrides_runpath=no
9408 export_dynamic_flag_spec='${wl}-Blargedynsym'
9409 runpath_var=LD_RUN_PATH
9417 shlibpath_overrides_runpath=no
9418 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9424 if test -d /usr/nec ;then
9426 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9427 soname_spec='$libname${shared_ext}.$major'
9428 shlibpath_var=LD_LIBRARY_PATH
9432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9433 version_type=freebsd-elf
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9437 soname_spec='${libname}${release}${shared_ext}$major'
9438 shlibpath_var=LD_LIBRARY_PATH
9439 hardcode_into_libs=yes
9440 if test "$with_gnu_ld" = yes; then
9441 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9442 shlibpath_overrides_runpath=no
9444 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9445 shlibpath_overrides_runpath=yes
9448 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9452 sys_lib_dlsearch_path_spec='/usr/lib'
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 shlibpath_var=LD_LIBRARY_PATH
9466 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9467 echo "${ECHO_T}$dynamic_linker" >&6; }
9468 test "$dynamic_linker" = no && can_build_shared=no
9470 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9471 if test "$GCC" = yes; then
9472 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9476 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9477 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9478 if test "${libltdl_cv_shlibext+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 eval libltdl_cv_shlibext=$shrext_cmds
9486 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9487 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9488 if test -n "$libltdl_cv_shlibext"; then
9490 cat >>confdefs.h <<_ACEOF
9491 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9497 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9498 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9499 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 libltdl_cv_shlibpath_var="$shlibpath_var"
9504 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9505 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9506 if test -n "$libltdl_cv_shlibpath_var"; then
9508 cat >>confdefs.h <<_ACEOF
9509 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9515 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9516 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9517 if test "${libltdl_cv_sys_search_path+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9522 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9523 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9524 if test -n "$libltdl_cv_sys_search_path"; then
9526 for dir in $libltdl_cv_sys_search_path; do
9527 if test -z "$sys_search_path"; then
9528 sys_search_path="$dir"
9530 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9534 cat >>confdefs.h <<_ACEOF
9535 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9540 { echo "$as_me:$LINENO: checking for objdir" >&5
9541 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9542 if test "${libltdl_cv_objdir+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 libltdl_cv_objdir="$objdir"
9546 if test -n "$objdir"; then
9549 rm -f .libs 2>/dev/null
9550 mkdir .libs 2>/dev/null
9551 if test -d .libs; then
9552 libltdl_cv_objdir=.libs
9554 # MS-DOS does not allow filenames that begin with a dot.
9555 libltdl_cv_objdir=_libs
9557 rmdir .libs 2>/dev/null
9561 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9562 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9564 cat >>confdefs.h <<_ACEOF
9565 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9573 # Check for command to grab the raw symbol name followed by C symbol from nm.
9574 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9575 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9576 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 # These are sane defaults that work on at least a few old systems.
9581 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9583 # Character class describing NM global symbol codes.
9584 symcode='[BCDEGRST]'
9586 # Regexp to match symbols that can be accessed directly from C.
9587 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9589 # Transform an extracted symbol line into a proper C declaration
9590 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9592 # Transform an extracted symbol line into symbol name and symbol address
9593 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'"
9595 # Define system-specific variables.
9600 cygwin* | mingw* | pw32*)
9601 symcode='[ABCDGISTW]'
9603 hpux*) # Its linker distinguishes data from code symbols
9604 if test "$host_cpu" = ia64; then
9605 symcode='[ABCDEGRST]'
9607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9608 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'"
9611 if test "$host_cpu" = ia64; then
9612 symcode='[ABCDGIRSTW]'
9613 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9614 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'"
9618 symcode='[BCDEGRST]'
9621 symcode='[BCDEGQRST]'
9632 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9640 # Handle CRLF in mingw tool chain
9644 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9648 # If we're using GNU nm, then use its standard symbol codes.
9649 case `$NM -V 2>&1` in
9650 *GNU* | *'with BFD'*)
9651 symcode='[ABCDGIRSTW]' ;;
9654 # Try without a prefix undercore, then with it.
9655 for ac_symprfx in "" "_"; do
9657 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9658 symxfrm="\\1 $ac_symprfx\\2 \\2"
9660 # Write the raw and C identifiers.
9661 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9663 # Check to see that the pipe works correctly.
9667 cat > conftest.$ac_ext <<EOF
9672 void nm_test_func(){}
9676 int main(){nm_test_var='a';nm_test_func();return(0);}
9679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9680 (eval $ac_compile) 2>&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; then
9684 # Now try to grab the symbols.
9686 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9687 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } && test -s "$nlist"; then
9691 # Try sorting and uniquifying the output.
9692 if sort "$nlist" | uniq > "$nlist"T; then
9693 mv -f "$nlist"T "$nlist"
9698 # Make sure that we snagged all the symbols we need.
9699 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9700 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9701 cat <<EOF > conftest.$ac_ext
9707 # Now generate the symbol file.
9708 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9710 cat <<EOF >> conftest.$ac_ext
9711 #if defined (__STDC__) && __STDC__
9712 # define lt_ptr_t void *
9714 # define lt_ptr_t char *
9718 /* The mapping between symbol names and symbols. */
9723 lt_preloaded_symbols[] =
9726 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9727 cat <<\EOF >> conftest.$ac_ext
9735 # Now try linking the two files.
9736 mv conftest.$ac_objext conftstm.$ac_objext
9737 lt_save_LIBS="$LIBS"
9738 lt_save_CFLAGS="$CFLAGS"
9739 LIBS="conftstm.$ac_objext"
9740 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742 (eval $ac_link) 2>&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9748 LIBS="$lt_save_LIBS"
9749 CFLAGS="$lt_save_CFLAGS"
9751 echo "cannot find nm_test_func in $nlist" >&5
9754 echo "cannot find nm_test_var in $nlist" >&5
9757 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9760 echo "$progname: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9763 rm -f conftest* conftst*
9765 # Do not use the global_symbol_pipe unless it works.
9766 if test "$pipe_works" = yes; then
9769 lt_cv_sys_global_symbol_pipe=
9775 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9776 lt_cv_sys_global_symbol_to_cdecl=
9778 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9779 { echo "$as_me:$LINENO: result: failed" >&5
9780 echo "${ECHO_T}failed" >&6; }
9782 { echo "$as_me:$LINENO: result: ok" >&5
9783 echo "${ECHO_T}ok" >&6; }
9787 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9788 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9789 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9793 libltdl_cv_preloaded_symbols=yes
9795 libltdl_cv_preloaded_symbols=no
9799 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9800 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9801 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9803 cat >>confdefs.h <<\_ACEOF
9804 #define HAVE_PRELOADED_SYMBOLS 1
9812 ac_cpp='$CPP $CPPFLAGS'
9813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9818 { echo "$as_me:$LINENO: checking for shl_load" >&5
9819 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9820 if test "${ac_cv_func_shl_load+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 cat >conftest.$ac_ext <<_ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9831 #define shl_load innocuous_shl_load
9833 /* System header to define __stub macros and hopefully few prototypes,
9834 which can conflict with char shl_load (); below.
9835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9836 <limits.h> exists even on freestanding compilers. */
9839 # include <limits.h>
9841 # include <assert.h>
9846 /* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9853 /* The GNU C library defines this for functions which it implements
9854 to always fail with ENOSYS. Some functions are actually named
9855 something starting with __ and the normal name is an alias. */
9856 #if defined __stub_shl_load || defined __stub___shl_load
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (ac_try="$ac_link"
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_link") 2>conftest.er1
9877 grep -v '^ *+' conftest.er1 >conftest.err
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9883 { (case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_try") 2>&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_func_shl_load=yes
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_cv_func_shl_load=no
9910 rm -f core conftest.err conftest.$ac_objext \
9911 conftest$ac_exeext conftest.$ac_ext
9913 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9914 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9915 if test $ac_cv_func_shl_load = yes; then
9917 cat >>confdefs.h <<\_ACEOF
9918 #define HAVE_SHL_LOAD 1
9922 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9923 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9924 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 ac_check_lib_save_LIBS=$LIBS
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9936 /* Override any GCC internal prototype to avoid an error.
9937 Use char because int might match the return type of a GCC
9938 builtin and then its argument prototype would still apply. */
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_link") 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 ac_cv_lib_dld_shl_load=yes
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ac_cv_lib_dld_shl_load=no
9993 rm -f core conftest.err conftest.$ac_objext \
9994 conftest$ac_exeext conftest.$ac_ext
9995 LIBS=$ac_check_lib_save_LIBS
9997 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9998 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9999 if test $ac_cv_lib_dld_shl_load = yes; then
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_SHL_LOAD 1
10005 LIBADD_DL="$LIBADD_DL -ldld"
10007 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10008 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10009 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 ac_check_lib_save_LIBS=$LIBS
10014 cat >conftest.$ac_ext <<_ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10021 /* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (ac_try="$ac_link"
10038 case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_link") 2>conftest.er1
10045 grep -v '^ *+' conftest.er1 >conftest.err
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10051 { (case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_try") 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; } &&
10060 { ac_try='test -s conftest$ac_exeext'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
10070 ac_cv_lib_dl_dlopen=yes
10072 echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10075 ac_cv_lib_dl_dlopen=no
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10082 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10083 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10084 if test $ac_cv_lib_dl_dlopen = yes; then
10086 cat >>confdefs.h <<\_ACEOF
10087 #define HAVE_LIBDL 1
10090 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10092 cat >conftest.$ac_ext <<_ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10099 # include <dlfcn.h>
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (ac_try="$ac_link"
10112 case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_link") 2>conftest.er1
10119 grep -v '^ *+' conftest.er1 >conftest.err
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
10124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10125 { (case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_try") 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; } &&
10134 { ac_try='test -s conftest$ac_exeext'
10135 { (case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_try") 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_LIBDL 1
10148 libltdl_cv_func_dlopen="yes"
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10154 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10155 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 ac_check_lib_save_LIBS=$LIBS
10159 LIBS="-lsvld $LIBS"
10160 cat >conftest.$ac_ext <<_ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10167 /* Override any GCC internal prototype to avoid an error.
10168 Use char because int might match the return type of a GCC
10169 builtin and then its argument prototype would still apply. */
10182 rm -f conftest.$ac_objext conftest$ac_exeext
10183 if { (ac_try="$ac_link"
10184 case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_link") 2>conftest.er1
10191 grep -v '^ *+' conftest.er1 >conftest.err
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10197 { (case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_try") 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest$ac_exeext'
10207 { (case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_try") 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
10216 ac_cv_lib_svld_dlopen=yes
10218 echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10221 ac_cv_lib_svld_dlopen=no
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10228 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10229 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10230 if test $ac_cv_lib_svld_dlopen = yes; then
10232 cat >>confdefs.h <<\_ACEOF
10233 #define HAVE_LIBDL 1
10236 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10238 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10239 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10240 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 ac_check_lib_save_LIBS=$LIBS
10245 cat >conftest.$ac_ext <<_ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10252 /* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
10262 return dld_link ();
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (ac_try="$ac_link"
10269 case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_link") 2>conftest.er1
10276 grep -v '^ *+' conftest.er1 >conftest.err
10278 cat conftest.err >&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } &&
10281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10282 { (case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_try") 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_try") 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 ac_cv_lib_dld_dld_link=yes
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 ac_cv_lib_dld_dld_link=no
10309 rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10311 LIBS=$ac_check_lib_save_LIBS
10313 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10314 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10315 if test $ac_cv_lib_dld_dld_link = yes; then
10317 cat >>confdefs.h <<\_ACEOF
10321 LIBADD_DL="$LIBADD_DL -ldld"
10323 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10324 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10325 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 cat >conftest.$ac_ext <<_ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10336 #define _dyld_func_lookup innocuous__dyld_func_lookup
10338 /* System header to define __stub macros and hopefully few prototypes,
10339 which can conflict with char _dyld_func_lookup (); below.
10340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10341 <limits.h> exists even on freestanding compilers. */
10344 # include <limits.h>
10346 # include <assert.h>
10349 #undef _dyld_func_lookup
10351 /* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10357 char _dyld_func_lookup ();
10358 /* The GNU C library defines this for functions which it implements
10359 to always fail with ENOSYS. Some functions are actually named
10360 something starting with __ and the normal name is an alias. */
10361 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10368 return _dyld_func_lookup ();
10373 rm -f conftest.$ac_objext conftest$ac_exeext
10374 if { (ac_try="$ac_link"
10375 case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_link") 2>conftest.er1
10382 grep -v '^ *+' conftest.er1 >conftest.err
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10388 { (case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_try") 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try='test -s conftest$ac_exeext'
10398 { (case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_try") 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
10407 ac_cv_func__dyld_func_lookup=yes
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 ac_cv_func__dyld_func_lookup=no
10415 rm -f core conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10418 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10419 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10420 if test $ac_cv_func__dyld_func_lookup = yes; then
10422 cat >>confdefs.h <<\_ACEOF
10423 #define HAVE_DYLD 1
10437 rm -f core conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10449 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10451 lt_save_LIBS="$LIBS"
10452 LIBS="$LIBS $LIBADD_DL"
10454 for ac_func in dlerror
10456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 cat >conftest.$ac_ext <<_ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10470 #define $ac_func innocuous_$ac_func
10472 /* System header to define __stub macros and hopefully few prototypes,
10473 which can conflict with char $ac_func (); below.
10474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10475 <limits.h> exists even on freestanding compilers. */
10478 # include <limits.h>
10480 # include <assert.h>
10485 /* Override any GCC internal prototype to avoid an error.
10486 Use char because int might match the return type of a GCC
10487 builtin and then its argument prototype would still apply. */
10492 /* The GNU C library defines this for functions which it implements
10493 to always fail with ENOSYS. Some functions are actually named
10494 something starting with __ and the normal name is an alias. */
10495 #if defined __stub_$ac_func || defined __stub___$ac_func
10502 return $ac_func ();
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_link") 2>conftest.er1
10516 grep -v '^ *+' conftest.er1 >conftest.err
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10522 { (case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_try") 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; } &&
10531 { ac_try='test -s conftest$ac_exeext'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 eval "$as_ac_var=yes"
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 eval "$as_ac_var=no"
10549 rm -f core conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
10552 ac_res=`eval echo '${'$as_ac_var'}'`
10553 { echo "$as_me:$LINENO: result: $ac_res" >&5
10554 echo "${ECHO_T}$ac_res" >&6; }
10555 if test `eval echo '${'$as_ac_var'}'` = yes; then
10556 cat >>confdefs.h <<_ACEOF
10557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10563 LIBS="$lt_save_LIBS"
10566 ac_cpp='$CPP $CPPFLAGS'
10567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10573 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10574 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10575 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 ac_cv_sys_symbol_underscore=no
10579 cat > conftest.$ac_ext <<EOF
10580 void nm_test_func(){}
10581 int main(){nm_test_func;return 0;}
10583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10584 (eval $ac_compile) 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; then
10588 # Now try to grab the symbols.
10589 ac_nlist=conftest.nm
10590 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10591 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } && test -s "$ac_nlist"; then
10595 # See whether the symbols have a leading underscore.
10596 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10597 ac_cv_sys_symbol_underscore=yes
10599 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10602 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10606 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10609 echo "configure: failed program was:" >&5
10615 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10616 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10619 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10620 if test x"$libltdl_cv_func_dlopen" = xyes ||
10621 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10622 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10623 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10624 if test "${libltdl_cv_need_uscore+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 libltdl_cv_need_uscore=unknown
10629 LIBS="$LIBS $LIBADD_DL"
10630 if test "$cross_compiling" = yes; then :
10631 libltdl_cv_need_uscore=cross
10633 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10634 lt_status=$lt_dlunknown
10635 cat > conftest.$ac_ext <<EOF
10636 #line 10636 "configure"
10637 #include "confdefs.h"
10646 # define LT_DLGLOBAL RTLD_GLOBAL
10649 # define LT_DLGLOBAL DL_GLOBAL
10651 # define LT_DLGLOBAL 0
10655 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10656 find out it does not work in some platform. */
10657 #ifndef LT_DLLAZY_OR_NOW
10659 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10662 # define LT_DLLAZY_OR_NOW DL_LAZY
10665 # define LT_DLLAZY_OR_NOW RTLD_NOW
10668 # define LT_DLLAZY_OR_NOW DL_NOW
10670 # define LT_DLLAZY_OR_NOW 0
10678 extern "C" void exit (int);
10681 void fnord() { int i=42;}
10684 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10685 int status = $lt_dlunknown;
10689 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10690 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10691 /* dlclose (self); */
10699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700 (eval $ac_link) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10704 (./conftest; exit; ) >&5 2>/dev/null
10706 case x$lt_status in
10707 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10708 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10709 x$lt_dlunknown|x*) ;;
10712 # compilation failed
10721 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10722 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10726 if test x"$libltdl_cv_need_uscore" = xyes; then
10728 cat >>confdefs.h <<\_ACEOF
10729 #define NEED_USCORE 1
10735 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10736 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10737 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 # PORTME does your system automatically load deplibs for dlopen?
10741 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10742 # For now, we just catch OSes we know something about -- in the
10743 # future, we'll try test this programmatically.
10744 libltdl_cv_sys_dlopen_deplibs=unknown
10746 aix3*|aix4.1.*|aix4.2.*)
10747 # Unknown whether this is true for these versions of AIX, but
10748 # we want this `case' here to explicitly catch those versions.
10749 libltdl_cv_sys_dlopen_deplibs=unknown
10752 libltdl_cv_sys_dlopen_deplibs=yes
10755 # Assuming the user has installed a libdl from somewhere, this is true
10756 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10757 libltdl_cv_sys_dlopen_deplibs=yes
10759 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10760 # GNU and its variants, using gnu ld.so (Glibc)
10761 libltdl_cv_sys_dlopen_deplibs=yes
10764 libltdl_cv_sys_dlopen_deplibs=yes
10767 libltdl_cv_sys_dlopen_deplibs=yes
10769 irix[12345]*|irix6.[01]*)
10770 # Catch all versions of IRIX before 6.2, and indicate that we don't
10771 # know how it worked for any of those versions.
10772 libltdl_cv_sys_dlopen_deplibs=unknown
10775 # The case above catches anything before 6.2, and it's known that
10776 # at 6.2 and later dlopen does load deplibs.
10777 libltdl_cv_sys_dlopen_deplibs=yes
10780 libltdl_cv_sys_dlopen_deplibs=yes
10783 libltdl_cv_sys_dlopen_deplibs=yes
10786 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10787 # it did *not* use an RPATH in a shared library to find objects the
10788 # library depends on, so we explictly say `no'.
10789 libltdl_cv_sys_dlopen_deplibs=no
10791 osf5.0|osf5.0a|osf5.1)
10792 # dlopen *does* load deplibs and with the right loader patch applied
10793 # it even uses RPATH in a shared library to search for shared objects
10794 # that the library depends on, but there's no easy way to know if that
10795 # patch is installed. Since this is the case, all we can really
10796 # say is unknown -- it depends on the patch being installed. If
10797 # it is, this changes to `yes'. Without it, it would be `no'.
10798 libltdl_cv_sys_dlopen_deplibs=unknown
10801 # the two cases above should catch all versions of osf <= 5.1. Read
10802 # the comments above for what we know about them.
10803 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10804 # is used to find them so we can finally say `yes'.
10805 libltdl_cv_sys_dlopen_deplibs=yes
10808 libltdl_cv_sys_dlopen_deplibs=yes
10810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10811 libltdl_cv_sys_dlopen_deplibs=yes
10816 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10817 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10818 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10820 cat >>confdefs.h <<\_ACEOF
10821 #define LTDL_DLOPEN_DEPLIBS 1
10827 for ac_header in argz.h
10829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 ac_res=`eval echo '${'$as_ac_Header'}'`
10837 { echo "$as_me:$LINENO: result: $ac_res" >&5
10838 echo "${ECHO_T}$ac_res" >&6; }
10840 # Is the header compilable?
10841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10843 cat >conftest.$ac_ext <<_ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849 $ac_includes_default
10850 #include <$ac_header>
10852 rm -f conftest.$ac_objext
10853 if { (ac_try="$ac_compile"
10854 case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_compile") 2>conftest.er1
10861 grep -v '^ *+' conftest.er1 >conftest.err
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } &&
10866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10867 { (case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_try") 2>&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } &&
10876 { ac_try='test -s conftest.$ac_objext'
10877 { (case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_try") 2>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
10886 ac_header_compiler=yes
10888 echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10891 ac_header_compiler=no
10894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10896 echo "${ECHO_T}$ac_header_compiler" >&6; }
10898 # Is the header present?
10899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10901 cat >conftest.$ac_ext <<_ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10907 #include <$ac_header>
10909 if { (ac_try="$ac_cpp conftest.$ac_ext"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10917 grep -v '^ *+' conftest.er1 >conftest.err
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } >/dev/null; then
10922 if test -s conftest.err; then
10923 ac_cpp_err=$ac_c_preproc_warn_flag
10924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10931 if test -z "$ac_cpp_err"; then
10932 ac_header_preproc=yes
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 ac_header_preproc=no
10940 rm -f conftest.err conftest.$ac_ext
10941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10942 echo "${ECHO_T}$ac_header_preproc" >&6; }
10944 # So? What about this header?
10945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10951 ac_header_preproc=yes
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10967 ## ----------------------------------- ##
10968 ## Report this to llvmbugs@cs.uiuc.edu ##
10969 ## ----------------------------------- ##
10971 ) | sed "s/^/$as_me: WARNING: /" >&2
10974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 eval "$as_ac_Header=\$ac_header_preproc"
10981 ac_res=`eval echo '${'$as_ac_Header'}'`
10982 { echo "$as_me:$LINENO: result: $ac_res" >&5
10983 echo "${ECHO_T}$ac_res" >&6; }
10986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10987 cat >>confdefs.h <<_ACEOF
10988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10996 { echo "$as_me:$LINENO: checking for error_t" >&5
10997 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10998 if test "${ac_cv_type_error_t+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 cat >conftest.$ac_ext <<_ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11011 typedef error_t ac__type_new_;
11015 if ((ac__type_new_ *) 0)
11017 if (sizeof (ac__type_new_))
11023 rm -f conftest.$ac_objext
11024 if { (ac_try="$ac_compile"
11025 case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_compile") 2>conftest.er1
11032 grep -v '^ *+' conftest.er1 >conftest.err
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11038 { (case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_try") 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest.$ac_objext'
11048 { (case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_try") 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 ac_cv_type_error_t=yes
11059 echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11062 ac_cv_type_error_t=no
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11068 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11069 if test $ac_cv_type_error_t = yes; then
11071 cat >>confdefs.h <<_ACEOF
11072 #define HAVE_ERROR_T 1
11078 cat >>confdefs.h <<\_ACEOF
11079 #define error_t int
11090 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 cat >conftest.$ac_ext <<_ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11106 #define $ac_func innocuous_$ac_func
11108 /* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func (); below.
11110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111 <limits.h> exists even on freestanding compilers. */
11114 # include <limits.h>
11116 # include <assert.h>
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11128 /* The GNU C library defines this for functions which it implements
11129 to always fail with ENOSYS. Some functions are actually named
11130 something starting with __ and the normal name is an alias. */
11131 #if defined __stub_$ac_func || defined __stub___$ac_func
11138 return $ac_func ();
11143 rm -f conftest.$ac_objext conftest$ac_exeext
11144 if { (ac_try="$ac_link"
11145 case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_link") 2>conftest.er1
11152 grep -v '^ *+' conftest.er1 >conftest.err
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11158 { (case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_try") 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest$ac_exeext'
11168 { (case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_try") 2>&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
11177 eval "$as_ac_var=yes"
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11182 eval "$as_ac_var=no"
11185 rm -f core conftest.err conftest.$ac_objext \
11186 conftest$ac_exeext conftest.$ac_ext
11188 ac_res=`eval echo '${'$as_ac_var'}'`
11189 { echo "$as_me:$LINENO: result: $ac_res" >&5
11190 echo "${ECHO_T}$ac_res" >&6; }
11191 if test `eval echo '${'$as_ac_var'}'` = yes; then
11192 cat >>confdefs.h <<_ACEOF
11193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11226 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 ac_res=`eval echo '${'$as_ac_Header'}'`
11237 { echo "$as_me:$LINENO: result: $ac_res" >&5
11238 echo "${ECHO_T}$ac_res" >&6; }
11240 # Is the header compilable?
11241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 $ac_includes_default
11250 #include <$ac_header>
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_header_compiler=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_header_compiler=no
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11296 echo "${ECHO_T}$ac_header_compiler" >&6; }
11298 # Is the header present?
11299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 #include <$ac_header>
11309 if { (ac_try="$ac_cpp conftest.$ac_ext"
11310 case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11317 grep -v '^ *+' conftest.er1 >conftest.err
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } >/dev/null; then
11322 if test -s conftest.err; then
11323 ac_cpp_err=$ac_c_preproc_warn_flag
11324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11331 if test -z "$ac_cpp_err"; then
11332 ac_header_preproc=yes
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_header_preproc=no
11340 rm -f conftest.err conftest.$ac_ext
11341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342 echo "${ECHO_T}$ac_header_preproc" >&6; }
11344 # So? What about this header?
11345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11351 ac_header_preproc=yes
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11367 ## ----------------------------------- ##
11368 ## Report this to llvmbugs@cs.uiuc.edu ##
11369 ## ----------------------------------- ##
11371 ) | sed "s/^/$as_me: WARNING: /" >&2
11374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 eval "$as_ac_Header=\$ac_header_preproc"
11381 ac_res=`eval echo '${'$as_ac_Header'}'`
11382 { echo "$as_me:$LINENO: result: $ac_res" >&5
11383 echo "${ECHO_T}$ac_res" >&6; }
11386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11387 cat >>confdefs.h <<_ACEOF
11388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11399 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 ac_res=`eval echo '${'$as_ac_Header'}'`
11409 { echo "$as_me:$LINENO: result: $ac_res" >&5
11410 echo "${ECHO_T}$ac_res" >&6; }
11412 # Is the header compilable?
11413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11415 cat >conftest.$ac_ext <<_ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 $ac_includes_default
11422 #include <$ac_header>
11424 rm -f conftest.$ac_objext
11425 if { (ac_try="$ac_compile"
11426 case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_compile") 2>conftest.er1
11433 grep -v '^ *+' conftest.er1 >conftest.err
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11439 { (case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_try") 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest.$ac_objext'
11449 { (case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_try") 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_header_compiler=yes
11460 echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11463 ac_header_compiler=no
11466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11468 echo "${ECHO_T}$ac_header_compiler" >&6; }
11470 # Is the header present?
11471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11473 cat >conftest.$ac_ext <<_ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 #include <$ac_header>
11481 if { (ac_try="$ac_cpp conftest.$ac_ext"
11482 case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11489 grep -v '^ *+' conftest.er1 >conftest.err
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } >/dev/null; then
11494 if test -s conftest.err; then
11495 ac_cpp_err=$ac_c_preproc_warn_flag
11496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11503 if test -z "$ac_cpp_err"; then
11504 ac_header_preproc=yes
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 ac_header_preproc=no
11512 rm -f conftest.err conftest.$ac_ext
11513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11514 echo "${ECHO_T}$ac_header_preproc" >&6; }
11516 # So? What about this header?
11517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11523 ac_header_preproc=yes
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11539 ## ----------------------------------- ##
11540 ## Report this to llvmbugs@cs.uiuc.edu ##
11541 ## ----------------------------------- ##
11543 ) | sed "s/^/$as_me: WARNING: /" >&2
11546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 eval "$as_ac_Header=\$ac_header_preproc"
11553 ac_res=`eval echo '${'$as_ac_Header'}'`
11554 { echo "$as_me:$LINENO: result: $ac_res" >&5
11555 echo "${ECHO_T}$ac_res" >&6; }
11558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11559 cat >>confdefs.h <<_ACEOF
11560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11569 for ac_header in string.h strings.h
11571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 ac_res=`eval echo '${'$as_ac_Header'}'`
11579 { echo "$as_me:$LINENO: result: $ac_res" >&5
11580 echo "${ECHO_T}$ac_res" >&6; }
11582 # Is the header compilable?
11583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11585 cat >conftest.$ac_ext <<_ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 $ac_includes_default
11592 #include <$ac_header>
11594 rm -f conftest.$ac_objext
11595 if { (ac_try="$ac_compile"
11596 case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_compile") 2>conftest.er1
11603 grep -v '^ *+' conftest.er1 >conftest.err
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
11608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11609 { (case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_try") 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try='test -s conftest.$ac_objext'
11619 { (case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_try") 2>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
11628 ac_header_compiler=yes
11630 echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11633 ac_header_compiler=no
11636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11638 echo "${ECHO_T}$ac_header_compiler" >&6; }
11640 # Is the header present?
11641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 #include <$ac_header>
11651 if { (ac_try="$ac_cpp conftest.$ac_ext"
11652 case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11659 grep -v '^ *+' conftest.er1 >conftest.err
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } >/dev/null; then
11664 if test -s conftest.err; then
11665 ac_cpp_err=$ac_c_preproc_warn_flag
11666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11673 if test -z "$ac_cpp_err"; then
11674 ac_header_preproc=yes
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11679 ac_header_preproc=no
11682 rm -f conftest.err conftest.$ac_ext
11683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11684 echo "${ECHO_T}$ac_header_preproc" >&6; }
11686 # So? What about this header?
11687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11693 ac_header_preproc=yes
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11709 ## ----------------------------------- ##
11710 ## Report this to llvmbugs@cs.uiuc.edu ##
11711 ## ----------------------------------- ##
11713 ) | sed "s/^/$as_me: WARNING: /" >&2
11716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 eval "$as_ac_Header=\$ac_header_preproc"
11723 ac_res=`eval echo '${'$as_ac_Header'}'`
11724 { echo "$as_me:$LINENO: result: $ac_res" >&5
11725 echo "${ECHO_T}$ac_res" >&6; }
11728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11729 cat >>confdefs.h <<_ACEOF
11730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11740 for ac_func in strchr index
11742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 cat >conftest.$ac_ext <<_ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11756 #define $ac_func innocuous_$ac_func
11758 /* System header to define __stub macros and hopefully few prototypes,
11759 which can conflict with char $ac_func (); below.
11760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11761 <limits.h> exists even on freestanding compilers. */
11764 # include <limits.h>
11766 # include <assert.h>
11771 /* Override any GCC internal prototype to avoid an error.
11772 Use char because int might match the return type of a GCC
11773 builtin and then its argument prototype would still apply. */
11778 /* The GNU C library defines this for functions which it implements
11779 to always fail with ENOSYS. Some functions are actually named
11780 something starting with __ and the normal name is an alias. */
11781 #if defined __stub_$ac_func || defined __stub___$ac_func
11788 return $ac_func ();
11793 rm -f conftest.$ac_objext conftest$ac_exeext
11794 if { (ac_try="$ac_link"
11795 case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_link") 2>conftest.er1
11802 grep -v '^ *+' conftest.er1 >conftest.err
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest$ac_exeext'
11818 { (case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 eval "$as_ac_var=yes"
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 eval "$as_ac_var=no"
11835 rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11838 ac_res=`eval echo '${'$as_ac_var'}'`
11839 { echo "$as_me:$LINENO: result: $ac_res" >&5
11840 echo "${ECHO_T}$ac_res" >&6; }
11841 if test `eval echo '${'$as_ac_var'}'` = yes; then
11842 cat >>confdefs.h <<_ACEOF
11843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11851 for ac_func in strrchr rindex
11853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11867 #define $ac_func innocuous_$ac_func
11869 /* System header to define __stub macros and hopefully few prototypes,
11870 which can conflict with char $ac_func (); below.
11871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872 <limits.h> exists even on freestanding compilers. */
11875 # include <limits.h>
11877 # include <assert.h>
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11889 /* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
11892 #if defined __stub_$ac_func || defined __stub___$ac_func
11899 return $ac_func ();
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (ac_try="$ac_link"
11906 case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_link") 2>conftest.er1
11913 grep -v '^ *+' conftest.er1 >conftest.err
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_try") 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 eval "$as_ac_var=yes"
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 eval "$as_ac_var=no"
11946 rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11949 ac_res=`eval echo '${'$as_ac_var'}'`
11950 { echo "$as_me:$LINENO: result: $ac_res" >&5
11951 echo "${ECHO_T}$ac_res" >&6; }
11952 if test `eval echo '${'$as_ac_var'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11962 for ac_func in memcpy bcopy
11964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 cat >conftest.$ac_ext <<_ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11978 #define $ac_func innocuous_$ac_func
11980 /* System header to define __stub macros and hopefully few prototypes,
11981 which can conflict with char $ac_func (); below.
11982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983 <limits.h> exists even on freestanding compilers. */
11986 # include <limits.h>
11988 # include <assert.h>
11993 /* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
12000 /* The GNU C library defines this for functions which it implements
12001 to always fail with ENOSYS. Some functions are actually named
12002 something starting with __ and the normal name is an alias. */
12003 #if defined __stub_$ac_func || defined __stub___$ac_func
12010 return $ac_func ();
12015 rm -f conftest.$ac_objext conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>conftest.er1
12024 grep -v '^ *+' conftest.er1 >conftest.err
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12030 { (case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_try") 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest$ac_exeext'
12040 { (case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_try") 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 eval "$as_ac_var=yes"
12051 echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 eval "$as_ac_var=no"
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12060 ac_res=`eval echo '${'$as_ac_var'}'`
12061 { echo "$as_me:$LINENO: result: $ac_res" >&5
12062 echo "${ECHO_T}$ac_res" >&6; }
12063 if test `eval echo '${'$as_ac_var'}'` = yes; then
12064 cat >>confdefs.h <<_ACEOF
12065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073 for ac_func in memmove strcmp
12075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 cat >conftest.$ac_ext <<_ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12089 #define $ac_func innocuous_$ac_func
12091 /* System header to define __stub macros and hopefully few prototypes,
12092 which can conflict with char $ac_func (); below.
12093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12094 <limits.h> exists even on freestanding compilers. */
12097 # include <limits.h>
12099 # include <assert.h>
12104 /* Override any GCC internal prototype to avoid an error.
12105 Use char because int might match the return type of a GCC
12106 builtin and then its argument prototype would still apply. */
12111 /* The GNU C library defines this for functions which it implements
12112 to always fail with ENOSYS. Some functions are actually named
12113 something starting with __ and the normal name is an alias. */
12114 #if defined __stub_$ac_func || defined __stub___$ac_func
12121 return $ac_func ();
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (ac_try="$ac_link"
12128 case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_link") 2>conftest.er1
12135 grep -v '^ *+' conftest.er1 >conftest.err
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12141 { (case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_try") 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; } &&
12150 { ac_try='test -s conftest$ac_exeext'
12151 { (case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_try") 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 eval "$as_ac_var=yes"
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 eval "$as_ac_var=no"
12168 rm -f core conftest.err conftest.$ac_objext \
12169 conftest$ac_exeext conftest.$ac_ext
12171 ac_res=`eval echo '${'$as_ac_var'}'`
12172 { echo "$as_me:$LINENO: result: $ac_res" >&5
12173 echo "${ECHO_T}$ac_res" >&6; }
12174 if test `eval echo '${'$as_ac_var'}'` = yes; then
12175 cat >>confdefs.h <<_ACEOF
12176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12185 for ac_func in closedir opendir readdir
12187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 cat >conftest.$ac_ext <<_ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12201 #define $ac_func innocuous_$ac_func
12203 /* System header to define __stub macros and hopefully few prototypes,
12204 which can conflict with char $ac_func (); below.
12205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206 <limits.h> exists even on freestanding compilers. */
12209 # include <limits.h>
12211 # include <assert.h>
12216 /* Override any GCC internal prototype to avoid an error.
12217 Use char because int might match the return type of a GCC
12218 builtin and then its argument prototype would still apply. */
12223 /* The GNU C library defines this for functions which it implements
12224 to always fail with ENOSYS. Some functions are actually named
12225 something starting with __ and the normal name is an alias. */
12226 #if defined __stub_$ac_func || defined __stub___$ac_func
12233 return $ac_func ();
12238 rm -f conftest.$ac_objext conftest$ac_exeext
12239 if { (ac_try="$ac_link"
12240 case "(($ac_try" in
12241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_link") 2>conftest.er1
12247 grep -v '^ *+' conftest.er1 >conftest.err
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } &&
12252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12253 { (case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_try") 2>&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; } &&
12262 { ac_try='test -s conftest$ac_exeext'
12263 { (case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_try") 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
12272 eval "$as_ac_var=yes"
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12277 eval "$as_ac_var=no"
12280 rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12283 ac_res=`eval echo '${'$as_ac_var'}'`
12284 { echo "$as_me:$LINENO: result: $ac_res" >&5
12285 echo "${ECHO_T}$ac_res" >&6; }
12286 if test `eval echo '${'$as_ac_var'}'` = yes; then
12287 cat >>confdefs.h <<_ACEOF
12288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12295 # Check whether --enable-shared was given.
12296 if test "${enable_shared+set}" = set; then
12297 enableval=$enable_shared; p=${PACKAGE-default}
12299 yes) enable_shared=yes ;;
12300 no) enable_shared=no ;;
12303 # Look at the argument we got. We use all the common list separators.
12304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12305 for pkg in $enableval; do
12307 if test "X$pkg" = "X$p"; then
12319 # Check whether --enable-static was given.
12320 if test "${enable_static+set}" = set; then
12321 enableval=$enable_static; p=${PACKAGE-default}
12323 yes) enable_static=yes ;;
12324 no) enable_static=no ;;
12327 # Look at the argument we got. We use all the common list separators.
12328 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12329 for pkg in $enableval; do
12331 if test "X$pkg" = "X$p"; then
12343 # Check whether --enable-fast-install was given.
12344 if test "${enable_fast_install+set}" = set; then
12345 enableval=$enable_fast_install; p=${PACKAGE-default}
12347 yes) enable_fast_install=yes ;;
12348 no) enable_fast_install=no ;;
12350 enable_fast_install=no
12351 # Look at the argument we got. We use all the common list separators.
12352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12353 for pkg in $enableval; do
12355 if test "X$pkg" = "X$p"; then
12356 enable_fast_install=yes
12363 enable_fast_install=yes
12367 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12368 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12369 if test "${lt_cv_path_SED+set}" = set; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12372 # Loop through the user's path and test for sed and gsed.
12373 # Then use that list of sed's as ones to test for truncation.
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12378 test -z "$as_dir" && as_dir=.
12379 for lt_ac_prog in sed gsed; do
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12382 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12389 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12390 # along with /bin/sed that truncates output.
12391 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12392 test ! -f $lt_ac_sed && continue
12393 cat /dev/null > conftest.in
12395 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12396 # Check for GNU sed and select it if it is found.
12397 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12398 lt_cv_path_SED=$lt_ac_sed
12402 cat conftest.in conftest.in >conftest.tmp
12403 mv conftest.tmp conftest.in
12404 cp conftest.in conftest.nl
12406 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12407 cmp -s conftest.out conftest.nl || break
12408 # 10000 chars as input seems more than enough
12409 test $lt_ac_count -gt 10 && break
12410 lt_ac_count=`expr $lt_ac_count + 1`
12411 if test $lt_ac_count -gt $lt_ac_max; then
12412 lt_ac_max=$lt_ac_count
12413 lt_cv_path_SED=$lt_ac_sed
12420 SED=$lt_cv_path_SED
12421 { echo "$as_me:$LINENO: result: $SED" >&5
12422 echo "${ECHO_T}$SED" >&6; }
12425 # Check whether --with-gnu-ld was given.
12426 if test "${with_gnu_ld+set}" = set; then
12427 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12433 if test "$GCC" = yes; then
12434 # Check if gcc -print-prog-name=ld gives a path.
12435 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12436 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12439 # gcc leaves a trailing carriage return which upsets mingw
12440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12445 # Accept absolute paths.
12447 re_direlt='/[^/][^/]*/\.\./'
12448 # Canonicalize the pathname of ld
12449 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12450 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12451 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12453 test -z "$LD" && LD="$ac_prog"
12456 # If it fails, then pretend we aren't using GCC.
12460 # If it is relative, then search for the first ld in PATH.
12461 with_gnu_ld=unknown
12464 elif test "$with_gnu_ld" = yes; then
12465 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12466 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12468 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12469 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12471 if test "${lt_cv_path_LD+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 if test -z "$LD"; then
12475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12476 for ac_dir in $PATH; do
12478 test -z "$ac_dir" && ac_dir=.
12479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12480 lt_cv_path_LD="$ac_dir/$ac_prog"
12481 # Check to see if the program is GNU ld. I'd rather use --version,
12482 # but apparently some variants of GNU ld only accept -v.
12483 # Break only if it was the GNU/non-GNU ld that we prefer.
12484 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12485 *GNU* | *'with BFD'*)
12486 test "$with_gnu_ld" != no && break
12489 test "$with_gnu_ld" != yes && break
12496 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12500 LD="$lt_cv_path_LD"
12501 if test -n "$LD"; then
12502 { echo "$as_me:$LINENO: result: $LD" >&5
12503 echo "${ECHO_T}$LD" >&6; }
12505 { echo "$as_me:$LINENO: result: no" >&5
12506 echo "${ECHO_T}no" >&6; }
12508 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12509 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12510 { (exit 1); exit 1; }; }
12511 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12512 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12513 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12517 case `$LD -v 2>&1 </dev/null` in
12518 *GNU* | *'with BFD'*)
12519 lt_cv_prog_gnu_ld=yes
12522 lt_cv_prog_gnu_ld=no
12526 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12527 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12528 with_gnu_ld=$lt_cv_prog_gnu_ld
12531 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12532 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12533 if test "${lt_cv_ld_reload_flag+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 lt_cv_ld_reload_flag='-r'
12538 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12539 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12540 reload_flag=$lt_cv_ld_reload_flag
12541 case $reload_flag in
12543 *) reload_flag=" $reload_flag" ;;
12545 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12548 if test "$GCC" = yes; then
12549 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12556 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12557 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12558 if test "${lt_cv_deplibs_check_method+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 lt_cv_file_magic_cmd='$MAGIC_CMD'
12562 lt_cv_file_magic_test_file=
12563 lt_cv_deplibs_check_method='unknown'
12564 # Need to set the preceding variable on all platforms that support
12565 # interlibrary dependencies.
12566 # 'none' -- dependencies not supported.
12567 # `unknown' -- same as none, but documents that we really don't know.
12568 # 'pass_all' -- all dependencies passed with no checks.
12569 # 'test_compile' -- check by making test program.
12570 # 'file_magic [[regex]]' -- check by looking for files in library path
12571 # which responds to the $file_magic_cmd with a given extended regex.
12572 # If you have `file' or equivalent on your system and you're not sure
12573 # whether `pass_all' will *always* work, you probably want this one.
12577 lt_cv_deplibs_check_method=pass_all
12581 lt_cv_deplibs_check_method=pass_all
12585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12586 lt_cv_file_magic_cmd='/usr/bin/file -L'
12587 lt_cv_file_magic_test_file=/shlib/libc.so
12591 # func_win32_libid is a shell function defined in ltmain.sh
12592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12593 lt_cv_file_magic_cmd='func_win32_libid'
12597 # Base MSYS/MinGW do not provide the 'file' command needed by
12598 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12599 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12600 lt_cv_file_magic_cmd='$OBJDUMP -f'
12603 darwin* | rhapsody*)
12604 lt_cv_deplibs_check_method=pass_all
12607 freebsd* | kfreebsd*-gnu | dragonfly*)
12608 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12611 # Not sure whether the presence of OpenBSD here was a mistake.
12612 # Let's accept both of them until this is cleared up.
12613 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12614 lt_cv_file_magic_cmd=/usr/bin/file
12615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12619 lt_cv_deplibs_check_method=pass_all
12624 lt_cv_deplibs_check_method=pass_all
12627 hpux10.20* | hpux11*)
12628 lt_cv_file_magic_cmd=/usr/bin/file
12631 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12632 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12635 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]'
12636 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12640 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12646 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12650 irix5* | irix6* | nonstopux*)
12652 *-32|*"-32 ") libmagic=32-bit;;
12653 *-n32|*"-n32 ") libmagic=N32;;
12654 *-64|*"-64 ") libmagic=64-bit;;
12655 *) libmagic=never-match;;
12657 lt_cv_deplibs_check_method=pass_all
12660 # This must be Linux ELF.
12662 lt_cv_deplibs_check_method=pass_all
12666 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12675 lt_cv_file_magic_cmd=/usr/bin/file
12676 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12680 lt_cv_deplibs_check_method=unknown
12684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12691 osf3* | osf4* | osf5*)
12692 lt_cv_deplibs_check_method=pass_all
12696 lt_cv_deplibs_check_method=pass_all
12700 case $host_vendor in
12702 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]'
12703 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12706 lt_cv_deplibs_check_method=pass_all
12709 lt_cv_file_magic_cmd='/bin/file'
12710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12713 lt_cv_file_magic_cmd='/bin/file'
12714 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12715 lt_cv_file_magic_test_file=/lib/libc.so
12718 lt_cv_deplibs_check_method=pass_all
12721 lt_cv_deplibs_check_method=pass_all
12726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12727 lt_cv_deplibs_check_method=pass_all
12732 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12733 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12734 file_magic_cmd=$lt_cv_file_magic_cmd
12735 deplibs_check_method=$lt_cv_deplibs_check_method
12736 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12740 # If no C compiler was specified, use CC.
12743 # If no C compiler flags were specified, use CFLAGS.
12744 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12746 # Allow CC to be a program name with arguments.
12749 # Check whether --enable-libtool-lock was given.
12750 if test "${enable_libtool_lock+set}" = set; then
12751 enableval=$enable_libtool_lock;
12754 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12756 # Some flags need to be propagated to the compiler or linker for good
12760 # Find out which ABI we are using.
12761 echo 'int i;' > conftest.$ac_ext
12762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763 (eval $ac_compile) 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; then
12767 case `/usr/bin/file conftest.$ac_objext` in
12769 HPUX_IA64_MODE="32"
12772 HPUX_IA64_MODE="64"
12779 # Find out which ABI we are using.
12780 echo '#line 12780 "configure"' > conftest.$ac_ext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12782 (eval $ac_compile) 2>&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; then
12786 if test "$lt_cv_prog_gnu_ld" = yes; then
12787 case `/usr/bin/file conftest.$ac_objext` in
12789 LD="${LD-ld} -melf32bsmip"
12792 LD="${LD-ld} -melf32bmipn32"
12795 LD="${LD-ld} -melf64bmip"
12799 case `/usr/bin/file conftest.$ac_objext` in
12815 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12816 # Find out which ABI we are using.
12817 echo 'int i;' > conftest.$ac_ext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; then
12823 case `/usr/bin/file conftest.o` in
12827 LD="${LD-ld} -m elf_i386"
12829 ppc64-*linux*|powerpc64-*linux*)
12830 LD="${LD-ld} -m elf32ppclinux"
12833 LD="${LD-ld} -m elf_s390"
12836 LD="${LD-ld} -m elf32_sparc"
12843 LD="${LD-ld} -m elf_x86_64"
12845 ppc*-*linux*|powerpc*-*linux*)
12846 LD="${LD-ld} -m elf64ppc"
12849 LD="${LD-ld} -m elf64_s390"
12852 LD="${LD-ld} -m elf64_sparc"
12862 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12863 SAVE_CFLAGS="$CFLAGS"
12864 CFLAGS="$CFLAGS -belf"
12865 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12866 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12867 if test "${lt_cv_cc_needs_belf+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 ac_cpp='$CPP $CPPFLAGS'
12872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12876 cat >conftest.$ac_ext <<_ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12891 rm -f conftest.$ac_objext conftest$ac_exeext
12892 if { (ac_try="$ac_link"
12893 case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898 (eval "$ac_link") 2>conftest.er1
12900 grep -v '^ *+' conftest.er1 >conftest.err
12902 cat conftest.err >&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
12905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12906 { (case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_try") 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest$ac_exeext'
12916 { (case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_try") 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 lt_cv_cc_needs_belf=yes
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12930 lt_cv_cc_needs_belf=no
12933 rm -f core conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
12936 ac_cpp='$CPP $CPPFLAGS'
12937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12942 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12943 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12944 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12945 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12946 CFLAGS="$SAVE_CFLAGS"
12950 # Find out which ABI we are using.
12951 echo 'int i;' > conftest.$ac_ext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; then
12957 case `/usr/bin/file conftest.o` in
12959 case $lt_cv_prog_gnu_ld in
12960 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12961 *) LD="${LD-ld} -64" ;;
12972 need_locks="$enable_libtool_lock"
12977 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12978 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12979 (test "X$CXX" != "Xg++"))) ; then
12981 ac_cpp='$CXXCPP $CPPFLAGS'
12982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12985 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12986 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12987 if test -z "$CXXCPP"; then
12988 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 # Double quotes because CXXCPP needs to be expanded
12992 for CXXCPP in "$CXX -E" "/lib/cpp"
12994 ac_preproc_ok=false
12995 for ac_cxx_preproc_warn_flag in '' yes
12997 # Use a header file that comes with gcc, so configuring glibc
12998 # with a fresh cross-compiler works.
12999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13000 # <limits.h> exists even on freestanding compilers.
13001 # On the NeXT, cc -E runs the code through the compiler's parser,
13002 # not just through cpp. "Syntax error" is here to catch this case.
13003 cat >conftest.$ac_ext <<_ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13010 # include <limits.h>
13012 # include <assert.h>
13016 if { (ac_try="$ac_cpp conftest.$ac_ext"
13017 case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13024 grep -v '^ *+' conftest.er1 >conftest.err
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } >/dev/null; then
13029 if test -s conftest.err; then
13030 ac_cpp_err=$ac_cxx_preproc_warn_flag
13031 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13038 if test -z "$ac_cpp_err"; then
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 # Broken: fails on valid input.
13048 rm -f conftest.err conftest.$ac_ext
13050 # OK, works on sane cases. Now check whether nonexistent headers
13051 # can be detected and how.
13052 cat >conftest.$ac_ext <<_ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13058 #include <ac_nonexistent.h>
13060 if { (ac_try="$ac_cpp conftest.$ac_ext"
13061 case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13068 grep -v '^ *+' conftest.er1 >conftest.err
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } >/dev/null; then
13073 if test -s conftest.err; then
13074 ac_cpp_err=$ac_cxx_preproc_warn_flag
13075 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13082 if test -z "$ac_cpp_err"; then
13083 # Broken: success on invalid input.
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13089 # Passes both tests.
13094 rm -f conftest.err conftest.$ac_ext
13097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13098 rm -f conftest.err conftest.$ac_ext
13099 if $ac_preproc_ok; then
13104 ac_cv_prog_CXXCPP=$CXXCPP
13107 CXXCPP=$ac_cv_prog_CXXCPP
13109 ac_cv_prog_CXXCPP=$CXXCPP
13111 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13112 echo "${ECHO_T}$CXXCPP" >&6; }
13113 ac_preproc_ok=false
13114 for ac_cxx_preproc_warn_flag in '' yes
13116 # Use a header file that comes with gcc, so configuring glibc
13117 # with a fresh cross-compiler works.
13118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13119 # <limits.h> exists even on freestanding compilers.
13120 # On the NeXT, cc -E runs the code through the compiler's parser,
13121 # not just through cpp. "Syntax error" is here to catch this case.
13122 cat >conftest.$ac_ext <<_ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13129 # include <limits.h>
13131 # include <assert.h>
13135 if { (ac_try="$ac_cpp conftest.$ac_ext"
13136 case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13143 grep -v '^ *+' conftest.er1 >conftest.err
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } >/dev/null; then
13148 if test -s conftest.err; then
13149 ac_cpp_err=$ac_cxx_preproc_warn_flag
13150 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13157 if test -z "$ac_cpp_err"; then
13160 echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13163 # Broken: fails on valid input.
13167 rm -f conftest.err conftest.$ac_ext
13169 # OK, works on sane cases. Now check whether nonexistent headers
13170 # can be detected and how.
13171 cat >conftest.$ac_ext <<_ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 #include <ac_nonexistent.h>
13179 if { (ac_try="$ac_cpp conftest.$ac_ext"
13180 case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13187 grep -v '^ *+' conftest.er1 >conftest.err
13189 cat conftest.err >&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); } >/dev/null; then
13192 if test -s conftest.err; then
13193 ac_cpp_err=$ac_cxx_preproc_warn_flag
13194 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13201 if test -z "$ac_cpp_err"; then
13202 # Broken: success on invalid input.
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13208 # Passes both tests.
13213 rm -f conftest.err conftest.$ac_ext
13216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13217 rm -f conftest.err conftest.$ac_ext
13218 if $ac_preproc_ok; then
13221 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13222 See \`config.log' for more details." >&5
13223 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13224 See \`config.log' for more details." >&2;}
13225 { (exit 1); exit 1; }; }
13229 ac_cpp='$CXXCPP $CPPFLAGS'
13230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13238 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13239 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13241 if test -n "$ac_tool_prefix"; then
13242 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
13244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13248 if test "${ac_cv_prog_F77+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 if test -n "$F77"; then
13252 ac_cv_prog_F77="$F77" # Let the user override the test.
13254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255 for as_dir in $PATH
13258 test -z "$as_dir" && as_dir=.
13259 for ac_exec_ext in '' $ac_executable_extensions; do
13260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13261 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13271 F77=$ac_cv_prog_F77
13272 if test -n "$F77"; then
13273 { echo "$as_me:$LINENO: result: $F77" >&5
13274 echo "${ECHO_T}$F77" >&6; }
13276 { echo "$as_me:$LINENO: result: no" >&5
13277 echo "${ECHO_T}no" >&6; }
13281 test -n "$F77" && break
13284 if test -z "$F77"; then
13286 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
13288 # Extract the first word of "$ac_prog", so it can be a program name with args.
13289 set dummy $ac_prog; ac_word=$2
13290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13292 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 if test -n "$ac_ct_F77"; then
13296 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13305 ac_cv_prog_ac_ct_F77="$ac_prog"
13306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13315 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13316 if test -n "$ac_ct_F77"; then
13317 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13318 echo "${ECHO_T}$ac_ct_F77" >&6; }
13320 { echo "$as_me:$LINENO: result: no" >&5
13321 echo "${ECHO_T}no" >&6; }
13325 test -n "$ac_ct_F77" && break
13328 if test "x$ac_ct_F77" = x; then
13331 case $cross_compiling:$ac_tool_warned in
13333 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13334 whose name does not start with the host triplet. If you think this
13335 configuration is useful to you, please write to autoconf@gnu.org." >&5
13336 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13337 whose name does not start with the host triplet. If you think this
13338 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13339 ac_tool_warned=yes ;;
13346 # Provide some information about the compiler.
13347 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13348 ac_compiler=`set X $ac_compile; echo $2`
13349 { (ac_try="$ac_compiler --version >&5"
13350 case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_compiler --version >&5") 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }
13359 { (ac_try="$ac_compiler -v >&5"
13360 case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_compiler -v >&5") 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }
13369 { (ac_try="$ac_compiler -V >&5"
13370 case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_compiler -V >&5") 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }
13381 # If we don't use `.F' as extension, the preprocessor is not run on the
13382 # input file. (Note that this only needs to work for GNU compilers.)
13383 ac_save_ext=$ac_ext
13385 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13386 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13387 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 cat >conftest.$ac_ext <<_ACEOF
13398 rm -f conftest.$ac_objext
13399 if { (ac_try="$ac_compile"
13400 case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_compile") 2>conftest.er1
13407 grep -v '^ *+' conftest.er1 >conftest.err
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_compiler_gnu=yes
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13444 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13445 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13446 ac_ext=$ac_save_ext
13447 ac_test_FFLAGS=${FFLAGS+set}
13448 ac_save_FFLAGS=$FFLAGS
13450 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13451 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13452 if test "${ac_cv_prog_f77_g+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 cat >conftest.$ac_ext <<_ACEOF
13461 rm -f conftest.$ac_objext
13462 if { (ac_try="$ac_compile"
13463 case "(($ac_try" in
13464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_compile") 2>conftest.er1
13470 grep -v '^ *+' conftest.er1 >conftest.err
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
13475 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13476 { (case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_try") 2>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; } &&
13485 { ac_try='test -s conftest.$ac_objext'
13486 { (case "(($ac_try" in
13487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488 *) ac_try_echo=$ac_try;;
13490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491 (eval "$ac_try") 2>&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
13495 ac_cv_prog_f77_g=yes
13497 echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13500 ac_cv_prog_f77_g=no
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13506 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13507 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13508 if test "$ac_test_FFLAGS" = set; then
13509 FFLAGS=$ac_save_FFLAGS
13510 elif test $ac_cv_prog_f77_g = yes; then
13511 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13517 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13524 G77=`test $ac_compiler_gnu = yes && echo yes`
13526 ac_cpp='$CPP $CPPFLAGS'
13527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13533 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13535 # find the maximum length of command line arguments
13536 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13537 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13538 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 # On DJGPP, this test can blow up pretty badly due to problems in libc
13547 # (any single argument exceeding 2000 bytes causes a buffer overrun
13548 # during glob expansion). Even if it were fixed, the result of this
13549 # check would be larger than it should be.
13550 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13554 # Under GNU Hurd, this test is not required because there is
13555 # no limit to the length of command line arguments.
13556 # Libtool will interpret -1 as no limit whatsoever
13557 lt_cv_sys_max_cmd_len=-1;
13561 # On Win9x/ME, this test blows up -- it succeeds, but takes
13562 # about 5 minutes as the teststring grows exponentially.
13563 # Worse, since 9x/ME are not pre-emptively multitasking,
13564 # you end up with a "frozen" computer, even though with patience
13565 # the test eventually succeeds (with a max line length of 256k).
13566 # Instead, let's just punt: use the minimum linelength reported by
13567 # all of the supported platforms: 8192 (on NT/2K/XP).
13568 lt_cv_sys_max_cmd_len=8192;
13572 # On AmigaOS with pdksh, this test takes hours, literally.
13573 # So we just punt and use a minimum line length of 8192.
13574 lt_cv_sys_max_cmd_len=8192;
13577 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13578 # This has been around since 386BSD, at least. Likely further.
13579 if test -x /sbin/sysctl; then
13580 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13581 elif test -x /usr/sbin/sysctl; then
13582 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13584 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13586 # And add a safety zone
13587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13592 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13593 lt_cv_sys_max_cmd_len=196608
13597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13599 # nice to cause kernel panics so lets avoid the loop below.
13600 # First set a reasonable default.
13601 lt_cv_sys_max_cmd_len=16384
13603 if test -x /sbin/sysconfig; then
13604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13610 lt_cv_sys_max_cmd_len=102400
13612 sysv5* | sco5v6* | sysv4.2uw2*)
13613 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13614 if test -n "$kargmax"; then
13615 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13617 lt_cv_sys_max_cmd_len=32768
13621 # If test is not a shell built-in, we'll probably end up computing a
13622 # maximum length that is only half of the actual maximum length, but
13624 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13625 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13626 = "XX$teststring") >/dev/null 2>&1 &&
13627 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13628 lt_cv_sys_max_cmd_len=$new_result &&
13629 test $i != 17 # 1/2 MB should be enough
13632 teststring=$teststring$teststring
13635 # Add a significant safety factor because C++ compilers can tack on massive
13636 # amounts of additional arguments before passing them to the linker.
13637 # It appears as though 1/2 is a usable value.
13638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13644 if test -n $lt_cv_sys_max_cmd_len ; then
13645 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13646 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13648 { echo "$as_me:$LINENO: result: none" >&5
13649 echo "${ECHO_T}none" >&6; }
13655 # Check for command to grab the raw symbol name followed by C symbol from nm.
13656 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13657 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13658 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 # These are sane defaults that work on at least a few old systems.
13663 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13665 # Character class describing NM global symbol codes.
13666 symcode='[BCDEGRST]'
13668 # Regexp to match symbols that can be accessed directly from C.
13669 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13671 # Transform an extracted symbol line into a proper C declaration
13672 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13674 # Transform an extracted symbol line into symbol name and symbol address
13675 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'"
13677 # Define system-specific variables.
13682 cygwin* | mingw* | pw32*)
13683 symcode='[ABCDGISTW]'
13685 hpux*) # Its linker distinguishes data from code symbols
13686 if test "$host_cpu" = ia64; then
13687 symcode='[ABCDEGRST]'
13689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13690 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'"
13693 if test "$host_cpu" = ia64; then
13694 symcode='[ABCDGIRSTW]'
13695 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13696 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'"
13699 irix* | nonstopux*)
13700 symcode='[BCDEGRST]'
13703 symcode='[BCDEGQRST]'
13714 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13722 # Handle CRLF in mingw tool chain
13726 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13730 # If we're using GNU nm, then use its standard symbol codes.
13731 case `$NM -V 2>&1` in
13732 *GNU* | *'with BFD'*)
13733 symcode='[ABCDGIRSTW]' ;;
13736 # Try without a prefix undercore, then with it.
13737 for ac_symprfx in "" "_"; do
13739 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13740 symxfrm="\\1 $ac_symprfx\\2 \\2"
13742 # Write the raw and C identifiers.
13743 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13745 # Check to see that the pipe works correctly.
13749 cat > conftest.$ac_ext <<EOF
13754 void nm_test_func(){}
13758 int main(){nm_test_var='a';nm_test_func();return(0);}
13761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13762 (eval $ac_compile) 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; then
13766 # Now try to grab the symbols.
13768 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13769 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } && test -s "$nlist"; then
13773 # Try sorting and uniquifying the output.
13774 if sort "$nlist" | uniq > "$nlist"T; then
13775 mv -f "$nlist"T "$nlist"
13780 # Make sure that we snagged all the symbols we need.
13781 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13782 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13783 cat <<EOF > conftest.$ac_ext
13789 # Now generate the symbol file.
13790 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13792 cat <<EOF >> conftest.$ac_ext
13793 #if defined (__STDC__) && __STDC__
13794 # define lt_ptr_t void *
13796 # define lt_ptr_t char *
13800 /* The mapping between symbol names and symbols. */
13805 lt_preloaded_symbols[] =
13808 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13809 cat <<\EOF >> conftest.$ac_ext
13817 # Now try linking the two files.
13818 mv conftest.$ac_objext conftstm.$ac_objext
13819 lt_save_LIBS="$LIBS"
13820 lt_save_CFLAGS="$CFLAGS"
13821 LIBS="conftstm.$ac_objext"
13822 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13824 (eval $ac_link) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13830 LIBS="$lt_save_LIBS"
13831 CFLAGS="$lt_save_CFLAGS"
13833 echo "cannot find nm_test_func in $nlist" >&5
13836 echo "cannot find nm_test_var in $nlist" >&5
13839 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13842 echo "$progname: failed program was:" >&5
13843 cat conftest.$ac_ext >&5
13845 rm -f conftest* conftst*
13847 # Do not use the global_symbol_pipe unless it works.
13848 if test "$pipe_works" = yes; then
13851 lt_cv_sys_global_symbol_pipe=
13857 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13858 lt_cv_sys_global_symbol_to_cdecl=
13860 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13861 { echo "$as_me:$LINENO: result: failed" >&5
13862 echo "${ECHO_T}failed" >&6; }
13864 { echo "$as_me:$LINENO: result: ok" >&5
13865 echo "${ECHO_T}ok" >&6; }
13868 { echo "$as_me:$LINENO: checking for objdir" >&5
13869 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13870 if test "${lt_cv_objdir+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 rm -f .libs 2>/dev/null
13874 mkdir .libs 2>/dev/null
13875 if test -d .libs; then
13878 # MS-DOS does not allow filenames that begin with a dot.
13881 rmdir .libs 2>/dev/null
13883 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13884 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13885 objdir=$lt_cv_objdir
13893 # AIX sometimes has problems with the GCC collect2 program. For some
13894 # reason, if we set the COLLECT_NAMES environment variable, the problems
13895 # vanish in a puff of smoke.
13896 if test "X${COLLECT_NAMES+set}" != Xset; then
13898 export COLLECT_NAMES
13903 # Sed substitution that helps us do robust quoting. It backslashifies
13904 # metacharacters that are still active within double-quoted strings.
13905 Xsed='sed -e 1s/^X//'
13906 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13908 # Same as above, but do not quote variable references.
13909 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13911 # Sed substitution to delay expansion of an escaped shell variable in a
13912 # double_quote_subst'ed string.
13913 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13915 # Sed substitution to avoid accidental globbing in evaled expressions
13916 no_glob_subst='s/\*/\\\*/g'
13921 # Global variables:
13922 default_ofile=mklib
13923 can_build_shared=yes
13925 # All known linkers require a `.a' archive for static linking (except MSVC,
13926 # which needs '.lib').
13928 ltmain="$ac_aux_dir/ltmain.sh"
13929 ofile="$default_ofile"
13930 with_gnu_ld="$lt_cv_prog_gnu_ld"
13932 if test -n "$ac_tool_prefix"; then
13933 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13934 set dummy ${ac_tool_prefix}ar; ac_word=$2
13935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13937 if test "${ac_cv_prog_AR+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13940 if test -n "$AR"; then
13941 ac_cv_prog_AR="$AR" # Let the user override the test.
13943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13944 for as_dir in $PATH
13947 test -z "$as_dir" && as_dir=.
13948 for ac_exec_ext in '' $ac_executable_extensions; do
13949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13950 ac_cv_prog_AR="${ac_tool_prefix}ar"
13951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13961 if test -n "$AR"; then
13962 { echo "$as_me:$LINENO: result: $AR" >&5
13963 echo "${ECHO_T}$AR" >&6; }
13965 { echo "$as_me:$LINENO: result: no" >&5
13966 echo "${ECHO_T}no" >&6; }
13971 if test -z "$ac_cv_prog_AR"; then
13973 # Extract the first word of "ar", so it can be a program name with args.
13974 set dummy ar; ac_word=$2
13975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13977 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 if test -n "$ac_ct_AR"; then
13981 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984 for as_dir in $PATH
13987 test -z "$as_dir" && as_dir=.
13988 for ac_exec_ext in '' $ac_executable_extensions; do
13989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13990 ac_cv_prog_ac_ct_AR="ar"
13991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14000 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14001 if test -n "$ac_ct_AR"; then
14002 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14003 echo "${ECHO_T}$ac_ct_AR" >&6; }
14005 { echo "$as_me:$LINENO: result: no" >&5
14006 echo "${ECHO_T}no" >&6; }
14009 if test "x$ac_ct_AR" = x; then
14012 case $cross_compiling:$ac_tool_warned in
14014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14015 whose name does not start with the host triplet. If you think this
14016 configuration is useful to you, please write to autoconf@gnu.org." >&5
14017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14018 whose name does not start with the host triplet. If you think this
14019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14020 ac_tool_warned=yes ;;
14025 AR="$ac_cv_prog_AR"
14028 if test -n "$ac_tool_prefix"; then
14029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14033 if test "${ac_cv_prog_RANLIB+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 if test -n "$RANLIB"; then
14037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040 for as_dir in $PATH
14043 test -z "$as_dir" && as_dir=.
14044 for ac_exec_ext in '' $ac_executable_extensions; do
14045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14056 RANLIB=$ac_cv_prog_RANLIB
14057 if test -n "$RANLIB"; then
14058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14059 echo "${ECHO_T}$RANLIB" >&6; }
14061 { echo "$as_me:$LINENO: result: no" >&5
14062 echo "${ECHO_T}no" >&6; }
14067 if test -z "$ac_cv_prog_RANLIB"; then
14068 ac_ct_RANLIB=$RANLIB
14069 # Extract the first word of "ranlib", so it can be a program name with args.
14070 set dummy ranlib; ac_word=$2
14071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 if test -n "$ac_ct_RANLIB"; then
14077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080 for as_dir in $PATH
14083 test -z "$as_dir" && as_dir=.
14084 for ac_exec_ext in '' $ac_executable_extensions; do
14085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14086 ac_cv_prog_ac_ct_RANLIB="ranlib"
14087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14097 if test -n "$ac_ct_RANLIB"; then
14098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14101 { echo "$as_me:$LINENO: result: no" >&5
14102 echo "${ECHO_T}no" >&6; }
14105 if test "x$ac_ct_RANLIB" = x; then
14108 case $cross_compiling:$ac_tool_warned in
14110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14111 whose name does not start with the host triplet. If you think this
14112 configuration is useful to you, please write to autoconf@gnu.org." >&5
14113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14114 whose name does not start with the host triplet. If you think this
14115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14116 ac_tool_warned=yes ;;
14118 RANLIB=$ac_ct_RANLIB
14121 RANLIB="$ac_cv_prog_RANLIB"
14124 if test -n "$ac_tool_prefix"; then
14125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14126 set dummy ${ac_tool_prefix}strip; ac_word=$2
14127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14129 if test "${ac_cv_prog_STRIP+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 if test -n "$STRIP"; then
14133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136 for as_dir in $PATH
14139 test -z "$as_dir" && as_dir=.
14140 for ac_exec_ext in '' $ac_executable_extensions; do
14141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14142 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14152 STRIP=$ac_cv_prog_STRIP
14153 if test -n "$STRIP"; then
14154 { echo "$as_me:$LINENO: result: $STRIP" >&5
14155 echo "${ECHO_T}$STRIP" >&6; }
14157 { echo "$as_me:$LINENO: result: no" >&5
14158 echo "${ECHO_T}no" >&6; }
14163 if test -z "$ac_cv_prog_STRIP"; then
14165 # Extract the first word of "strip", so it can be a program name with args.
14166 set dummy strip; ac_word=$2
14167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14169 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 if test -n "$ac_ct_STRIP"; then
14173 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14182 ac_cv_prog_ac_ct_STRIP="strip"
14183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14192 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14193 if test -n "$ac_ct_STRIP"; then
14194 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14195 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14197 { echo "$as_me:$LINENO: result: no" >&5
14198 echo "${ECHO_T}no" >&6; }
14201 if test "x$ac_ct_STRIP" = x; then
14204 case $cross_compiling:$ac_tool_warned in
14206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14207 whose name does not start with the host triplet. If you think this
14208 configuration is useful to you, please write to autoconf@gnu.org." >&5
14209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14210 whose name does not start with the host triplet. If you think this
14211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14212 ac_tool_warned=yes ;;
14217 STRIP="$ac_cv_prog_STRIP"
14222 old_CFLAGS="$CFLAGS"
14224 # Set sane defaults for various variables
14225 test -z "$AR" && AR=ar
14226 test -z "$AR_FLAGS" && AR_FLAGS=cru
14227 test -z "$AS" && AS=as
14228 test -z "$CC" && CC=cc
14229 test -z "$LTCC" && LTCC=$CC
14230 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14231 test -z "$DLLTOOL" && DLLTOOL=dlltool
14232 test -z "$LD" && LD=ld
14233 test -z "$LN_S" && LN_S="ln -s"
14234 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14235 test -z "$NM" && NM=nm
14236 test -z "$SED" && SED=sed
14237 test -z "$OBJDUMP" && OBJDUMP=objdump
14238 test -z "$RANLIB" && RANLIB=:
14239 test -z "$STRIP" && STRIP=:
14240 test -z "$ac_objext" && ac_objext=o
14242 # Determine commands to create old-style static archives.
14243 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14244 old_postinstall_cmds='chmod 644 $oldlib'
14245 old_postuninstall_cmds=
14247 if test -n "$RANLIB"; then
14250 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14256 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14259 for cc_temp in $compiler""; do
14261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14267 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14270 # Only perform the check for file, if the check method requires it
14271 case $deplibs_check_method in
14273 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14274 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14275 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14284 lt_save_MAGIC_CMD="$MAGIC_CMD"
14285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14287 for ac_dir in $ac_dummy; do
14289 test -z "$ac_dir" && ac_dir=.
14290 if test -f $ac_dir/${ac_tool_prefix}file; then
14291 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14292 if test -n "$file_magic_test_file"; then
14293 case $deplibs_check_method in
14295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14298 $EGREP "$file_magic_regex" > /dev/null; then
14303 *** Warning: the command libtool uses to detect shared libraries,
14304 *** $file_magic_cmd, produces output that libtool cannot recognize.
14305 *** The result is that libtool may fail to recognize shared libraries
14306 *** as such. This will affect the creation of libtool libraries that
14307 *** depend on shared libraries, but programs linked with such libtool
14308 *** libraries will work regardless of this problem. Nevertheless, you
14309 *** may want to report the problem to your system manager and/or to
14310 *** bug-libtool@gnu.org
14320 MAGIC_CMD="$lt_save_MAGIC_CMD"
14325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14326 if test -n "$MAGIC_CMD"; then
14327 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14328 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14330 { echo "$as_me:$LINENO: result: no" >&5
14331 echo "${ECHO_T}no" >&6; }
14334 if test -z "$lt_cv_path_MAGIC_CMD"; then
14335 if test -n "$ac_tool_prefix"; then
14336 { echo "$as_me:$LINENO: checking for file" >&5
14337 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14338 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14343 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14346 lt_save_MAGIC_CMD="$MAGIC_CMD"
14347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14349 for ac_dir in $ac_dummy; do
14351 test -z "$ac_dir" && ac_dir=.
14352 if test -f $ac_dir/file; then
14353 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14354 if test -n "$file_magic_test_file"; then
14355 case $deplibs_check_method in
14357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14360 $EGREP "$file_magic_regex" > /dev/null; then
14365 *** Warning: the command libtool uses to detect shared libraries,
14366 *** $file_magic_cmd, produces output that libtool cannot recognize.
14367 *** The result is that libtool may fail to recognize shared libraries
14368 *** as such. This will affect the creation of libtool libraries that
14369 *** depend on shared libraries, but programs linked with such libtool
14370 *** libraries will work regardless of this problem. Nevertheless, you
14371 *** may want to report the problem to your system manager and/or to
14372 *** bug-libtool@gnu.org
14382 MAGIC_CMD="$lt_save_MAGIC_CMD"
14387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14388 if test -n "$MAGIC_CMD"; then
14389 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14390 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14392 { echo "$as_me:$LINENO: result: no" >&5
14393 echo "${ECHO_T}no" >&6; }
14406 enable_win32_dll=no
14408 # Check whether --enable-libtool-lock was given.
14409 if test "${enable_libtool_lock+set}" = set; then
14410 enableval=$enable_libtool_lock;
14413 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14416 # Check whether --with-pic was given.
14417 if test "${with_pic+set}" = set; then
14418 withval=$with_pic; pic_mode="$withval"
14423 test -z "$pic_mode" && pic_mode=default
14425 # Use C for the default configuration in the libtool script
14429 ac_cpp='$CPP $CPPFLAGS'
14430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14435 # Source file extension for C test sources.
14438 # Object file extension for compiled C test sources.
14442 # Code to be used in simple compile tests
14443 lt_simple_compile_test_code="int some_variable = 0;\n"
14445 # Code to be used in simple link tests
14446 lt_simple_link_test_code='int main(){return(0);}\n'
14449 # If no C compiler was specified, use CC.
14452 # If no C compiler flags were specified, use CFLAGS.
14453 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14455 # Allow CC to be a program name with arguments.
14459 # save warnings/boilerplate of simple test code
14460 ac_outfile=conftest.$ac_objext
14461 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14463 _lt_compiler_boilerplate=`cat conftest.err`
14466 ac_outfile=conftest.$ac_objext
14467 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14469 _lt_linker_boilerplate=`cat conftest.err`
14474 lt_prog_compiler_no_builtin_flag=
14476 if test "$GCC" = yes; then
14477 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14480 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14481 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14482 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 lt_cv_prog_compiler_rtti_exceptions=no
14486 ac_outfile=conftest.$ac_objext
14487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14488 lt_compiler_flag="-fno-rtti -fno-exceptions"
14489 # Insert the option either (1) after the last *FLAGS variable, or
14490 # (2) before a word containing "conftest.", or (3) at the end.
14491 # Note that $ac_compile itself does not contain backslashes and begins
14492 # with a dollar sign (not a hyphen), so the echo should work correctly.
14493 # The option is referenced via a variable to avoid confusing sed.
14494 lt_compile=`echo "$ac_compile" | $SED \
14495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14497 -e 's:$: $lt_compiler_flag:'`
14498 (eval echo "\"\$as_me:14498: $lt_compile\"" >&5)
14499 (eval "$lt_compile" 2>conftest.err)
14501 cat conftest.err >&5
14502 echo "$as_me:14502: \$? = $ac_status" >&5
14503 if (exit $ac_status) && test -s "$ac_outfile"; then
14504 # The compiler can only warn and ignore the option if not recognized
14505 # So say no if there are warnings other than the usual output.
14506 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14509 lt_cv_prog_compiler_rtti_exceptions=yes
14515 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14516 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14518 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14519 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14526 lt_prog_compiler_wl=
14527 lt_prog_compiler_pic=
14528 lt_prog_compiler_static=
14530 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14531 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14533 if test "$GCC" = yes; then
14534 lt_prog_compiler_wl='-Wl,'
14535 lt_prog_compiler_static='-static'
14539 # All AIX code is PIC.
14540 if test "$host_cpu" = ia64; then
14541 # AIX 5 now supports IA64 processor
14542 lt_prog_compiler_static='-Bstatic'
14547 # FIXME: we need at least 68020 code to build shared libraries, but
14548 # adding the `-m68020' flag to GCC prevents building anything better,
14550 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14553 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14554 # PIC is the default for these OSes.
14557 mingw* | pw32* | os2*)
14558 # This hack is so that the source file can tell whether it is being
14559 # built for inclusion in a dll (and should export symbols for example).
14560 lt_prog_compiler_pic='-DDLL_EXPORT'
14563 darwin* | rhapsody*)
14564 # PIC is the default on this platform
14565 # Common symbols not allowed in MH_DYLIB files
14566 lt_prog_compiler_pic='-fno-common'
14570 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14571 # Instead, we relocate shared libraries at runtime.
14575 # Just because we use GCC doesn't mean we suddenly get shared libraries
14576 # on systems that don't support them.
14577 lt_prog_compiler_can_build_shared=no
14582 if test -d /usr/nec; then
14583 lt_prog_compiler_pic=-Kconform_pic
14588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14589 # not for PA HP-UX.
14595 lt_prog_compiler_pic='-fPIC'
14601 lt_prog_compiler_pic='-fPIC'
14605 # PORTME Check for flag to pass linker flags through the system compiler.
14608 lt_prog_compiler_wl='-Wl,'
14609 if test "$host_cpu" = ia64; then
14610 # AIX 5 now supports IA64 processor
14611 lt_prog_compiler_static='-Bstatic'
14613 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14617 # PIC is the default on this platform
14618 # Common symbols not allowed in MH_DYLIB files
14619 case $cc_basename in
14621 lt_prog_compiler_pic='-qnocommon'
14622 lt_prog_compiler_wl='-Wl,'
14627 mingw* | pw32* | os2*)
14628 # This hack is so that the source file can tell whether it is being
14629 # built for inclusion in a dll (and should export symbols for example).
14630 lt_prog_compiler_pic='-DDLL_EXPORT'
14633 hpux9* | hpux10* | hpux11*)
14634 lt_prog_compiler_wl='-Wl,'
14635 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14636 # not for PA HP-UX.
14642 lt_prog_compiler_pic='+Z'
14645 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14646 lt_prog_compiler_static='${wl}-a ${wl}archive'
14649 irix5* | irix6* | nonstopux*)
14650 lt_prog_compiler_wl='-Wl,'
14651 # PIC (with -KPIC) is the default.
14652 lt_prog_compiler_static='-non_shared'
14656 lt_prog_compiler_pic='-KPIC'
14657 lt_prog_compiler_static='-Bstatic'
14661 case $cc_basename in
14663 lt_prog_compiler_wl='-Wl,'
14664 lt_prog_compiler_pic='-KPIC'
14665 lt_prog_compiler_static='-static'
14667 pgcc* | pgf77* | pgf90* | pgf95*)
14668 # Portland Group compilers (*not* the Pentium gcc compiler,
14669 # which looks to be a dead project)
14670 lt_prog_compiler_wl='-Wl,'
14671 lt_prog_compiler_pic='-fpic'
14672 lt_prog_compiler_static='-Bstatic'
14675 lt_prog_compiler_wl='-Wl,'
14676 # All Alpha code is PIC.
14677 lt_prog_compiler_static='-non_shared'
14682 osf3* | osf4* | osf5*)
14683 lt_prog_compiler_wl='-Wl,'
14684 # All OSF/1 code is PIC.
14685 lt_prog_compiler_static='-non_shared'
14689 lt_prog_compiler_pic='-KPIC'
14690 lt_prog_compiler_static='-Bstatic'
14691 case $cc_basename in
14692 f77* | f90* | f95*)
14693 lt_prog_compiler_wl='-Qoption ld ';;
14695 lt_prog_compiler_wl='-Wl,';;
14700 lt_prog_compiler_wl='-Qoption ld '
14701 lt_prog_compiler_pic='-PIC'
14702 lt_prog_compiler_static='-Bstatic'
14705 sysv4 | sysv4.2uw2* | sysv4.3*)
14706 lt_prog_compiler_wl='-Wl,'
14707 lt_prog_compiler_pic='-KPIC'
14708 lt_prog_compiler_static='-Bstatic'
14712 if test -d /usr/nec ;then
14713 lt_prog_compiler_pic='-Kconform_pic'
14714 lt_prog_compiler_static='-Bstatic'
14718 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14719 lt_prog_compiler_wl='-Wl,'
14720 lt_prog_compiler_pic='-KPIC'
14721 lt_prog_compiler_static='-Bstatic'
14725 lt_prog_compiler_wl='-Wl,'
14726 lt_prog_compiler_can_build_shared=no
14730 lt_prog_compiler_pic='-pic'
14731 lt_prog_compiler_static='-Bstatic'
14735 lt_prog_compiler_can_build_shared=no
14740 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14741 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14744 # Check to make sure the PIC flag actually works.
14746 if test -n "$lt_prog_compiler_pic"; then
14748 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14749 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14750 if test "${lt_prog_compiler_pic_works+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 lt_prog_compiler_pic_works=no
14754 ac_outfile=conftest.$ac_objext
14755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14756 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14757 # Insert the option either (1) after the last *FLAGS variable, or
14758 # (2) before a word containing "conftest.", or (3) at the end.
14759 # Note that $ac_compile itself does not contain backslashes and begins
14760 # with a dollar sign (not a hyphen), so the echo should work correctly.
14761 # The option is referenced via a variable to avoid confusing sed.
14762 lt_compile=`echo "$ac_compile" | $SED \
14763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14765 -e 's:$: $lt_compiler_flag:'`
14766 (eval echo "\"\$as_me:14766: $lt_compile\"" >&5)
14767 (eval "$lt_compile" 2>conftest.err)
14769 cat conftest.err >&5
14770 echo "$as_me:14770: \$? = $ac_status" >&5
14771 if (exit $ac_status) && test -s "$ac_outfile"; then
14772 # The compiler can only warn and ignore the option if not recognized
14773 # So say no if there are warnings other than the usual output.
14774 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14777 lt_prog_compiler_pic_works=yes
14783 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14784 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14786 if test x"$lt_prog_compiler_pic_works" = xyes; then
14787 case $lt_prog_compiler_pic in
14789 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14792 lt_prog_compiler_pic=
14793 lt_prog_compiler_can_build_shared=no
14798 # For platforms which do not support PIC, -DPIC is meaningless:
14800 lt_prog_compiler_pic=
14803 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14808 # Check to make sure the static flag actually works.
14810 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14811 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14812 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14813 if test "${lt_prog_compiler_static_works+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 lt_prog_compiler_static_works=no
14817 save_LDFLAGS="$LDFLAGS"
14818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14819 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14821 # The linker can only warn and ignore the option if not recognized
14822 # So say no if there are warnings
14823 if test -s conftest.err; then
14824 # Append any errors to the config.log.
14825 cat conftest.err 1>&5
14826 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14828 if diff conftest.exp conftest.er2 >/dev/null; then
14829 lt_prog_compiler_static_works=yes
14832 lt_prog_compiler_static_works=yes
14836 LDFLAGS="$save_LDFLAGS"
14839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14840 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14842 if test x"$lt_prog_compiler_static_works" = xyes; then
14845 lt_prog_compiler_static=
14849 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14850 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14851 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 lt_cv_prog_compiler_c_o=no
14855 $rm -r conftest 2>/dev/null
14859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14861 lt_compiler_flag="-o out/conftest2.$ac_objext"
14862 # Insert the option either (1) after the last *FLAGS variable, or
14863 # (2) before a word containing "conftest.", or (3) at the end.
14864 # Note that $ac_compile itself does not contain backslashes and begins
14865 # with a dollar sign (not a hyphen), so the echo should work correctly.
14866 lt_compile=`echo "$ac_compile" | $SED \
14867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14869 -e 's:$: $lt_compiler_flag:'`
14870 (eval echo "\"\$as_me:14870: $lt_compile\"" >&5)
14871 (eval "$lt_compile" 2>out/conftest.err)
14873 cat out/conftest.err >&5
14874 echo "$as_me:14874: \$? = $ac_status" >&5
14875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14877 # The compiler can only warn and ignore the option if not recognized
14878 # So say no if there are warnings
14879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14882 lt_cv_prog_compiler_c_o=yes
14887 # SGI C++ compiler will create directory out/ii_files/ for
14888 # template instantiation
14889 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14890 $rm out/* && rmdir out
14896 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14897 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14900 hard_links="nottested"
14901 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14902 # do not overwrite the value of need_locks provided by the user
14903 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14904 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14909 ln conftest.a conftest.b 2>&5 || hard_links=no
14910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14911 { echo "$as_me:$LINENO: result: $hard_links" >&5
14912 echo "${ECHO_T}$hard_links" >&6; }
14913 if test "$hard_links" = no; then
14914 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14915 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14922 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14923 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14926 allow_undefined_flag=
14927 enable_shared_with_static_runtimes=no
14929 archive_expsym_cmds=
14930 old_archive_From_new_cmds=
14931 old_archive_from_expsyms_cmds=
14932 export_dynamic_flag_spec=
14933 whole_archive_flag_spec=
14934 thread_safe_flag_spec=
14935 hardcode_libdir_flag_spec=
14936 hardcode_libdir_flag_spec_ld=
14937 hardcode_libdir_separator=
14939 hardcode_minus_L=no
14940 hardcode_shlibpath_var=unsupported
14941 link_all_deplibs=unknown
14942 hardcode_automatic=no
14944 module_expsym_cmds=
14945 always_export_symbols=no
14946 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14947 # include_expsyms should be a list of space-separated symbols to be *always*
14948 # included in the symbol list
14950 # exclude_expsyms can be an extended regexp of symbols to exclude
14951 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14952 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14953 # as well as any symbol that contains `d'.
14954 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14955 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14956 # platforms (ab)use it in PIC code, but their linkers get confused if
14957 # the symbol is explicitly referenced. Since portable code cannot
14958 # rely on this symbol name, it's probably fine to never include it in
14959 # preloaded symbol tables.
14960 extract_expsyms_cmds=
14961 # Just being paranoid about ensuring that cc_basename is set.
14962 for cc_temp in $compiler""; do
14964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14970 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14973 cygwin* | mingw* | pw32*)
14974 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14975 # When not using gcc, we currently assume that we are using
14976 # Microsoft Visual C++.
14977 if test "$GCC" != yes; then
14982 # we just hope/assume this is gcc and not c89 (= MSVC++)
14991 if test "$with_gnu_ld" = yes; then
14992 # If archive_cmds runs LD, not CC, wlarc should be empty
14995 # Set some defaults for GNU ld with shared library support. These
14996 # are reset later if shared libraries are not supported. Putting them
14997 # here allows them to be overridden if necessary.
14998 runpath_var=LD_RUN_PATH
14999 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15000 export_dynamic_flag_spec='${wl}--export-dynamic'
15001 # ancient GNU ld didn't support --whole-archive et. al.
15002 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15003 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15005 whole_archive_flag_spec=
15007 supports_anon_versioning=no
15008 case `$LD -v 2>/dev/null` in
15009 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15010 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15011 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15012 *\ 2.11.*) ;; # other 2.11 versions
15013 *) supports_anon_versioning=yes ;;
15016 # See if GNU ld supports shared libraries.
15018 aix3* | aix4* | aix5*)
15019 # On AIX/PPC, the GNU linker is very broken
15020 if test "$host_cpu" != ia64; then
15024 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15025 *** to be unable to reliably create shared libraries on AIX.
15026 *** Therefore, libtool is disabling shared libraries support. If you
15027 *** really care for shared libraries, you may want to modify your PATH
15028 *** so that a non-GNU linker is found, and then restart.
15035 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)'
15036 hardcode_libdir_flag_spec='-L$libdir'
15037 hardcode_minus_L=yes
15039 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15040 # that the semantics of dynamic libraries on AmigaOS, at least up
15041 # to version 4, is to share data among multiple programs linked
15042 # with the same dynamic library. Since this doesn't match the
15043 # behavior of shared libraries on other platforms, we can't use
15049 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15050 allow_undefined_flag=unsupported
15051 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15052 # support --undefined. This deserves some investigation. FIXME
15053 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15059 cygwin* | mingw* | pw32*)
15060 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15061 # as there is no search path for DLLs.
15062 hardcode_libdir_flag_spec='-L$libdir'
15063 allow_undefined_flag=unsupported
15064 always_export_symbols=no
15065 enable_shared_with_static_runtimes=yes
15066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15068 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15070 # If the export-symbols file already is a .def file (1st line
15071 # is EXPORTS), use it as is; otherwise, prepend...
15072 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15073 cp $export_symbols $output_objdir/$soname.def;
15075 echo EXPORTS > $output_objdir/$soname.def;
15076 cat $export_symbols >> $output_objdir/$soname.def;
15078 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15086 hardcode_shlibpath_var=no
15087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15088 export_dynamic_flag_spec='${wl}-E'
15089 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15090 # Instead, shared libraries are loaded at an image base (0x10000000 by
15091 # default) and relocated if they conflict, which is a slow very memory
15092 # consuming and fragmenting process. To avoid this, we pick a random,
15093 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15094 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15096 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'
15100 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15102 case $cc_basename,$host_cpu in
15103 pgcc*) # Portland Group C compiler
15104 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'
15105 tmp_addflag=' $pic_flag'
15107 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15108 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'
15109 tmp_addflag=' $pic_flag -Mnomain' ;;
15110 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15111 tmp_addflag=' -i_dynamic' ;;
15112 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15113 tmp_addflag=' -i_dynamic -nofor_main' ;;
15114 ifc* | ifort*) # Intel Fortran compiler
15115 tmp_addflag=' -nofor_main' ;;
15117 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15119 if test $supports_anon_versioning = yes; then
15120 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15122 $echo "local: *; };" >> $output_objdir/$libname.ver~
15123 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15132 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15141 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15145 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15146 *** create shared libraries on Solaris systems. Therefore, libtool
15147 *** is disabling shared libraries support. We urge you to upgrade GNU
15148 *** binutils to release 2.9.1 or newer. Another option is to modify
15149 *** your PATH or compiler configuration so that the native linker is
15150 *** used, and then restart.
15153 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15162 case `$LD -v 2>&1` in
15163 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15167 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15168 *** reliably create shared libraries on SCO systems. Therefore, libtool
15169 *** is disabling shared libraries support. We urge you to upgrade GNU
15170 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15171 *** your PATH or compiler configuration so that the native linker is
15172 *** used, and then restart.
15177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15178 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15189 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15191 hardcode_direct=yes
15192 hardcode_shlibpath_var=no
15196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15205 if test "$ld_shlibs" = no; then
15207 hardcode_libdir_flag_spec=
15208 export_dynamic_flag_spec=
15209 whole_archive_flag_spec=
15212 # PORTME fill in a description of your system's linker (not GNU ld)
15215 allow_undefined_flag=unsupported
15216 always_export_symbols=yes
15217 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'
15218 # Note: this linker hardcodes the directories in LIBPATH if there
15219 # are no directories specified by -L.
15220 hardcode_minus_L=yes
15221 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15222 # Neither direct hardcoding nor static linking is supported with a
15224 hardcode_direct=unsupported
15229 if test "$host_cpu" = ia64; then
15230 # On IA64, the linker does run time linking by default, so we don't
15231 # have to do anything special.
15232 aix_use_runtimelinking=no
15233 exp_sym_flag='-Bexport'
15236 # If we're using GNU nm, then we don't want the "-C" option.
15237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15238 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15239 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'
15241 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'
15243 aix_use_runtimelinking=no
15245 # Test if we are trying to use run time linking or normal
15246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15247 # need to do runtime linking.
15248 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15249 for ld_flag in $LDFLAGS; do
15250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15251 aix_use_runtimelinking=yes
15258 exp_sym_flag='-bexport'
15259 no_entry_flag='-bnoentry'
15262 # When large executables or shared objects are built, AIX ld can
15263 # have problems creating the table of contents. If linking a library
15264 # or program results in "error TOC overflow" add -mminimal-toc to
15265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15269 hardcode_direct=yes
15270 hardcode_libdir_separator=':'
15271 link_all_deplibs=yes
15273 if test "$GCC" = yes; then
15274 case $host_os in aix4.[012]|aix4.[012].*)
15275 # We only want to do this on AIX 4.2 and lower, the check
15276 # below for broken collect2 doesn't work under 4.3+
15277 collect2name=`${CC} -print-prog-name=collect2`
15278 if test -f "$collect2name" && \
15279 strings "$collect2name" | grep resolve_lib_name >/dev/null
15281 # We have reworked collect2
15282 hardcode_direct=yes
15284 # We have old collect2
15285 hardcode_direct=unsupported
15286 # It fails to find uninstalled libraries when the uninstalled
15287 # path is not listed in the libpath. Setting hardcode_minus_L
15288 # to unsupported forces relinking
15289 hardcode_minus_L=yes
15290 hardcode_libdir_flag_spec='-L$libdir'
15291 hardcode_libdir_separator=
15295 shared_flag='-shared'
15296 if test "$aix_use_runtimelinking" = yes; then
15297 shared_flag="$shared_flag "'${wl}-G'
15301 if test "$host_cpu" = ia64; then
15302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15303 # chokes on -Wl,-G. The following line is correct:
15306 if test "$aix_use_runtimelinking" = yes; then
15307 shared_flag='${wl}-G'
15309 shared_flag='${wl}-bM:SRE'
15314 # It seems that -bexpall does not export symbols beginning with
15315 # underscore (_), so it is better to generate a list of symbols to export.
15316 always_export_symbols=yes
15317 if test "$aix_use_runtimelinking" = yes; then
15318 # Warning - without using the other runtime loading flags (-brtl),
15319 # -berok will link without error, but may produce a broken library.
15320 allow_undefined_flag='-berok'
15321 # Determine the default libpath from the value encoded in an empty executable.
15322 cat >conftest.$ac_ext <<_ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15337 rm -f conftest.$ac_objext conftest$ac_exeext
15338 if { (ac_try="$ac_link"
15339 case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_link") 2>conftest.er1
15346 grep -v '^ *+' conftest.er1 >conftest.err
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } &&
15351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15352 { (case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_try") 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; } &&
15361 { ac_try='test -s conftest$ac_exeext'
15362 { (case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_try") 2>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15372 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15374 # Check for a 64-bit object if we didn't find anything.
15375 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; }
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15384 rm -f core conftest.err conftest.$ac_objext \
15385 conftest$ac_exeext conftest.$ac_ext
15386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15388 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15389 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"
15391 if test "$host_cpu" = ia64; then
15392 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15393 allow_undefined_flag="-z nodefs"
15394 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"
15396 # Determine the default libpath from the value encoded in an empty executable.
15397 cat >conftest.$ac_ext <<_ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15412 rm -f conftest.$ac_objext conftest$ac_exeext
15413 if { (ac_try="$ac_link"
15414 case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_link") 2>conftest.er1
15421 grep -v '^ *+' conftest.er1 >conftest.err
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } &&
15426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15427 { (case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_try") 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; } &&
15436 { ac_try='test -s conftest$ac_exeext'
15437 { (case "(($ac_try" in
15438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439 *) ac_try_echo=$ac_try;;
15441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15442 (eval "$ac_try") 2>&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15447 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15449 # Check for a 64-bit object if we didn't find anything.
15450 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; }
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15459 rm -f core conftest.err conftest.$ac_objext \
15460 conftest$ac_exeext conftest.$ac_ext
15461 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15463 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15464 # Warning - without using the other run time loading flags,
15465 # -berok will link without error, but may produce a broken library.
15466 no_undefined_flag=' ${wl}-bernotok'
15467 allow_undefined_flag=' ${wl}-berok'
15468 # Exported symbols can be pulled into shared objects from archives
15469 whole_archive_flag_spec='$convenience'
15470 archive_cmds_need_lc=yes
15471 # This is similar to how AIX traditionally builds its shared libraries.
15472 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'
15478 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)'
15479 hardcode_libdir_flag_spec='-L$libdir'
15480 hardcode_minus_L=yes
15481 # see comment about different semantics on the GNU ld section
15486 export_dynamic_flag_spec=-rdynamic
15489 cygwin* | mingw* | pw32*)
15490 # When not using gcc, we currently assume that we are using
15491 # Microsoft Visual C++.
15492 # hardcode_libdir_flag_spec is actually meaningless, as there is
15493 # no search path for DLLs.
15494 hardcode_libdir_flag_spec=' '
15495 allow_undefined_flag=unsupported
15496 # Tell ltmain to make .lib files, not .a files.
15498 # Tell ltmain to make .dll files, not .so files.
15500 # FIXME: Setting linknames here is a bad hack.
15501 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15502 # The linker will automatically build a .lib file if we build a DLL.
15503 old_archive_From_new_cmds='true'
15504 # FIXME: Should let the user specify the lib program.
15505 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15506 fix_srcfile_path='`cygpath -w "$srcfile"`'
15507 enable_shared_with_static_runtimes=yes
15510 darwin* | rhapsody*)
15512 rhapsody* | darwin1.[012])
15513 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15516 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15517 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15519 case ${MACOSX_DEPLOYMENT_TARGET} in
15521 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15524 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15530 archive_cmds_need_lc=no
15532 hardcode_automatic=yes
15533 hardcode_shlibpath_var=unsupported
15534 whole_archive_flag_spec=''
15535 link_all_deplibs=yes
15536 if test "$GCC" = yes ; then
15537 output_verbose_link_cmd='echo'
15538 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15539 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15540 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15541 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}'
15542 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}'
15544 case $cc_basename in
15546 output_verbose_link_cmd='echo'
15547 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15548 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15549 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15550 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}'
15551 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}'
15561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15562 hardcode_libdir_flag_spec='-L$libdir'
15563 hardcode_shlibpath_var=no
15570 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15571 # support. Future versions do this automatically, but an explicit c++rt0.o
15572 # does not break anything, and helps significantly (at the cost of a little
15575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15576 hardcode_libdir_flag_spec='-R$libdir'
15577 hardcode_direct=yes
15578 hardcode_shlibpath_var=no
15581 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15584 hardcode_direct=yes
15585 hardcode_minus_L=yes
15586 hardcode_shlibpath_var=no
15589 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15590 freebsd* | kfreebsd*-gnu | dragonfly*)
15591 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15592 hardcode_libdir_flag_spec='-R$libdir'
15593 hardcode_direct=yes
15594 hardcode_shlibpath_var=no
15598 if test "$GCC" = yes; then
15599 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'
15601 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'
15603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15604 hardcode_libdir_separator=:
15605 hardcode_direct=yes
15607 # hardcode_minus_L: Not really in the search PATH,
15608 # but as the default location of the library.
15609 hardcode_minus_L=yes
15610 export_dynamic_flag_spec='${wl}-E'
15614 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15615 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15617 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15619 if test "$with_gnu_ld" = no; then
15620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15621 hardcode_libdir_separator=:
15623 hardcode_direct=yes
15624 export_dynamic_flag_spec='${wl}-E'
15626 # hardcode_minus_L: Not really in the search PATH,
15627 # but as the default location of the library.
15628 hardcode_minus_L=yes
15633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15639 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15642 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15648 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15651 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15654 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15658 if test "$with_gnu_ld" = no; then
15659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15660 hardcode_libdir_separator=:
15664 hardcode_libdir_flag_spec_ld='+b $libdir'
15666 hardcode_shlibpath_var=no
15669 hardcode_direct=yes
15670 export_dynamic_flag_spec='${wl}-E'
15672 # hardcode_minus_L: Not really in the search PATH,
15673 # but as the default location of the library.
15674 hardcode_minus_L=yes
15680 irix5* | irix6* | nonstopux*)
15681 if test "$GCC" = yes; then
15682 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'
15684 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'
15685 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15688 hardcode_libdir_separator=:
15689 link_all_deplibs=yes
15693 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15696 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15698 hardcode_libdir_flag_spec='-R$libdir'
15699 hardcode_direct=yes
15700 hardcode_shlibpath_var=no
15704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705 hardcode_direct=yes
15706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15707 hardcode_libdir_separator=:
15708 hardcode_shlibpath_var=no
15712 hardcode_direct=yes
15713 hardcode_shlibpath_var=no
15714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15715 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15716 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15717 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15718 export_dynamic_flag_spec='${wl}-E'
15721 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15723 hardcode_libdir_flag_spec='-R$libdir'
15726 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15734 hardcode_libdir_flag_spec='-L$libdir'
15735 hardcode_minus_L=yes
15736 allow_undefined_flag=unsupported
15737 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'
15738 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15742 if test "$GCC" = yes; then
15743 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15744 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'
15746 allow_undefined_flag=' -expect_unresolved \*'
15747 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'
15749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15750 hardcode_libdir_separator=:
15753 osf4* | osf5*) # as osf3* with the addition of -msym flag
15754 if test "$GCC" = yes; then
15755 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15756 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'
15757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15759 allow_undefined_flag=' -expect_unresolved \*'
15760 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'
15761 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15762 $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'
15764 # Both c and cxx compiler support -rpath directly
15765 hardcode_libdir_flag_spec='-rpath $libdir'
15767 hardcode_libdir_separator=:
15771 no_undefined_flag=' -z text'
15772 if test "$GCC" = yes; then
15774 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15775 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15776 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15779 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15780 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15781 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15783 hardcode_libdir_flag_spec='-R$libdir'
15784 hardcode_shlibpath_var=no
15786 solaris2.[0-5] | solaris2.[0-5].*) ;;
15788 # The compiler driver will combine linker options so we
15789 # cannot just pass the convience library names through
15790 # without $wl, iff we do not link with $LD.
15791 # Luckily, gcc supports the same syntax we need for Sun Studio.
15792 # Supported since Solaris 2.6 (maybe 2.5.1?)
15795 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15797 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' ;;
15800 link_all_deplibs=yes
15804 if test "x$host_vendor" = xsequent; then
15805 # Use $CC to link under sequent, because it throws in some extra .o
15806 # files that make .init and .fini sections work.
15807 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15809 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15811 hardcode_libdir_flag_spec='-L$libdir'
15812 hardcode_direct=yes
15813 hardcode_minus_L=yes
15814 hardcode_shlibpath_var=no
15818 case $host_vendor in
15820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15821 hardcode_direct=yes # is this really true???
15824 ## LD is ld it makes a PLAMLIB
15825 ## CC just makes a GrossModule.
15826 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15827 reload_cmds='$CC -r -o $output$reload_objs'
15831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15832 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15835 runpath_var='LD_RUN_PATH'
15836 hardcode_shlibpath_var=no
15840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15841 hardcode_shlibpath_var=no
15842 export_dynamic_flag_spec='-Bexport'
15846 if test -d /usr/nec; then
15847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848 hardcode_shlibpath_var=no
15849 runpath_var=LD_RUN_PATH
15850 hardcode_runpath_var=yes
15855 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15856 no_undefined_flag='${wl}-z,text'
15857 archive_cmds_need_lc=no
15858 hardcode_shlibpath_var=no
15859 runpath_var='LD_RUN_PATH'
15861 if test "$GCC" = yes; then
15862 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15863 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15865 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15866 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15870 sysv5* | sco3.2v5* | sco5v6*)
15871 # Note: We can NOT use -z defs as we might desire, because we do not
15872 # link with -lc, and that would cause any symbols used from libc to
15873 # always be unresolved, which means just about no library would
15874 # ever link correctly. If we're not using GNU ld we use -z text
15875 # though, which does catch some bad symbols but isn't as heavy-handed
15877 no_undefined_flag='${wl}-z,text'
15878 allow_undefined_flag='${wl}-z,nodefs'
15879 archive_cmds_need_lc=no
15880 hardcode_shlibpath_var=no
15881 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15882 hardcode_libdir_separator=':'
15883 link_all_deplibs=yes
15884 export_dynamic_flag_spec='${wl}-Bexport'
15885 runpath_var='LD_RUN_PATH'
15887 if test "$GCC" = yes; then
15888 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15889 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15891 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15892 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15898 hardcode_libdir_flag_spec='-L$libdir'
15899 hardcode_shlibpath_var=no
15908 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15909 echo "${ECHO_T}$ld_shlibs" >&6; }
15910 test "$ld_shlibs" = no && can_build_shared=no
15913 # Do we need to explicitly link libc?
15915 case "x$archive_cmds_need_lc" in
15917 # Assume -lc should be added
15918 archive_cmds_need_lc=yes
15920 if test "$enable_shared" = yes && test "$GCC" = yes; then
15921 case $archive_cmds in
15923 # FIXME: we may have to deal with multi-command sequences.
15926 # Test whether the compiler implicitly links with -lc since on some
15927 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15928 # to ld, don't add -lc before -lgcc.
15929 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15930 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15935 (eval $ac_compile) 2>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } 2>conftest.err; then
15941 libobjs=conftest.$ac_objext
15943 wl=$lt_prog_compiler_wl
15944 pic_flag=$lt_prog_compiler_pic
15950 lt_save_allow_undefined_flag=$allow_undefined_flag
15951 allow_undefined_flag=
15952 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15953 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }
15958 archive_cmds_need_lc=no
15960 archive_cmds_need_lc=yes
15962 allow_undefined_flag=$lt_save_allow_undefined_flag
15964 cat conftest.err 1>&5
15967 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15968 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15975 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15976 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15977 library_names_spec=
15978 libname_spec='lib$name'
15982 postuninstall_cmds=
15986 shlibpath_overrides_runpath=unknown
15988 dynamic_linker="$host_os ld.so"
15989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15990 if test "$GCC" = yes; then
15991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15992 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15993 # if the path contains ";" then we assume it to be the separator
15994 # otherwise default to the standard path separator (i.e. ":") - it is
15995 # assumed that no part of a normal pathname contains ";" but that should
15996 # okay in the real world where ";" in dirpaths is itself problematic.
15997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16004 need_lib_prefix=unknown
16005 hardcode_into_libs=no
16007 # when you set need_version to no, make sure it does not cause -set_version
16008 # flags to be left without arguments
16009 need_version=unknown
16014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16015 shlibpath_var=LIBPATH
16017 # AIX 3 has no versioning support, so we append a major version to the name.
16018 soname_spec='${libname}${release}${shared_ext}$major'
16025 hardcode_into_libs=yes
16026 if test "$host_cpu" = ia64; then
16027 # AIX 5 supports IA64
16028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16029 shlibpath_var=LD_LIBRARY_PATH
16031 # With GCC up to 2.95.x, collect2 would create an import file
16032 # for dependence libraries. The import file would start with
16033 # the line `#! .'. This would cause the generated library to
16034 # depend on `.', always an invalid library. This was fixed in
16035 # development snapshots of GCC prior to 3.0.
16037 aix4 | aix4.[01] | aix4.[01].*)
16038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16040 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16043 can_build_shared=no
16047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16048 # soname into executable. Probably we can add versioning support to
16049 # collect2, so additional links can be useful in future.
16050 if test "$aix_use_runtimelinking" = yes; then
16051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16052 # instead of lib<name>.a to let people know that these are not
16053 # typical AIX shared libraries.
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056 # We preserve .a as extension for shared libraries through AIX4.2
16057 # and later when we are not doing run time linking.
16058 library_names_spec='${libname}${release}.a $libname.a'
16059 soname_spec='${libname}${release}${shared_ext}$major'
16061 shlibpath_var=LIBPATH
16066 library_names_spec='$libname.ixlibrary $libname.a'
16067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16068 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'
16072 library_names_spec='${libname}${shared_ext}'
16073 dynamic_linker="$host_os ld.so"
16074 shlibpath_var=LIBRARY_PATH
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081 soname_spec='${libname}${release}${shared_ext}$major'
16082 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16083 shlibpath_var=LD_LIBRARY_PATH
16084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16086 # the default ld.so.conf also contains /usr/contrib/lib and
16087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16088 # libtool to hard-code these into programs
16091 cygwin* | mingw* | pw32*)
16092 version_type=windows
16097 case $GCC,$host_os in
16098 yes,cygwin* | yes,mingw* | yes,pw32*)
16099 library_names_spec='$libname.dll.a'
16100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16101 postinstall_cmds='base_file=`basename \${file}`~
16102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16103 dldir=$destdir/`dirname \$dlpath`~
16104 test -d \$dldir || mkdir -p \$dldir~
16105 $install_prog $dir/$dlname \$dldir/$dlname~
16106 chmod a+x \$dldir/$dlname'
16107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16108 dlpath=$dir/\$dldll~
16110 shlibpath_overrides_runpath=yes
16114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16116 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16119 # MinGW DLLs use traditional 'lib' prefix
16120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16122 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16123 # It is most probably a Windows format PATH printed by
16124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16125 # path with ; separators, and with drive letters. We can handle the
16126 # drive letters (cygwin fileutils understands them), so leave them,
16127 # especially as we might pass files found there to a mingw objdump,
16128 # which wouldn't understand a cygwinified path. Ahh.
16129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16135 # pw32 DLLs use 'pw' prefix rather than 'lib'
16136 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16142 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16145 dynamic_linker='Win32 ld.exe'
16146 # FIXME: first we should search . and the directory the executable is in
16150 darwin* | rhapsody*)
16151 dynamic_linker="$host_os dyld"
16152 version_type=darwin
16155 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16156 soname_spec='${libname}${release}${major}$shared_ext'
16157 shlibpath_overrides_runpath=yes
16158 shlibpath_var=DYLD_LIBRARY_PATH
16159 shrext_cmds='.dylib'
16160 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16161 if test "$GCC" = yes; then
16162 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"`
16164 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 shlibpath_var=LD_LIBRARY_PATH
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 shlibpath_var=LD_LIBRARY_PATH
16189 shlibpath_overrides_runpath=no
16190 hardcode_into_libs=yes
16191 dynamic_linker='GNU ld.so'
16194 freebsd* | dragonfly*)
16195 # DragonFly does not have aout. When/if they implement a new
16196 # versioning mechanism, adjust this.
16197 if test -x /usr/bin/objformat; then
16198 objformat=`/usr/bin/objformat`
16201 freebsd[123]*) objformat=aout ;;
16202 *) objformat=elf ;;
16205 version_type=freebsd-$objformat
16206 case $version_type in
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16217 shlibpath_var=LD_LIBRARY_PATH
16220 shlibpath_overrides_runpath=yes
16222 freebsd3.[01]* | freebsdelf3.[01]*)
16223 shlibpath_overrides_runpath=yes
16224 hardcode_into_libs=yes
16226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16228 shlibpath_overrides_runpath=no
16229 hardcode_into_libs=yes
16231 freebsd*) # from 4.6 on
16232 shlibpath_overrides_runpath=yes
16233 hardcode_into_libs=yes
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LD_LIBRARY_PATH
16245 hardcode_into_libs=yes
16248 hpux9* | hpux10* | hpux11*)
16249 # Give a soname corresponding to the major version so that dld.sl refuses to
16250 # link against other versions.
16257 hardcode_into_libs=yes
16258 dynamic_linker="$host_os dld.so"
16259 shlibpath_var=LD_LIBRARY_PATH
16260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 if test "X$HPUX_IA64_MODE" = X32; then
16264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16272 hardcode_into_libs=yes
16273 dynamic_linker="$host_os dld.sl"
16274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16277 soname_spec='${libname}${release}${shared_ext}$major'
16278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16283 dynamic_linker="$host_os dld.sl"
16284 shlibpath_var=SHLIB_PATH
16285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16291 postinstall_cmds='chmod 555 $lib'
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16299 soname_spec='${libname}${release}${shared_ext}$major'
16300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 shlibpath_overrides_runpath=no
16303 hardcode_into_libs=yes
16306 irix5* | irix6* | nonstopux*)
16308 nonstopux*) version_type=nonstopux ;;
16310 if test "$lt_cv_prog_gnu_ld" = yes; then
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16321 irix5* | nonstopux*)
16322 libsuff= shlibsuff=
16325 case $LD in # libtool.m4 will add one of these switches to LD
16326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16327 libsuff= shlibsuff= libmagic=32-bit;;
16328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16329 libsuff=32 shlibsuff=N32 libmagic=N32;;
16330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16332 *) libsuff= shlibsuff= libmagic=never-match;;
16336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16337 shlibpath_overrides_runpath=no
16338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16340 hardcode_into_libs=yes
16343 # No shared lib support for Linux oldld, aout, or coff.
16344 linux*oldld* | linux*aout* | linux*coff*)
16348 # This must be Linux ELF.
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354 soname_spec='${libname}${release}${shared_ext}$major'
16355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16356 shlibpath_var=LD_LIBRARY_PATH
16357 shlibpath_overrides_runpath=no
16358 # This implies no fast_install, which is unacceptable.
16359 # Some rework will be needed to allow for fast_install
16360 # before this can be enabled.
16361 hardcode_into_libs=yes
16363 # Append ld.so.conf contents to the search path
16364 if test -f /etc/ld.so.conf; then
16365 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' ' '`
16366 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16369 # We used to test for /lib/ld.so.1 and disable shared libraries on
16370 # powerpc, because MkLinux only supported shared libraries with the
16371 # GNU dynamic linker. Since this was broken with cross compilers,
16372 # most powerpc-linux boxes support dynamic linking these days and
16373 # people can always --disable-shared, the test was removed, and we
16374 # assume the GNU/Linux dynamic linker is in use.
16375 dynamic_linker='GNU/Linux ld.so'
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16383 soname_spec='${libname}${release}${shared_ext}$major'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 shlibpath_overrides_runpath=no
16386 hardcode_into_libs=yes
16387 dynamic_linker='GNU ld.so'
16394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16397 dynamic_linker='NetBSD (a.out) ld.so'
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16400 soname_spec='${libname}${release}${shared_ext}$major'
16401 dynamic_linker='NetBSD ld.elf_so'
16403 shlibpath_var=LD_LIBRARY_PATH
16404 shlibpath_overrides_runpath=yes
16405 hardcode_into_libs=yes
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 shlibpath_overrides_runpath=yes
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 shlibpath_var=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath=yes
16427 sys_lib_dlsearch_path_spec="/usr/lib"
16429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16432 *) need_version=no ;;
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16436 shlibpath_var=LD_LIBRARY_PATH
16437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16439 openbsd2.[89] | openbsd2.[89].*)
16440 shlibpath_overrides_runpath=no
16443 shlibpath_overrides_runpath=yes
16447 shlibpath_overrides_runpath=yes
16452 libname_spec='$name'
16455 library_names_spec='$libname${shared_ext} $libname.a'
16456 dynamic_linker='OS/2 ld.exe'
16457 shlibpath_var=LIBPATH
16460 osf3* | osf4* | osf5*)
16464 soname_spec='${libname}${release}${shared_ext}$major'
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466 shlibpath_var=LD_LIBRARY_PATH
16467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 shlibpath_var=LD_LIBRARY_PATH
16478 shlibpath_overrides_runpath=yes
16479 hardcode_into_libs=yes
16480 # ldd complains unless libraries are executable
16481 postinstall_cmds='chmod +x $lib'
16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16487 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16488 shlibpath_var=LD_LIBRARY_PATH
16489 shlibpath_overrides_runpath=yes
16490 if test "$with_gnu_ld" = yes; then
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499 soname_spec='${libname}${release}${shared_ext}$major'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 case $host_vendor in
16503 shlibpath_overrides_runpath=no
16505 export_dynamic_flag_spec='${wl}-Blargedynsym'
16506 runpath_var=LD_RUN_PATH
16514 shlibpath_overrides_runpath=no
16515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16521 if test -d /usr/nec ;then
16523 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16524 soname_spec='$libname${shared_ext}.$major'
16525 shlibpath_var=LD_LIBRARY_PATH
16529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16530 version_type=freebsd-elf
16533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16534 soname_spec='${libname}${release}${shared_ext}$major'
16535 shlibpath_var=LD_LIBRARY_PATH
16536 hardcode_into_libs=yes
16537 if test "$with_gnu_ld" = yes; then
16538 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16539 shlibpath_overrides_runpath=no
16541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16542 shlibpath_overrides_runpath=yes
16545 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16549 sys_lib_dlsearch_path_spec='/usr/lib'
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 shlibpath_var=LD_LIBRARY_PATH
16563 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16564 echo "${ECHO_T}$dynamic_linker" >&6; }
16565 test "$dynamic_linker" = no && can_build_shared=no
16567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16568 if test "$GCC" = yes; then
16569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16572 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16575 if test -n "$hardcode_libdir_flag_spec" || \
16576 test -n "$runpath_var" || \
16577 test "X$hardcode_automatic" = "Xyes" ; then
16579 # We can hardcode non-existant directories.
16580 if test "$hardcode_direct" != no &&
16581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16582 # have to relink, otherwise we might link with an installed library
16583 # when we should be linking with a yet-to-be-installed one
16584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16585 test "$hardcode_minus_L" != no; then
16586 # Linking always hardcodes the temporary library directory.
16587 hardcode_action=relink
16589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16590 hardcode_action=immediate
16593 # We cannot hardcode anything, or else we can only hardcode existing
16595 hardcode_action=unsupported
16597 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16598 echo "${ECHO_T}$hardcode_action" >&6; }
16600 if test "$hardcode_action" = relink; then
16601 # Fast installation is not supported
16602 enable_fast_install=no
16603 elif test "$shlibpath_overrides_runpath" = yes ||
16604 test "$enable_shared" = no; then
16605 # Fast installation is not necessary
16606 enable_fast_install=needless
16611 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16612 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16613 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16614 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16615 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16616 { echo "$as_me:$LINENO: result: yes" >&5
16617 echo "${ECHO_T}yes" >&6; }
16619 # FIXME - insert some real tests, host_os isn't really good enough
16622 if test -n "$STRIP" ; then
16623 striplib="$STRIP -x"
16624 { echo "$as_me:$LINENO: result: yes" >&5
16625 echo "${ECHO_T}yes" >&6; }
16627 { echo "$as_me:$LINENO: result: no" >&5
16628 echo "${ECHO_T}no" >&6; }
16632 { echo "$as_me:$LINENO: result: no" >&5
16633 echo "${ECHO_T}no" >&6; }
16638 if test "x$enable_dlopen" != xyes; then
16639 enable_dlopen=unknown
16640 enable_dlopen_self=unknown
16641 enable_dlopen_self_static=unknown
16648 lt_cv_dlopen="load_add_on"
16650 lt_cv_dlopen_self=yes
16654 lt_cv_dlopen="LoadLibrary"
16659 lt_cv_dlopen="dlopen"
16664 # if libdl is installed we need to link against it
16665 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16666 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16667 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 ac_check_lib_save_LIBS=$LIBS
16672 cat >conftest.$ac_ext <<_ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16679 /* Override any GCC internal prototype to avoid an error.
16680 Use char because int might match the return type of a GCC
16681 builtin and then its argument prototype would still apply. */
16694 rm -f conftest.$ac_objext conftest$ac_exeext
16695 if { (ac_try="$ac_link"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_link") 2>conftest.er1
16703 grep -v '^ *+' conftest.er1 >conftest.err
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16709 { (case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_try") 2>&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest$ac_exeext'
16719 { (case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_try") 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 ac_cv_lib_dl_dlopen=yes
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16733 ac_cv_lib_dl_dlopen=no
16736 rm -f core conftest.err conftest.$ac_objext \
16737 conftest$ac_exeext conftest.$ac_ext
16738 LIBS=$ac_check_lib_save_LIBS
16740 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16741 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16742 if test $ac_cv_lib_dl_dlopen = yes; then
16743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16746 lt_cv_dlopen="dyld"
16748 lt_cv_dlopen_self=yes
16755 { echo "$as_me:$LINENO: checking for shl_load" >&5
16756 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16757 if test "${ac_cv_func_shl_load+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16760 cat >conftest.$ac_ext <<_ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16768 #define shl_load innocuous_shl_load
16770 /* System header to define __stub macros and hopefully few prototypes,
16771 which can conflict with char shl_load (); below.
16772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16773 <limits.h> exists even on freestanding compilers. */
16776 # include <limits.h>
16778 # include <assert.h>
16783 /* Override any GCC internal prototype to avoid an error.
16784 Use char because int might match the return type of a GCC
16785 builtin and then its argument prototype would still apply. */
16790 /* The GNU C library defines this for functions which it implements
16791 to always fail with ENOSYS. Some functions are actually named
16792 something starting with __ and the normal name is an alias. */
16793 #if defined __stub_shl_load || defined __stub___shl_load
16800 return shl_load ();
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (ac_try="$ac_link"
16807 case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_link") 2>conftest.er1
16814 grep -v '^ *+' conftest.er1 >conftest.err
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
16819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest$ac_exeext'
16830 { (case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_try") 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 ac_cv_func_shl_load=yes
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 ac_cv_func_shl_load=no
16847 rm -f core conftest.err conftest.$ac_objext \
16848 conftest$ac_exeext conftest.$ac_ext
16850 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16851 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16852 if test $ac_cv_func_shl_load = yes; then
16853 lt_cv_dlopen="shl_load"
16855 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16856 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16857 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 ac_check_lib_save_LIBS=$LIBS
16862 cat >conftest.$ac_ext <<_ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h. */
16869 /* Override any GCC internal prototype to avoid an error.
16870 Use char because int might match the return type of a GCC
16871 builtin and then its argument prototype would still apply. */
16879 return shl_load ();
16884 rm -f conftest.$ac_objext conftest$ac_exeext
16885 if { (ac_try="$ac_link"
16886 case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_link") 2>conftest.er1
16893 grep -v '^ *+' conftest.er1 >conftest.err
16895 cat conftest.err >&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } &&
16898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16899 { (case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_try") 2>&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest$ac_exeext'
16909 { (case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_try") 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918 ac_cv_lib_dld_shl_load=yes
16920 echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16923 ac_cv_lib_dld_shl_load=no
16926 rm -f core conftest.err conftest.$ac_objext \
16927 conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16930 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16931 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16932 if test $ac_cv_lib_dld_shl_load = yes; then
16933 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16935 { echo "$as_me:$LINENO: checking for dlopen" >&5
16936 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16937 if test "${ac_cv_func_dlopen+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16940 cat >conftest.$ac_ext <<_ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16946 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16948 #define dlopen innocuous_dlopen
16950 /* System header to define __stub macros and hopefully few prototypes,
16951 which can conflict with char dlopen (); below.
16952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16953 <limits.h> exists even on freestanding compilers. */
16956 # include <limits.h>
16958 # include <assert.h>
16963 /* Override any GCC internal prototype to avoid an error.
16964 Use char because int might match the return type of a GCC
16965 builtin and then its argument prototype would still apply. */
16970 /* The GNU C library defines this for functions which it implements
16971 to always fail with ENOSYS. Some functions are actually named
16972 something starting with __ and the normal name is an alias. */
16973 #if defined __stub_dlopen || defined __stub___dlopen
16985 rm -f conftest.$ac_objext conftest$ac_exeext
16986 if { (ac_try="$ac_link"
16987 case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_link") 2>conftest.er1
16994 grep -v '^ *+' conftest.er1 >conftest.err
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17000 { (case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_try") 2>&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try='test -s conftest$ac_exeext'
17010 { (case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_try") 2>&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
17019 ac_cv_func_dlopen=yes
17021 echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17024 ac_cv_func_dlopen=no
17027 rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17030 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17031 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17032 if test $ac_cv_func_dlopen = yes; then
17033 lt_cv_dlopen="dlopen"
17035 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17036 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17037 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 ac_check_lib_save_LIBS=$LIBS
17042 cat >conftest.$ac_ext <<_ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17049 /* Override any GCC internal prototype to avoid an error.
17050 Use char because int might match the return type of a GCC
17051 builtin and then its argument prototype would still apply. */
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065 if { (ac_try="$ac_link"
17066 case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_link") 2>conftest.er1
17073 grep -v '^ *+' conftest.er1 >conftest.err
17075 cat conftest.err >&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } &&
17078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17079 { (case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_try") 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest$ac_exeext'
17089 { (case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_try") 2>&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; }; then
17098 ac_cv_lib_dl_dlopen=yes
17100 echo "$as_me: failed program was:" >&5
17101 sed 's/^/| /' conftest.$ac_ext >&5
17103 ac_cv_lib_dl_dlopen=no
17106 rm -f core conftest.err conftest.$ac_objext \
17107 conftest$ac_exeext conftest.$ac_ext
17108 LIBS=$ac_check_lib_save_LIBS
17110 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17111 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17112 if test $ac_cv_lib_dl_dlopen = yes; then
17113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17115 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17116 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17117 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 ac_check_lib_save_LIBS=$LIBS
17121 LIBS="-lsvld $LIBS"
17122 cat >conftest.$ac_ext <<_ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17129 /* Override any GCC internal prototype to avoid an error.
17130 Use char because int might match the return type of a GCC
17131 builtin and then its argument prototype would still apply. */
17144 rm -f conftest.$ac_objext conftest$ac_exeext
17145 if { (ac_try="$ac_link"
17146 case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151 (eval "$ac_link") 2>conftest.er1
17153 grep -v '^ *+' conftest.er1 >conftest.err
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17159 { (case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_try") 2>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try='test -s conftest$ac_exeext'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_try") 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_cv_lib_svld_dlopen=yes
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_lib_svld_dlopen=no
17186 rm -f core conftest.err conftest.$ac_objext \
17187 conftest$ac_exeext conftest.$ac_ext
17188 LIBS=$ac_check_lib_save_LIBS
17190 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17191 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17192 if test $ac_cv_lib_svld_dlopen = yes; then
17193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17195 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17196 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17197 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 ac_check_lib_save_LIBS=$LIBS
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17209 /* Override any GCC internal prototype to avoid an error.
17210 Use char because int might match the return type of a GCC
17211 builtin and then its argument prototype would still apply. */
17219 return dld_link ();
17224 rm -f conftest.$ac_objext conftest$ac_exeext
17225 if { (ac_try="$ac_link"
17226 case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_link") 2>conftest.er1
17233 grep -v '^ *+' conftest.er1 >conftest.err
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } &&
17238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17239 { (case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_try") 2>&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; } &&
17248 { ac_try='test -s conftest$ac_exeext'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_cv_lib_dld_dld_link=yes
17260 echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17263 ac_cv_lib_dld_dld_link=no
17266 rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17270 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17271 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17272 if test $ac_cv_lib_dld_dld_link = yes; then
17273 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17294 if test "x$lt_cv_dlopen" != xno; then
17300 case $lt_cv_dlopen in
17302 save_CPPFLAGS="$CPPFLAGS"
17303 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17305 save_LDFLAGS="$LDFLAGS"
17306 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17309 LIBS="$lt_cv_dlopen_libs $LIBS"
17311 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17312 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17313 if test "${lt_cv_dlopen_self+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17316 if test "$cross_compiling" = yes; then :
17317 lt_cv_dlopen_self=cross
17319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17320 lt_status=$lt_dlunknown
17321 cat > conftest.$ac_ext <<EOF
17322 #line 17322 "configure"
17323 #include "confdefs.h"
17332 # define LT_DLGLOBAL RTLD_GLOBAL
17335 # define LT_DLGLOBAL DL_GLOBAL
17337 # define LT_DLGLOBAL 0
17341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17342 find out it does not work in some platform. */
17343 #ifndef LT_DLLAZY_OR_NOW
17345 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17348 # define LT_DLLAZY_OR_NOW DL_LAZY
17351 # define LT_DLLAZY_OR_NOW RTLD_NOW
17354 # define LT_DLLAZY_OR_NOW DL_NOW
17356 # define LT_DLLAZY_OR_NOW 0
17364 extern "C" void exit (int);
17367 void fnord() { int i=42;}
17370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17371 int status = $lt_dlunknown;
17375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17376 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17377 /* dlclose (self); */
17385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17386 (eval $ac_link) 2>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17390 (./conftest; exit; ) >&5 2>/dev/null
17392 case x$lt_status in
17393 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17394 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17395 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17398 # compilation failed
17399 lt_cv_dlopen_self=no
17406 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17407 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17409 if test "x$lt_cv_dlopen_self" = xyes; then
17410 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17411 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17412 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17413 if test "${lt_cv_dlopen_self_static+set}" = set; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17416 if test "$cross_compiling" = yes; then :
17417 lt_cv_dlopen_self_static=cross
17419 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17420 lt_status=$lt_dlunknown
17421 cat > conftest.$ac_ext <<EOF
17422 #line 17422 "configure"
17423 #include "confdefs.h"
17432 # define LT_DLGLOBAL RTLD_GLOBAL
17435 # define LT_DLGLOBAL DL_GLOBAL
17437 # define LT_DLGLOBAL 0
17441 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17442 find out it does not work in some platform. */
17443 #ifndef LT_DLLAZY_OR_NOW
17445 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17448 # define LT_DLLAZY_OR_NOW DL_LAZY
17451 # define LT_DLLAZY_OR_NOW RTLD_NOW
17454 # define LT_DLLAZY_OR_NOW DL_NOW
17456 # define LT_DLLAZY_OR_NOW 0
17464 extern "C" void exit (int);
17467 void fnord() { int i=42;}
17470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17471 int status = $lt_dlunknown;
17475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17476 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17477 /* dlclose (self); */
17485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17486 (eval $ac_link) 2>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17490 (./conftest; exit; ) >&5 2>/dev/null
17492 case x$lt_status in
17493 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17494 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17495 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17498 # compilation failed
17499 lt_cv_dlopen_self_static=no
17506 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17507 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17510 CPPFLAGS="$save_CPPFLAGS"
17511 LDFLAGS="$save_LDFLAGS"
17516 case $lt_cv_dlopen_self in
17517 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17518 *) enable_dlopen_self=unknown ;;
17521 case $lt_cv_dlopen_self_static in
17522 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17523 *) enable_dlopen_self_static=unknown ;;
17528 # Report which library types will actually be built
17529 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17530 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17531 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17532 echo "${ECHO_T}$can_build_shared" >&6; }
17534 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17535 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17536 test "$can_build_shared" = "no" && enable_shared=no
17538 # On AIX, shared libraries and static libraries use the same namespace, and
17539 # are all built from PIC.
17542 test "$enable_shared" = yes && enable_static=no
17543 if test -n "$RANLIB"; then
17544 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17545 postinstall_cmds='$RANLIB $lib'
17550 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17551 test "$enable_shared" = yes && enable_static=no
17555 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17556 echo "${ECHO_T}$enable_shared" >&6; }
17558 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17559 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17560 # Make sure either enable_shared or enable_static is yes.
17561 test "$enable_shared" = yes || enable_static=yes
17562 { echo "$as_me:$LINENO: result: $enable_static" >&5
17563 echo "${ECHO_T}$enable_static" >&6; }
17565 # The else clause should only fire when bootstrapping the
17566 # libtool distribution, otherwise you forgot to ship ltmain.sh
17567 # with your package, and you will get complaints that there are
17568 # no rules to generate ltmain.sh.
17569 if test -f "$ltmain"; then
17570 # See if we are running on zsh, and set the options which allow our commands through
17571 # without removal of \ escapes.
17572 if test -n "${ZSH_VERSION+set}" ; then
17573 setopt NO_GLOB_SUBST
17575 # Now quote all the things that may contain metacharacters while being
17576 # careful not to overquote the AC_SUBSTed values. We take copies of the
17577 # variables and quote the copies for generation of the libtool script.
17578 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17580 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17581 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17582 deplibs_check_method reload_flag reload_cmds need_locks \
17583 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17584 lt_cv_sys_global_symbol_to_c_name_address \
17585 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17586 old_postinstall_cmds old_postuninstall_cmds \
17590 lt_prog_compiler_wl \
17591 lt_prog_compiler_pic \
17592 lt_prog_compiler_static \
17593 lt_prog_compiler_no_builtin_flag \
17594 export_dynamic_flag_spec \
17595 thread_safe_flag_spec \
17596 whole_archive_flag_spec \
17597 enable_shared_with_static_runtimes \
17599 old_archive_from_new_cmds \
17604 compiler_lib_search_path \
17606 archive_expsym_cmds \
17608 postuninstall_cmds \
17609 old_archive_from_expsyms_cmds \
17610 allow_undefined_flag \
17611 no_undefined_flag \
17612 export_symbols_cmds \
17613 hardcode_libdir_flag_spec \
17614 hardcode_libdir_flag_spec_ld \
17615 hardcode_libdir_separator \
17616 hardcode_automatic \
17618 module_expsym_cmds \
17619 lt_cv_prog_compiler_c_o \
17621 include_expsyms; do
17624 old_archive_cmds | \
17625 old_archive_from_new_cmds | \
17627 archive_expsym_cmds | \
17629 module_expsym_cmds | \
17630 old_archive_from_expsyms_cmds | \
17631 export_symbols_cmds | \
17632 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17633 postinstall_cmds | postuninstall_cmds | \
17634 old_postinstall_cmds | old_postuninstall_cmds | \
17635 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17636 # Double-quote double-evaled strings.
17637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17646 *'\$0 --fallback-echo"')
17647 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17651 cfgfile="${ofile}T"
17652 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17654 { echo "$as_me:$LINENO: creating $ofile" >&5
17655 echo "$as_me: creating $ofile" >&6;}
17657 cat <<__EOF__ >> "$cfgfile"
17660 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17661 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17662 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17664 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17665 # Free Software Foundation, Inc.
17667 # This file is part of GNU Libtool:
17668 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17670 # This program is free software; you can redistribute it and/or modify
17671 # it under the terms of the GNU General Public License as published by
17672 # the Free Software Foundation; either version 2 of the License, or
17673 # (at your option) any later version.
17675 # This program is distributed in the hope that it will be useful, but
17676 # WITHOUT ANY WARRANTY; without even the implied warranty of
17677 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17678 # General Public License for more details.
17680 # You should have received a copy of the GNU General Public License
17681 # along with this program; if not, write to the Free Software
17682 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17684 # As a special exception to the GNU General Public License, if you
17685 # distribute this file as part of a program that contains a
17686 # configuration script generated by Autoconf, you may include it under
17687 # the same distribution terms that you use for the rest of that program.
17689 # A sed program that does not truncate output.
17692 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17693 Xsed="$SED -e 1s/^X//"
17695 # The HP-UX ksh and POSIX shell print the target directory to stdout
17696 # if CDPATH is set.
17697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17699 # The names of the tagged configurations supported by this script.
17702 # ### BEGIN LIBTOOL CONFIG
17704 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17706 # Shell to use when invoking shell scripts.
17709 # Whether or not to build shared libraries.
17710 build_libtool_libs=$enable_shared
17712 # Whether or not to build static libraries.
17713 build_old_libs=$enable_static
17715 # Whether or not to add -lc for building shared libraries.
17716 build_libtool_need_lc=$archive_cmds_need_lc
17718 # Whether or not to disallow shared libs when runtime libs are static
17719 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17721 # Whether or not to optimize for fast installation.
17722 fast_install=$enable_fast_install
17725 host_alias=$host_alias
17729 # The build system.
17730 build_alias=$build_alias
17734 # An echo program that does not interpret backslashes.
17739 AR_FLAGS=$lt_AR_FLAGS
17744 # LTCC compiler flags.
17745 LTCFLAGS=$lt_LTCFLAGS
17747 # A language-specific compiler.
17750 # Is the compiler the GNU C compiler?
17756 # The linker used to build libraries.
17759 # Whether we need hard or soft links.
17762 # A BSD-compatible nm program.
17765 # A symbol stripping program
17768 # Used to examine libraries when file_magic_cmd begins "file"
17769 MAGIC_CMD=$MAGIC_CMD
17771 # Used on cygwin: DLL creation program.
17774 # Used on cygwin: object dumper.
17777 # Used on cygwin: assembler.
17780 # The name of the directory that contains temporary libtool files.
17783 # How to create reloadable object files.
17784 reload_flag=$lt_reload_flag
17785 reload_cmds=$lt_reload_cmds
17787 # How to pass a linker flag through the compiler.
17788 wl=$lt_lt_prog_compiler_wl
17790 # Object file suffix (normally "o").
17791 objext="$ac_objext"
17793 # Old archive suffix (normally "a").
17796 # Shared library suffix (normally ".so").
17797 shrext_cmds='$shrext_cmds'
17799 # Executable file suffix (normally "").
17802 # Additional compiler flags for building library objects.
17803 pic_flag=$lt_lt_prog_compiler_pic
17806 # What is the maximum length of a command?
17807 max_cmd_len=$lt_cv_sys_max_cmd_len
17809 # Does compiler simultaneously support -c and -o options?
17810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17812 # Must we lock files when doing compilation?
17813 need_locks=$lt_need_locks
17815 # Do we need the lib prefix for modules?
17816 need_lib_prefix=$need_lib_prefix
17818 # Do we need a version for libraries?
17819 need_version=$need_version
17821 # Whether dlopen is supported.
17822 dlopen_support=$enable_dlopen
17824 # Whether dlopen of programs is supported.
17825 dlopen_self=$enable_dlopen_self
17827 # Whether dlopen of statically linked programs is supported.
17828 dlopen_self_static=$enable_dlopen_self_static
17830 # Compiler flag to prevent dynamic linking.
17831 link_static_flag=$lt_lt_prog_compiler_static
17833 # Compiler flag to turn off builtin functions.
17834 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17836 # Compiler flag to allow reflexive dlopens.
17837 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17839 # Compiler flag to generate shared objects directly from archives.
17840 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17842 # Compiler flag to generate thread-safe objects.
17843 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17845 # Library versioning type.
17846 version_type=$version_type
17848 # Format of library name prefix.
17849 libname_spec=$lt_libname_spec
17851 # List of archive names. First name is the real one, the rest are links.
17852 # The last name is the one that the linker finds with -lNAME.
17853 library_names_spec=$lt_library_names_spec
17855 # The coded name of the library, if different from the real name.
17856 soname_spec=$lt_soname_spec
17858 # Commands used to build and install an old-style archive.
17860 old_archive_cmds=$lt_old_archive_cmds
17861 old_postinstall_cmds=$lt_old_postinstall_cmds
17862 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17864 # Create an old-style archive from a shared archive.
17865 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17867 # Create a temporary old-style archive to link instead of a shared archive.
17868 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17870 # Commands used to build and install a shared archive.
17871 archive_cmds=$lt_archive_cmds
17872 archive_expsym_cmds=$lt_archive_expsym_cmds
17873 postinstall_cmds=$lt_postinstall_cmds
17874 postuninstall_cmds=$lt_postuninstall_cmds
17876 # Commands used to build a loadable module (assumed same as above if empty)
17877 module_cmds=$lt_module_cmds
17878 module_expsym_cmds=$lt_module_expsym_cmds
17880 # Commands to strip libraries.
17881 old_striplib=$lt_old_striplib
17882 striplib=$lt_striplib
17884 # Dependencies to place before the objects being linked to create a
17886 predep_objects=$lt_predep_objects
17888 # Dependencies to place after the objects being linked to create a
17890 postdep_objects=$lt_postdep_objects
17892 # Dependencies to place before the objects being linked to create a
17894 predeps=$lt_predeps
17896 # Dependencies to place after the objects being linked to create a
17898 postdeps=$lt_postdeps
17900 # The library search path used internally by the compiler when linking
17901 # a shared library.
17902 compiler_lib_search_path=$lt_compiler_lib_search_path
17904 # Method to check whether dependent libraries are shared objects.
17905 deplibs_check_method=$lt_deplibs_check_method
17907 # Command to use when deplibs_check_method == file_magic.
17908 file_magic_cmd=$lt_file_magic_cmd
17910 # Flag that allows shared libraries with undefined symbols to be built.
17911 allow_undefined_flag=$lt_allow_undefined_flag
17913 # Flag that forces no undefined symbols.
17914 no_undefined_flag=$lt_no_undefined_flag
17916 # Commands used to finish a libtool library installation in a directory.
17917 finish_cmds=$lt_finish_cmds
17919 # Same as above, but a single script fragment to be evaled but not shown.
17920 finish_eval=$lt_finish_eval
17922 # Take the output of nm and produce a listing of raw symbols and C names.
17923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17925 # Transform the output of nm in a proper C declaration
17926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17928 # Transform the output of nm in a C name address pair
17929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17931 # This is the shared library runtime path variable.
17932 runpath_var=$runpath_var
17934 # This is the shared library path variable.
17935 shlibpath_var=$shlibpath_var
17937 # Is shlibpath searched before the hard-coded library search path?
17938 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17940 # How to hardcode a shared library path into an executable.
17941 hardcode_action=$hardcode_action
17943 # Whether we should hardcode library paths into libraries.
17944 hardcode_into_libs=$hardcode_into_libs
17946 # Flag to hardcode \$libdir into a binary during linking.
17947 # This must work even if \$libdir does not exist.
17948 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17950 # If ld is used when linking, flag to hardcode \$libdir into
17951 # a binary during linking. This must work even if \$libdir does
17953 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17955 # Whether we need a single -rpath flag with a separated argument.
17956 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17958 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17959 # resulting binary.
17960 hardcode_direct=$hardcode_direct
17962 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17963 # resulting binary.
17964 hardcode_minus_L=$hardcode_minus_L
17966 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17967 # the resulting binary.
17968 hardcode_shlibpath_var=$hardcode_shlibpath_var
17970 # Set to yes if building a shared library automatically hardcodes DIR into the library
17971 # and all subsequent libraries and executables linked against it.
17972 hardcode_automatic=$hardcode_automatic
17974 # Variables whose values should be saved in libtool wrapper scripts and
17975 # restored at relink time.
17976 variables_saved_for_relink="$variables_saved_for_relink"
17978 # Whether libtool must link a program against all its dependency libraries.
17979 link_all_deplibs=$link_all_deplibs
17981 # Compile-time system search path for libraries
17982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17984 # Run-time system search path for libraries
17985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17987 # Fix the shell variable \$srcfile for the compiler.
17988 fix_srcfile_path="$fix_srcfile_path"
17990 # Set to yes if exported symbols are required.
17991 always_export_symbols=$always_export_symbols
17993 # The commands to list exported symbols.
17994 export_symbols_cmds=$lt_export_symbols_cmds
17996 # The commands to extract the exported symbol list from a shared archive.
17997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17999 # Symbols that should not be listed in the preloaded symbols.
18000 exclude_expsyms=$lt_exclude_expsyms
18002 # Symbols that must always be exported.
18003 include_expsyms=$lt_include_expsyms
18005 # ### END LIBTOOL CONFIG
18012 cat <<\EOF >> "$cfgfile"
18014 # AIX sometimes has problems with the GCC collect2 program. For some
18015 # reason, if we set the COLLECT_NAMES environment variable, the problems
18016 # vanish in a puff of smoke.
18017 if test "X${COLLECT_NAMES+set}" != Xset; then
18019 export COLLECT_NAMES
18025 # We use sed instead of cat because bash on DJGPP gets confused if
18026 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18027 # text mode, it properly converts lines to CR/LF. This bash problem
18028 # is reportedly fixed, but why not run on old versions too?
18029 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18031 mv -f "$cfgfile" "$ofile" || \
18032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18036 # If there is no Makefile yet, we rely on a make rule to execute
18037 # `config.status --recheck' to rerun these tests and create the
18038 # libtool script then.
18039 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18040 if test -f "$ltmain_in"; then
18041 test -f Makefile && make "$ltmain"
18047 ac_cpp='$CPP $CPPFLAGS'
18048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18055 # Check whether --with-tags was given.
18056 if test "${with_tags+set}" = set; then
18057 withval=$with_tags; tagnames="$withval"
18061 if test -f "$ltmain" && test -n "$tagnames"; then
18062 if test ! -f "${ofile}"; then
18063 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18064 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18067 if test -z "$LTCC"; then
18068 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18069 if test -z "$LTCC"; then
18070 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18071 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18073 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18074 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18077 if test -z "$LTCFLAGS"; then
18078 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18081 # Extract list of available tagged configurations in $ofile.
18082 # Note that this assumes the entire list is on one line.
18083 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18086 for tagname in $tagnames; do
18088 # Check whether tagname contains only valid characters
18089 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18091 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18092 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18093 { (exit 1); exit 1; }; }
18097 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18099 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18100 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18101 { (exit 1); exit 1; }; }
18104 # Update the list of available tags.
18105 if test -n "$tagname"; then
18106 echo appending configuration tag \"$tagname\" to $ofile
18110 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18111 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18112 (test "X$CXX" != "Xg++"))) ; then
18114 ac_cpp='$CXXCPP $CPPFLAGS'
18115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18122 archive_cmds_need_lc_CXX=no
18123 allow_undefined_flag_CXX=
18124 always_export_symbols_CXX=no
18125 archive_expsym_cmds_CXX=
18126 export_dynamic_flag_spec_CXX=
18127 hardcode_direct_CXX=no
18128 hardcode_libdir_flag_spec_CXX=
18129 hardcode_libdir_flag_spec_ld_CXX=
18130 hardcode_libdir_separator_CXX=
18131 hardcode_minus_L_CXX=no
18132 hardcode_shlibpath_var_CXX=unsupported
18133 hardcode_automatic_CXX=no
18135 module_expsym_cmds_CXX=
18136 link_all_deplibs_CXX=unknown
18137 old_archive_cmds_CXX=$old_archive_cmds
18138 no_undefined_flag_CXX=
18139 whole_archive_flag_spec_CXX=
18140 enable_shared_with_static_runtimes_CXX=no
18142 # Dependencies to place before and after the object being linked:
18143 predep_objects_CXX=
18144 postdep_objects_CXX=
18147 compiler_lib_search_path_CXX=
18149 # Source file extension for C++ test sources.
18152 # Object file extension for compiled C++ test sources.
18156 # Code to be used in simple compile tests
18157 lt_simple_compile_test_code="int some_variable = 0;\n"
18159 # Code to be used in simple link tests
18160 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18162 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18164 # If no C compiler was specified, use CC.
18167 # If no C compiler flags were specified, use CFLAGS.
18168 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18170 # Allow CC to be a program name with arguments.
18174 # save warnings/boilerplate of simple test code
18175 ac_outfile=conftest.$ac_objext
18176 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18177 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18178 _lt_compiler_boilerplate=`cat conftest.err`
18181 ac_outfile=conftest.$ac_objext
18182 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18183 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18184 _lt_linker_boilerplate=`cat conftest.err`
18188 # Allow CC to be a program name with arguments.
18193 lt_save_with_gnu_ld=$with_gnu_ld
18194 lt_save_path_LD=$lt_cv_path_LD
18195 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18196 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18198 $as_unset lt_cv_prog_gnu_ld
18200 if test -n "${lt_cv_path_LDCXX+set}"; then
18201 lt_cv_path_LD=$lt_cv_path_LDCXX
18203 $as_unset lt_cv_path_LD
18205 test -z "${LDCXX+set}" || LD=$LDCXX
18209 for cc_temp in $compiler""; do
18211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18217 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18220 # We don't want -fno-exception wen compiling C++ code, so set the
18221 # no_builtin_flag separately
18222 if test "$GXX" = yes; then
18223 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18225 lt_prog_compiler_no_builtin_flag_CXX=
18228 if test "$GXX" = yes; then
18229 # Set up default GNU C++ configuration
18232 # Check whether --with-gnu-ld was given.
18233 if test "${with_gnu_ld+set}" = set; then
18234 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18240 if test "$GCC" = yes; then
18241 # Check if gcc -print-prog-name=ld gives a path.
18242 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18243 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18246 # gcc leaves a trailing carriage return which upsets mingw
18247 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18249 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18252 # Accept absolute paths.
18254 re_direlt='/[^/][^/]*/\.\./'
18255 # Canonicalize the pathname of ld
18256 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18257 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18258 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18260 test -z "$LD" && LD="$ac_prog"
18263 # If it fails, then pretend we aren't using GCC.
18267 # If it is relative, then search for the first ld in PATH.
18268 with_gnu_ld=unknown
18271 elif test "$with_gnu_ld" = yes; then
18272 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18273 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18275 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18276 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18278 if test "${lt_cv_path_LD+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 if test -z "$LD"; then
18282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18283 for ac_dir in $PATH; do
18285 test -z "$ac_dir" && ac_dir=.
18286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18287 lt_cv_path_LD="$ac_dir/$ac_prog"
18288 # Check to see if the program is GNU ld. I'd rather use --version,
18289 # but apparently some variants of GNU ld only accept -v.
18290 # Break only if it was the GNU/non-GNU ld that we prefer.
18291 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18292 *GNU* | *'with BFD'*)
18293 test "$with_gnu_ld" != no && break
18296 test "$with_gnu_ld" != yes && break
18303 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18307 LD="$lt_cv_path_LD"
18308 if test -n "$LD"; then
18309 { echo "$as_me:$LINENO: result: $LD" >&5
18310 echo "${ECHO_T}$LD" >&6; }
18312 { echo "$as_me:$LINENO: result: no" >&5
18313 echo "${ECHO_T}no" >&6; }
18315 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18316 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18317 { (exit 1); exit 1; }; }
18318 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18319 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18320 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18324 case `$LD -v 2>&1 </dev/null` in
18325 *GNU* | *'with BFD'*)
18326 lt_cv_prog_gnu_ld=yes
18329 lt_cv_prog_gnu_ld=no
18333 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18334 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18335 with_gnu_ld=$lt_cv_prog_gnu_ld
18339 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18340 # archiving commands below assume that GNU ld is being used.
18341 if test "$with_gnu_ld" = yes; then
18342 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18343 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'
18345 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18346 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18348 # If archive_cmds runs LD, not CC, wlarc should be empty
18349 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18350 # investigate it a little bit more. (MM)
18353 # ancient GNU ld didn't support --whole-archive et. al.
18354 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18355 grep 'no-whole-archive' > /dev/null; then
18356 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18358 whole_archive_flag_spec_CXX=
18364 # A generic and very simple default shared library creation
18365 # command for GNU C++ for the case where it uses the native
18366 # linker, instead of GNU ld. If possible, this setting should
18367 # overridden to take advantage of the native linker features on
18368 # the platform it is being used on.
18369 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18372 # Commands to make compiler produce verbose output that lists
18373 # what "hidden" libraries, object files and flags are used when
18374 # linking a shared library.
18375 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18383 # PORTME: fill in a description of your system's C++ link characteristics
18384 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18385 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18389 # FIXME: insert proper C++ library support
18393 if test "$host_cpu" = ia64; then
18394 # On IA64, the linker does run time linking by default, so we don't
18395 # have to do anything special.
18396 aix_use_runtimelinking=no
18397 exp_sym_flag='-Bexport'
18400 aix_use_runtimelinking=no
18402 # Test if we are trying to use run time linking or normal
18403 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18404 # need to do runtime linking.
18405 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18406 for ld_flag in $LDFLAGS; do
18409 aix_use_runtimelinking=yes
18417 exp_sym_flag='-bexport'
18418 no_entry_flag='-bnoentry'
18421 # When large executables or shared objects are built, AIX ld can
18422 # have problems creating the table of contents. If linking a library
18423 # or program results in "error TOC overflow" add -mminimal-toc to
18424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18427 archive_cmds_CXX=''
18428 hardcode_direct_CXX=yes
18429 hardcode_libdir_separator_CXX=':'
18430 link_all_deplibs_CXX=yes
18432 if test "$GXX" = yes; then
18433 case $host_os in aix4.[012]|aix4.[012].*)
18434 # We only want to do this on AIX 4.2 and lower, the check
18435 # below for broken collect2 doesn't work under 4.3+
18436 collect2name=`${CC} -print-prog-name=collect2`
18437 if test -f "$collect2name" && \
18438 strings "$collect2name" | grep resolve_lib_name >/dev/null
18440 # We have reworked collect2
18441 hardcode_direct_CXX=yes
18443 # We have old collect2
18444 hardcode_direct_CXX=unsupported
18445 # It fails to find uninstalled libraries when the uninstalled
18446 # path is not listed in the libpath. Setting hardcode_minus_L
18447 # to unsupported forces relinking
18448 hardcode_minus_L_CXX=yes
18449 hardcode_libdir_flag_spec_CXX='-L$libdir'
18450 hardcode_libdir_separator_CXX=
18454 shared_flag='-shared'
18455 if test "$aix_use_runtimelinking" = yes; then
18456 shared_flag="$shared_flag "'${wl}-G'
18460 if test "$host_cpu" = ia64; then
18461 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18462 # chokes on -Wl,-G. The following line is correct:
18465 if test "$aix_use_runtimelinking" = yes; then
18466 shared_flag='${wl}-G'
18468 shared_flag='${wl}-bM:SRE'
18473 # It seems that -bexpall does not export symbols beginning with
18474 # underscore (_), so it is better to generate a list of symbols to export.
18475 always_export_symbols_CXX=yes
18476 if test "$aix_use_runtimelinking" = yes; then
18477 # Warning - without using the other runtime loading flags (-brtl),
18478 # -berok will link without error, but may produce a broken library.
18479 allow_undefined_flag_CXX='-berok'
18480 # Determine the default libpath from the value encoded in an empty executable.
18481 cat >conftest.$ac_ext <<_ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18496 rm -f conftest.$ac_objext conftest$ac_exeext
18497 if { (ac_try="$ac_link"
18498 case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_link") 2>conftest.er1
18505 grep -v '^ *+' conftest.er1 >conftest.err
18507 cat conftest.err >&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } &&
18510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18511 { (case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_try") 2>&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } &&
18520 { ac_try='test -s conftest$ac_exeext'
18521 { (case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18533 # Check for a 64-bit object if we didn't find anything.
18534 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; }
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18543 rm -f core conftest.err conftest.$ac_objext \
18544 conftest$ac_exeext conftest.$ac_ext
18545 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18547 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18549 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"
18551 if test "$host_cpu" = ia64; then
18552 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18553 allow_undefined_flag_CXX="-z nodefs"
18554 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"
18556 # Determine the default libpath from the value encoded in an empty executable.
18557 cat >conftest.$ac_ext <<_ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18572 rm -f conftest.$ac_objext conftest$ac_exeext
18573 if { (ac_try="$ac_link"
18574 case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_link") 2>conftest.er1
18581 grep -v '^ *+' conftest.er1 >conftest.err
18583 cat conftest.err >&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); } &&
18586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18587 { (case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_try") 2>&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; } &&
18596 { ac_try='test -s conftest$ac_exeext'
18597 { (case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18602 (eval "$ac_try") 2>&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; }; then
18607 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18609 # Check for a 64-bit object if we didn't find anything.
18610 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; }
18613 echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18619 rm -f core conftest.err conftest.$ac_objext \
18620 conftest$ac_exeext conftest.$ac_ext
18621 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18623 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18624 # Warning - without using the other run time loading flags,
18625 # -berok will link without error, but may produce a broken library.
18626 no_undefined_flag_CXX=' ${wl}-bernotok'
18627 allow_undefined_flag_CXX=' ${wl}-berok'
18628 # Exported symbols can be pulled into shared objects from archives
18629 whole_archive_flag_spec_CXX='$convenience'
18630 archive_cmds_need_lc_CXX=yes
18631 # This is similar to how AIX traditionally builds its shared libraries.
18632 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'
18638 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18639 allow_undefined_flag_CXX=unsupported
18640 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18641 # support --undefined. This deserves some investigation. FIXME
18642 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18649 case $cc_basename in
18651 # FIXME: insert proper C++ library support
18657 cygwin* | mingw* | pw32*)
18658 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18659 # as there is no search path for DLLs.
18660 hardcode_libdir_flag_spec_CXX='-L$libdir'
18661 allow_undefined_flag_CXX=unsupported
18662 always_export_symbols_CXX=no
18663 enable_shared_with_static_runtimes_CXX=yes
18665 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18666 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'
18667 # If the export-symbols file already is a .def file (1st line
18668 # is EXPORTS), use it as is; otherwise, prepend...
18669 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18670 cp $export_symbols $output_objdir/$soname.def;
18672 echo EXPORTS > $output_objdir/$soname.def;
18673 cat $export_symbols >> $output_objdir/$soname.def;
18675 $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'
18680 darwin* | rhapsody*)
18682 rhapsody* | darwin1.[012])
18683 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18686 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18687 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18689 case ${MACOSX_DEPLOYMENT_TARGET} in
18691 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18694 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18700 archive_cmds_need_lc_CXX=no
18701 hardcode_direct_CXX=no
18702 hardcode_automatic_CXX=yes
18703 hardcode_shlibpath_var_CXX=unsupported
18704 whole_archive_flag_spec_CXX=''
18705 link_all_deplibs_CXX=yes
18707 if test "$GXX" = yes ; then
18708 lt_int_apple_cc_single_mod=no
18709 output_verbose_link_cmd='echo'
18710 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18711 lt_int_apple_cc_single_mod=yes
18713 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18714 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18716 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'
18718 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18719 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18720 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18721 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}'
18723 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}'
18725 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}'
18727 case $cc_basename in
18729 output_verbose_link_cmd='echo'
18730 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'
18731 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18732 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18733 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}'
18734 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}'
18744 case $cc_basename in
18746 # FIXME: insert proper C++ library support
18750 # Green Hills C++ Compiler
18751 # FIXME: insert proper C++ library support
18755 # FIXME: insert proper C++ library support
18761 # C++ shared libraries reported to be fairly broken before switch to ELF
18765 archive_cmds_need_lc_CXX=no
18767 freebsd* | kfreebsd*-gnu | dragonfly*)
18768 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18775 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18776 hardcode_libdir_separator_CXX=:
18777 export_dynamic_flag_spec_CXX='${wl}-E'
18778 hardcode_direct_CXX=yes
18779 hardcode_minus_L_CXX=yes # Not in the search PATH,
18780 # but as the default
18781 # location of the library.
18783 case $cc_basename in
18785 # FIXME: insert proper C++ library support
18789 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'
18790 # Commands to make compiler produce verbose output that lists
18791 # what "hidden" libraries, object files and flags are used when
18792 # linking a shared library.
18794 # There doesn't appear to be a way to prevent this compiler from
18795 # explicitly linking system object files so we need to strip them
18796 # from the output so that they don't get included in the library
18798 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'
18801 if test "$GXX" = yes; then
18802 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'
18804 # FIXME: insert proper C++ library support
18811 if test $with_gnu_ld = no; then
18812 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18813 hardcode_libdir_separator_CXX=:
18817 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18820 export_dynamic_flag_spec_CXX='${wl}-E'
18826 hardcode_direct_CXX=no
18827 hardcode_shlibpath_var_CXX=no
18830 hardcode_direct_CXX=yes
18831 hardcode_minus_L_CXX=yes # Not in the search PATH,
18832 # but as the default
18833 # location of the library.
18837 case $cc_basename in
18839 # FIXME: insert proper C++ library support
18845 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18854 # Commands to make compiler produce verbose output that lists
18855 # what "hidden" libraries, object files and flags are used when
18856 # linking a shared library.
18858 # There doesn't appear to be a way to prevent this compiler from
18859 # explicitly linking system object files so we need to strip them
18860 # from the output so that they don't get included in the library
18862 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'
18865 if test "$GXX" = yes; then
18866 if test $with_gnu_ld = no; then
18869 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18872 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18875 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'
18880 # FIXME: insert proper C++ library support
18887 hardcode_direct_CXX=no
18888 hardcode_shlibpath_var_CXX=no
18889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18890 export_dynamic_flag_spec_CXX='${wl}-E'
18891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18892 # Instead, shared libraries are loaded at an image base (0x10000000 by
18893 # default) and relocated if they conflict, which is a slow very memory
18894 # consuming and fragmenting process. To avoid this, we pick a random,
18895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18897 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'
18898 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'
18901 case $cc_basename in
18904 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'
18906 # Archives containing C++ object files must be created using
18907 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18908 # necessary to make sure instantiated templates are included
18910 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18913 if test "$GXX" = yes; then
18914 if test "$with_gnu_ld" = no; then
18915 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'
18917 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'
18920 link_all_deplibs_CXX=yes
18923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18924 hardcode_libdir_separator_CXX=:
18927 case $cc_basename in
18929 # Kuck and Associates, Inc. (KAI) C++ Compiler
18931 # KCC will only create a shared library if the output file
18932 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18933 # to its proper name (with version) after linking.
18934 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'
18935 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'
18936 # Commands to make compiler produce verbose output that lists
18937 # what "hidden" libraries, object files and flags are used when
18938 # linking a shared library.
18940 # There doesn't appear to be a way to prevent this compiler from
18941 # explicitly linking system object files so we need to strip them
18942 # from the output so that they don't get included in the library
18944 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'
18946 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18949 # Archives containing C++ object files must be created using
18950 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18951 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18956 # version 8.0 and above of icpc choke on multiply defined symbols
18957 # if we add $predep_objects and $postdep_objects, however 7.1 and
18958 # earlier do not add the objects themselves.
18959 case `$CC -V 2>&1` in
18961 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18962 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'
18964 *) # Version 8.0 or newer
18967 ia64*) tmp_idyn=' -i_dynamic';;
18969 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18970 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'
18973 archive_cmds_need_lc_CXX=no
18974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18976 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18979 # Portland Group C++ compiler
18980 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18981 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'
18983 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18985 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'
18989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18990 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'
18992 runpath_var=LD_RUN_PATH
18993 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18994 hardcode_libdir_separator_CXX=:
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
19000 # There doesn't appear to be a way to prevent this compiler from
19001 # explicitly linking system object files so we need to strip them
19002 # from the output so that they don't get included in the library
19004 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'
19009 # FIXME: insert proper C++ library support
19013 # FIXME: insert proper C++ library support
19017 case $cc_basename in
19019 # FIXME: insert proper C++ library support
19023 # FIXME: insert proper C++ library support
19029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19030 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19032 hardcode_libdir_flag_spec_CXX='-R$libdir'
19033 hardcode_direct_CXX=yes
19034 hardcode_shlibpath_var_CXX=no
19036 # Workaround some broken pre-1.5 toolchains
19037 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19040 # C++ shared libraries are fairly broken
19044 hardcode_direct_CXX=yes
19045 hardcode_shlibpath_var_CXX=no
19046 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19048 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19049 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19050 export_dynamic_flag_spec_CXX='${wl}-E'
19051 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19053 output_verbose_link_cmd='echo'
19056 case $cc_basename in
19058 # Kuck and Associates, Inc. (KAI) C++ Compiler
19060 # KCC will only create a shared library if the output file
19061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19062 # to its proper name (with version) after linking.
19063 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'
19065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19066 hardcode_libdir_separator_CXX=:
19068 # Archives containing C++ object files must be created using
19069 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19070 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19074 # Rational C++ 2.4.1
19075 # FIXME: insert proper C++ library support
19079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19080 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'
19082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19083 hardcode_libdir_separator_CXX=:
19085 # Commands to make compiler produce verbose output that lists
19086 # what "hidden" libraries, object files and flags are used when
19087 # linking a shared library.
19089 # There doesn't appear to be a way to prevent this compiler from
19090 # explicitly linking system object files so we need to strip them
19091 # from the output so that they don't get included in the library
19093 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'
19096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19098 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'
19100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19101 hardcode_libdir_separator_CXX=:
19103 # Commands to make compiler produce verbose output that lists
19104 # what "hidden" libraries, object files and flags are used when
19105 # linking a shared library.
19106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19109 # FIXME: insert proper C++ library support
19116 case $cc_basename in
19118 # Kuck and Associates, Inc. (KAI) C++ Compiler
19120 # KCC will only create a shared library if the output file
19121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19122 # to its proper name (with version) after linking.
19123 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'
19125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19126 hardcode_libdir_separator_CXX=:
19128 # Archives containing C++ object files must be created using
19129 # the KAI C++ compiler.
19130 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19133 # Rational C++ 2.4.1
19134 # FIXME: insert proper C++ library support
19138 allow_undefined_flag_CXX=' -expect_unresolved \*'
19139 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'
19140 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19141 echo "-hidden">> $lib.exp~
19142 $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~
19145 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19146 hardcode_libdir_separator_CXX=:
19148 # Commands to make compiler produce verbose output that lists
19149 # what "hidden" libraries, object files and flags are used when
19150 # linking a shared library.
19152 # There doesn't appear to be a way to prevent this compiler from
19153 # explicitly linking system object files so we need to strip them
19154 # from the output so that they don't get included in the library
19156 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'
19159 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19161 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'
19163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19164 hardcode_libdir_separator_CXX=:
19166 # Commands to make compiler produce verbose output that lists
19167 # what "hidden" libraries, object files and flags are used when
19168 # linking a shared library.
19169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19172 # FIXME: insert proper C++ library support
19179 # FIXME: insert proper C++ library support
19183 case $cc_basename in
19186 # FIXME: insert proper C++ library support
19191 # FIXME: insert proper C++ library support
19195 # FIXME: insert proper C++ library support
19201 case $cc_basename in
19203 # Sun C++ 4.2, 5.x and Centerline C++
19204 archive_cmds_need_lc_CXX=yes
19205 no_undefined_flag_CXX=' -zdefs'
19206 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19208 $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'
19210 hardcode_libdir_flag_spec_CXX='-R$libdir'
19211 hardcode_shlibpath_var_CXX=no
19213 solaris2.[0-5] | solaris2.[0-5].*) ;;
19215 # The C++ compiler is used as linker so we must use $wl
19216 # flag to pass the commands to the underlying system
19217 # linker. We must also pass each convience library through
19218 # to the system linker between allextract/defaultextract.
19219 # The C++ compiler will combine linker options so we
19220 # cannot just pass the convience library names through
19222 # Supported since Solaris 2.6 (maybe 2.5.1?)
19223 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'
19226 link_all_deplibs_CXX=yes
19228 output_verbose_link_cmd='echo'
19230 # Archives containing C++ object files must be created using
19231 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19232 # necessary to make sure instantiated templates are included
19234 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19237 # Green Hills C++ Compiler
19238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19240 # The C++ compiler must be used to create the archive.
19241 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19244 # GNU C++ compiler with Solaris linker
19245 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19246 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19247 if $CC --version | grep -v '^2\.7' > /dev/null; then
19248 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19249 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19250 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19252 # Commands to make compiler produce verbose output that lists
19253 # what "hidden" libraries, object files and flags are used when
19254 # linking a shared library.
19255 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19257 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19259 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19260 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19261 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19263 # Commands to make compiler produce verbose output that lists
19264 # what "hidden" libraries, object files and flags are used when
19265 # linking a shared library.
19266 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19269 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19274 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19275 no_undefined_flag_CXX='${wl}-z,text'
19276 archive_cmds_need_lc_CXX=no
19277 hardcode_shlibpath_var_CXX=no
19278 runpath_var='LD_RUN_PATH'
19280 case $cc_basename in
19282 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19283 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19286 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19287 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19291 sysv5* | sco3.2v5* | sco5v6*)
19292 # Note: We can NOT use -z defs as we might desire, because we do not
19293 # link with -lc, and that would cause any symbols used from libc to
19294 # always be unresolved, which means just about no library would
19295 # ever link correctly. If we're not using GNU ld we use -z text
19296 # though, which does catch some bad symbols but isn't as heavy-handed
19298 # For security reasons, it is highly recommended that you always
19299 # use absolute paths for naming shared libraries, and exclude the
19300 # DT_RUNPATH tag from executables and libraries. But doing so
19301 # requires that you compile everything twice, which is a pain.
19302 # So that behaviour is only enabled if SCOABSPATH is set to a
19303 # non-empty value in the environment. Most likely only useful for
19304 # creating official distributions of packages.
19305 # This is a hack until libtool officially supports absolute path
19306 # names for shared libraries.
19307 no_undefined_flag_CXX='${wl}-z,text'
19308 allow_undefined_flag_CXX='${wl}-z,nodefs'
19309 archive_cmds_need_lc_CXX=no
19310 hardcode_shlibpath_var_CXX=no
19311 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19312 hardcode_libdir_separator_CXX=':'
19313 link_all_deplibs_CXX=yes
19314 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19315 runpath_var='LD_RUN_PATH'
19317 case $cc_basename in
19319 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19320 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19323 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19324 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19329 case $cc_basename in
19331 # NonStop-UX NCC 3.20
19332 # FIXME: insert proper C++ library support
19336 # FIXME: insert proper C++ library support
19342 # FIXME: insert proper C++ library support
19346 # FIXME: insert proper C++ library support
19350 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19351 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19352 test "$ld_shlibs_CXX" = no && can_build_shared=no
19358 cat > conftest.$ac_ext <<EOF
19362 Foo (void) { a = 0; }
19368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369 (eval $ac_compile) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; then
19373 # Parse the compiler output and extract the necessary
19374 # objects, libraries and library flags.
19376 # Sentinel used to keep track of whether or not we are before
19377 # the conftest object file.
19378 pre_test_object_deps_done=no
19380 # The `*' in the case matches for architectures that use `case' in
19381 # $output_verbose_cmd can trigger glob expansion during the loop
19382 # eval without this substitution.
19383 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19385 for p in `eval $output_verbose_link_cmd`; do
19389 # Some compilers place space between "-{L,R}" and the path.
19390 # Remove the space.
19391 if test $p = "-L" \
19392 || test $p = "-R"; then
19399 if test "$pre_test_object_deps_done" = no; then
19402 # Internal compiler library paths should come after those
19403 # provided the user. The postdeps already come after the
19404 # user supplied libs so there is no need to process them.
19405 if test -z "$compiler_lib_search_path_CXX"; then
19406 compiler_lib_search_path_CXX="${prev}${p}"
19408 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19411 # The "-l" case would never come before the object being
19412 # linked, so don't bother handling this case.
19415 if test -z "$postdeps_CXX"; then
19416 postdeps_CXX="${prev}${p}"
19418 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19424 # This assumes that the test object file only shows up
19425 # once in the compiler output.
19426 if test "$p" = "conftest.$objext"; then
19427 pre_test_object_deps_done=yes
19431 if test "$pre_test_object_deps_done" = no; then
19432 if test -z "$predep_objects_CXX"; then
19433 predep_objects_CXX="$p"
19435 predep_objects_CXX="$predep_objects_CXX $p"
19438 if test -z "$postdep_objects_CXX"; then
19439 postdep_objects_CXX="$p"
19441 postdep_objects_CXX="$postdep_objects_CXX $p"
19446 *) ;; # Ignore the rest.
19454 echo "libtool.m4: error: problem compiling CXX test program"
19457 $rm -f confest.$objext
19459 # PORTME: override above test on systems where it is broken
19462 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19463 # hack all around it, let's just trust "g++" to DTRT.
19464 predep_objects_CXX=
19465 postdep_objects_CXX=
19470 case $cc_basename in
19472 # Adding this requires a known-good setup of shared libraries for
19473 # Sun compiler versions before 5.6, else PIC objects from an old
19474 # archive will be linked into the output, leading to subtle bugs.
19475 postdeps_CXX='-lCstd -lCrun'
19482 case " $postdeps_CXX " in
19483 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19486 lt_prog_compiler_wl_CXX=
19487 lt_prog_compiler_pic_CXX=
19488 lt_prog_compiler_static_CXX=
19490 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19491 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19493 # C++ specific cases for pic, static, wl, etc.
19494 if test "$GXX" = yes; then
19495 lt_prog_compiler_wl_CXX='-Wl,'
19496 lt_prog_compiler_static_CXX='-static'
19500 # All AIX code is PIC.
19501 if test "$host_cpu" = ia64; then
19502 # AIX 5 now supports IA64 processor
19503 lt_prog_compiler_static_CXX='-Bstatic'
19507 # FIXME: we need at least 68020 code to build shared libraries, but
19508 # adding the `-m68020' flag to GCC prevents building anything better,
19510 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19512 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19513 # PIC is the default for these OSes.
19515 mingw* | os2* | pw32*)
19516 # This hack is so that the source file can tell whether it is being
19517 # built for inclusion in a dll (and should export symbols for example).
19518 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19520 darwin* | rhapsody*)
19521 # PIC is the default on this platform
19522 # Common symbols not allowed in MH_DYLIB files
19523 lt_prog_compiler_pic_CXX='-fno-common'
19526 # DJGPP does not support shared libraries at all
19527 lt_prog_compiler_pic_CXX=
19530 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19531 # Instead, we relocate shared libraries at runtime.
19534 if test -d /usr/nec; then
19535 lt_prog_compiler_pic_CXX=-Kconform_pic
19539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19540 # not for PA HP-UX.
19545 lt_prog_compiler_pic_CXX='-fPIC'
19550 lt_prog_compiler_pic_CXX='-fPIC'
19556 # All AIX code is PIC.
19557 if test "$host_cpu" = ia64; then
19558 # AIX 5 now supports IA64 processor
19559 lt_prog_compiler_static_CXX='-Bstatic'
19561 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19565 case $cc_basename in
19567 # Green Hills C++ Compiler
19568 # _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"
19573 # PIC is the default on this platform
19574 # Common symbols not allowed in MH_DYLIB files
19575 case $cc_basename in
19577 lt_prog_compiler_pic_CXX='-qnocommon'
19578 lt_prog_compiler_wl_CXX='-Wl,'
19583 case $cc_basename in
19585 lt_prog_compiler_pic_CXX='-KPIC'
19588 # Green Hills C++ Compiler
19589 lt_prog_compiler_pic_CXX='-pic'
19595 freebsd* | kfreebsd*-gnu | dragonfly*)
19596 # FreeBSD uses GNU C++
19598 hpux9* | hpux10* | hpux11*)
19599 case $cc_basename in
19601 lt_prog_compiler_wl_CXX='-Wl,'
19602 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19603 if test "$host_cpu" != ia64; then
19604 lt_prog_compiler_pic_CXX='+Z'
19608 lt_prog_compiler_wl_CXX='-Wl,'
19609 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19615 lt_prog_compiler_pic_CXX='+Z'
19624 # This is c89, which is MS Visual C++ (no shared libs)
19625 # Anyone wants to do a port?
19627 irix5* | irix6* | nonstopux*)
19628 case $cc_basename in
19630 lt_prog_compiler_wl_CXX='-Wl,'
19631 lt_prog_compiler_static_CXX='-non_shared'
19632 # CC pic flag -KPIC is the default.
19639 case $cc_basename in
19642 lt_prog_compiler_wl_CXX='--backend -Wl,'
19643 lt_prog_compiler_pic_CXX='-fPIC'
19647 lt_prog_compiler_wl_CXX='-Wl,'
19648 lt_prog_compiler_pic_CXX='-KPIC'
19649 lt_prog_compiler_static_CXX='-static'
19652 # Portland Group C++ compiler.
19653 lt_prog_compiler_wl_CXX='-Wl,'
19654 lt_prog_compiler_pic_CXX='-fpic'
19655 lt_prog_compiler_static_CXX='-Bstatic'
19659 # Make sure the PIC flag is empty. It appears that all Alpha
19660 # Linux and Compaq Tru64 Unix objects are PIC.
19661 lt_prog_compiler_pic_CXX=
19662 lt_prog_compiler_static_CXX='-non_shared'
19673 case $cc_basename in
19675 lt_prog_compiler_pic_CXX='-W c,exportall'
19683 osf3* | osf4* | osf5*)
19684 case $cc_basename in
19686 lt_prog_compiler_wl_CXX='--backend -Wl,'
19689 # Rational C++ 2.4.1
19690 lt_prog_compiler_pic_CXX='-pic'
19693 # Digital/Compaq C++
19694 lt_prog_compiler_wl_CXX='-Wl,'
19695 # Make sure the PIC flag is empty. It appears that all Alpha
19696 # Linux and Compaq Tru64 Unix objects are PIC.
19697 lt_prog_compiler_pic_CXX=
19698 lt_prog_compiler_static_CXX='-non_shared'
19707 case $cc_basename in
19709 # Sun C++ 4.2, 5.x and Centerline C++
19710 lt_prog_compiler_pic_CXX='-KPIC'
19711 lt_prog_compiler_static_CXX='-Bstatic'
19712 lt_prog_compiler_wl_CXX='-Qoption ld '
19715 # Green Hills C++ Compiler
19716 lt_prog_compiler_pic_CXX='-PIC'
19723 case $cc_basename in
19726 lt_prog_compiler_pic_CXX='-pic'
19727 lt_prog_compiler_static_CXX='-Bstatic'
19731 lt_prog_compiler_pic_CXX='-pic'
19738 case $cc_basename in
19740 # NonStop-UX NCC 3.20
19741 lt_prog_compiler_pic_CXX='-KPIC'
19747 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19748 case $cc_basename in
19750 lt_prog_compiler_wl_CXX='-Wl,'
19751 lt_prog_compiler_pic_CXX='-KPIC'
19752 lt_prog_compiler_static_CXX='-Bstatic'
19759 lt_prog_compiler_can_build_shared_CXX=no
19764 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19765 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19768 # Check to make sure the PIC flag actually works.
19770 if test -n "$lt_prog_compiler_pic_CXX"; then
19772 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19773 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19774 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 lt_prog_compiler_pic_works_CXX=no
19778 ac_outfile=conftest.$ac_objext
19779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19780 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19781 # Insert the option either (1) after the last *FLAGS variable, or
19782 # (2) before a word containing "conftest.", or (3) at the end.
19783 # Note that $ac_compile itself does not contain backslashes and begins
19784 # with a dollar sign (not a hyphen), so the echo should work correctly.
19785 # The option is referenced via a variable to avoid confusing sed.
19786 lt_compile=`echo "$ac_compile" | $SED \
19787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19789 -e 's:$: $lt_compiler_flag:'`
19790 (eval echo "\"\$as_me:19790: $lt_compile\"" >&5)
19791 (eval "$lt_compile" 2>conftest.err)
19793 cat conftest.err >&5
19794 echo "$as_me:19794: \$? = $ac_status" >&5
19795 if (exit $ac_status) && test -s "$ac_outfile"; then
19796 # The compiler can only warn and ignore the option if not recognized
19797 # So say no if there are warnings other than the usual output.
19798 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19800 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19801 lt_prog_compiler_pic_works_CXX=yes
19807 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19808 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19810 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19811 case $lt_prog_compiler_pic_CXX in
19813 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19816 lt_prog_compiler_pic_CXX=
19817 lt_prog_compiler_can_build_shared_CXX=no
19822 # For platforms which do not support PIC, -DPIC is meaningless:
19824 lt_prog_compiler_pic_CXX=
19827 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19832 # Check to make sure the static flag actually works.
19834 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19835 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19836 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19837 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 lt_prog_compiler_static_works_CXX=no
19841 save_LDFLAGS="$LDFLAGS"
19842 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19843 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19845 # The linker can only warn and ignore the option if not recognized
19846 # So say no if there are warnings
19847 if test -s conftest.err; then
19848 # Append any errors to the config.log.
19849 cat conftest.err 1>&5
19850 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19852 if diff conftest.exp conftest.er2 >/dev/null; then
19853 lt_prog_compiler_static_works_CXX=yes
19856 lt_prog_compiler_static_works_CXX=yes
19860 LDFLAGS="$save_LDFLAGS"
19863 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19864 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19866 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19869 lt_prog_compiler_static_CXX=
19873 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19874 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19875 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19878 lt_cv_prog_compiler_c_o_CXX=no
19879 $rm -r conftest 2>/dev/null
19883 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19885 lt_compiler_flag="-o out/conftest2.$ac_objext"
19886 # Insert the option either (1) after the last *FLAGS variable, or
19887 # (2) before a word containing "conftest.", or (3) at the end.
19888 # Note that $ac_compile itself does not contain backslashes and begins
19889 # with a dollar sign (not a hyphen), so the echo should work correctly.
19890 lt_compile=`echo "$ac_compile" | $SED \
19891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19893 -e 's:$: $lt_compiler_flag:'`
19894 (eval echo "\"\$as_me:19894: $lt_compile\"" >&5)
19895 (eval "$lt_compile" 2>out/conftest.err)
19897 cat out/conftest.err >&5
19898 echo "$as_me:19898: \$? = $ac_status" >&5
19899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19901 # The compiler can only warn and ignore the option if not recognized
19902 # So say no if there are warnings
19903 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19906 lt_cv_prog_compiler_c_o_CXX=yes
19911 # SGI C++ compiler will create directory out/ii_files/ for
19912 # template instantiation
19913 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19914 $rm out/* && rmdir out
19920 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19924 hard_links="nottested"
19925 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19926 # do not overwrite the value of need_locks provided by the user
19927 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19933 ln conftest.a conftest.b 2>&5 || hard_links=no
19934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19935 { echo "$as_me:$LINENO: result: $hard_links" >&5
19936 echo "${ECHO_T}$hard_links" >&6; }
19937 if test "$hard_links" = no; then
19938 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19946 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19949 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19952 # If we're using GNU nm, then we don't want the "-C" option.
19953 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19954 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19955 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'
19957 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'
19961 export_symbols_cmds_CXX="$ltdll_cmds"
19964 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'
19967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19971 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19972 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19973 test "$ld_shlibs_CXX" = no && can_build_shared=no
19976 # Do we need to explicitly link libc?
19978 case "x$archive_cmds_need_lc_CXX" in
19980 # Assume -lc should be added
19981 archive_cmds_need_lc_CXX=yes
19983 if test "$enable_shared" = yes && test "$GCC" = yes; then
19984 case $archive_cmds_CXX in
19986 # FIXME: we may have to deal with multi-command sequences.
19989 # Test whether the compiler implicitly links with -lc since on some
19990 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19991 # to ld, don't add -lc before -lgcc.
19992 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19993 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19998 (eval $ac_compile) 2>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } 2>conftest.err; then
20004 libobjs=conftest.$ac_objext
20006 wl=$lt_prog_compiler_wl_CXX
20007 pic_flag=$lt_prog_compiler_pic_CXX
20013 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20014 allow_undefined_flag_CXX=
20015 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20016 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }
20021 archive_cmds_need_lc_CXX=no
20023 archive_cmds_need_lc_CXX=yes
20025 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20027 cat conftest.err 1>&5
20030 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20031 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20038 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20040 library_names_spec=
20041 libname_spec='lib$name'
20045 postuninstall_cmds=
20049 shlibpath_overrides_runpath=unknown
20051 dynamic_linker="$host_os ld.so"
20052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20053 if test "$GCC" = yes; then
20054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20055 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20056 # if the path contains ";" then we assume it to be the separator
20057 # otherwise default to the standard path separator (i.e. ":") - it is
20058 # assumed that no part of a normal pathname contains ";" but that should
20059 # okay in the real world where ";" in dirpaths is itself problematic.
20060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20065 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20067 need_lib_prefix=unknown
20068 hardcode_into_libs=no
20070 # when you set need_version to no, make sure it does not cause -set_version
20071 # flags to be left without arguments
20072 need_version=unknown
20077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20078 shlibpath_var=LIBPATH
20080 # AIX 3 has no versioning support, so we append a major version to the name.
20081 soname_spec='${libname}${release}${shared_ext}$major'
20088 hardcode_into_libs=yes
20089 if test "$host_cpu" = ia64; then
20090 # AIX 5 supports IA64
20091 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20092 shlibpath_var=LD_LIBRARY_PATH
20094 # With GCC up to 2.95.x, collect2 would create an import file
20095 # for dependence libraries. The import file would start with
20096 # the line `#! .'. This would cause the generated library to
20097 # depend on `.', always an invalid library. This was fixed in
20098 # development snapshots of GCC prior to 3.0.
20100 aix4 | aix4.[01] | aix4.[01].*)
20101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20103 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20106 can_build_shared=no
20110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20111 # soname into executable. Probably we can add versioning support to
20112 # collect2, so additional links can be useful in future.
20113 if test "$aix_use_runtimelinking" = yes; then
20114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20115 # instead of lib<name>.a to let people know that these are not
20116 # typical AIX shared libraries.
20117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20119 # We preserve .a as extension for shared libraries through AIX4.2
20120 # and later when we are not doing run time linking.
20121 library_names_spec='${libname}${release}.a $libname.a'
20122 soname_spec='${libname}${release}${shared_ext}$major'
20124 shlibpath_var=LIBPATH
20129 library_names_spec='$libname.ixlibrary $libname.a'
20130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20131 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'
20135 library_names_spec='${libname}${shared_ext}'
20136 dynamic_linker="$host_os ld.so"
20137 shlibpath_var=LIBRARY_PATH
20143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20144 soname_spec='${libname}${release}${shared_ext}$major'
20145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20146 shlibpath_var=LD_LIBRARY_PATH
20147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20149 # the default ld.so.conf also contains /usr/contrib/lib and
20150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20151 # libtool to hard-code these into programs
20154 cygwin* | mingw* | pw32*)
20155 version_type=windows
20160 case $GCC,$host_os in
20161 yes,cygwin* | yes,mingw* | yes,pw32*)
20162 library_names_spec='$libname.dll.a'
20163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20164 postinstall_cmds='base_file=`basename \${file}`~
20165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20166 dldir=$destdir/`dirname \$dlpath`~
20167 test -d \$dldir || mkdir -p \$dldir~
20168 $install_prog $dir/$dlname \$dldir/$dlname~
20169 chmod a+x \$dldir/$dlname'
20170 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20171 dlpath=$dir/\$dldll~
20173 shlibpath_overrides_runpath=yes
20177 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20178 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20179 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20182 # MinGW DLLs use traditional 'lib' prefix
20183 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20184 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20185 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20186 # It is most probably a Windows format PATH printed by
20187 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20188 # path with ; separators, and with drive letters. We can handle the
20189 # drive letters (cygwin fileutils understands them), so leave them,
20190 # especially as we might pass files found there to a mingw objdump,
20191 # which wouldn't understand a cygwinified path. Ahh.
20192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20198 # pw32 DLLs use 'pw' prefix rather than 'lib'
20199 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20205 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20208 dynamic_linker='Win32 ld.exe'
20209 # FIXME: first we should search . and the directory the executable is in
20213 darwin* | rhapsody*)
20214 dynamic_linker="$host_os dyld"
20215 version_type=darwin
20218 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20219 soname_spec='${libname}${release}${major}$shared_ext'
20220 shlibpath_overrides_runpath=yes
20221 shlibpath_var=DYLD_LIBRARY_PATH
20222 shrext_cmds='.dylib'
20223 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20224 if test "$GCC" = yes; then
20225 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"`
20227 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20229 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20237 soname_spec='${libname}${release}${shared_ext}$major'
20238 shlibpath_var=LD_LIBRARY_PATH
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 shlibpath_var=LD_LIBRARY_PATH
20252 shlibpath_overrides_runpath=no
20253 hardcode_into_libs=yes
20254 dynamic_linker='GNU ld.so'
20257 freebsd* | dragonfly*)
20258 # DragonFly does not have aout. When/if they implement a new
20259 # versioning mechanism, adjust this.
20260 if test -x /usr/bin/objformat; then
20261 objformat=`/usr/bin/objformat`
20264 freebsd[123]*) objformat=aout ;;
20265 *) objformat=elf ;;
20268 version_type=freebsd-$objformat
20269 case $version_type in
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20280 shlibpath_var=LD_LIBRARY_PATH
20283 shlibpath_overrides_runpath=yes
20285 freebsd3.[01]* | freebsdelf3.[01]*)
20286 shlibpath_overrides_runpath=yes
20287 hardcode_into_libs=yes
20289 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20290 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20291 shlibpath_overrides_runpath=no
20292 hardcode_into_libs=yes
20294 freebsd*) # from 4.6 on
20295 shlibpath_overrides_runpath=yes
20296 hardcode_into_libs=yes
20305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20306 soname_spec='${libname}${release}${shared_ext}$major'
20307 shlibpath_var=LD_LIBRARY_PATH
20308 hardcode_into_libs=yes
20311 hpux9* | hpux10* | hpux11*)
20312 # Give a soname corresponding to the major version so that dld.sl refuses to
20313 # link against other versions.
20320 hardcode_into_libs=yes
20321 dynamic_linker="$host_os dld.so"
20322 shlibpath_var=LD_LIBRARY_PATH
20323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325 soname_spec='${libname}${release}${shared_ext}$major'
20326 if test "X$HPUX_IA64_MODE" = X32; then
20327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20335 hardcode_into_libs=yes
20336 dynamic_linker="$host_os dld.sl"
20337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20340 soname_spec='${libname}${release}${shared_ext}$major'
20341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20346 dynamic_linker="$host_os dld.sl"
20347 shlibpath_var=SHLIB_PATH
20348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20350 soname_spec='${libname}${release}${shared_ext}$major'
20353 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20354 postinstall_cmds='chmod 555 $lib'
20361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20362 soname_spec='${libname}${release}${shared_ext}$major'
20363 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20364 shlibpath_var=LD_LIBRARY_PATH
20365 shlibpath_overrides_runpath=no
20366 hardcode_into_libs=yes
20369 irix5* | irix6* | nonstopux*)
20371 nonstopux*) version_type=nonstopux ;;
20373 if test "$lt_cv_prog_gnu_ld" = yes; then
20381 soname_spec='${libname}${release}${shared_ext}$major'
20382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20384 irix5* | nonstopux*)
20385 libsuff= shlibsuff=
20388 case $LD in # libtool.m4 will add one of these switches to LD
20389 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20390 libsuff= shlibsuff= libmagic=32-bit;;
20391 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20392 libsuff=32 shlibsuff=N32 libmagic=N32;;
20393 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20394 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20395 *) libsuff= shlibsuff= libmagic=never-match;;
20399 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20400 shlibpath_overrides_runpath=no
20401 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20402 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20403 hardcode_into_libs=yes
20406 # No shared lib support for Linux oldld, aout, or coff.
20407 linux*oldld* | linux*aout* | linux*coff*)
20411 # This must be Linux ELF.
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20417 soname_spec='${libname}${release}${shared_ext}$major'
20418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20419 shlibpath_var=LD_LIBRARY_PATH
20420 shlibpath_overrides_runpath=no
20421 # This implies no fast_install, which is unacceptable.
20422 # Some rework will be needed to allow for fast_install
20423 # before this can be enabled.
20424 hardcode_into_libs=yes
20426 # Append ld.so.conf contents to the search path
20427 if test -f /etc/ld.so.conf; then
20428 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' ' '`
20429 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20432 # We used to test for /lib/ld.so.1 and disable shared libraries on
20433 # powerpc, because MkLinux only supported shared libraries with the
20434 # GNU dynamic linker. Since this was broken with cross compilers,
20435 # most powerpc-linux boxes support dynamic linking these days and
20436 # people can always --disable-shared, the test was removed, and we
20437 # assume the GNU/Linux dynamic linker is in use.
20438 dynamic_linker='GNU/Linux ld.so'
20445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20446 soname_spec='${libname}${release}${shared_ext}$major'
20447 shlibpath_var=LD_LIBRARY_PATH
20448 shlibpath_overrides_runpath=no
20449 hardcode_into_libs=yes
20450 dynamic_linker='GNU ld.so'
20457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20460 dynamic_linker='NetBSD (a.out) ld.so'
20462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20463 soname_spec='${libname}${release}${shared_ext}$major'
20464 dynamic_linker='NetBSD ld.elf_so'
20466 shlibpath_var=LD_LIBRARY_PATH
20467 shlibpath_overrides_runpath=yes
20468 hardcode_into_libs=yes
20473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 shlibpath_overrides_runpath=yes
20482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 shlibpath_var=LD_LIBRARY_PATH
20485 shlibpath_overrides_runpath=yes
20490 sys_lib_dlsearch_path_spec="/usr/lib"
20492 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20494 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20495 *) need_version=no ;;
20497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20499 shlibpath_var=LD_LIBRARY_PATH
20500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20502 openbsd2.[89] | openbsd2.[89].*)
20503 shlibpath_overrides_runpath=no
20506 shlibpath_overrides_runpath=yes
20510 shlibpath_overrides_runpath=yes
20515 libname_spec='$name'
20518 library_names_spec='$libname${shared_ext} $libname.a'
20519 dynamic_linker='OS/2 ld.exe'
20520 shlibpath_var=LIBPATH
20523 osf3* | osf4* | osf5*)
20527 soname_spec='${libname}${release}${shared_ext}$major'
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529 shlibpath_var=LD_LIBRARY_PATH
20530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20539 soname_spec='${libname}${release}${shared_ext}$major'
20540 shlibpath_var=LD_LIBRARY_PATH
20541 shlibpath_overrides_runpath=yes
20542 hardcode_into_libs=yes
20543 # ldd complains unless libraries are executable
20544 postinstall_cmds='chmod +x $lib'
20549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20551 shlibpath_var=LD_LIBRARY_PATH
20552 shlibpath_overrides_runpath=yes
20553 if test "$with_gnu_ld" = yes; then
20561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20562 soname_spec='${libname}${release}${shared_ext}$major'
20563 shlibpath_var=LD_LIBRARY_PATH
20564 case $host_vendor in
20566 shlibpath_overrides_runpath=no
20568 export_dynamic_flag_spec='${wl}-Blargedynsym'
20569 runpath_var=LD_RUN_PATH
20577 shlibpath_overrides_runpath=no
20578 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20584 if test -d /usr/nec ;then
20586 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20587 soname_spec='$libname${shared_ext}.$major'
20588 shlibpath_var=LD_LIBRARY_PATH
20592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20593 version_type=freebsd-elf
20596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20597 soname_spec='${libname}${release}${shared_ext}$major'
20598 shlibpath_var=LD_LIBRARY_PATH
20599 hardcode_into_libs=yes
20600 if test "$with_gnu_ld" = yes; then
20601 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20602 shlibpath_overrides_runpath=no
20604 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20605 shlibpath_overrides_runpath=yes
20608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20612 sys_lib_dlsearch_path_spec='/usr/lib'
20617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618 soname_spec='${libname}${release}${shared_ext}$major'
20619 shlibpath_var=LD_LIBRARY_PATH
20626 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20627 echo "${ECHO_T}$dynamic_linker" >&6; }
20628 test "$dynamic_linker" = no && can_build_shared=no
20630 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20631 if test "$GCC" = yes; then
20632 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20635 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20636 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20637 hardcode_action_CXX=
20638 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20639 test -n "$runpath_var_CXX" || \
20640 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20642 # We can hardcode non-existant directories.
20643 if test "$hardcode_direct_CXX" != no &&
20644 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20645 # have to relink, otherwise we might link with an installed library
20646 # when we should be linking with a yet-to-be-installed one
20647 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20648 test "$hardcode_minus_L_CXX" != no; then
20649 # Linking always hardcodes the temporary library directory.
20650 hardcode_action_CXX=relink
20652 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20653 hardcode_action_CXX=immediate
20656 # We cannot hardcode anything, or else we can only hardcode existing
20658 hardcode_action_CXX=unsupported
20660 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20661 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20663 if test "$hardcode_action_CXX" = relink; then
20664 # Fast installation is not supported
20665 enable_fast_install=no
20666 elif test "$shlibpath_overrides_runpath" = yes ||
20667 test "$enable_shared" = no; then
20668 # Fast installation is not necessary
20669 enable_fast_install=needless
20673 # The else clause should only fire when bootstrapping the
20674 # libtool distribution, otherwise you forgot to ship ltmain.sh
20675 # with your package, and you will get complaints that there are
20676 # no rules to generate ltmain.sh.
20677 if test -f "$ltmain"; then
20678 # See if we are running on zsh, and set the options which allow our commands through
20679 # without removal of \ escapes.
20680 if test -n "${ZSH_VERSION+set}" ; then
20681 setopt NO_GLOB_SUBST
20683 # Now quote all the things that may contain metacharacters while being
20684 # careful not to overquote the AC_SUBSTed values. We take copies of the
20685 # variables and quote the copies for generation of the libtool script.
20686 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20688 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20689 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20690 deplibs_check_method reload_flag reload_cmds need_locks \
20691 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20692 lt_cv_sys_global_symbol_to_c_name_address \
20693 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20694 old_postinstall_cmds old_postuninstall_cmds \
20698 lt_prog_compiler_wl_CXX \
20699 lt_prog_compiler_pic_CXX \
20700 lt_prog_compiler_static_CXX \
20701 lt_prog_compiler_no_builtin_flag_CXX \
20702 export_dynamic_flag_spec_CXX \
20703 thread_safe_flag_spec_CXX \
20704 whole_archive_flag_spec_CXX \
20705 enable_shared_with_static_runtimes_CXX \
20706 old_archive_cmds_CXX \
20707 old_archive_from_new_cmds_CXX \
20708 predep_objects_CXX \
20709 postdep_objects_CXX \
20712 compiler_lib_search_path_CXX \
20714 archive_expsym_cmds_CXX \
20715 postinstall_cmds_CXX \
20716 postuninstall_cmds_CXX \
20717 old_archive_from_expsyms_cmds_CXX \
20718 allow_undefined_flag_CXX \
20719 no_undefined_flag_CXX \
20720 export_symbols_cmds_CXX \
20721 hardcode_libdir_flag_spec_CXX \
20722 hardcode_libdir_flag_spec_ld_CXX \
20723 hardcode_libdir_separator_CXX \
20724 hardcode_automatic_CXX \
20726 module_expsym_cmds_CXX \
20727 lt_cv_prog_compiler_c_o_CXX \
20728 exclude_expsyms_CXX \
20729 include_expsyms_CXX; do
20732 old_archive_cmds_CXX | \
20733 old_archive_from_new_cmds_CXX | \
20734 archive_cmds_CXX | \
20735 archive_expsym_cmds_CXX | \
20736 module_cmds_CXX | \
20737 module_expsym_cmds_CXX | \
20738 old_archive_from_expsyms_cmds_CXX | \
20739 export_symbols_cmds_CXX | \
20740 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20741 postinstall_cmds | postuninstall_cmds | \
20742 old_postinstall_cmds | old_postuninstall_cmds | \
20743 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20744 # Double-quote double-evaled strings.
20745 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20754 *'\$0 --fallback-echo"')
20755 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20761 cat <<__EOF__ >> "$cfgfile"
20762 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20764 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20766 # Shell to use when invoking shell scripts.
20769 # Whether or not to build shared libraries.
20770 build_libtool_libs=$enable_shared
20772 # Whether or not to build static libraries.
20773 build_old_libs=$enable_static
20775 # Whether or not to add -lc for building shared libraries.
20776 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20778 # Whether or not to disallow shared libs when runtime libs are static
20779 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20781 # Whether or not to optimize for fast installation.
20782 fast_install=$enable_fast_install
20785 host_alias=$host_alias
20789 # The build system.
20790 build_alias=$build_alias
20794 # An echo program that does not interpret backslashes.
20799 AR_FLAGS=$lt_AR_FLAGS
20804 # LTCC compiler flags.
20805 LTCFLAGS=$lt_LTCFLAGS
20807 # A language-specific compiler.
20808 CC=$lt_compiler_CXX
20810 # Is the compiler the GNU C compiler?
20816 # The linker used to build libraries.
20819 # Whether we need hard or soft links.
20822 # A BSD-compatible nm program.
20825 # A symbol stripping program
20828 # Used to examine libraries when file_magic_cmd begins "file"
20829 MAGIC_CMD=$MAGIC_CMD
20831 # Used on cygwin: DLL creation program.
20834 # Used on cygwin: object dumper.
20837 # Used on cygwin: assembler.
20840 # The name of the directory that contains temporary libtool files.
20843 # How to create reloadable object files.
20844 reload_flag=$lt_reload_flag
20845 reload_cmds=$lt_reload_cmds
20847 # How to pass a linker flag through the compiler.
20848 wl=$lt_lt_prog_compiler_wl_CXX
20850 # Object file suffix (normally "o").
20851 objext="$ac_objext"
20853 # Old archive suffix (normally "a").
20856 # Shared library suffix (normally ".so").
20857 shrext_cmds='$shrext_cmds'
20859 # Executable file suffix (normally "").
20862 # Additional compiler flags for building library objects.
20863 pic_flag=$lt_lt_prog_compiler_pic_CXX
20866 # What is the maximum length of a command?
20867 max_cmd_len=$lt_cv_sys_max_cmd_len
20869 # Does compiler simultaneously support -c and -o options?
20870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20872 # Must we lock files when doing compilation?
20873 need_locks=$lt_need_locks
20875 # Do we need the lib prefix for modules?
20876 need_lib_prefix=$need_lib_prefix
20878 # Do we need a version for libraries?
20879 need_version=$need_version
20881 # Whether dlopen is supported.
20882 dlopen_support=$enable_dlopen
20884 # Whether dlopen of programs is supported.
20885 dlopen_self=$enable_dlopen_self
20887 # Whether dlopen of statically linked programs is supported.
20888 dlopen_self_static=$enable_dlopen_self_static
20890 # Compiler flag to prevent dynamic linking.
20891 link_static_flag=$lt_lt_prog_compiler_static_CXX
20893 # Compiler flag to turn off builtin functions.
20894 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20896 # Compiler flag to allow reflexive dlopens.
20897 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20899 # Compiler flag to generate shared objects directly from archives.
20900 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20902 # Compiler flag to generate thread-safe objects.
20903 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20905 # Library versioning type.
20906 version_type=$version_type
20908 # Format of library name prefix.
20909 libname_spec=$lt_libname_spec
20911 # List of archive names. First name is the real one, the rest are links.
20912 # The last name is the one that the linker finds with -lNAME.
20913 library_names_spec=$lt_library_names_spec
20915 # The coded name of the library, if different from the real name.
20916 soname_spec=$lt_soname_spec
20918 # Commands used to build and install an old-style archive.
20920 old_archive_cmds=$lt_old_archive_cmds_CXX
20921 old_postinstall_cmds=$lt_old_postinstall_cmds
20922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20924 # Create an old-style archive from a shared archive.
20925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20927 # Create a temporary old-style archive to link instead of a shared archive.
20928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20930 # Commands used to build and install a shared archive.
20931 archive_cmds=$lt_archive_cmds_CXX
20932 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20933 postinstall_cmds=$lt_postinstall_cmds
20934 postuninstall_cmds=$lt_postuninstall_cmds
20936 # Commands used to build a loadable module (assumed same as above if empty)
20937 module_cmds=$lt_module_cmds_CXX
20938 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20940 # Commands to strip libraries.
20941 old_striplib=$lt_old_striplib
20942 striplib=$lt_striplib
20944 # Dependencies to place before the objects being linked to create a
20946 predep_objects=$lt_predep_objects_CXX
20948 # Dependencies to place after the objects being linked to create a
20950 postdep_objects=$lt_postdep_objects_CXX
20952 # Dependencies to place before the objects being linked to create a
20954 predeps=$lt_predeps_CXX
20956 # Dependencies to place after the objects being linked to create a
20958 postdeps=$lt_postdeps_CXX
20960 # The library search path used internally by the compiler when linking
20961 # a shared library.
20962 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20964 # Method to check whether dependent libraries are shared objects.
20965 deplibs_check_method=$lt_deplibs_check_method
20967 # Command to use when deplibs_check_method == file_magic.
20968 file_magic_cmd=$lt_file_magic_cmd
20970 # Flag that allows shared libraries with undefined symbols to be built.
20971 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20973 # Flag that forces no undefined symbols.
20974 no_undefined_flag=$lt_no_undefined_flag_CXX
20976 # Commands used to finish a libtool library installation in a directory.
20977 finish_cmds=$lt_finish_cmds
20979 # Same as above, but a single script fragment to be evaled but not shown.
20980 finish_eval=$lt_finish_eval
20982 # Take the output of nm and produce a listing of raw symbols and C names.
20983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20985 # Transform the output of nm in a proper C declaration
20986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20988 # Transform the output of nm in a C name address pair
20989 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20991 # This is the shared library runtime path variable.
20992 runpath_var=$runpath_var
20994 # This is the shared library path variable.
20995 shlibpath_var=$shlibpath_var
20997 # Is shlibpath searched before the hard-coded library search path?
20998 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21000 # How to hardcode a shared library path into an executable.
21001 hardcode_action=$hardcode_action_CXX
21003 # Whether we should hardcode library paths into libraries.
21004 hardcode_into_libs=$hardcode_into_libs
21006 # Flag to hardcode \$libdir into a binary during linking.
21007 # This must work even if \$libdir does not exist.
21008 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21010 # If ld is used when linking, flag to hardcode \$libdir into
21011 # a binary during linking. This must work even if \$libdir does
21013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21015 # Whether we need a single -rpath flag with a separated argument.
21016 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21018 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21019 # resulting binary.
21020 hardcode_direct=$hardcode_direct_CXX
21022 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21023 # resulting binary.
21024 hardcode_minus_L=$hardcode_minus_L_CXX
21026 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21027 # the resulting binary.
21028 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21030 # Set to yes if building a shared library automatically hardcodes DIR into the library
21031 # and all subsequent libraries and executables linked against it.
21032 hardcode_automatic=$hardcode_automatic_CXX
21034 # Variables whose values should be saved in libtool wrapper scripts and
21035 # restored at relink time.
21036 variables_saved_for_relink="$variables_saved_for_relink"
21038 # Whether libtool must link a program against all its dependency libraries.
21039 link_all_deplibs=$link_all_deplibs_CXX
21041 # Compile-time system search path for libraries
21042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21044 # Run-time system search path for libraries
21045 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21047 # Fix the shell variable \$srcfile for the compiler.
21048 fix_srcfile_path="$fix_srcfile_path_CXX"
21050 # Set to yes if exported symbols are required.
21051 always_export_symbols=$always_export_symbols_CXX
21053 # The commands to list exported symbols.
21054 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21056 # The commands to extract the exported symbol list from a shared archive.
21057 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21059 # Symbols that should not be listed in the preloaded symbols.
21060 exclude_expsyms=$lt_exclude_expsyms_CXX
21062 # Symbols that must always be exported.
21063 include_expsyms=$lt_include_expsyms_CXX
21065 # ### END LIBTOOL TAG CONFIG: $tagname
21071 # If there is no Makefile yet, we rely on a make rule to execute
21072 # `config.status --recheck' to rerun these tests and create the
21073 # libtool script then.
21074 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21075 if test -f "$ltmain_in"; then
21076 test -f Makefile && make "$ltmain"
21082 ac_cpp='$CPP $CPPFLAGS'
21083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21091 with_gnu_ldcxx=$with_gnu_ld
21092 with_gnu_ld=$lt_save_with_gnu_ld
21093 lt_cv_path_LDCXX=$lt_cv_path_LD
21094 lt_cv_path_LD=$lt_save_path_LD
21095 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21096 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21104 if test -n "$F77" && test "X$F77" != "Xno"; then
21107 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21108 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21112 archive_cmds_need_lc_F77=no
21113 allow_undefined_flag_F77=
21114 always_export_symbols_F77=no
21115 archive_expsym_cmds_F77=
21116 export_dynamic_flag_spec_F77=
21117 hardcode_direct_F77=no
21118 hardcode_libdir_flag_spec_F77=
21119 hardcode_libdir_flag_spec_ld_F77=
21120 hardcode_libdir_separator_F77=
21121 hardcode_minus_L_F77=no
21122 hardcode_automatic_F77=no
21124 module_expsym_cmds_F77=
21125 link_all_deplibs_F77=unknown
21126 old_archive_cmds_F77=$old_archive_cmds
21127 no_undefined_flag_F77=
21128 whole_archive_flag_spec_F77=
21129 enable_shared_with_static_runtimes_F77=no
21131 # Source file extension for f77 test sources.
21134 # Object file extension for compiled f77 test sources.
21138 # Code to be used in simple compile tests
21139 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21141 # Code to be used in simple link tests
21142 lt_simple_link_test_code=" program t\n end\n"
21144 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21146 # If no C compiler was specified, use CC.
21149 # If no C compiler flags were specified, use CFLAGS.
21150 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21152 # Allow CC to be a program name with arguments.
21156 # save warnings/boilerplate of simple test code
21157 ac_outfile=conftest.$ac_objext
21158 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21159 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21160 _lt_compiler_boilerplate=`cat conftest.err`
21163 ac_outfile=conftest.$ac_objext
21164 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21165 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21166 _lt_linker_boilerplate=`cat conftest.err`
21170 # Allow CC to be a program name with arguments.
21175 for cc_temp in $compiler""; do
21177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21183 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21186 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21187 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21188 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21189 echo "${ECHO_T}$can_build_shared" >&6; }
21191 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21192 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21193 test "$can_build_shared" = "no" && enable_shared=no
21195 # On AIX, shared libraries and static libraries use the same namespace, and
21196 # are all built from PIC.
21199 test "$enable_shared" = yes && enable_static=no
21200 if test -n "$RANLIB"; then
21201 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21202 postinstall_cmds='$RANLIB $lib'
21206 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21207 test "$enable_shared" = yes && enable_static=no
21211 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21212 echo "${ECHO_T}$enable_shared" >&6; }
21214 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21215 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21216 # Make sure either enable_shared or enable_static is yes.
21217 test "$enable_shared" = yes || enable_static=yes
21218 { echo "$as_me:$LINENO: result: $enable_static" >&5
21219 echo "${ECHO_T}$enable_static" >&6; }
21224 lt_prog_compiler_wl_F77=
21225 lt_prog_compiler_pic_F77=
21226 lt_prog_compiler_static_F77=
21228 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21229 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21231 if test "$GCC" = yes; then
21232 lt_prog_compiler_wl_F77='-Wl,'
21233 lt_prog_compiler_static_F77='-static'
21237 # All AIX code is PIC.
21238 if test "$host_cpu" = ia64; then
21239 # AIX 5 now supports IA64 processor
21240 lt_prog_compiler_static_F77='-Bstatic'
21245 # FIXME: we need at least 68020 code to build shared libraries, but
21246 # adding the `-m68020' flag to GCC prevents building anything better,
21248 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21251 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21252 # PIC is the default for these OSes.
21255 mingw* | pw32* | os2*)
21256 # This hack is so that the source file can tell whether it is being
21257 # built for inclusion in a dll (and should export symbols for example).
21258 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21261 darwin* | rhapsody*)
21262 # PIC is the default on this platform
21263 # Common symbols not allowed in MH_DYLIB files
21264 lt_prog_compiler_pic_F77='-fno-common'
21268 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21269 # Instead, we relocate shared libraries at runtime.
21273 # Just because we use GCC doesn't mean we suddenly get shared libraries
21274 # on systems that don't support them.
21275 lt_prog_compiler_can_build_shared_F77=no
21280 if test -d /usr/nec; then
21281 lt_prog_compiler_pic_F77=-Kconform_pic
21286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21287 # not for PA HP-UX.
21293 lt_prog_compiler_pic_F77='-fPIC'
21299 lt_prog_compiler_pic_F77='-fPIC'
21303 # PORTME Check for flag to pass linker flags through the system compiler.
21306 lt_prog_compiler_wl_F77='-Wl,'
21307 if test "$host_cpu" = ia64; then
21308 # AIX 5 now supports IA64 processor
21309 lt_prog_compiler_static_F77='-Bstatic'
21311 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21315 # PIC is the default on this platform
21316 # Common symbols not allowed in MH_DYLIB files
21317 case $cc_basename in
21319 lt_prog_compiler_pic_F77='-qnocommon'
21320 lt_prog_compiler_wl_F77='-Wl,'
21325 mingw* | pw32* | os2*)
21326 # This hack is so that the source file can tell whether it is being
21327 # built for inclusion in a dll (and should export symbols for example).
21328 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21331 hpux9* | hpux10* | hpux11*)
21332 lt_prog_compiler_wl_F77='-Wl,'
21333 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21334 # not for PA HP-UX.
21340 lt_prog_compiler_pic_F77='+Z'
21343 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21344 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21347 irix5* | irix6* | nonstopux*)
21348 lt_prog_compiler_wl_F77='-Wl,'
21349 # PIC (with -KPIC) is the default.
21350 lt_prog_compiler_static_F77='-non_shared'
21354 lt_prog_compiler_pic_F77='-KPIC'
21355 lt_prog_compiler_static_F77='-Bstatic'
21359 case $cc_basename in
21361 lt_prog_compiler_wl_F77='-Wl,'
21362 lt_prog_compiler_pic_F77='-KPIC'
21363 lt_prog_compiler_static_F77='-static'
21365 pgcc* | pgf77* | pgf90* | pgf95*)
21366 # Portland Group compilers (*not* the Pentium gcc compiler,
21367 # which looks to be a dead project)
21368 lt_prog_compiler_wl_F77='-Wl,'
21369 lt_prog_compiler_pic_F77='-fpic'
21370 lt_prog_compiler_static_F77='-Bstatic'
21373 lt_prog_compiler_wl_F77='-Wl,'
21374 # All Alpha code is PIC.
21375 lt_prog_compiler_static_F77='-non_shared'
21380 osf3* | osf4* | osf5*)
21381 lt_prog_compiler_wl_F77='-Wl,'
21382 # All OSF/1 code is PIC.
21383 lt_prog_compiler_static_F77='-non_shared'
21387 lt_prog_compiler_pic_F77='-KPIC'
21388 lt_prog_compiler_static_F77='-Bstatic'
21389 case $cc_basename in
21390 f77* | f90* | f95*)
21391 lt_prog_compiler_wl_F77='-Qoption ld ';;
21393 lt_prog_compiler_wl_F77='-Wl,';;
21398 lt_prog_compiler_wl_F77='-Qoption ld '
21399 lt_prog_compiler_pic_F77='-PIC'
21400 lt_prog_compiler_static_F77='-Bstatic'
21403 sysv4 | sysv4.2uw2* | sysv4.3*)
21404 lt_prog_compiler_wl_F77='-Wl,'
21405 lt_prog_compiler_pic_F77='-KPIC'
21406 lt_prog_compiler_static_F77='-Bstatic'
21410 if test -d /usr/nec ;then
21411 lt_prog_compiler_pic_F77='-Kconform_pic'
21412 lt_prog_compiler_static_F77='-Bstatic'
21416 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21417 lt_prog_compiler_wl_F77='-Wl,'
21418 lt_prog_compiler_pic_F77='-KPIC'
21419 lt_prog_compiler_static_F77='-Bstatic'
21423 lt_prog_compiler_wl_F77='-Wl,'
21424 lt_prog_compiler_can_build_shared_F77=no
21428 lt_prog_compiler_pic_F77='-pic'
21429 lt_prog_compiler_static_F77='-Bstatic'
21433 lt_prog_compiler_can_build_shared_F77=no
21438 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21439 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21442 # Check to make sure the PIC flag actually works.
21444 if test -n "$lt_prog_compiler_pic_F77"; then
21446 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21447 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21448 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 lt_prog_compiler_pic_works_F77=no
21452 ac_outfile=conftest.$ac_objext
21453 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21454 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21455 # Insert the option either (1) after the last *FLAGS variable, or
21456 # (2) before a word containing "conftest.", or (3) at the end.
21457 # Note that $ac_compile itself does not contain backslashes and begins
21458 # with a dollar sign (not a hyphen), so the echo should work correctly.
21459 # The option is referenced via a variable to avoid confusing sed.
21460 lt_compile=`echo "$ac_compile" | $SED \
21461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21463 -e 's:$: $lt_compiler_flag:'`
21464 (eval echo "\"\$as_me:21464: $lt_compile\"" >&5)
21465 (eval "$lt_compile" 2>conftest.err)
21467 cat conftest.err >&5
21468 echo "$as_me:21468: \$? = $ac_status" >&5
21469 if (exit $ac_status) && test -s "$ac_outfile"; then
21470 # The compiler can only warn and ignore the option if not recognized
21471 # So say no if there are warnings other than the usual output.
21472 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21475 lt_prog_compiler_pic_works_F77=yes
21481 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21482 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21484 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21485 case $lt_prog_compiler_pic_F77 in
21487 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21490 lt_prog_compiler_pic_F77=
21491 lt_prog_compiler_can_build_shared_F77=no
21496 # For platforms which do not support PIC, -DPIC is meaningless:
21498 lt_prog_compiler_pic_F77=
21501 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21506 # Check to make sure the static flag actually works.
21508 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21509 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21510 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21511 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21512 echo $ECHO_N "(cached) $ECHO_C" >&6
21514 lt_prog_compiler_static_works_F77=no
21515 save_LDFLAGS="$LDFLAGS"
21516 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21517 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21518 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21519 # The linker can only warn and ignore the option if not recognized
21520 # So say no if there are warnings
21521 if test -s conftest.err; then
21522 # Append any errors to the config.log.
21523 cat conftest.err 1>&5
21524 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21526 if diff conftest.exp conftest.er2 >/dev/null; then
21527 lt_prog_compiler_static_works_F77=yes
21530 lt_prog_compiler_static_works_F77=yes
21534 LDFLAGS="$save_LDFLAGS"
21537 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21538 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21540 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21543 lt_prog_compiler_static_F77=
21547 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21548 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21549 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 lt_cv_prog_compiler_c_o_F77=no
21553 $rm -r conftest 2>/dev/null
21557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21559 lt_compiler_flag="-o out/conftest2.$ac_objext"
21560 # Insert the option either (1) after the last *FLAGS variable, or
21561 # (2) before a word containing "conftest.", or (3) at the end.
21562 # Note that $ac_compile itself does not contain backslashes and begins
21563 # with a dollar sign (not a hyphen), so the echo should work correctly.
21564 lt_compile=`echo "$ac_compile" | $SED \
21565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21567 -e 's:$: $lt_compiler_flag:'`
21568 (eval echo "\"\$as_me:21568: $lt_compile\"" >&5)
21569 (eval "$lt_compile" 2>out/conftest.err)
21571 cat out/conftest.err >&5
21572 echo "$as_me:21572: \$? = $ac_status" >&5
21573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21575 # The compiler can only warn and ignore the option if not recognized
21576 # So say no if there are warnings
21577 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21580 lt_cv_prog_compiler_c_o_F77=yes
21585 # SGI C++ compiler will create directory out/ii_files/ for
21586 # template instantiation
21587 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21588 $rm out/* && rmdir out
21594 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21595 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21598 hard_links="nottested"
21599 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21600 # do not overwrite the value of need_locks provided by the user
21601 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21602 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21607 ln conftest.a conftest.b 2>&5 || hard_links=no
21608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21609 { echo "$as_me:$LINENO: result: $hard_links" >&5
21610 echo "${ECHO_T}$hard_links" >&6; }
21611 if test "$hard_links" = no; then
21612 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21613 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21620 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21621 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21624 allow_undefined_flag_F77=
21625 enable_shared_with_static_runtimes_F77=no
21627 archive_expsym_cmds_F77=
21628 old_archive_From_new_cmds_F77=
21629 old_archive_from_expsyms_cmds_F77=
21630 export_dynamic_flag_spec_F77=
21631 whole_archive_flag_spec_F77=
21632 thread_safe_flag_spec_F77=
21633 hardcode_libdir_flag_spec_F77=
21634 hardcode_libdir_flag_spec_ld_F77=
21635 hardcode_libdir_separator_F77=
21636 hardcode_direct_F77=no
21637 hardcode_minus_L_F77=no
21638 hardcode_shlibpath_var_F77=unsupported
21639 link_all_deplibs_F77=unknown
21640 hardcode_automatic_F77=no
21642 module_expsym_cmds_F77=
21643 always_export_symbols_F77=no
21644 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21645 # include_expsyms should be a list of space-separated symbols to be *always*
21646 # included in the symbol list
21647 include_expsyms_F77=
21648 # exclude_expsyms can be an extended regexp of symbols to exclude
21649 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21650 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21651 # as well as any symbol that contains `d'.
21652 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21653 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21654 # platforms (ab)use it in PIC code, but their linkers get confused if
21655 # the symbol is explicitly referenced. Since portable code cannot
21656 # rely on this symbol name, it's probably fine to never include it in
21657 # preloaded symbol tables.
21658 extract_expsyms_cmds=
21659 # Just being paranoid about ensuring that cc_basename is set.
21660 for cc_temp in $compiler""; do
21662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21668 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21671 cygwin* | mingw* | pw32*)
21672 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21673 # When not using gcc, we currently assume that we are using
21674 # Microsoft Visual C++.
21675 if test "$GCC" != yes; then
21680 # we just hope/assume this is gcc and not c89 (= MSVC++)
21689 if test "$with_gnu_ld" = yes; then
21690 # If archive_cmds runs LD, not CC, wlarc should be empty
21693 # Set some defaults for GNU ld with shared library support. These
21694 # are reset later if shared libraries are not supported. Putting them
21695 # here allows them to be overridden if necessary.
21696 runpath_var=LD_RUN_PATH
21697 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21698 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21699 # ancient GNU ld didn't support --whole-archive et. al.
21700 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21701 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21703 whole_archive_flag_spec_F77=
21705 supports_anon_versioning=no
21706 case `$LD -v 2>/dev/null` in
21707 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21708 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21709 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21710 *\ 2.11.*) ;; # other 2.11 versions
21711 *) supports_anon_versioning=yes ;;
21714 # See if GNU ld supports shared libraries.
21716 aix3* | aix4* | aix5*)
21717 # On AIX/PPC, the GNU linker is very broken
21718 if test "$host_cpu" != ia64; then
21722 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21723 *** to be unable to reliably create shared libraries on AIX.
21724 *** Therefore, libtool is disabling shared libraries support. If you
21725 *** really care for shared libraries, you may want to modify your PATH
21726 *** so that a non-GNU linker is found, and then restart.
21733 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)'
21734 hardcode_libdir_flag_spec_F77='-L$libdir'
21735 hardcode_minus_L_F77=yes
21737 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21738 # that the semantics of dynamic libraries on AmigaOS, at least up
21739 # to version 4, is to share data among multiple programs linked
21740 # with the same dynamic library. Since this doesn't match the
21741 # behavior of shared libraries on other platforms, we can't use
21747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21748 allow_undefined_flag_F77=unsupported
21749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21750 # support --undefined. This deserves some investigation. FIXME
21751 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21757 cygwin* | mingw* | pw32*)
21758 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21759 # as there is no search path for DLLs.
21760 hardcode_libdir_flag_spec_F77='-L$libdir'
21761 allow_undefined_flag_F77=unsupported
21762 always_export_symbols_F77=no
21763 enable_shared_with_static_runtimes_F77=yes
21764 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21766 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21767 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21768 # If the export-symbols file already is a .def file (1st line
21769 # is EXPORTS), use it as is; otherwise, prepend...
21770 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21771 cp $export_symbols $output_objdir/$soname.def;
21773 echo EXPORTS > $output_objdir/$soname.def;
21774 cat $export_symbols >> $output_objdir/$soname.def;
21776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21783 hardcode_direct_F77=no
21784 hardcode_shlibpath_var_F77=no
21785 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21786 export_dynamic_flag_spec_F77='${wl}-E'
21787 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21788 # Instead, shared libraries are loaded at an image base (0x10000000 by
21789 # default) and relocated if they conflict, which is a slow very memory
21790 # consuming and fragmenting process. To avoid this, we pick a random,
21791 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21792 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21793 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'
21794 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'
21798 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21800 case $cc_basename,$host_cpu in
21801 pgcc*) # Portland Group C compiler
21802 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'
21803 tmp_addflag=' $pic_flag'
21805 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21806 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'
21807 tmp_addflag=' $pic_flag -Mnomain' ;;
21808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21809 tmp_addflag=' -i_dynamic' ;;
21810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21811 tmp_addflag=' -i_dynamic -nofor_main' ;;
21812 ifc* | ifort*) # Intel Fortran compiler
21813 tmp_addflag=' -nofor_main' ;;
21815 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21817 if test $supports_anon_versioning = yes; then
21818 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21820 $echo "local: *; };" >> $output_objdir/$libname.ver~
21821 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21830 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21834 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21839 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21843 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21844 *** create shared libraries on Solaris systems. Therefore, libtool
21845 *** is disabling shared libraries support. We urge you to upgrade GNU
21846 *** binutils to release 2.9.1 or newer. Another option is to modify
21847 *** your PATH or compiler configuration so that the native linker is
21848 *** used, and then restart.
21851 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21852 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21853 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21860 case `$LD -v 2>&1` in
21861 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21865 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21866 *** reliably create shared libraries on SCO systems. Therefore, libtool
21867 *** is disabling shared libraries support. We urge you to upgrade GNU
21868 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21869 *** your PATH or compiler configuration so that the native linker is
21870 *** used, and then restart.
21875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21876 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21877 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21878 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21887 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21889 hardcode_direct_F77=yes
21890 hardcode_shlibpath_var_F77=no
21894 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21895 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21896 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21903 if test "$ld_shlibs_F77" = no; then
21905 hardcode_libdir_flag_spec_F77=
21906 export_dynamic_flag_spec_F77=
21907 whole_archive_flag_spec_F77=
21910 # PORTME fill in a description of your system's linker (not GNU ld)
21913 allow_undefined_flag_F77=unsupported
21914 always_export_symbols_F77=yes
21915 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'
21916 # Note: this linker hardcodes the directories in LIBPATH if there
21917 # are no directories specified by -L.
21918 hardcode_minus_L_F77=yes
21919 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21920 # Neither direct hardcoding nor static linking is supported with a
21922 hardcode_direct_F77=unsupported
21927 if test "$host_cpu" = ia64; then
21928 # On IA64, the linker does run time linking by default, so we don't
21929 # have to do anything special.
21930 aix_use_runtimelinking=no
21931 exp_sym_flag='-Bexport'
21934 # If we're using GNU nm, then we don't want the "-C" option.
21935 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21936 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21937 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'
21939 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'
21941 aix_use_runtimelinking=no
21943 # Test if we are trying to use run time linking or normal
21944 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21945 # need to do runtime linking.
21946 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21947 for ld_flag in $LDFLAGS; do
21948 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21949 aix_use_runtimelinking=yes
21956 exp_sym_flag='-bexport'
21957 no_entry_flag='-bnoentry'
21960 # When large executables or shared objects are built, AIX ld can
21961 # have problems creating the table of contents. If linking a library
21962 # or program results in "error TOC overflow" add -mminimal-toc to
21963 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21964 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21966 archive_cmds_F77=''
21967 hardcode_direct_F77=yes
21968 hardcode_libdir_separator_F77=':'
21969 link_all_deplibs_F77=yes
21971 if test "$GCC" = yes; then
21972 case $host_os in aix4.[012]|aix4.[012].*)
21973 # We only want to do this on AIX 4.2 and lower, the check
21974 # below for broken collect2 doesn't work under 4.3+
21975 collect2name=`${CC} -print-prog-name=collect2`
21976 if test -f "$collect2name" && \
21977 strings "$collect2name" | grep resolve_lib_name >/dev/null
21979 # We have reworked collect2
21980 hardcode_direct_F77=yes
21982 # We have old collect2
21983 hardcode_direct_F77=unsupported
21984 # It fails to find uninstalled libraries when the uninstalled
21985 # path is not listed in the libpath. Setting hardcode_minus_L
21986 # to unsupported forces relinking
21987 hardcode_minus_L_F77=yes
21988 hardcode_libdir_flag_spec_F77='-L$libdir'
21989 hardcode_libdir_separator_F77=
21993 shared_flag='-shared'
21994 if test "$aix_use_runtimelinking" = yes; then
21995 shared_flag="$shared_flag "'${wl}-G'
21999 if test "$host_cpu" = ia64; then
22000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22001 # chokes on -Wl,-G. The following line is correct:
22004 if test "$aix_use_runtimelinking" = yes; then
22005 shared_flag='${wl}-G'
22007 shared_flag='${wl}-bM:SRE'
22012 # It seems that -bexpall does not export symbols beginning with
22013 # underscore (_), so it is better to generate a list of symbols to export.
22014 always_export_symbols_F77=yes
22015 if test "$aix_use_runtimelinking" = yes; then
22016 # Warning - without using the other runtime loading flags (-brtl),
22017 # -berok will link without error, but may produce a broken library.
22018 allow_undefined_flag_F77='-berok'
22019 # Determine the default libpath from the value encoded in an empty executable.
22020 cat >conftest.$ac_ext <<_ACEOF
22025 rm -f conftest.$ac_objext conftest$ac_exeext
22026 if { (ac_try="$ac_link"
22027 case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_link") 2>conftest.er1
22034 grep -v '^ *+' conftest.er1 >conftest.err
22036 cat conftest.err >&5
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } &&
22039 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22040 { (case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_try") 2>&5
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; } &&
22049 { ac_try='test -s conftest$ac_exeext'
22050 { (case "(($ac_try" in
22051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052 *) ac_try_echo=$ac_try;;
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055 (eval "$ac_try") 2>&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); }; }; then
22060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22062 # Check for a 64-bit object if we didn't find anything.
22063 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; }
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22072 rm -f core conftest.err conftest.$ac_objext \
22073 conftest$ac_exeext conftest.$ac_ext
22074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22076 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22077 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"
22079 if test "$host_cpu" = ia64; then
22080 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22081 allow_undefined_flag_F77="-z nodefs"
22082 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"
22084 # Determine the default libpath from the value encoded in an empty executable.
22085 cat >conftest.$ac_ext <<_ACEOF
22090 rm -f conftest.$ac_objext conftest$ac_exeext
22091 if { (ac_try="$ac_link"
22092 case "(($ac_try" in
22093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094 *) ac_try_echo=$ac_try;;
22096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097 (eval "$ac_link") 2>conftest.er1
22099 grep -v '^ *+' conftest.er1 >conftest.err
22101 cat conftest.err >&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } &&
22104 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22105 { (case "(($ac_try" in
22106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107 *) ac_try_echo=$ac_try;;
22109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110 (eval "$ac_try") 2>&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); }; } &&
22114 { ac_try='test -s conftest$ac_exeext'
22115 { (case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_try") 2>&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; }; then
22125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22127 # Check for a 64-bit object if we didn't find anything.
22128 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; }
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22137 rm -f core conftest.err conftest.$ac_objext \
22138 conftest$ac_exeext conftest.$ac_ext
22139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22141 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22142 # Warning - without using the other run time loading flags,
22143 # -berok will link without error, but may produce a broken library.
22144 no_undefined_flag_F77=' ${wl}-bernotok'
22145 allow_undefined_flag_F77=' ${wl}-berok'
22146 # Exported symbols can be pulled into shared objects from archives
22147 whole_archive_flag_spec_F77='$convenience'
22148 archive_cmds_need_lc_F77=yes
22149 # This is similar to how AIX traditionally builds its shared libraries.
22150 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'
22156 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)'
22157 hardcode_libdir_flag_spec_F77='-L$libdir'
22158 hardcode_minus_L_F77=yes
22159 # see comment about different semantics on the GNU ld section
22164 export_dynamic_flag_spec_F77=-rdynamic
22167 cygwin* | mingw* | pw32*)
22168 # When not using gcc, we currently assume that we are using
22169 # Microsoft Visual C++.
22170 # hardcode_libdir_flag_spec is actually meaningless, as there is
22171 # no search path for DLLs.
22172 hardcode_libdir_flag_spec_F77=' '
22173 allow_undefined_flag_F77=unsupported
22174 # Tell ltmain to make .lib files, not .a files.
22176 # Tell ltmain to make .dll files, not .so files.
22178 # FIXME: Setting linknames here is a bad hack.
22179 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22180 # The linker will automatically build a .lib file if we build a DLL.
22181 old_archive_From_new_cmds_F77='true'
22182 # FIXME: Should let the user specify the lib program.
22183 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22184 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22185 enable_shared_with_static_runtimes_F77=yes
22188 darwin* | rhapsody*)
22190 rhapsody* | darwin1.[012])
22191 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22194 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22195 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22197 case ${MACOSX_DEPLOYMENT_TARGET} in
22199 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22202 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22208 archive_cmds_need_lc_F77=no
22209 hardcode_direct_F77=no
22210 hardcode_automatic_F77=yes
22211 hardcode_shlibpath_var_F77=unsupported
22212 whole_archive_flag_spec_F77=''
22213 link_all_deplibs_F77=yes
22214 if test "$GCC" = yes ; then
22215 output_verbose_link_cmd='echo'
22216 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22217 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22218 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22219 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}'
22220 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}'
22222 case $cc_basename in
22224 output_verbose_link_cmd='echo'
22225 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22226 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22227 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22228 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}'
22229 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}'
22239 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22240 hardcode_libdir_flag_spec_F77='-L$libdir'
22241 hardcode_shlibpath_var_F77=no
22248 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22249 # support. Future versions do this automatically, but an explicit c++rt0.o
22250 # does not break anything, and helps significantly (at the cost of a little
22253 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22254 hardcode_libdir_flag_spec_F77='-R$libdir'
22255 hardcode_direct_F77=yes
22256 hardcode_shlibpath_var_F77=no
22259 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22261 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22262 hardcode_direct_F77=yes
22263 hardcode_minus_L_F77=yes
22264 hardcode_shlibpath_var_F77=no
22267 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22268 freebsd* | kfreebsd*-gnu | dragonfly*)
22269 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22270 hardcode_libdir_flag_spec_F77='-R$libdir'
22271 hardcode_direct_F77=yes
22272 hardcode_shlibpath_var_F77=no
22276 if test "$GCC" = yes; then
22277 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'
22279 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'
22281 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22282 hardcode_libdir_separator_F77=:
22283 hardcode_direct_F77=yes
22285 # hardcode_minus_L: Not really in the search PATH,
22286 # but as the default location of the library.
22287 hardcode_minus_L_F77=yes
22288 export_dynamic_flag_spec_F77='${wl}-E'
22292 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22293 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22295 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22297 if test "$with_gnu_ld" = no; then
22298 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22299 hardcode_libdir_separator_F77=:
22301 hardcode_direct_F77=yes
22302 export_dynamic_flag_spec_F77='${wl}-E'
22304 # hardcode_minus_L: Not really in the search PATH,
22305 # but as the default location of the library.
22306 hardcode_minus_L_F77=yes
22311 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22314 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22317 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22320 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22326 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22329 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22332 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22336 if test "$with_gnu_ld" = no; then
22337 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22338 hardcode_libdir_separator_F77=:
22342 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22343 hardcode_direct_F77=no
22344 hardcode_shlibpath_var_F77=no
22347 hardcode_direct_F77=yes
22348 export_dynamic_flag_spec_F77='${wl}-E'
22350 # hardcode_minus_L: Not really in the search PATH,
22351 # but as the default location of the library.
22352 hardcode_minus_L_F77=yes
22358 irix5* | irix6* | nonstopux*)
22359 if test "$GCC" = yes; then
22360 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'
22362 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'
22363 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22365 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22366 hardcode_libdir_separator_F77=:
22367 link_all_deplibs_F77=yes
22371 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22372 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22374 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22376 hardcode_libdir_flag_spec_F77='-R$libdir'
22377 hardcode_direct_F77=yes
22378 hardcode_shlibpath_var_F77=no
22382 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22383 hardcode_direct_F77=yes
22384 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22385 hardcode_libdir_separator_F77=:
22386 hardcode_shlibpath_var_F77=no
22390 hardcode_direct_F77=yes
22391 hardcode_shlibpath_var_F77=no
22392 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22393 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22394 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22395 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22396 export_dynamic_flag_spec_F77='${wl}-E'
22399 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22400 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22401 hardcode_libdir_flag_spec_F77='-R$libdir'
22404 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22405 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22412 hardcode_libdir_flag_spec_F77='-L$libdir'
22413 hardcode_minus_L_F77=yes
22414 allow_undefined_flag_F77=unsupported
22415 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'
22416 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22420 if test "$GCC" = yes; then
22421 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22422 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'
22424 allow_undefined_flag_F77=' -expect_unresolved \*'
22425 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'
22427 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22428 hardcode_libdir_separator_F77=:
22431 osf4* | osf5*) # as osf3* with the addition of -msym flag
22432 if test "$GCC" = yes; then
22433 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22434 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'
22435 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22437 allow_undefined_flag_F77=' -expect_unresolved \*'
22438 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'
22439 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~
22440 $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'
22442 # Both c and cxx compiler support -rpath directly
22443 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22445 hardcode_libdir_separator_F77=:
22449 no_undefined_flag_F77=' -z text'
22450 if test "$GCC" = yes; then
22452 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22453 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22454 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22457 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22458 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22459 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22461 hardcode_libdir_flag_spec_F77='-R$libdir'
22462 hardcode_shlibpath_var_F77=no
22464 solaris2.[0-5] | solaris2.[0-5].*) ;;
22466 # The compiler driver will combine linker options so we
22467 # cannot just pass the convience library names through
22468 # without $wl, iff we do not link with $LD.
22469 # Luckily, gcc supports the same syntax we need for Sun Studio.
22470 # Supported since Solaris 2.6 (maybe 2.5.1?)
22473 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22475 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' ;;
22478 link_all_deplibs_F77=yes
22482 if test "x$host_vendor" = xsequent; then
22483 # Use $CC to link under sequent, because it throws in some extra .o
22484 # files that make .init and .fini sections work.
22485 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22487 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22489 hardcode_libdir_flag_spec_F77='-L$libdir'
22490 hardcode_direct_F77=yes
22491 hardcode_minus_L_F77=yes
22492 hardcode_shlibpath_var_F77=no
22496 case $host_vendor in
22498 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22499 hardcode_direct_F77=yes # is this really true???
22502 ## LD is ld it makes a PLAMLIB
22503 ## CC just makes a GrossModule.
22504 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22505 reload_cmds_F77='$CC -r -o $output$reload_objs'
22506 hardcode_direct_F77=no
22509 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22510 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22513 runpath_var='LD_RUN_PATH'
22514 hardcode_shlibpath_var_F77=no
22518 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22519 hardcode_shlibpath_var_F77=no
22520 export_dynamic_flag_spec_F77='-Bexport'
22524 if test -d /usr/nec; then
22525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22526 hardcode_shlibpath_var_F77=no
22527 runpath_var=LD_RUN_PATH
22528 hardcode_runpath_var=yes
22533 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22534 no_undefined_flag_F77='${wl}-z,text'
22535 archive_cmds_need_lc_F77=no
22536 hardcode_shlibpath_var_F77=no
22537 runpath_var='LD_RUN_PATH'
22539 if test "$GCC" = yes; then
22540 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22541 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22543 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22544 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22548 sysv5* | sco3.2v5* | sco5v6*)
22549 # Note: We can NOT use -z defs as we might desire, because we do not
22550 # link with -lc, and that would cause any symbols used from libc to
22551 # always be unresolved, which means just about no library would
22552 # ever link correctly. If we're not using GNU ld we use -z text
22553 # though, which does catch some bad symbols but isn't as heavy-handed
22555 no_undefined_flag_F77='${wl}-z,text'
22556 allow_undefined_flag_F77='${wl}-z,nodefs'
22557 archive_cmds_need_lc_F77=no
22558 hardcode_shlibpath_var_F77=no
22559 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22560 hardcode_libdir_separator_F77=':'
22561 link_all_deplibs_F77=yes
22562 export_dynamic_flag_spec_F77='${wl}-Bexport'
22563 runpath_var='LD_RUN_PATH'
22565 if test "$GCC" = yes; then
22566 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22567 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22569 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22570 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22575 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22576 hardcode_libdir_flag_spec_F77='-L$libdir'
22577 hardcode_shlibpath_var_F77=no
22586 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22587 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22588 test "$ld_shlibs_F77" = no && can_build_shared=no
22591 # Do we need to explicitly link libc?
22593 case "x$archive_cmds_need_lc_F77" in
22595 # Assume -lc should be added
22596 archive_cmds_need_lc_F77=yes
22598 if test "$enable_shared" = yes && test "$GCC" = yes; then
22599 case $archive_cmds_F77 in
22601 # FIXME: we may have to deal with multi-command sequences.
22604 # Test whether the compiler implicitly links with -lc since on some
22605 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22606 # to ld, don't add -lc before -lgcc.
22607 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22608 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22613 (eval $ac_compile) 2>&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } 2>conftest.err; then
22619 libobjs=conftest.$ac_objext
22621 wl=$lt_prog_compiler_wl_F77
22622 pic_flag=$lt_prog_compiler_pic_F77
22628 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22629 allow_undefined_flag_F77=
22630 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22631 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }
22636 archive_cmds_need_lc_F77=no
22638 archive_cmds_need_lc_F77=yes
22640 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22642 cat conftest.err 1>&5
22645 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22646 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22653 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22654 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22655 library_names_spec=
22656 libname_spec='lib$name'
22660 postuninstall_cmds=
22664 shlibpath_overrides_runpath=unknown
22666 dynamic_linker="$host_os ld.so"
22667 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22668 if test "$GCC" = yes; then
22669 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22670 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22671 # if the path contains ";" then we assume it to be the separator
22672 # otherwise default to the standard path separator (i.e. ":") - it is
22673 # assumed that no part of a normal pathname contains ";" but that should
22674 # okay in the real world where ";" in dirpaths is itself problematic.
22675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22680 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22682 need_lib_prefix=unknown
22683 hardcode_into_libs=no
22685 # when you set need_version to no, make sure it does not cause -set_version
22686 # flags to be left without arguments
22687 need_version=unknown
22692 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22693 shlibpath_var=LIBPATH
22695 # AIX 3 has no versioning support, so we append a major version to the name.
22696 soname_spec='${libname}${release}${shared_ext}$major'
22703 hardcode_into_libs=yes
22704 if test "$host_cpu" = ia64; then
22705 # AIX 5 supports IA64
22706 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22707 shlibpath_var=LD_LIBRARY_PATH
22709 # With GCC up to 2.95.x, collect2 would create an import file
22710 # for dependence libraries. The import file would start with
22711 # the line `#! .'. This would cause the generated library to
22712 # depend on `.', always an invalid library. This was fixed in
22713 # development snapshots of GCC prior to 3.0.
22715 aix4 | aix4.[01] | aix4.[01].*)
22716 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22718 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22721 can_build_shared=no
22725 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22726 # soname into executable. Probably we can add versioning support to
22727 # collect2, so additional links can be useful in future.
22728 if test "$aix_use_runtimelinking" = yes; then
22729 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22730 # instead of lib<name>.a to let people know that these are not
22731 # typical AIX shared libraries.
22732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22734 # We preserve .a as extension for shared libraries through AIX4.2
22735 # and later when we are not doing run time linking.
22736 library_names_spec='${libname}${release}.a $libname.a'
22737 soname_spec='${libname}${release}${shared_ext}$major'
22739 shlibpath_var=LIBPATH
22744 library_names_spec='$libname.ixlibrary $libname.a'
22745 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22746 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'
22750 library_names_spec='${libname}${shared_ext}'
22751 dynamic_linker="$host_os ld.so"
22752 shlibpath_var=LIBRARY_PATH
22758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22759 soname_spec='${libname}${release}${shared_ext}$major'
22760 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22761 shlibpath_var=LD_LIBRARY_PATH
22762 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22763 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22764 # the default ld.so.conf also contains /usr/contrib/lib and
22765 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22766 # libtool to hard-code these into programs
22769 cygwin* | mingw* | pw32*)
22770 version_type=windows
22775 case $GCC,$host_os in
22776 yes,cygwin* | yes,mingw* | yes,pw32*)
22777 library_names_spec='$libname.dll.a'
22778 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22779 postinstall_cmds='base_file=`basename \${file}`~
22780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22781 dldir=$destdir/`dirname \$dlpath`~
22782 test -d \$dldir || mkdir -p \$dldir~
22783 $install_prog $dir/$dlname \$dldir/$dlname~
22784 chmod a+x \$dldir/$dlname'
22785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22786 dlpath=$dir/\$dldll~
22788 shlibpath_overrides_runpath=yes
22792 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22793 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22794 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22797 # MinGW DLLs use traditional 'lib' prefix
22798 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22799 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22800 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22801 # It is most probably a Windows format PATH printed by
22802 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22803 # path with ; separators, and with drive letters. We can handle the
22804 # drive letters (cygwin fileutils understands them), so leave them,
22805 # especially as we might pass files found there to a mingw objdump,
22806 # which wouldn't understand a cygwinified path. Ahh.
22807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22813 # pw32 DLLs use 'pw' prefix rather than 'lib'
22814 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22820 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22823 dynamic_linker='Win32 ld.exe'
22824 # FIXME: first we should search . and the directory the executable is in
22828 darwin* | rhapsody*)
22829 dynamic_linker="$host_os dyld"
22830 version_type=darwin
22833 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22834 soname_spec='${libname}${release}${major}$shared_ext'
22835 shlibpath_overrides_runpath=yes
22836 shlibpath_var=DYLD_LIBRARY_PATH
22837 shrext_cmds='.dylib'
22838 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22839 if test "$GCC" = yes; then
22840 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"`
22842 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22852 soname_spec='${libname}${release}${shared_ext}$major'
22853 shlibpath_var=LD_LIBRARY_PATH
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 shlibpath_var=LD_LIBRARY_PATH
22867 shlibpath_overrides_runpath=no
22868 hardcode_into_libs=yes
22869 dynamic_linker='GNU ld.so'
22872 freebsd* | dragonfly*)
22873 # DragonFly does not have aout. When/if they implement a new
22874 # versioning mechanism, adjust this.
22875 if test -x /usr/bin/objformat; then
22876 objformat=`/usr/bin/objformat`
22879 freebsd[123]*) objformat=aout ;;
22880 *) objformat=elf ;;
22883 version_type=freebsd-$objformat
22884 case $version_type in
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22895 shlibpath_var=LD_LIBRARY_PATH
22898 shlibpath_overrides_runpath=yes
22900 freebsd3.[01]* | freebsdelf3.[01]*)
22901 shlibpath_overrides_runpath=yes
22902 hardcode_into_libs=yes
22904 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22905 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22906 shlibpath_overrides_runpath=no
22907 hardcode_into_libs=yes
22909 freebsd*) # from 4.6 on
22910 shlibpath_overrides_runpath=yes
22911 hardcode_into_libs=yes
22920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22921 soname_spec='${libname}${release}${shared_ext}$major'
22922 shlibpath_var=LD_LIBRARY_PATH
22923 hardcode_into_libs=yes
22926 hpux9* | hpux10* | hpux11*)
22927 # Give a soname corresponding to the major version so that dld.sl refuses to
22928 # link against other versions.
22935 hardcode_into_libs=yes
22936 dynamic_linker="$host_os dld.so"
22937 shlibpath_var=LD_LIBRARY_PATH
22938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22940 soname_spec='${libname}${release}${shared_ext}$major'
22941 if test "X$HPUX_IA64_MODE" = X32; then
22942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22950 hardcode_into_libs=yes
22951 dynamic_linker="$host_os dld.sl"
22952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22955 soname_spec='${libname}${release}${shared_ext}$major'
22956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22961 dynamic_linker="$host_os dld.sl"
22962 shlibpath_var=SHLIB_PATH
22963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22965 soname_spec='${libname}${release}${shared_ext}$major'
22968 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22969 postinstall_cmds='chmod 555 $lib'
22976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22977 soname_spec='${libname}${release}${shared_ext}$major'
22978 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22979 shlibpath_var=LD_LIBRARY_PATH
22980 shlibpath_overrides_runpath=no
22981 hardcode_into_libs=yes
22984 irix5* | irix6* | nonstopux*)
22986 nonstopux*) version_type=nonstopux ;;
22988 if test "$lt_cv_prog_gnu_ld" = yes; then
22996 soname_spec='${libname}${release}${shared_ext}$major'
22997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22999 irix5* | nonstopux*)
23000 libsuff= shlibsuff=
23003 case $LD in # libtool.m4 will add one of these switches to LD
23004 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23005 libsuff= shlibsuff= libmagic=32-bit;;
23006 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23007 libsuff=32 shlibsuff=N32 libmagic=N32;;
23008 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23009 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23010 *) libsuff= shlibsuff= libmagic=never-match;;
23014 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23015 shlibpath_overrides_runpath=no
23016 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23017 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23018 hardcode_into_libs=yes
23021 # No shared lib support for Linux oldld, aout, or coff.
23022 linux*oldld* | linux*aout* | linux*coff*)
23026 # This must be Linux ELF.
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23032 soname_spec='${libname}${release}${shared_ext}$major'
23033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23034 shlibpath_var=LD_LIBRARY_PATH
23035 shlibpath_overrides_runpath=no
23036 # This implies no fast_install, which is unacceptable.
23037 # Some rework will be needed to allow for fast_install
23038 # before this can be enabled.
23039 hardcode_into_libs=yes
23041 # Append ld.so.conf contents to the search path
23042 if test -f /etc/ld.so.conf; then
23043 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' ' '`
23044 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23047 # We used to test for /lib/ld.so.1 and disable shared libraries on
23048 # powerpc, because MkLinux only supported shared libraries with the
23049 # GNU dynamic linker. Since this was broken with cross compilers,
23050 # most powerpc-linux boxes support dynamic linking these days and
23051 # people can always --disable-shared, the test was removed, and we
23052 # assume the GNU/Linux dynamic linker is in use.
23053 dynamic_linker='GNU/Linux ld.so'
23060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23061 soname_spec='${libname}${release}${shared_ext}$major'
23062 shlibpath_var=LD_LIBRARY_PATH
23063 shlibpath_overrides_runpath=no
23064 hardcode_into_libs=yes
23065 dynamic_linker='GNU ld.so'
23072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23075 dynamic_linker='NetBSD (a.out) ld.so'
23077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23078 soname_spec='${libname}${release}${shared_ext}$major'
23079 dynamic_linker='NetBSD ld.elf_so'
23081 shlibpath_var=LD_LIBRARY_PATH
23082 shlibpath_overrides_runpath=yes
23083 hardcode_into_libs=yes
23088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23089 shlibpath_var=LD_LIBRARY_PATH
23090 shlibpath_overrides_runpath=yes
23097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098 soname_spec='${libname}${release}${shared_ext}$major'
23099 shlibpath_var=LD_LIBRARY_PATH
23100 shlibpath_overrides_runpath=yes
23105 sys_lib_dlsearch_path_spec="/usr/lib"
23107 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23109 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23110 *) need_version=no ;;
23112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23114 shlibpath_var=LD_LIBRARY_PATH
23115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23117 openbsd2.[89] | openbsd2.[89].*)
23118 shlibpath_overrides_runpath=no
23121 shlibpath_overrides_runpath=yes
23125 shlibpath_overrides_runpath=yes
23130 libname_spec='$name'
23133 library_names_spec='$libname${shared_ext} $libname.a'
23134 dynamic_linker='OS/2 ld.exe'
23135 shlibpath_var=LIBPATH
23138 osf3* | osf4* | osf5*)
23142 soname_spec='${libname}${release}${shared_ext}$major'
23143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23144 shlibpath_var=LD_LIBRARY_PATH
23145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23154 soname_spec='${libname}${release}${shared_ext}$major'
23155 shlibpath_var=LD_LIBRARY_PATH
23156 shlibpath_overrides_runpath=yes
23157 hardcode_into_libs=yes
23158 # ldd complains unless libraries are executable
23159 postinstall_cmds='chmod +x $lib'
23164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23165 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23166 shlibpath_var=LD_LIBRARY_PATH
23167 shlibpath_overrides_runpath=yes
23168 if test "$with_gnu_ld" = yes; then
23176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23177 soname_spec='${libname}${release}${shared_ext}$major'
23178 shlibpath_var=LD_LIBRARY_PATH
23179 case $host_vendor in
23181 shlibpath_overrides_runpath=no
23183 export_dynamic_flag_spec='${wl}-Blargedynsym'
23184 runpath_var=LD_RUN_PATH
23192 shlibpath_overrides_runpath=no
23193 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23199 if test -d /usr/nec ;then
23201 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23202 soname_spec='$libname${shared_ext}.$major'
23203 shlibpath_var=LD_LIBRARY_PATH
23207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23208 version_type=freebsd-elf
23211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23212 soname_spec='${libname}${release}${shared_ext}$major'
23213 shlibpath_var=LD_LIBRARY_PATH
23214 hardcode_into_libs=yes
23215 if test "$with_gnu_ld" = yes; then
23216 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23217 shlibpath_overrides_runpath=no
23219 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23220 shlibpath_overrides_runpath=yes
23223 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23227 sys_lib_dlsearch_path_spec='/usr/lib'
23232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23233 soname_spec='${libname}${release}${shared_ext}$major'
23234 shlibpath_var=LD_LIBRARY_PATH
23241 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23242 echo "${ECHO_T}$dynamic_linker" >&6; }
23243 test "$dynamic_linker" = no && can_build_shared=no
23245 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23246 if test "$GCC" = yes; then
23247 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23250 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23251 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23252 hardcode_action_F77=
23253 if test -n "$hardcode_libdir_flag_spec_F77" || \
23254 test -n "$runpath_var_F77" || \
23255 test "X$hardcode_automatic_F77" = "Xyes" ; then
23257 # We can hardcode non-existant directories.
23258 if test "$hardcode_direct_F77" != no &&
23259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23260 # have to relink, otherwise we might link with an installed library
23261 # when we should be linking with a yet-to-be-installed one
23262 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23263 test "$hardcode_minus_L_F77" != no; then
23264 # Linking always hardcodes the temporary library directory.
23265 hardcode_action_F77=relink
23267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23268 hardcode_action_F77=immediate
23271 # We cannot hardcode anything, or else we can only hardcode existing
23273 hardcode_action_F77=unsupported
23275 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23276 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23278 if test "$hardcode_action_F77" = relink; then
23279 # Fast installation is not supported
23280 enable_fast_install=no
23281 elif test "$shlibpath_overrides_runpath" = yes ||
23282 test "$enable_shared" = no; then
23283 # Fast installation is not necessary
23284 enable_fast_install=needless
23288 # The else clause should only fire when bootstrapping the
23289 # libtool distribution, otherwise you forgot to ship ltmain.sh
23290 # with your package, and you will get complaints that there are
23291 # no rules to generate ltmain.sh.
23292 if test -f "$ltmain"; then
23293 # See if we are running on zsh, and set the options which allow our commands through
23294 # without removal of \ escapes.
23295 if test -n "${ZSH_VERSION+set}" ; then
23296 setopt NO_GLOB_SUBST
23298 # Now quote all the things that may contain metacharacters while being
23299 # careful not to overquote the AC_SUBSTed values. We take copies of the
23300 # variables and quote the copies for generation of the libtool script.
23301 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23303 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23304 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23305 deplibs_check_method reload_flag reload_cmds need_locks \
23306 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23307 lt_cv_sys_global_symbol_to_c_name_address \
23308 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23309 old_postinstall_cmds old_postuninstall_cmds \
23313 lt_prog_compiler_wl_F77 \
23314 lt_prog_compiler_pic_F77 \
23315 lt_prog_compiler_static_F77 \
23316 lt_prog_compiler_no_builtin_flag_F77 \
23317 export_dynamic_flag_spec_F77 \
23318 thread_safe_flag_spec_F77 \
23319 whole_archive_flag_spec_F77 \
23320 enable_shared_with_static_runtimes_F77 \
23321 old_archive_cmds_F77 \
23322 old_archive_from_new_cmds_F77 \
23323 predep_objects_F77 \
23324 postdep_objects_F77 \
23327 compiler_lib_search_path_F77 \
23329 archive_expsym_cmds_F77 \
23330 postinstall_cmds_F77 \
23331 postuninstall_cmds_F77 \
23332 old_archive_from_expsyms_cmds_F77 \
23333 allow_undefined_flag_F77 \
23334 no_undefined_flag_F77 \
23335 export_symbols_cmds_F77 \
23336 hardcode_libdir_flag_spec_F77 \
23337 hardcode_libdir_flag_spec_ld_F77 \
23338 hardcode_libdir_separator_F77 \
23339 hardcode_automatic_F77 \
23341 module_expsym_cmds_F77 \
23342 lt_cv_prog_compiler_c_o_F77 \
23343 exclude_expsyms_F77 \
23344 include_expsyms_F77; do
23347 old_archive_cmds_F77 | \
23348 old_archive_from_new_cmds_F77 | \
23349 archive_cmds_F77 | \
23350 archive_expsym_cmds_F77 | \
23351 module_cmds_F77 | \
23352 module_expsym_cmds_F77 | \
23353 old_archive_from_expsyms_cmds_F77 | \
23354 export_symbols_cmds_F77 | \
23355 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23356 postinstall_cmds | postuninstall_cmds | \
23357 old_postinstall_cmds | old_postuninstall_cmds | \
23358 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23359 # Double-quote double-evaled strings.
23360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23369 *'\$0 --fallback-echo"')
23370 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23376 cat <<__EOF__ >> "$cfgfile"
23377 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23379 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23381 # Shell to use when invoking shell scripts.
23384 # Whether or not to build shared libraries.
23385 build_libtool_libs=$enable_shared
23387 # Whether or not to build static libraries.
23388 build_old_libs=$enable_static
23390 # Whether or not to add -lc for building shared libraries.
23391 build_libtool_need_lc=$archive_cmds_need_lc_F77
23393 # Whether or not to disallow shared libs when runtime libs are static
23394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23396 # Whether or not to optimize for fast installation.
23397 fast_install=$enable_fast_install
23400 host_alias=$host_alias
23404 # The build system.
23405 build_alias=$build_alias
23409 # An echo program that does not interpret backslashes.
23414 AR_FLAGS=$lt_AR_FLAGS
23419 # LTCC compiler flags.
23420 LTCFLAGS=$lt_LTCFLAGS
23422 # A language-specific compiler.
23423 CC=$lt_compiler_F77
23425 # Is the compiler the GNU C compiler?
23431 # The linker used to build libraries.
23434 # Whether we need hard or soft links.
23437 # A BSD-compatible nm program.
23440 # A symbol stripping program
23443 # Used to examine libraries when file_magic_cmd begins "file"
23444 MAGIC_CMD=$MAGIC_CMD
23446 # Used on cygwin: DLL creation program.
23449 # Used on cygwin: object dumper.
23452 # Used on cygwin: assembler.
23455 # The name of the directory that contains temporary libtool files.
23458 # How to create reloadable object files.
23459 reload_flag=$lt_reload_flag
23460 reload_cmds=$lt_reload_cmds
23462 # How to pass a linker flag through the compiler.
23463 wl=$lt_lt_prog_compiler_wl_F77
23465 # Object file suffix (normally "o").
23466 objext="$ac_objext"
23468 # Old archive suffix (normally "a").
23471 # Shared library suffix (normally ".so").
23472 shrext_cmds='$shrext_cmds'
23474 # Executable file suffix (normally "").
23477 # Additional compiler flags for building library objects.
23478 pic_flag=$lt_lt_prog_compiler_pic_F77
23481 # What is the maximum length of a command?
23482 max_cmd_len=$lt_cv_sys_max_cmd_len
23484 # Does compiler simultaneously support -c and -o options?
23485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23487 # Must we lock files when doing compilation?
23488 need_locks=$lt_need_locks
23490 # Do we need the lib prefix for modules?
23491 need_lib_prefix=$need_lib_prefix
23493 # Do we need a version for libraries?
23494 need_version=$need_version
23496 # Whether dlopen is supported.
23497 dlopen_support=$enable_dlopen
23499 # Whether dlopen of programs is supported.
23500 dlopen_self=$enable_dlopen_self
23502 # Whether dlopen of statically linked programs is supported.
23503 dlopen_self_static=$enable_dlopen_self_static
23505 # Compiler flag to prevent dynamic linking.
23506 link_static_flag=$lt_lt_prog_compiler_static_F77
23508 # Compiler flag to turn off builtin functions.
23509 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23511 # Compiler flag to allow reflexive dlopens.
23512 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23514 # Compiler flag to generate shared objects directly from archives.
23515 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23517 # Compiler flag to generate thread-safe objects.
23518 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23520 # Library versioning type.
23521 version_type=$version_type
23523 # Format of library name prefix.
23524 libname_spec=$lt_libname_spec
23526 # List of archive names. First name is the real one, the rest are links.
23527 # The last name is the one that the linker finds with -lNAME.
23528 library_names_spec=$lt_library_names_spec
23530 # The coded name of the library, if different from the real name.
23531 soname_spec=$lt_soname_spec
23533 # Commands used to build and install an old-style archive.
23535 old_archive_cmds=$lt_old_archive_cmds_F77
23536 old_postinstall_cmds=$lt_old_postinstall_cmds
23537 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23539 # Create an old-style archive from a shared archive.
23540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23542 # Create a temporary old-style archive to link instead of a shared archive.
23543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23545 # Commands used to build and install a shared archive.
23546 archive_cmds=$lt_archive_cmds_F77
23547 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23548 postinstall_cmds=$lt_postinstall_cmds
23549 postuninstall_cmds=$lt_postuninstall_cmds
23551 # Commands used to build a loadable module (assumed same as above if empty)
23552 module_cmds=$lt_module_cmds_F77
23553 module_expsym_cmds=$lt_module_expsym_cmds_F77
23555 # Commands to strip libraries.
23556 old_striplib=$lt_old_striplib
23557 striplib=$lt_striplib
23559 # Dependencies to place before the objects being linked to create a
23561 predep_objects=$lt_predep_objects_F77
23563 # Dependencies to place after the objects being linked to create a
23565 postdep_objects=$lt_postdep_objects_F77
23567 # Dependencies to place before the objects being linked to create a
23569 predeps=$lt_predeps_F77
23571 # Dependencies to place after the objects being linked to create a
23573 postdeps=$lt_postdeps_F77
23575 # The library search path used internally by the compiler when linking
23576 # a shared library.
23577 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23579 # Method to check whether dependent libraries are shared objects.
23580 deplibs_check_method=$lt_deplibs_check_method
23582 # Command to use when deplibs_check_method == file_magic.
23583 file_magic_cmd=$lt_file_magic_cmd
23585 # Flag that allows shared libraries with undefined symbols to be built.
23586 allow_undefined_flag=$lt_allow_undefined_flag_F77
23588 # Flag that forces no undefined symbols.
23589 no_undefined_flag=$lt_no_undefined_flag_F77
23591 # Commands used to finish a libtool library installation in a directory.
23592 finish_cmds=$lt_finish_cmds
23594 # Same as above, but a single script fragment to be evaled but not shown.
23595 finish_eval=$lt_finish_eval
23597 # Take the output of nm and produce a listing of raw symbols and C names.
23598 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23600 # Transform the output of nm in a proper C declaration
23601 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23603 # Transform the output of nm in a C name address pair
23604 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23606 # This is the shared library runtime path variable.
23607 runpath_var=$runpath_var
23609 # This is the shared library path variable.
23610 shlibpath_var=$shlibpath_var
23612 # Is shlibpath searched before the hard-coded library search path?
23613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23615 # How to hardcode a shared library path into an executable.
23616 hardcode_action=$hardcode_action_F77
23618 # Whether we should hardcode library paths into libraries.
23619 hardcode_into_libs=$hardcode_into_libs
23621 # Flag to hardcode \$libdir into a binary during linking.
23622 # This must work even if \$libdir does not exist.
23623 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23625 # If ld is used when linking, flag to hardcode \$libdir into
23626 # a binary during linking. This must work even if \$libdir does
23628 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23630 # Whether we need a single -rpath flag with a separated argument.
23631 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23633 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23634 # resulting binary.
23635 hardcode_direct=$hardcode_direct_F77
23637 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23638 # resulting binary.
23639 hardcode_minus_L=$hardcode_minus_L_F77
23641 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23642 # the resulting binary.
23643 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23645 # Set to yes if building a shared library automatically hardcodes DIR into the library
23646 # and all subsequent libraries and executables linked against it.
23647 hardcode_automatic=$hardcode_automatic_F77
23649 # Variables whose values should be saved in libtool wrapper scripts and
23650 # restored at relink time.
23651 variables_saved_for_relink="$variables_saved_for_relink"
23653 # Whether libtool must link a program against all its dependency libraries.
23654 link_all_deplibs=$link_all_deplibs_F77
23656 # Compile-time system search path for libraries
23657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23659 # Run-time system search path for libraries
23660 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23662 # Fix the shell variable \$srcfile for the compiler.
23663 fix_srcfile_path="$fix_srcfile_path_F77"
23665 # Set to yes if exported symbols are required.
23666 always_export_symbols=$always_export_symbols_F77
23668 # The commands to list exported symbols.
23669 export_symbols_cmds=$lt_export_symbols_cmds_F77
23671 # The commands to extract the exported symbol list from a shared archive.
23672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23674 # Symbols that should not be listed in the preloaded symbols.
23675 exclude_expsyms=$lt_exclude_expsyms_F77
23677 # Symbols that must always be exported.
23678 include_expsyms=$lt_include_expsyms_F77
23680 # ### END LIBTOOL TAG CONFIG: $tagname
23686 # If there is no Makefile yet, we rely on a make rule to execute
23687 # `config.status --recheck' to rerun these tests and create the
23688 # libtool script then.
23689 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23690 if test -f "$ltmain_in"; then
23691 test -f Makefile && make "$ltmain"
23697 ac_cpp='$CPP $CPPFLAGS'
23698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23710 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23712 ac_cpp='$CPP $CPPFLAGS'
23713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23718 # Source file extension for Java test sources.
23721 # Object file extension for compiled Java test sources.
23725 # Code to be used in simple compile tests
23726 lt_simple_compile_test_code="class foo {}\n"
23728 # Code to be used in simple link tests
23729 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23731 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23733 # If no C compiler was specified, use CC.
23736 # If no C compiler flags were specified, use CFLAGS.
23737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23739 # Allow CC to be a program name with arguments.
23743 # save warnings/boilerplate of simple test code
23744 ac_outfile=conftest.$ac_objext
23745 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23746 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23747 _lt_compiler_boilerplate=`cat conftest.err`
23750 ac_outfile=conftest.$ac_objext
23751 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23752 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23753 _lt_linker_boilerplate=`cat conftest.err`
23757 # Allow CC to be a program name with arguments.
23762 for cc_temp in $compiler""; do
23764 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23765 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23770 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23773 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23774 archive_cmds_need_lc_GCJ=no
23776 old_archive_cmds_GCJ=$old_archive_cmds
23779 lt_prog_compiler_no_builtin_flag_GCJ=
23781 if test "$GCC" = yes; then
23782 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23785 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23786 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23787 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23788 echo $ECHO_N "(cached) $ECHO_C" >&6
23790 lt_cv_prog_compiler_rtti_exceptions=no
23791 ac_outfile=conftest.$ac_objext
23792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23793 lt_compiler_flag="-fno-rtti -fno-exceptions"
23794 # Insert the option either (1) after the last *FLAGS variable, or
23795 # (2) before a word containing "conftest.", or (3) at the end.
23796 # Note that $ac_compile itself does not contain backslashes and begins
23797 # with a dollar sign (not a hyphen), so the echo should work correctly.
23798 # The option is referenced via a variable to avoid confusing sed.
23799 lt_compile=`echo "$ac_compile" | $SED \
23800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23802 -e 's:$: $lt_compiler_flag:'`
23803 (eval echo "\"\$as_me:23803: $lt_compile\"" >&5)
23804 (eval "$lt_compile" 2>conftest.err)
23806 cat conftest.err >&5
23807 echo "$as_me:23807: \$? = $ac_status" >&5
23808 if (exit $ac_status) && test -s "$ac_outfile"; then
23809 # The compiler can only warn and ignore the option if not recognized
23810 # So say no if there are warnings other than the usual output.
23811 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23814 lt_cv_prog_compiler_rtti_exceptions=yes
23820 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23821 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23823 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23824 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23831 lt_prog_compiler_wl_GCJ=
23832 lt_prog_compiler_pic_GCJ=
23833 lt_prog_compiler_static_GCJ=
23835 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23836 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23838 if test "$GCC" = yes; then
23839 lt_prog_compiler_wl_GCJ='-Wl,'
23840 lt_prog_compiler_static_GCJ='-static'
23844 # All AIX code is PIC.
23845 if test "$host_cpu" = ia64; then
23846 # AIX 5 now supports IA64 processor
23847 lt_prog_compiler_static_GCJ='-Bstatic'
23852 # FIXME: we need at least 68020 code to build shared libraries, but
23853 # adding the `-m68020' flag to GCC prevents building anything better,
23855 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23858 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23859 # PIC is the default for these OSes.
23862 mingw* | pw32* | os2*)
23863 # This hack is so that the source file can tell whether it is being
23864 # built for inclusion in a dll (and should export symbols for example).
23865 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23868 darwin* | rhapsody*)
23869 # PIC is the default on this platform
23870 # Common symbols not allowed in MH_DYLIB files
23871 lt_prog_compiler_pic_GCJ='-fno-common'
23875 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23876 # Instead, we relocate shared libraries at runtime.
23880 # Just because we use GCC doesn't mean we suddenly get shared libraries
23881 # on systems that don't support them.
23882 lt_prog_compiler_can_build_shared_GCJ=no
23887 if test -d /usr/nec; then
23888 lt_prog_compiler_pic_GCJ=-Kconform_pic
23893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23894 # not for PA HP-UX.
23900 lt_prog_compiler_pic_GCJ='-fPIC'
23906 lt_prog_compiler_pic_GCJ='-fPIC'
23910 # PORTME Check for flag to pass linker flags through the system compiler.
23913 lt_prog_compiler_wl_GCJ='-Wl,'
23914 if test "$host_cpu" = ia64; then
23915 # AIX 5 now supports IA64 processor
23916 lt_prog_compiler_static_GCJ='-Bstatic'
23918 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23922 # PIC is the default on this platform
23923 # Common symbols not allowed in MH_DYLIB files
23924 case $cc_basename in
23926 lt_prog_compiler_pic_GCJ='-qnocommon'
23927 lt_prog_compiler_wl_GCJ='-Wl,'
23932 mingw* | pw32* | os2*)
23933 # This hack is so that the source file can tell whether it is being
23934 # built for inclusion in a dll (and should export symbols for example).
23935 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23938 hpux9* | hpux10* | hpux11*)
23939 lt_prog_compiler_wl_GCJ='-Wl,'
23940 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23941 # not for PA HP-UX.
23947 lt_prog_compiler_pic_GCJ='+Z'
23950 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23951 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23954 irix5* | irix6* | nonstopux*)
23955 lt_prog_compiler_wl_GCJ='-Wl,'
23956 # PIC (with -KPIC) is the default.
23957 lt_prog_compiler_static_GCJ='-non_shared'
23961 lt_prog_compiler_pic_GCJ='-KPIC'
23962 lt_prog_compiler_static_GCJ='-Bstatic'
23966 case $cc_basename in
23968 lt_prog_compiler_wl_GCJ='-Wl,'
23969 lt_prog_compiler_pic_GCJ='-KPIC'
23970 lt_prog_compiler_static_GCJ='-static'
23972 pgcc* | pgf77* | pgf90* | pgf95*)
23973 # Portland Group compilers (*not* the Pentium gcc compiler,
23974 # which looks to be a dead project)
23975 lt_prog_compiler_wl_GCJ='-Wl,'
23976 lt_prog_compiler_pic_GCJ='-fpic'
23977 lt_prog_compiler_static_GCJ='-Bstatic'
23980 lt_prog_compiler_wl_GCJ='-Wl,'
23981 # All Alpha code is PIC.
23982 lt_prog_compiler_static_GCJ='-non_shared'
23987 osf3* | osf4* | osf5*)
23988 lt_prog_compiler_wl_GCJ='-Wl,'
23989 # All OSF/1 code is PIC.
23990 lt_prog_compiler_static_GCJ='-non_shared'
23994 lt_prog_compiler_pic_GCJ='-KPIC'
23995 lt_prog_compiler_static_GCJ='-Bstatic'
23996 case $cc_basename in
23997 f77* | f90* | f95*)
23998 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24000 lt_prog_compiler_wl_GCJ='-Wl,';;
24005 lt_prog_compiler_wl_GCJ='-Qoption ld '
24006 lt_prog_compiler_pic_GCJ='-PIC'
24007 lt_prog_compiler_static_GCJ='-Bstatic'
24010 sysv4 | sysv4.2uw2* | sysv4.3*)
24011 lt_prog_compiler_wl_GCJ='-Wl,'
24012 lt_prog_compiler_pic_GCJ='-KPIC'
24013 lt_prog_compiler_static_GCJ='-Bstatic'
24017 if test -d /usr/nec ;then
24018 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24019 lt_prog_compiler_static_GCJ='-Bstatic'
24023 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24024 lt_prog_compiler_wl_GCJ='-Wl,'
24025 lt_prog_compiler_pic_GCJ='-KPIC'
24026 lt_prog_compiler_static_GCJ='-Bstatic'
24030 lt_prog_compiler_wl_GCJ='-Wl,'
24031 lt_prog_compiler_can_build_shared_GCJ=no
24035 lt_prog_compiler_pic_GCJ='-pic'
24036 lt_prog_compiler_static_GCJ='-Bstatic'
24040 lt_prog_compiler_can_build_shared_GCJ=no
24045 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24046 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24049 # Check to make sure the PIC flag actually works.
24051 if test -n "$lt_prog_compiler_pic_GCJ"; then
24053 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24054 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24055 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24056 echo $ECHO_N "(cached) $ECHO_C" >&6
24058 lt_prog_compiler_pic_works_GCJ=no
24059 ac_outfile=conftest.$ac_objext
24060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24061 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24062 # Insert the option either (1) after the last *FLAGS variable, or
24063 # (2) before a word containing "conftest.", or (3) at the end.
24064 # Note that $ac_compile itself does not contain backslashes and begins
24065 # with a dollar sign (not a hyphen), so the echo should work correctly.
24066 # The option is referenced via a variable to avoid confusing sed.
24067 lt_compile=`echo "$ac_compile" | $SED \
24068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24070 -e 's:$: $lt_compiler_flag:'`
24071 (eval echo "\"\$as_me:24071: $lt_compile\"" >&5)
24072 (eval "$lt_compile" 2>conftest.err)
24074 cat conftest.err >&5
24075 echo "$as_me:24075: \$? = $ac_status" >&5
24076 if (exit $ac_status) && test -s "$ac_outfile"; then
24077 # The compiler can only warn and ignore the option if not recognized
24078 # So say no if there are warnings other than the usual output.
24079 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24082 lt_prog_compiler_pic_works_GCJ=yes
24088 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24089 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24091 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24092 case $lt_prog_compiler_pic_GCJ in
24094 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24097 lt_prog_compiler_pic_GCJ=
24098 lt_prog_compiler_can_build_shared_GCJ=no
24103 # For platforms which do not support PIC, -DPIC is meaningless:
24105 lt_prog_compiler_pic_GCJ=
24108 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24113 # Check to make sure the static flag actually works.
24115 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24116 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24117 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24118 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24121 lt_prog_compiler_static_works_GCJ=no
24122 save_LDFLAGS="$LDFLAGS"
24123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24124 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24126 # The linker can only warn and ignore the option if not recognized
24127 # So say no if there are warnings
24128 if test -s conftest.err; then
24129 # Append any errors to the config.log.
24130 cat conftest.err 1>&5
24131 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24133 if diff conftest.exp conftest.er2 >/dev/null; then
24134 lt_prog_compiler_static_works_GCJ=yes
24137 lt_prog_compiler_static_works_GCJ=yes
24141 LDFLAGS="$save_LDFLAGS"
24144 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24145 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24147 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24150 lt_prog_compiler_static_GCJ=
24154 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24155 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24156 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24157 echo $ECHO_N "(cached) $ECHO_C" >&6
24159 lt_cv_prog_compiler_c_o_GCJ=no
24160 $rm -r conftest 2>/dev/null
24164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24166 lt_compiler_flag="-o out/conftest2.$ac_objext"
24167 # Insert the option either (1) after the last *FLAGS variable, or
24168 # (2) before a word containing "conftest.", or (3) at the end.
24169 # Note that $ac_compile itself does not contain backslashes and begins
24170 # with a dollar sign (not a hyphen), so the echo should work correctly.
24171 lt_compile=`echo "$ac_compile" | $SED \
24172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24174 -e 's:$: $lt_compiler_flag:'`
24175 (eval echo "\"\$as_me:24175: $lt_compile\"" >&5)
24176 (eval "$lt_compile" 2>out/conftest.err)
24178 cat out/conftest.err >&5
24179 echo "$as_me:24179: \$? = $ac_status" >&5
24180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24182 # The compiler can only warn and ignore the option if not recognized
24183 # So say no if there are warnings
24184 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24187 lt_cv_prog_compiler_c_o_GCJ=yes
24192 # SGI C++ compiler will create directory out/ii_files/ for
24193 # template instantiation
24194 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24195 $rm out/* && rmdir out
24201 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24202 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24205 hard_links="nottested"
24206 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24207 # do not overwrite the value of need_locks provided by the user
24208 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24209 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24214 ln conftest.a conftest.b 2>&5 || hard_links=no
24215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24216 { echo "$as_me:$LINENO: result: $hard_links" >&5
24217 echo "${ECHO_T}$hard_links" >&6; }
24218 if test "$hard_links" = no; then
24219 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24220 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24227 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24228 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24231 allow_undefined_flag_GCJ=
24232 enable_shared_with_static_runtimes_GCJ=no
24234 archive_expsym_cmds_GCJ=
24235 old_archive_From_new_cmds_GCJ=
24236 old_archive_from_expsyms_cmds_GCJ=
24237 export_dynamic_flag_spec_GCJ=
24238 whole_archive_flag_spec_GCJ=
24239 thread_safe_flag_spec_GCJ=
24240 hardcode_libdir_flag_spec_GCJ=
24241 hardcode_libdir_flag_spec_ld_GCJ=
24242 hardcode_libdir_separator_GCJ=
24243 hardcode_direct_GCJ=no
24244 hardcode_minus_L_GCJ=no
24245 hardcode_shlibpath_var_GCJ=unsupported
24246 link_all_deplibs_GCJ=unknown
24247 hardcode_automatic_GCJ=no
24249 module_expsym_cmds_GCJ=
24250 always_export_symbols_GCJ=no
24251 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24252 # include_expsyms should be a list of space-separated symbols to be *always*
24253 # included in the symbol list
24254 include_expsyms_GCJ=
24255 # exclude_expsyms can be an extended regexp of symbols to exclude
24256 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24257 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24258 # as well as any symbol that contains `d'.
24259 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24260 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24261 # platforms (ab)use it in PIC code, but their linkers get confused if
24262 # the symbol is explicitly referenced. Since portable code cannot
24263 # rely on this symbol name, it's probably fine to never include it in
24264 # preloaded symbol tables.
24265 extract_expsyms_cmds=
24266 # Just being paranoid about ensuring that cc_basename is set.
24267 for cc_temp in $compiler""; do
24269 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24270 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24275 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24278 cygwin* | mingw* | pw32*)
24279 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24280 # When not using gcc, we currently assume that we are using
24281 # Microsoft Visual C++.
24282 if test "$GCC" != yes; then
24287 # we just hope/assume this is gcc and not c89 (= MSVC++)
24296 if test "$with_gnu_ld" = yes; then
24297 # If archive_cmds runs LD, not CC, wlarc should be empty
24300 # Set some defaults for GNU ld with shared library support. These
24301 # are reset later if shared libraries are not supported. Putting them
24302 # here allows them to be overridden if necessary.
24303 runpath_var=LD_RUN_PATH
24304 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24305 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24306 # ancient GNU ld didn't support --whole-archive et. al.
24307 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24308 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24310 whole_archive_flag_spec_GCJ=
24312 supports_anon_versioning=no
24313 case `$LD -v 2>/dev/null` in
24314 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24315 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24316 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24317 *\ 2.11.*) ;; # other 2.11 versions
24318 *) supports_anon_versioning=yes ;;
24321 # See if GNU ld supports shared libraries.
24323 aix3* | aix4* | aix5*)
24324 # On AIX/PPC, the GNU linker is very broken
24325 if test "$host_cpu" != ia64; then
24329 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24330 *** to be unable to reliably create shared libraries on AIX.
24331 *** Therefore, libtool is disabling shared libraries support. If you
24332 *** really care for shared libraries, you may want to modify your PATH
24333 *** so that a non-GNU linker is found, and then restart.
24340 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)'
24341 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24342 hardcode_minus_L_GCJ=yes
24344 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24345 # that the semantics of dynamic libraries on AmigaOS, at least up
24346 # to version 4, is to share data among multiple programs linked
24347 # with the same dynamic library. Since this doesn't match the
24348 # behavior of shared libraries on other platforms, we can't use
24354 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24355 allow_undefined_flag_GCJ=unsupported
24356 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24357 # support --undefined. This deserves some investigation. FIXME
24358 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24364 cygwin* | mingw* | pw32*)
24365 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24366 # as there is no search path for DLLs.
24367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24368 allow_undefined_flag_GCJ=unsupported
24369 always_export_symbols_GCJ=no
24370 enable_shared_with_static_runtimes_GCJ=yes
24371 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24373 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24374 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24375 # If the export-symbols file already is a .def file (1st line
24376 # is EXPORTS), use it as is; otherwise, prepend...
24377 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24378 cp $export_symbols $output_objdir/$soname.def;
24380 echo EXPORTS > $output_objdir/$soname.def;
24381 cat $export_symbols >> $output_objdir/$soname.def;
24383 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24390 hardcode_direct_GCJ=no
24391 hardcode_shlibpath_var_GCJ=no
24392 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24393 export_dynamic_flag_spec_GCJ='${wl}-E'
24394 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24395 # Instead, shared libraries are loaded at an image base (0x10000000 by
24396 # default) and relocated if they conflict, which is a slow very memory
24397 # consuming and fragmenting process. To avoid this, we pick a random,
24398 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24399 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24400 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'
24401 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'
24405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24407 case $cc_basename,$host_cpu in
24408 pgcc*) # Portland Group C compiler
24409 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'
24410 tmp_addflag=' $pic_flag'
24412 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24413 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'
24414 tmp_addflag=' $pic_flag -Mnomain' ;;
24415 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24416 tmp_addflag=' -i_dynamic' ;;
24417 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24418 tmp_addflag=' -i_dynamic -nofor_main' ;;
24419 ifc* | ifort*) # Intel Fortran compiler
24420 tmp_addflag=' -nofor_main' ;;
24422 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24424 if test $supports_anon_versioning = yes; then
24425 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24426 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24427 $echo "local: *; };" >> $output_objdir/$libname.ver~
24428 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24436 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24437 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24440 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24441 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24446 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24450 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24451 *** create shared libraries on Solaris systems. Therefore, libtool
24452 *** is disabling shared libraries support. We urge you to upgrade GNU
24453 *** binutils to release 2.9.1 or newer. Another option is to modify
24454 *** your PATH or compiler configuration so that the native linker is
24455 *** used, and then restart.
24458 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24459 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24460 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24467 case `$LD -v 2>&1` in
24468 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24472 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24473 *** reliably create shared libraries on SCO systems. Therefore, libtool
24474 *** is disabling shared libraries support. We urge you to upgrade GNU
24475 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24476 *** your PATH or compiler configuration so that the native linker is
24477 *** used, and then restart.
24482 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24483 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24494 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24496 hardcode_direct_GCJ=yes
24497 hardcode_shlibpath_var_GCJ=no
24501 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24502 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24503 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24510 if test "$ld_shlibs_GCJ" = no; then
24512 hardcode_libdir_flag_spec_GCJ=
24513 export_dynamic_flag_spec_GCJ=
24514 whole_archive_flag_spec_GCJ=
24517 # PORTME fill in a description of your system's linker (not GNU ld)
24520 allow_undefined_flag_GCJ=unsupported
24521 always_export_symbols_GCJ=yes
24522 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'
24523 # Note: this linker hardcodes the directories in LIBPATH if there
24524 # are no directories specified by -L.
24525 hardcode_minus_L_GCJ=yes
24526 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24527 # Neither direct hardcoding nor static linking is supported with a
24529 hardcode_direct_GCJ=unsupported
24534 if test "$host_cpu" = ia64; then
24535 # On IA64, the linker does run time linking by default, so we don't
24536 # have to do anything special.
24537 aix_use_runtimelinking=no
24538 exp_sym_flag='-Bexport'
24541 # If we're using GNU nm, then we don't want the "-C" option.
24542 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24543 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24544 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'
24546 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'
24548 aix_use_runtimelinking=no
24550 # Test if we are trying to use run time linking or normal
24551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24552 # need to do runtime linking.
24553 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24554 for ld_flag in $LDFLAGS; do
24555 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24556 aix_use_runtimelinking=yes
24563 exp_sym_flag='-bexport'
24564 no_entry_flag='-bnoentry'
24567 # When large executables or shared objects are built, AIX ld can
24568 # have problems creating the table of contents. If linking a library
24569 # or program results in "error TOC overflow" add -mminimal-toc to
24570 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24571 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24573 archive_cmds_GCJ=''
24574 hardcode_direct_GCJ=yes
24575 hardcode_libdir_separator_GCJ=':'
24576 link_all_deplibs_GCJ=yes
24578 if test "$GCC" = yes; then
24579 case $host_os in aix4.[012]|aix4.[012].*)
24580 # We only want to do this on AIX 4.2 and lower, the check
24581 # below for broken collect2 doesn't work under 4.3+
24582 collect2name=`${CC} -print-prog-name=collect2`
24583 if test -f "$collect2name" && \
24584 strings "$collect2name" | grep resolve_lib_name >/dev/null
24586 # We have reworked collect2
24587 hardcode_direct_GCJ=yes
24589 # We have old collect2
24590 hardcode_direct_GCJ=unsupported
24591 # It fails to find uninstalled libraries when the uninstalled
24592 # path is not listed in the libpath. Setting hardcode_minus_L
24593 # to unsupported forces relinking
24594 hardcode_minus_L_GCJ=yes
24595 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24596 hardcode_libdir_separator_GCJ=
24600 shared_flag='-shared'
24601 if test "$aix_use_runtimelinking" = yes; then
24602 shared_flag="$shared_flag "'${wl}-G'
24606 if test "$host_cpu" = ia64; then
24607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24608 # chokes on -Wl,-G. The following line is correct:
24611 if test "$aix_use_runtimelinking" = yes; then
24612 shared_flag='${wl}-G'
24614 shared_flag='${wl}-bM:SRE'
24619 # It seems that -bexpall does not export symbols beginning with
24620 # underscore (_), so it is better to generate a list of symbols to export.
24621 always_export_symbols_GCJ=yes
24622 if test "$aix_use_runtimelinking" = yes; then
24623 # Warning - without using the other runtime loading flags (-brtl),
24624 # -berok will link without error, but may produce a broken library.
24625 allow_undefined_flag_GCJ='-berok'
24626 # Determine the default libpath from the value encoded in an empty executable.
24627 cat >conftest.$ac_ext <<_ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24642 rm -f conftest.$ac_objext conftest$ac_exeext
24643 if { (ac_try="$ac_link"
24644 case "(($ac_try" in
24645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646 *) ac_try_echo=$ac_try;;
24648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24649 (eval "$ac_link") 2>conftest.er1
24651 grep -v '^ *+' conftest.er1 >conftest.err
24653 cat conftest.err >&5
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); } &&
24656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24657 { (case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24662 (eval "$ac_try") 2>&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); }; } &&
24666 { ac_try='test -s conftest$ac_exeext'
24667 { (case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_try") 2>&5
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); }; }; then
24677 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24679 # Check for a 64-bit object if we didn't find anything.
24680 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; }
24683 echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24689 rm -f core conftest.err conftest.$ac_objext \
24690 conftest$ac_exeext conftest.$ac_ext
24691 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24693 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24694 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"
24696 if test "$host_cpu" = ia64; then
24697 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24698 allow_undefined_flag_GCJ="-z nodefs"
24699 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"
24701 # Determine the default libpath from the value encoded in an empty executable.
24702 cat >conftest.$ac_ext <<_ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h. */
24717 rm -f conftest.$ac_objext conftest$ac_exeext
24718 if { (ac_try="$ac_link"
24719 case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_link") 2>conftest.er1
24726 grep -v '^ *+' conftest.er1 >conftest.err
24728 cat conftest.err >&5
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } &&
24731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24732 { (case "(($ac_try" in
24733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734 *) ac_try_echo=$ac_try;;
24736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737 (eval "$ac_try") 2>&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; } &&
24741 { ac_try='test -s conftest$ac_exeext'
24742 { (case "(($ac_try" in
24743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24744 *) ac_try_echo=$ac_try;;
24746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24747 (eval "$ac_try") 2>&5
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); }; }; then
24752 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24754 # Check for a 64-bit object if we didn't find anything.
24755 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; }
24758 echo "$as_me: failed program was:" >&5
24759 sed 's/^/| /' conftest.$ac_ext >&5
24764 rm -f core conftest.err conftest.$ac_objext \
24765 conftest$ac_exeext conftest.$ac_ext
24766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24768 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24769 # Warning - without using the other run time loading flags,
24770 # -berok will link without error, but may produce a broken library.
24771 no_undefined_flag_GCJ=' ${wl}-bernotok'
24772 allow_undefined_flag_GCJ=' ${wl}-berok'
24773 # Exported symbols can be pulled into shared objects from archives
24774 whole_archive_flag_spec_GCJ='$convenience'
24775 archive_cmds_need_lc_GCJ=yes
24776 # This is similar to how AIX traditionally builds its shared libraries.
24777 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'
24783 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)'
24784 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24785 hardcode_minus_L_GCJ=yes
24786 # see comment about different semantics on the GNU ld section
24791 export_dynamic_flag_spec_GCJ=-rdynamic
24794 cygwin* | mingw* | pw32*)
24795 # When not using gcc, we currently assume that we are using
24796 # Microsoft Visual C++.
24797 # hardcode_libdir_flag_spec is actually meaningless, as there is
24798 # no search path for DLLs.
24799 hardcode_libdir_flag_spec_GCJ=' '
24800 allow_undefined_flag_GCJ=unsupported
24801 # Tell ltmain to make .lib files, not .a files.
24803 # Tell ltmain to make .dll files, not .so files.
24805 # FIXME: Setting linknames here is a bad hack.
24806 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24807 # The linker will automatically build a .lib file if we build a DLL.
24808 old_archive_From_new_cmds_GCJ='true'
24809 # FIXME: Should let the user specify the lib program.
24810 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24811 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24812 enable_shared_with_static_runtimes_GCJ=yes
24815 darwin* | rhapsody*)
24817 rhapsody* | darwin1.[012])
24818 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24821 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24822 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24824 case ${MACOSX_DEPLOYMENT_TARGET} in
24826 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24829 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24835 archive_cmds_need_lc_GCJ=no
24836 hardcode_direct_GCJ=no
24837 hardcode_automatic_GCJ=yes
24838 hardcode_shlibpath_var_GCJ=unsupported
24839 whole_archive_flag_spec_GCJ=''
24840 link_all_deplibs_GCJ=yes
24841 if test "$GCC" = yes ; then
24842 output_verbose_link_cmd='echo'
24843 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24844 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24845 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24846 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}'
24847 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}'
24849 case $cc_basename in
24851 output_verbose_link_cmd='echo'
24852 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24853 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24854 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24855 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}'
24856 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}'
24866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24867 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24868 hardcode_shlibpath_var_GCJ=no
24875 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24876 # support. Future versions do this automatically, but an explicit c++rt0.o
24877 # does not break anything, and helps significantly (at the cost of a little
24880 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24881 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24882 hardcode_direct_GCJ=yes
24883 hardcode_shlibpath_var_GCJ=no
24886 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24889 hardcode_direct_GCJ=yes
24890 hardcode_minus_L_GCJ=yes
24891 hardcode_shlibpath_var_GCJ=no
24894 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24895 freebsd* | kfreebsd*-gnu | dragonfly*)
24896 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24897 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24898 hardcode_direct_GCJ=yes
24899 hardcode_shlibpath_var_GCJ=no
24903 if test "$GCC" = yes; then
24904 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'
24906 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'
24908 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24909 hardcode_libdir_separator_GCJ=:
24910 hardcode_direct_GCJ=yes
24912 # hardcode_minus_L: Not really in the search PATH,
24913 # but as the default location of the library.
24914 hardcode_minus_L_GCJ=yes
24915 export_dynamic_flag_spec_GCJ='${wl}-E'
24919 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24920 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24922 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24924 if test "$with_gnu_ld" = no; then
24925 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24926 hardcode_libdir_separator_GCJ=:
24928 hardcode_direct_GCJ=yes
24929 export_dynamic_flag_spec_GCJ='${wl}-E'
24931 # hardcode_minus_L: Not really in the search PATH,
24932 # but as the default location of the library.
24933 hardcode_minus_L_GCJ=yes
24938 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24941 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24944 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24947 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24953 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24956 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24959 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24963 if test "$with_gnu_ld" = no; then
24964 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24965 hardcode_libdir_separator_GCJ=:
24969 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24970 hardcode_direct_GCJ=no
24971 hardcode_shlibpath_var_GCJ=no
24974 hardcode_direct_GCJ=yes
24975 export_dynamic_flag_spec_GCJ='${wl}-E'
24977 # hardcode_minus_L: Not really in the search PATH,
24978 # but as the default location of the library.
24979 hardcode_minus_L_GCJ=yes
24985 irix5* | irix6* | nonstopux*)
24986 if test "$GCC" = yes; then
24987 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'
24989 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'
24990 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24992 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24993 hardcode_libdir_separator_GCJ=:
24994 link_all_deplibs_GCJ=yes
24998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24999 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25001 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25003 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25004 hardcode_direct_GCJ=yes
25005 hardcode_shlibpath_var_GCJ=no
25009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25010 hardcode_direct_GCJ=yes
25011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25012 hardcode_libdir_separator_GCJ=:
25013 hardcode_shlibpath_var_GCJ=no
25017 hardcode_direct_GCJ=yes
25018 hardcode_shlibpath_var_GCJ=no
25019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25020 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25021 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25022 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25023 export_dynamic_flag_spec_GCJ='${wl}-E'
25026 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25027 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25028 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25031 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25032 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25040 hardcode_minus_L_GCJ=yes
25041 allow_undefined_flag_GCJ=unsupported
25042 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'
25043 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25047 if test "$GCC" = yes; then
25048 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25049 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'
25051 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25052 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'
25054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25055 hardcode_libdir_separator_GCJ=:
25058 osf4* | osf5*) # as osf3* with the addition of -msym flag
25059 if test "$GCC" = yes; then
25060 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25061 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'
25062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25064 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25065 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'
25066 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~
25067 $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'
25069 # Both c and cxx compiler support -rpath directly
25070 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25072 hardcode_libdir_separator_GCJ=:
25076 no_undefined_flag_GCJ=' -z text'
25077 if test "$GCC" = yes; then
25079 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25080 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25081 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25084 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25085 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25086 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25088 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25089 hardcode_shlibpath_var_GCJ=no
25091 solaris2.[0-5] | solaris2.[0-5].*) ;;
25093 # The compiler driver will combine linker options so we
25094 # cannot just pass the convience library names through
25095 # without $wl, iff we do not link with $LD.
25096 # Luckily, gcc supports the same syntax we need for Sun Studio.
25097 # Supported since Solaris 2.6 (maybe 2.5.1?)
25100 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25102 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' ;;
25105 link_all_deplibs_GCJ=yes
25109 if test "x$host_vendor" = xsequent; then
25110 # Use $CC to link under sequent, because it throws in some extra .o
25111 # files that make .init and .fini sections work.
25112 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25114 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25116 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25117 hardcode_direct_GCJ=yes
25118 hardcode_minus_L_GCJ=yes
25119 hardcode_shlibpath_var_GCJ=no
25123 case $host_vendor in
25125 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25126 hardcode_direct_GCJ=yes # is this really true???
25129 ## LD is ld it makes a PLAMLIB
25130 ## CC just makes a GrossModule.
25131 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25132 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25133 hardcode_direct_GCJ=no
25136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25137 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25140 runpath_var='LD_RUN_PATH'
25141 hardcode_shlibpath_var_GCJ=no
25145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25146 hardcode_shlibpath_var_GCJ=no
25147 export_dynamic_flag_spec_GCJ='-Bexport'
25151 if test -d /usr/nec; then
25152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25153 hardcode_shlibpath_var_GCJ=no
25154 runpath_var=LD_RUN_PATH
25155 hardcode_runpath_var=yes
25160 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25161 no_undefined_flag_GCJ='${wl}-z,text'
25162 archive_cmds_need_lc_GCJ=no
25163 hardcode_shlibpath_var_GCJ=no
25164 runpath_var='LD_RUN_PATH'
25166 if test "$GCC" = yes; then
25167 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25168 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25170 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25171 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25175 sysv5* | sco3.2v5* | sco5v6*)
25176 # Note: We can NOT use -z defs as we might desire, because we do not
25177 # link with -lc, and that would cause any symbols used from libc to
25178 # always be unresolved, which means just about no library would
25179 # ever link correctly. If we're not using GNU ld we use -z text
25180 # though, which does catch some bad symbols but isn't as heavy-handed
25182 no_undefined_flag_GCJ='${wl}-z,text'
25183 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25184 archive_cmds_need_lc_GCJ=no
25185 hardcode_shlibpath_var_GCJ=no
25186 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25187 hardcode_libdir_separator_GCJ=':'
25188 link_all_deplibs_GCJ=yes
25189 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25190 runpath_var='LD_RUN_PATH'
25192 if test "$GCC" = yes; then
25193 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25194 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25196 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25197 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25204 hardcode_shlibpath_var_GCJ=no
25213 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25214 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25215 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25218 # Do we need to explicitly link libc?
25220 case "x$archive_cmds_need_lc_GCJ" in
25222 # Assume -lc should be added
25223 archive_cmds_need_lc_GCJ=yes
25225 if test "$enable_shared" = yes && test "$GCC" = yes; then
25226 case $archive_cmds_GCJ in
25228 # FIXME: we may have to deal with multi-command sequences.
25231 # Test whether the compiler implicitly links with -lc since on some
25232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25233 # to ld, don't add -lc before -lgcc.
25234 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25235 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25237 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25240 (eval $ac_compile) 2>&5
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); } 2>conftest.err; then
25246 libobjs=conftest.$ac_objext
25248 wl=$lt_prog_compiler_wl_GCJ
25249 pic_flag=$lt_prog_compiler_pic_GCJ
25255 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25256 allow_undefined_flag_GCJ=
25257 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25258 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }
25263 archive_cmds_need_lc_GCJ=no
25265 archive_cmds_need_lc_GCJ=yes
25267 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25269 cat conftest.err 1>&5
25272 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25273 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25280 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25281 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25282 library_names_spec=
25283 libname_spec='lib$name'
25287 postuninstall_cmds=
25291 shlibpath_overrides_runpath=unknown
25293 dynamic_linker="$host_os ld.so"
25294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25295 if test "$GCC" = yes; then
25296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25297 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25298 # if the path contains ";" then we assume it to be the separator
25299 # otherwise default to the standard path separator (i.e. ":") - it is
25300 # assumed that no part of a normal pathname contains ";" but that should
25301 # okay in the real world where ";" in dirpaths is itself problematic.
25302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25309 need_lib_prefix=unknown
25310 hardcode_into_libs=no
25312 # when you set need_version to no, make sure it does not cause -set_version
25313 # flags to be left without arguments
25314 need_version=unknown
25319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25320 shlibpath_var=LIBPATH
25322 # AIX 3 has no versioning support, so we append a major version to the name.
25323 soname_spec='${libname}${release}${shared_ext}$major'
25330 hardcode_into_libs=yes
25331 if test "$host_cpu" = ia64; then
25332 # AIX 5 supports IA64
25333 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25334 shlibpath_var=LD_LIBRARY_PATH
25336 # With GCC up to 2.95.x, collect2 would create an import file
25337 # for dependence libraries. The import file would start with
25338 # the line `#! .'. This would cause the generated library to
25339 # depend on `.', always an invalid library. This was fixed in
25340 # development snapshots of GCC prior to 3.0.
25342 aix4 | aix4.[01] | aix4.[01].*)
25343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25345 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25348 can_build_shared=no
25352 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25353 # soname into executable. Probably we can add versioning support to
25354 # collect2, so additional links can be useful in future.
25355 if test "$aix_use_runtimelinking" = yes; then
25356 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25357 # instead of lib<name>.a to let people know that these are not
25358 # typical AIX shared libraries.
25359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25361 # We preserve .a as extension for shared libraries through AIX4.2
25362 # and later when we are not doing run time linking.
25363 library_names_spec='${libname}${release}.a $libname.a'
25364 soname_spec='${libname}${release}${shared_ext}$major'
25366 shlibpath_var=LIBPATH
25371 library_names_spec='$libname.ixlibrary $libname.a'
25372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25373 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'
25377 library_names_spec='${libname}${shared_ext}'
25378 dynamic_linker="$host_os ld.so"
25379 shlibpath_var=LIBRARY_PATH
25385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25386 soname_spec='${libname}${release}${shared_ext}$major'
25387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25388 shlibpath_var=LD_LIBRARY_PATH
25389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25391 # the default ld.so.conf also contains /usr/contrib/lib and
25392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25393 # libtool to hard-code these into programs
25396 cygwin* | mingw* | pw32*)
25397 version_type=windows
25402 case $GCC,$host_os in
25403 yes,cygwin* | yes,mingw* | yes,pw32*)
25404 library_names_spec='$libname.dll.a'
25405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25406 postinstall_cmds='base_file=`basename \${file}`~
25407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25408 dldir=$destdir/`dirname \$dlpath`~
25409 test -d \$dldir || mkdir -p \$dldir~
25410 $install_prog $dir/$dlname \$dldir/$dlname~
25411 chmod a+x \$dldir/$dlname'
25412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25413 dlpath=$dir/\$dldll~
25415 shlibpath_overrides_runpath=yes
25419 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25420 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25421 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25424 # MinGW DLLs use traditional 'lib' prefix
25425 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25426 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25427 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25428 # It is most probably a Windows format PATH printed by
25429 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25430 # path with ; separators, and with drive letters. We can handle the
25431 # drive letters (cygwin fileutils understands them), so leave them,
25432 # especially as we might pass files found there to a mingw objdump,
25433 # which wouldn't understand a cygwinified path. Ahh.
25434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25440 # pw32 DLLs use 'pw' prefix rather than 'lib'
25441 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25447 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25450 dynamic_linker='Win32 ld.exe'
25451 # FIXME: first we should search . and the directory the executable is in
25455 darwin* | rhapsody*)
25456 dynamic_linker="$host_os dyld"
25457 version_type=darwin
25460 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25461 soname_spec='${libname}${release}${major}$shared_ext'
25462 shlibpath_overrides_runpath=yes
25463 shlibpath_var=DYLD_LIBRARY_PATH
25464 shrext_cmds='.dylib'
25465 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25466 if test "$GCC" = yes; then
25467 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"`
25469 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25471 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25479 soname_spec='${libname}${release}${shared_ext}$major'
25480 shlibpath_var=LD_LIBRARY_PATH
25491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25492 soname_spec='${libname}${release}${shared_ext}$major'
25493 shlibpath_var=LD_LIBRARY_PATH
25494 shlibpath_overrides_runpath=no
25495 hardcode_into_libs=yes
25496 dynamic_linker='GNU ld.so'
25499 freebsd* | dragonfly*)
25500 # DragonFly does not have aout. When/if they implement a new
25501 # versioning mechanism, adjust this.
25502 if test -x /usr/bin/objformat; then
25503 objformat=`/usr/bin/objformat`
25506 freebsd[123]*) objformat=aout ;;
25507 *) objformat=elf ;;
25510 version_type=freebsd-$objformat
25511 case $version_type in
25513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25522 shlibpath_var=LD_LIBRARY_PATH
25525 shlibpath_overrides_runpath=yes
25527 freebsd3.[01]* | freebsdelf3.[01]*)
25528 shlibpath_overrides_runpath=yes
25529 hardcode_into_libs=yes
25531 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25532 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25533 shlibpath_overrides_runpath=no
25534 hardcode_into_libs=yes
25536 freebsd*) # from 4.6 on
25537 shlibpath_overrides_runpath=yes
25538 hardcode_into_libs=yes
25547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25548 soname_spec='${libname}${release}${shared_ext}$major'
25549 shlibpath_var=LD_LIBRARY_PATH
25550 hardcode_into_libs=yes
25553 hpux9* | hpux10* | hpux11*)
25554 # Give a soname corresponding to the major version so that dld.sl refuses to
25555 # link against other versions.
25562 hardcode_into_libs=yes
25563 dynamic_linker="$host_os dld.so"
25564 shlibpath_var=LD_LIBRARY_PATH
25565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25567 soname_spec='${libname}${release}${shared_ext}$major'
25568 if test "X$HPUX_IA64_MODE" = X32; then
25569 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25571 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25577 hardcode_into_libs=yes
25578 dynamic_linker="$host_os dld.sl"
25579 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25582 soname_spec='${libname}${release}${shared_ext}$major'
25583 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25588 dynamic_linker="$host_os dld.sl"
25589 shlibpath_var=SHLIB_PATH
25590 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25592 soname_spec='${libname}${release}${shared_ext}$major'
25595 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25596 postinstall_cmds='chmod 555 $lib'
25603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25604 soname_spec='${libname}${release}${shared_ext}$major'
25605 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25606 shlibpath_var=LD_LIBRARY_PATH
25607 shlibpath_overrides_runpath=no
25608 hardcode_into_libs=yes
25611 irix5* | irix6* | nonstopux*)
25613 nonstopux*) version_type=nonstopux ;;
25615 if test "$lt_cv_prog_gnu_ld" = yes; then
25623 soname_spec='${libname}${release}${shared_ext}$major'
25624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25626 irix5* | nonstopux*)
25627 libsuff= shlibsuff=
25630 case $LD in # libtool.m4 will add one of these switches to LD
25631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25632 libsuff= shlibsuff= libmagic=32-bit;;
25633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25634 libsuff=32 shlibsuff=N32 libmagic=N32;;
25635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25637 *) libsuff= shlibsuff= libmagic=never-match;;
25641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25642 shlibpath_overrides_runpath=no
25643 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25644 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25645 hardcode_into_libs=yes
25648 # No shared lib support for Linux oldld, aout, or coff.
25649 linux*oldld* | linux*aout* | linux*coff*)
25653 # This must be Linux ELF.
25658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25659 soname_spec='${libname}${release}${shared_ext}$major'
25660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25661 shlibpath_var=LD_LIBRARY_PATH
25662 shlibpath_overrides_runpath=no
25663 # This implies no fast_install, which is unacceptable.
25664 # Some rework will be needed to allow for fast_install
25665 # before this can be enabled.
25666 hardcode_into_libs=yes
25668 # Append ld.so.conf contents to the search path
25669 if test -f /etc/ld.so.conf; then
25670 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' ' '`
25671 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25674 # We used to test for /lib/ld.so.1 and disable shared libraries on
25675 # powerpc, because MkLinux only supported shared libraries with the
25676 # GNU dynamic linker. Since this was broken with cross compilers,
25677 # most powerpc-linux boxes support dynamic linking these days and
25678 # people can always --disable-shared, the test was removed, and we
25679 # assume the GNU/Linux dynamic linker is in use.
25680 dynamic_linker='GNU/Linux ld.so'
25687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25688 soname_spec='${libname}${release}${shared_ext}$major'
25689 shlibpath_var=LD_LIBRARY_PATH
25690 shlibpath_overrides_runpath=no
25691 hardcode_into_libs=yes
25692 dynamic_linker='GNU ld.so'
25699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25702 dynamic_linker='NetBSD (a.out) ld.so'
25704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25705 soname_spec='${libname}${release}${shared_ext}$major'
25706 dynamic_linker='NetBSD ld.elf_so'
25708 shlibpath_var=LD_LIBRARY_PATH
25709 shlibpath_overrides_runpath=yes
25710 hardcode_into_libs=yes
25715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25716 shlibpath_var=LD_LIBRARY_PATH
25717 shlibpath_overrides_runpath=yes
25724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25725 soname_spec='${libname}${release}${shared_ext}$major'
25726 shlibpath_var=LD_LIBRARY_PATH
25727 shlibpath_overrides_runpath=yes
25732 sys_lib_dlsearch_path_spec="/usr/lib"
25734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25736 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25737 *) need_version=no ;;
25739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25741 shlibpath_var=LD_LIBRARY_PATH
25742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25744 openbsd2.[89] | openbsd2.[89].*)
25745 shlibpath_overrides_runpath=no
25748 shlibpath_overrides_runpath=yes
25752 shlibpath_overrides_runpath=yes
25757 libname_spec='$name'
25760 library_names_spec='$libname${shared_ext} $libname.a'
25761 dynamic_linker='OS/2 ld.exe'
25762 shlibpath_var=LIBPATH
25765 osf3* | osf4* | osf5*)
25769 soname_spec='${libname}${release}${shared_ext}$major'
25770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25771 shlibpath_var=LD_LIBRARY_PATH
25772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25781 soname_spec='${libname}${release}${shared_ext}$major'
25782 shlibpath_var=LD_LIBRARY_PATH
25783 shlibpath_overrides_runpath=yes
25784 hardcode_into_libs=yes
25785 # ldd complains unless libraries are executable
25786 postinstall_cmds='chmod +x $lib'
25791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25792 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25793 shlibpath_var=LD_LIBRARY_PATH
25794 shlibpath_overrides_runpath=yes
25795 if test "$with_gnu_ld" = yes; then
25803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25804 soname_spec='${libname}${release}${shared_ext}$major'
25805 shlibpath_var=LD_LIBRARY_PATH
25806 case $host_vendor in
25808 shlibpath_overrides_runpath=no
25810 export_dynamic_flag_spec='${wl}-Blargedynsym'
25811 runpath_var=LD_RUN_PATH
25819 shlibpath_overrides_runpath=no
25820 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25826 if test -d /usr/nec ;then
25828 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25829 soname_spec='$libname${shared_ext}.$major'
25830 shlibpath_var=LD_LIBRARY_PATH
25834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25835 version_type=freebsd-elf
25838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25839 soname_spec='${libname}${release}${shared_ext}$major'
25840 shlibpath_var=LD_LIBRARY_PATH
25841 hardcode_into_libs=yes
25842 if test "$with_gnu_ld" = yes; then
25843 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25844 shlibpath_overrides_runpath=no
25846 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25847 shlibpath_overrides_runpath=yes
25850 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25854 sys_lib_dlsearch_path_spec='/usr/lib'
25859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25860 soname_spec='${libname}${release}${shared_ext}$major'
25861 shlibpath_var=LD_LIBRARY_PATH
25868 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25869 echo "${ECHO_T}$dynamic_linker" >&6; }
25870 test "$dynamic_linker" = no && can_build_shared=no
25872 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25873 if test "$GCC" = yes; then
25874 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25877 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25878 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25879 hardcode_action_GCJ=
25880 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25881 test -n "$runpath_var_GCJ" || \
25882 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25884 # We can hardcode non-existant directories.
25885 if test "$hardcode_direct_GCJ" != no &&
25886 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25887 # have to relink, otherwise we might link with an installed library
25888 # when we should be linking with a yet-to-be-installed one
25889 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25890 test "$hardcode_minus_L_GCJ" != no; then
25891 # Linking always hardcodes the temporary library directory.
25892 hardcode_action_GCJ=relink
25894 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25895 hardcode_action_GCJ=immediate
25898 # We cannot hardcode anything, or else we can only hardcode existing
25900 hardcode_action_GCJ=unsupported
25902 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25903 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25905 if test "$hardcode_action_GCJ" = relink; then
25906 # Fast installation is not supported
25907 enable_fast_install=no
25908 elif test "$shlibpath_overrides_runpath" = yes ||
25909 test "$enable_shared" = no; then
25910 # Fast installation is not necessary
25911 enable_fast_install=needless
25915 # The else clause should only fire when bootstrapping the
25916 # libtool distribution, otherwise you forgot to ship ltmain.sh
25917 # with your package, and you will get complaints that there are
25918 # no rules to generate ltmain.sh.
25919 if test -f "$ltmain"; then
25920 # See if we are running on zsh, and set the options which allow our commands through
25921 # without removal of \ escapes.
25922 if test -n "${ZSH_VERSION+set}" ; then
25923 setopt NO_GLOB_SUBST
25925 # Now quote all the things that may contain metacharacters while being
25926 # careful not to overquote the AC_SUBSTed values. We take copies of the
25927 # variables and quote the copies for generation of the libtool script.
25928 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25930 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25931 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25932 deplibs_check_method reload_flag reload_cmds need_locks \
25933 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25934 lt_cv_sys_global_symbol_to_c_name_address \
25935 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25936 old_postinstall_cmds old_postuninstall_cmds \
25940 lt_prog_compiler_wl_GCJ \
25941 lt_prog_compiler_pic_GCJ \
25942 lt_prog_compiler_static_GCJ \
25943 lt_prog_compiler_no_builtin_flag_GCJ \
25944 export_dynamic_flag_spec_GCJ \
25945 thread_safe_flag_spec_GCJ \
25946 whole_archive_flag_spec_GCJ \
25947 enable_shared_with_static_runtimes_GCJ \
25948 old_archive_cmds_GCJ \
25949 old_archive_from_new_cmds_GCJ \
25950 predep_objects_GCJ \
25951 postdep_objects_GCJ \
25954 compiler_lib_search_path_GCJ \
25956 archive_expsym_cmds_GCJ \
25957 postinstall_cmds_GCJ \
25958 postuninstall_cmds_GCJ \
25959 old_archive_from_expsyms_cmds_GCJ \
25960 allow_undefined_flag_GCJ \
25961 no_undefined_flag_GCJ \
25962 export_symbols_cmds_GCJ \
25963 hardcode_libdir_flag_spec_GCJ \
25964 hardcode_libdir_flag_spec_ld_GCJ \
25965 hardcode_libdir_separator_GCJ \
25966 hardcode_automatic_GCJ \
25968 module_expsym_cmds_GCJ \
25969 lt_cv_prog_compiler_c_o_GCJ \
25970 exclude_expsyms_GCJ \
25971 include_expsyms_GCJ; do
25974 old_archive_cmds_GCJ | \
25975 old_archive_from_new_cmds_GCJ | \
25976 archive_cmds_GCJ | \
25977 archive_expsym_cmds_GCJ | \
25978 module_cmds_GCJ | \
25979 module_expsym_cmds_GCJ | \
25980 old_archive_from_expsyms_cmds_GCJ | \
25981 export_symbols_cmds_GCJ | \
25982 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25983 postinstall_cmds | postuninstall_cmds | \
25984 old_postinstall_cmds | old_postuninstall_cmds | \
25985 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25986 # Double-quote double-evaled strings.
25987 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25990 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25996 *'\$0 --fallback-echo"')
25997 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26003 cat <<__EOF__ >> "$cfgfile"
26004 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26006 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26008 # Shell to use when invoking shell scripts.
26011 # Whether or not to build shared libraries.
26012 build_libtool_libs=$enable_shared
26014 # Whether or not to build static libraries.
26015 build_old_libs=$enable_static
26017 # Whether or not to add -lc for building shared libraries.
26018 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26020 # Whether or not to disallow shared libs when runtime libs are static
26021 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26023 # Whether or not to optimize for fast installation.
26024 fast_install=$enable_fast_install
26027 host_alias=$host_alias
26031 # The build system.
26032 build_alias=$build_alias
26036 # An echo program that does not interpret backslashes.
26041 AR_FLAGS=$lt_AR_FLAGS
26046 # LTCC compiler flags.
26047 LTCFLAGS=$lt_LTCFLAGS
26049 # A language-specific compiler.
26050 CC=$lt_compiler_GCJ
26052 # Is the compiler the GNU C compiler?
26058 # The linker used to build libraries.
26061 # Whether we need hard or soft links.
26064 # A BSD-compatible nm program.
26067 # A symbol stripping program
26070 # Used to examine libraries when file_magic_cmd begins "file"
26071 MAGIC_CMD=$MAGIC_CMD
26073 # Used on cygwin: DLL creation program.
26076 # Used on cygwin: object dumper.
26079 # Used on cygwin: assembler.
26082 # The name of the directory that contains temporary libtool files.
26085 # How to create reloadable object files.
26086 reload_flag=$lt_reload_flag
26087 reload_cmds=$lt_reload_cmds
26089 # How to pass a linker flag through the compiler.
26090 wl=$lt_lt_prog_compiler_wl_GCJ
26092 # Object file suffix (normally "o").
26093 objext="$ac_objext"
26095 # Old archive suffix (normally "a").
26098 # Shared library suffix (normally ".so").
26099 shrext_cmds='$shrext_cmds'
26101 # Executable file suffix (normally "").
26104 # Additional compiler flags for building library objects.
26105 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26108 # What is the maximum length of a command?
26109 max_cmd_len=$lt_cv_sys_max_cmd_len
26111 # Does compiler simultaneously support -c and -o options?
26112 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26114 # Must we lock files when doing compilation?
26115 need_locks=$lt_need_locks
26117 # Do we need the lib prefix for modules?
26118 need_lib_prefix=$need_lib_prefix
26120 # Do we need a version for libraries?
26121 need_version=$need_version
26123 # Whether dlopen is supported.
26124 dlopen_support=$enable_dlopen
26126 # Whether dlopen of programs is supported.
26127 dlopen_self=$enable_dlopen_self
26129 # Whether dlopen of statically linked programs is supported.
26130 dlopen_self_static=$enable_dlopen_self_static
26132 # Compiler flag to prevent dynamic linking.
26133 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26135 # Compiler flag to turn off builtin functions.
26136 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26138 # Compiler flag to allow reflexive dlopens.
26139 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26141 # Compiler flag to generate shared objects directly from archives.
26142 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26144 # Compiler flag to generate thread-safe objects.
26145 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26147 # Library versioning type.
26148 version_type=$version_type
26150 # Format of library name prefix.
26151 libname_spec=$lt_libname_spec
26153 # List of archive names. First name is the real one, the rest are links.
26154 # The last name is the one that the linker finds with -lNAME.
26155 library_names_spec=$lt_library_names_spec
26157 # The coded name of the library, if different from the real name.
26158 soname_spec=$lt_soname_spec
26160 # Commands used to build and install an old-style archive.
26162 old_archive_cmds=$lt_old_archive_cmds_GCJ
26163 old_postinstall_cmds=$lt_old_postinstall_cmds
26164 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26166 # Create an old-style archive from a shared archive.
26167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26169 # Create a temporary old-style archive to link instead of a shared archive.
26170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26172 # Commands used to build and install a shared archive.
26173 archive_cmds=$lt_archive_cmds_GCJ
26174 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26175 postinstall_cmds=$lt_postinstall_cmds
26176 postuninstall_cmds=$lt_postuninstall_cmds
26178 # Commands used to build a loadable module (assumed same as above if empty)
26179 module_cmds=$lt_module_cmds_GCJ
26180 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26182 # Commands to strip libraries.
26183 old_striplib=$lt_old_striplib
26184 striplib=$lt_striplib
26186 # Dependencies to place before the objects being linked to create a
26188 predep_objects=$lt_predep_objects_GCJ
26190 # Dependencies to place after the objects being linked to create a
26192 postdep_objects=$lt_postdep_objects_GCJ
26194 # Dependencies to place before the objects being linked to create a
26196 predeps=$lt_predeps_GCJ
26198 # Dependencies to place after the objects being linked to create a
26200 postdeps=$lt_postdeps_GCJ
26202 # The library search path used internally by the compiler when linking
26203 # a shared library.
26204 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26206 # Method to check whether dependent libraries are shared objects.
26207 deplibs_check_method=$lt_deplibs_check_method
26209 # Command to use when deplibs_check_method == file_magic.
26210 file_magic_cmd=$lt_file_magic_cmd
26212 # Flag that allows shared libraries with undefined symbols to be built.
26213 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26215 # Flag that forces no undefined symbols.
26216 no_undefined_flag=$lt_no_undefined_flag_GCJ
26218 # Commands used to finish a libtool library installation in a directory.
26219 finish_cmds=$lt_finish_cmds
26221 # Same as above, but a single script fragment to be evaled but not shown.
26222 finish_eval=$lt_finish_eval
26224 # Take the output of nm and produce a listing of raw symbols and C names.
26225 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26227 # Transform the output of nm in a proper C declaration
26228 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26230 # Transform the output of nm in a C name address pair
26231 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26233 # This is the shared library runtime path variable.
26234 runpath_var=$runpath_var
26236 # This is the shared library path variable.
26237 shlibpath_var=$shlibpath_var
26239 # Is shlibpath searched before the hard-coded library search path?
26240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26242 # How to hardcode a shared library path into an executable.
26243 hardcode_action=$hardcode_action_GCJ
26245 # Whether we should hardcode library paths into libraries.
26246 hardcode_into_libs=$hardcode_into_libs
26248 # Flag to hardcode \$libdir into a binary during linking.
26249 # This must work even if \$libdir does not exist.
26250 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26252 # If ld is used when linking, flag to hardcode \$libdir into
26253 # a binary during linking. This must work even if \$libdir does
26255 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26257 # Whether we need a single -rpath flag with a separated argument.
26258 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26260 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26261 # resulting binary.
26262 hardcode_direct=$hardcode_direct_GCJ
26264 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26265 # resulting binary.
26266 hardcode_minus_L=$hardcode_minus_L_GCJ
26268 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26269 # the resulting binary.
26270 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26272 # Set to yes if building a shared library automatically hardcodes DIR into the library
26273 # and all subsequent libraries and executables linked against it.
26274 hardcode_automatic=$hardcode_automatic_GCJ
26276 # Variables whose values should be saved in libtool wrapper scripts and
26277 # restored at relink time.
26278 variables_saved_for_relink="$variables_saved_for_relink"
26280 # Whether libtool must link a program against all its dependency libraries.
26281 link_all_deplibs=$link_all_deplibs_GCJ
26283 # Compile-time system search path for libraries
26284 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26286 # Run-time system search path for libraries
26287 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26289 # Fix the shell variable \$srcfile for the compiler.
26290 fix_srcfile_path="$fix_srcfile_path_GCJ"
26292 # Set to yes if exported symbols are required.
26293 always_export_symbols=$always_export_symbols_GCJ
26295 # The commands to list exported symbols.
26296 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26298 # The commands to extract the exported symbol list from a shared archive.
26299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26301 # Symbols that should not be listed in the preloaded symbols.
26302 exclude_expsyms=$lt_exclude_expsyms_GCJ
26304 # Symbols that must always be exported.
26305 include_expsyms=$lt_include_expsyms_GCJ
26307 # ### END LIBTOOL TAG CONFIG: $tagname
26313 # If there is no Makefile yet, we rely on a make rule to execute
26314 # `config.status --recheck' to rerun these tests and create the
26315 # libtool script then.
26316 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26317 if test -f "$ltmain_in"; then
26318 test -f Makefile && make "$ltmain"
26324 ac_cpp='$CPP $CPPFLAGS'
26325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26338 ac_cpp='$CPP $CPPFLAGS'
26339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26344 # Source file extension for RC test sources.
26347 # Object file extension for compiled RC test sources.
26351 # Code to be used in simple compile tests
26352 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26354 # Code to be used in simple link tests
26355 lt_simple_link_test_code="$lt_simple_compile_test_code"
26357 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26359 # If no C compiler was specified, use CC.
26362 # If no C compiler flags were specified, use CFLAGS.
26363 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26365 # Allow CC to be a program name with arguments.
26369 # save warnings/boilerplate of simple test code
26370 ac_outfile=conftest.$ac_objext
26371 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26372 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26373 _lt_compiler_boilerplate=`cat conftest.err`
26376 ac_outfile=conftest.$ac_objext
26377 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26378 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26379 _lt_linker_boilerplate=`cat conftest.err`
26383 # Allow CC to be a program name with arguments.
26388 for cc_temp in $compiler""; do
26390 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26391 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26396 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26398 lt_cv_prog_compiler_c_o_RC=yes
26400 # The else clause should only fire when bootstrapping the
26401 # libtool distribution, otherwise you forgot to ship ltmain.sh
26402 # with your package, and you will get complaints that there are
26403 # no rules to generate ltmain.sh.
26404 if test -f "$ltmain"; then
26405 # See if we are running on zsh, and set the options which allow our commands through
26406 # without removal of \ escapes.
26407 if test -n "${ZSH_VERSION+set}" ; then
26408 setopt NO_GLOB_SUBST
26410 # Now quote all the things that may contain metacharacters while being
26411 # careful not to overquote the AC_SUBSTed values. We take copies of the
26412 # variables and quote the copies for generation of the libtool script.
26413 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26415 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26416 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26417 deplibs_check_method reload_flag reload_cmds need_locks \
26418 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26419 lt_cv_sys_global_symbol_to_c_name_address \
26420 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26421 old_postinstall_cmds old_postuninstall_cmds \
26425 lt_prog_compiler_wl_RC \
26426 lt_prog_compiler_pic_RC \
26427 lt_prog_compiler_static_RC \
26428 lt_prog_compiler_no_builtin_flag_RC \
26429 export_dynamic_flag_spec_RC \
26430 thread_safe_flag_spec_RC \
26431 whole_archive_flag_spec_RC \
26432 enable_shared_with_static_runtimes_RC \
26433 old_archive_cmds_RC \
26434 old_archive_from_new_cmds_RC \
26435 predep_objects_RC \
26436 postdep_objects_RC \
26439 compiler_lib_search_path_RC \
26441 archive_expsym_cmds_RC \
26442 postinstall_cmds_RC \
26443 postuninstall_cmds_RC \
26444 old_archive_from_expsyms_cmds_RC \
26445 allow_undefined_flag_RC \
26446 no_undefined_flag_RC \
26447 export_symbols_cmds_RC \
26448 hardcode_libdir_flag_spec_RC \
26449 hardcode_libdir_flag_spec_ld_RC \
26450 hardcode_libdir_separator_RC \
26451 hardcode_automatic_RC \
26453 module_expsym_cmds_RC \
26454 lt_cv_prog_compiler_c_o_RC \
26455 exclude_expsyms_RC \
26456 include_expsyms_RC; do
26459 old_archive_cmds_RC | \
26460 old_archive_from_new_cmds_RC | \
26461 archive_cmds_RC | \
26462 archive_expsym_cmds_RC | \
26464 module_expsym_cmds_RC | \
26465 old_archive_from_expsyms_cmds_RC | \
26466 export_symbols_cmds_RC | \
26467 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26468 postinstall_cmds | postuninstall_cmds | \
26469 old_postinstall_cmds | old_postuninstall_cmds | \
26470 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26471 # Double-quote double-evaled strings.
26472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26481 *'\$0 --fallback-echo"')
26482 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26488 cat <<__EOF__ >> "$cfgfile"
26489 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26491 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26493 # Shell to use when invoking shell scripts.
26496 # Whether or not to build shared libraries.
26497 build_libtool_libs=$enable_shared
26499 # Whether or not to build static libraries.
26500 build_old_libs=$enable_static
26502 # Whether or not to add -lc for building shared libraries.
26503 build_libtool_need_lc=$archive_cmds_need_lc_RC
26505 # Whether or not to disallow shared libs when runtime libs are static
26506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26508 # Whether or not to optimize for fast installation.
26509 fast_install=$enable_fast_install
26512 host_alias=$host_alias
26516 # The build system.
26517 build_alias=$build_alias
26521 # An echo program that does not interpret backslashes.
26526 AR_FLAGS=$lt_AR_FLAGS
26531 # LTCC compiler flags.
26532 LTCFLAGS=$lt_LTCFLAGS
26534 # A language-specific compiler.
26537 # Is the compiler the GNU C compiler?
26543 # The linker used to build libraries.
26546 # Whether we need hard or soft links.
26549 # A BSD-compatible nm program.
26552 # A symbol stripping program
26555 # Used to examine libraries when file_magic_cmd begins "file"
26556 MAGIC_CMD=$MAGIC_CMD
26558 # Used on cygwin: DLL creation program.
26561 # Used on cygwin: object dumper.
26564 # Used on cygwin: assembler.
26567 # The name of the directory that contains temporary libtool files.
26570 # How to create reloadable object files.
26571 reload_flag=$lt_reload_flag
26572 reload_cmds=$lt_reload_cmds
26574 # How to pass a linker flag through the compiler.
26575 wl=$lt_lt_prog_compiler_wl_RC
26577 # Object file suffix (normally "o").
26578 objext="$ac_objext"
26580 # Old archive suffix (normally "a").
26583 # Shared library suffix (normally ".so").
26584 shrext_cmds='$shrext_cmds'
26586 # Executable file suffix (normally "").
26589 # Additional compiler flags for building library objects.
26590 pic_flag=$lt_lt_prog_compiler_pic_RC
26593 # What is the maximum length of a command?
26594 max_cmd_len=$lt_cv_sys_max_cmd_len
26596 # Does compiler simultaneously support -c and -o options?
26597 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26599 # Must we lock files when doing compilation?
26600 need_locks=$lt_need_locks
26602 # Do we need the lib prefix for modules?
26603 need_lib_prefix=$need_lib_prefix
26605 # Do we need a version for libraries?
26606 need_version=$need_version
26608 # Whether dlopen is supported.
26609 dlopen_support=$enable_dlopen
26611 # Whether dlopen of programs is supported.
26612 dlopen_self=$enable_dlopen_self
26614 # Whether dlopen of statically linked programs is supported.
26615 dlopen_self_static=$enable_dlopen_self_static
26617 # Compiler flag to prevent dynamic linking.
26618 link_static_flag=$lt_lt_prog_compiler_static_RC
26620 # Compiler flag to turn off builtin functions.
26621 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26623 # Compiler flag to allow reflexive dlopens.
26624 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26626 # Compiler flag to generate shared objects directly from archives.
26627 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26629 # Compiler flag to generate thread-safe objects.
26630 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26632 # Library versioning type.
26633 version_type=$version_type
26635 # Format of library name prefix.
26636 libname_spec=$lt_libname_spec
26638 # List of archive names. First name is the real one, the rest are links.
26639 # The last name is the one that the linker finds with -lNAME.
26640 library_names_spec=$lt_library_names_spec
26642 # The coded name of the library, if different from the real name.
26643 soname_spec=$lt_soname_spec
26645 # Commands used to build and install an old-style archive.
26647 old_archive_cmds=$lt_old_archive_cmds_RC
26648 old_postinstall_cmds=$lt_old_postinstall_cmds
26649 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26651 # Create an old-style archive from a shared archive.
26652 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26654 # Create a temporary old-style archive to link instead of a shared archive.
26655 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26657 # Commands used to build and install a shared archive.
26658 archive_cmds=$lt_archive_cmds_RC
26659 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26660 postinstall_cmds=$lt_postinstall_cmds
26661 postuninstall_cmds=$lt_postuninstall_cmds
26663 # Commands used to build a loadable module (assumed same as above if empty)
26664 module_cmds=$lt_module_cmds_RC
26665 module_expsym_cmds=$lt_module_expsym_cmds_RC
26667 # Commands to strip libraries.
26668 old_striplib=$lt_old_striplib
26669 striplib=$lt_striplib
26671 # Dependencies to place before the objects being linked to create a
26673 predep_objects=$lt_predep_objects_RC
26675 # Dependencies to place after the objects being linked to create a
26677 postdep_objects=$lt_postdep_objects_RC
26679 # Dependencies to place before the objects being linked to create a
26681 predeps=$lt_predeps_RC
26683 # Dependencies to place after the objects being linked to create a
26685 postdeps=$lt_postdeps_RC
26687 # The library search path used internally by the compiler when linking
26688 # a shared library.
26689 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26691 # Method to check whether dependent libraries are shared objects.
26692 deplibs_check_method=$lt_deplibs_check_method
26694 # Command to use when deplibs_check_method == file_magic.
26695 file_magic_cmd=$lt_file_magic_cmd
26697 # Flag that allows shared libraries with undefined symbols to be built.
26698 allow_undefined_flag=$lt_allow_undefined_flag_RC
26700 # Flag that forces no undefined symbols.
26701 no_undefined_flag=$lt_no_undefined_flag_RC
26703 # Commands used to finish a libtool library installation in a directory.
26704 finish_cmds=$lt_finish_cmds
26706 # Same as above, but a single script fragment to be evaled but not shown.
26707 finish_eval=$lt_finish_eval
26709 # Take the output of nm and produce a listing of raw symbols and C names.
26710 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26712 # Transform the output of nm in a proper C declaration
26713 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26715 # Transform the output of nm in a C name address pair
26716 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26718 # This is the shared library runtime path variable.
26719 runpath_var=$runpath_var
26721 # This is the shared library path variable.
26722 shlibpath_var=$shlibpath_var
26724 # Is shlibpath searched before the hard-coded library search path?
26725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26727 # How to hardcode a shared library path into an executable.
26728 hardcode_action=$hardcode_action_RC
26730 # Whether we should hardcode library paths into libraries.
26731 hardcode_into_libs=$hardcode_into_libs
26733 # Flag to hardcode \$libdir into a binary during linking.
26734 # This must work even if \$libdir does not exist.
26735 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26737 # If ld is used when linking, flag to hardcode \$libdir into
26738 # a binary during linking. This must work even if \$libdir does
26740 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26742 # Whether we need a single -rpath flag with a separated argument.
26743 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26745 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26746 # resulting binary.
26747 hardcode_direct=$hardcode_direct_RC
26749 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26750 # resulting binary.
26751 hardcode_minus_L=$hardcode_minus_L_RC
26753 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26754 # the resulting binary.
26755 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26757 # Set to yes if building a shared library automatically hardcodes DIR into the library
26758 # and all subsequent libraries and executables linked against it.
26759 hardcode_automatic=$hardcode_automatic_RC
26761 # Variables whose values should be saved in libtool wrapper scripts and
26762 # restored at relink time.
26763 variables_saved_for_relink="$variables_saved_for_relink"
26765 # Whether libtool must link a program against all its dependency libraries.
26766 link_all_deplibs=$link_all_deplibs_RC
26768 # Compile-time system search path for libraries
26769 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26771 # Run-time system search path for libraries
26772 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26774 # Fix the shell variable \$srcfile for the compiler.
26775 fix_srcfile_path="$fix_srcfile_path_RC"
26777 # Set to yes if exported symbols are required.
26778 always_export_symbols=$always_export_symbols_RC
26780 # The commands to list exported symbols.
26781 export_symbols_cmds=$lt_export_symbols_cmds_RC
26783 # The commands to extract the exported symbol list from a shared archive.
26784 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26786 # Symbols that should not be listed in the preloaded symbols.
26787 exclude_expsyms=$lt_exclude_expsyms_RC
26789 # Symbols that must always be exported.
26790 include_expsyms=$lt_include_expsyms_RC
26792 # ### END LIBTOOL TAG CONFIG: $tagname
26798 # If there is no Makefile yet, we rely on a make rule to execute
26799 # `config.status --recheck' to rerun these tests and create the
26800 # libtool script then.
26801 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26802 if test -f "$ltmain_in"; then
26803 test -f Makefile && make "$ltmain"
26809 ac_cpp='$CPP $CPPFLAGS'
26810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26819 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26820 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26821 { (exit 1); exit 1; }; }
26825 # Append the new tag name to the list of available tags.
26826 if test -n "$tagname" ; then
26827 available_tags="$available_tags $tagname"
26833 # Now substitute the updated list of available tags.
26834 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26835 mv "${ofile}T" "$ofile"
26839 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26840 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26841 { (exit 1); exit 1; }; }
26847 # This can be used to rebuild libtool when needed
26848 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26850 # Always use our own libtool.
26851 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26853 # Prevent multiple expansion
26875 if test "$lt_cv_dlopen_self" = "yes" ; then
26877 cat >>confdefs.h <<\_ACEOF
26878 #define CAN_DLOPEN_SELF 1
26883 if test "$WITH_LLVMGCCDIR" = "default" ; then
26884 LLVMGCC="llvm-gcc${EXEEXT}"
26885 LLVMGXX="llvm-g++${EXEEXT}"
26886 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26887 set dummy $LLVMGCC; ac_word=$2
26888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26890 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26891 echo $ECHO_N "(cached) $ECHO_C" >&6
26895 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26899 for as_dir in $PATH
26902 test -z "$as_dir" && as_dir=.
26903 for ac_exec_ext in '' $ac_executable_extensions; do
26904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26905 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26916 LLVMGCC=$ac_cv_path_LLVMGCC
26917 if test -n "$LLVMGCC"; then
26918 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26919 echo "${ECHO_T}$LLVMGCC" >&6; }
26921 { echo "$as_me:$LINENO: result: no" >&5
26922 echo "${ECHO_T}no" >&6; }
26926 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26927 set dummy $LLVMGXX; ac_word=$2
26928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26930 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26935 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26939 for as_dir in $PATH
26942 test -z "$as_dir" && as_dir=.
26943 for ac_exec_ext in '' $ac_executable_extensions; do
26944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26945 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26956 LLVMGXX=$ac_cv_path_LLVMGXX
26957 if test -n "$LLVMGXX"; then
26958 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26959 echo "${ECHO_T}$LLVMGXX" >&6; }
26961 { echo "$as_me:$LINENO: result: no" >&5
26962 echo "${ECHO_T}no" >&6; }
26967 if test -z "$LLVMGCC"; then
26968 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26970 if test -z "$LLVMGXX"; then
26971 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26979 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26980 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26993 if test "$GCC" != "yes" && test "$ICC" != "yes"
26995 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26996 echo "$as_me: error: gcc|icc required but not found" >&2;}
26997 { (exit 1); exit 1; }; }
27000 if test "$GXX" != "yes" && test "$IXX" != "yes"
27002 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27003 echo "$as_me: error: g++|icc required but not found" >&2;}
27004 { (exit 1); exit 1; }; }
27007 if test "$GCC" = "yes"
27009 cat >conftest.$ac_ext <<_ACEOF
27010 #if !defined(__GNUC__) || __GNUC__ < 3
27011 #error Unsupported GCC version
27015 rm -f conftest.$ac_objext
27016 if { (ac_try="$ac_compile"
27017 case "(($ac_try" in
27018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019 *) ac_try_echo=$ac_try;;
27021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022 (eval "$ac_compile") 2>conftest.er1
27024 grep -v '^ *+' conftest.er1 >conftest.err
27026 cat conftest.err >&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } &&
27029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27030 { (case "(($ac_try" in
27031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032 *) ac_try_echo=$ac_try;;
27034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27035 (eval "$ac_try") 2>&5
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); }; } &&
27039 { ac_try='test -s conftest.$ac_objext'
27040 { (case "(($ac_try" in
27041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042 *) ac_try_echo=$ac_try;;
27044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045 (eval "$ac_try") 2>&5
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); }; }; then
27051 echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27054 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27055 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27056 { (exit 1); exit 1; }; }
27059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27062 if test -z "$llvm_cv_gnu_make_command"
27064 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27065 echo "$as_me: error: GNU Make required but not found" >&2;}
27066 { (exit 1); exit 1; }; }
27069 { echo "$as_me:$LINENO: result: ok" >&5
27070 echo "${ECHO_T}ok" >&6; }
27074 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27075 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27076 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27077 echo $ECHO_N "(cached) $ECHO_C" >&6
27079 ac_check_lib_save_LIBS=$LIBS
27081 cat >conftest.$ac_ext <<_ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27088 /* Override any GCC internal prototype to avoid an error.
27089 Use char because int might match the return type of a GCC
27090 builtin and then its argument prototype would still apply. */
27098 return elf_begin ();
27103 rm -f conftest.$ac_objext conftest$ac_exeext
27104 if { (ac_try="$ac_link"
27105 case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_link") 2>conftest.er1
27112 grep -v '^ *+' conftest.er1 >conftest.err
27114 cat conftest.err >&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } &&
27117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27118 { (case "(($ac_try" in
27119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120 *) ac_try_echo=$ac_try;;
27122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123 (eval "$ac_try") 2>&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); }; } &&
27127 { ac_try='test -s conftest$ac_exeext'
27128 { (case "(($ac_try" in
27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130 *) ac_try_echo=$ac_try;;
27132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133 (eval "$ac_try") 2>&5
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
27137 ac_cv_lib_elf_elf_begin=yes
27139 echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27142 ac_cv_lib_elf_elf_begin=no
27145 rm -f core conftest.err conftest.$ac_objext \
27146 conftest$ac_exeext conftest.$ac_ext
27147 LIBS=$ac_check_lib_save_LIBS
27149 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27150 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27151 if test $ac_cv_lib_elf_elf_begin = yes; then
27152 cat >>confdefs.h <<_ACEOF
27153 #define HAVE_LIBELF 1
27161 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27162 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27163 if test "${ac_cv_lib_m_sin+set}" = set; then
27164 echo $ECHO_N "(cached) $ECHO_C" >&6
27166 ac_check_lib_save_LIBS=$LIBS
27168 cat >conftest.$ac_ext <<_ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h. */
27175 /* Override any GCC internal prototype to avoid an error.
27176 Use char because int might match the return type of a GCC
27177 builtin and then its argument prototype would still apply. */
27190 rm -f conftest.$ac_objext conftest$ac_exeext
27191 if { (ac_try="$ac_link"
27192 case "(($ac_try" in
27193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194 *) ac_try_echo=$ac_try;;
27196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197 (eval "$ac_link") 2>conftest.er1
27199 grep -v '^ *+' conftest.er1 >conftest.err
27201 cat conftest.err >&5
27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203 (exit $ac_status); } &&
27204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27205 { (case "(($ac_try" in
27206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207 *) ac_try_echo=$ac_try;;
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210 (eval "$ac_try") 2>&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); }; } &&
27214 { ac_try='test -s conftest$ac_exeext'
27215 { (case "(($ac_try" in
27216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217 *) ac_try_echo=$ac_try;;
27219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220 (eval "$ac_try") 2>&5
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); }; }; then
27224 ac_cv_lib_m_sin=yes
27226 echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27232 rm -f core conftest.err conftest.$ac_objext \
27233 conftest$ac_exeext conftest.$ac_ext
27234 LIBS=$ac_check_lib_save_LIBS
27236 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27237 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27238 if test $ac_cv_lib_m_sin = yes; then
27239 cat >>confdefs.h <<_ACEOF
27240 #define HAVE_LIBM 1
27247 if test "$llvm_cv_os_type" = "MingW" ; then
27249 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27250 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27251 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27252 echo $ECHO_N "(cached) $ECHO_C" >&6
27254 ac_check_lib_save_LIBS=$LIBS
27255 LIBS="-limagehlp $LIBS"
27256 cat >conftest.$ac_ext <<_ACEOF
27259 cat confdefs.h >>conftest.$ac_ext
27260 cat >>conftest.$ac_ext <<_ACEOF
27261 /* end confdefs.h. */
27272 rm -f conftest.$ac_objext conftest$ac_exeext
27273 if { (ac_try="$ac_link"
27274 case "(($ac_try" in
27275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276 *) ac_try_echo=$ac_try;;
27278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279 (eval "$ac_link") 2>conftest.er1
27281 grep -v '^ *+' conftest.er1 >conftest.err
27283 cat conftest.err >&5
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); } &&
27286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27287 { (case "(($ac_try" in
27288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27289 *) ac_try_echo=$ac_try;;
27291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27292 (eval "$ac_try") 2>&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); }; } &&
27296 { ac_try='test -s conftest$ac_exeext'
27297 { (case "(($ac_try" in
27298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299 *) ac_try_echo=$ac_try;;
27301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302 (eval "$ac_try") 2>&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; }; then
27306 ac_cv_lib_imagehlp_main=yes
27308 echo "$as_me: failed program was:" >&5
27309 sed 's/^/| /' conftest.$ac_ext >&5
27311 ac_cv_lib_imagehlp_main=no
27314 rm -f core conftest.err conftest.$ac_objext \
27315 conftest$ac_exeext conftest.$ac_ext
27316 LIBS=$ac_check_lib_save_LIBS
27318 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27319 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27320 if test $ac_cv_lib_imagehlp_main = yes; then
27321 cat >>confdefs.h <<_ACEOF
27322 #define HAVE_LIBIMAGEHLP 1
27325 LIBS="-limagehlp $LIBS"
27330 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27331 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27332 if test "${ac_cv_lib_psapi_main+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27335 ac_check_lib_save_LIBS=$LIBS
27336 LIBS="-lpsapi $LIBS"
27337 cat >conftest.$ac_ext <<_ACEOF
27340 cat confdefs.h >>conftest.$ac_ext
27341 cat >>conftest.$ac_ext <<_ACEOF
27342 /* end confdefs.h. */
27353 rm -f conftest.$ac_objext conftest$ac_exeext
27354 if { (ac_try="$ac_link"
27355 case "(($ac_try" in
27356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357 *) ac_try_echo=$ac_try;;
27359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27360 (eval "$ac_link") 2>conftest.er1
27362 grep -v '^ *+' conftest.er1 >conftest.err
27364 cat conftest.err >&5
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); } &&
27367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27368 { (case "(($ac_try" in
27369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370 *) ac_try_echo=$ac_try;;
27372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27373 (eval "$ac_try") 2>&5
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); }; } &&
27377 { ac_try='test -s conftest$ac_exeext'
27378 { (case "(($ac_try" in
27379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27380 *) ac_try_echo=$ac_try;;
27382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27383 (eval "$ac_try") 2>&5
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; }; then
27387 ac_cv_lib_psapi_main=yes
27389 echo "$as_me: failed program was:" >&5
27390 sed 's/^/| /' conftest.$ac_ext >&5
27392 ac_cv_lib_psapi_main=no
27395 rm -f core conftest.err conftest.$ac_objext \
27396 conftest$ac_exeext conftest.$ac_ext
27397 LIBS=$ac_check_lib_save_LIBS
27399 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27400 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27401 if test $ac_cv_lib_psapi_main = yes; then
27402 cat >>confdefs.h <<_ACEOF
27403 #define HAVE_LIBPSAPI 1
27406 LIBS="-lpsapi $LIBS"
27412 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27413 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27414 if test "${ac_cv_search_dlopen+set}" = set; then
27415 echo $ECHO_N "(cached) $ECHO_C" >&6
27417 ac_func_search_save_LIBS=$LIBS
27418 cat >conftest.$ac_ext <<_ACEOF
27421 cat confdefs.h >>conftest.$ac_ext
27422 cat >>conftest.$ac_ext <<_ACEOF
27423 /* end confdefs.h. */
27425 /* Override any GCC internal prototype to avoid an error.
27426 Use char because int might match the return type of a GCC
27427 builtin and then its argument prototype would still apply. */
27440 for ac_lib in '' dl; do
27441 if test -z "$ac_lib"; then
27442 ac_res="none required"
27445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27447 rm -f conftest.$ac_objext conftest$ac_exeext
27448 if { (ac_try="$ac_link"
27449 case "(($ac_try" in
27450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451 *) ac_try_echo=$ac_try;;
27453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454 (eval "$ac_link") 2>conftest.er1
27456 grep -v '^ *+' conftest.er1 >conftest.err
27458 cat conftest.err >&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } &&
27461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27462 { (case "(($ac_try" in
27463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464 *) ac_try_echo=$ac_try;;
27466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467 (eval "$ac_try") 2>&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; } &&
27471 { ac_try='test -s conftest$ac_exeext'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; }; then
27481 ac_cv_search_dlopen=$ac_res
27483 echo "$as_me: failed program was:" >&5
27484 sed 's/^/| /' conftest.$ac_ext >&5
27489 rm -f core conftest.err conftest.$ac_objext \
27491 if test "${ac_cv_search_dlopen+set}" = set; then
27495 if test "${ac_cv_search_dlopen+set}" = set; then
27498 ac_cv_search_dlopen=no
27500 rm conftest.$ac_ext
27501 LIBS=$ac_func_search_save_LIBS
27503 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27504 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27505 ac_res=$ac_cv_search_dlopen
27506 if test "$ac_res" != no; then
27507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27509 cat >>confdefs.h <<\_ACEOF
27510 #define HAVE_DLOPEN 1
27514 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27515 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27519 { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27520 echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27521 if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27522 echo $ECHO_N "(cached) $ECHO_C" >&6
27524 ac_check_lib_save_LIBS=$LIBS
27526 cat >conftest.$ac_ext <<_ACEOF
27529 cat confdefs.h >>conftest.$ac_ext
27530 cat >>conftest.$ac_ext <<_ACEOF
27531 /* end confdefs.h. */
27533 /* Override any GCC internal prototype to avoid an error.
27534 Use char because int might match the return type of a GCC
27535 builtin and then its argument prototype would still apply. */
27543 return ffi_call ();
27548 rm -f conftest.$ac_objext conftest$ac_exeext
27549 if { (ac_try="$ac_link"
27550 case "(($ac_try" in
27551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552 *) ac_try_echo=$ac_try;;
27554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555 (eval "$ac_link") 2>conftest.er1
27557 grep -v '^ *+' conftest.er1 >conftest.err
27559 cat conftest.err >&5
27560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561 (exit $ac_status); } &&
27562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27563 { (case "(($ac_try" in
27564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565 *) ac_try_echo=$ac_try;;
27567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568 (eval "$ac_try") 2>&5
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); }; } &&
27572 { ac_try='test -s conftest$ac_exeext'
27573 { (case "(($ac_try" in
27574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575 *) ac_try_echo=$ac_try;;
27577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578 (eval "$ac_try") 2>&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; }; then
27582 ac_cv_lib_ffi_ffi_call=yes
27584 echo "$as_me: failed program was:" >&5
27585 sed 's/^/| /' conftest.$ac_ext >&5
27587 ac_cv_lib_ffi_ffi_call=no
27590 rm -f core conftest.err conftest.$ac_objext \
27591 conftest$ac_exeext conftest.$ac_ext
27592 LIBS=$ac_check_lib_save_LIBS
27594 { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27595 echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27596 if test $ac_cv_lib_ffi_ffi_call = yes; then
27599 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27600 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27604 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27605 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27606 if test "${ac_cv_search_mallinfo+set}" = set; then
27607 echo $ECHO_N "(cached) $ECHO_C" >&6
27609 ac_func_search_save_LIBS=$LIBS
27610 cat >conftest.$ac_ext <<_ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h. */
27617 /* Override any GCC internal prototype to avoid an error.
27618 Use char because int might match the return type of a GCC
27619 builtin and then its argument prototype would still apply. */
27627 return mallinfo ();
27632 for ac_lib in '' malloc; do
27633 if test -z "$ac_lib"; then
27634 ac_res="none required"
27637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27639 rm -f conftest.$ac_objext conftest$ac_exeext
27640 if { (ac_try="$ac_link"
27641 case "(($ac_try" in
27642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643 *) ac_try_echo=$ac_try;;
27645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27646 (eval "$ac_link") 2>conftest.er1
27648 grep -v '^ *+' conftest.er1 >conftest.err
27650 cat conftest.err >&5
27651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652 (exit $ac_status); } &&
27653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27654 { (case "(($ac_try" in
27655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656 *) ac_try_echo=$ac_try;;
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_try") 2>&5
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); }; } &&
27663 { ac_try='test -s conftest$ac_exeext'
27664 { (case "(($ac_try" in
27665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666 *) ac_try_echo=$ac_try;;
27668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669 (eval "$ac_try") 2>&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; }; then
27673 ac_cv_search_mallinfo=$ac_res
27675 echo "$as_me: failed program was:" >&5
27676 sed 's/^/| /' conftest.$ac_ext >&5
27681 rm -f core conftest.err conftest.$ac_objext \
27683 if test "${ac_cv_search_mallinfo+set}" = set; then
27687 if test "${ac_cv_search_mallinfo+set}" = set; then
27690 ac_cv_search_mallinfo=no
27692 rm conftest.$ac_ext
27693 LIBS=$ac_func_search_save_LIBS
27695 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27696 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27697 ac_res=$ac_cv_search_mallinfo
27698 if test "$ac_res" != no; then
27699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27701 cat >>confdefs.h <<\_ACEOF
27702 #define HAVE_MALLINFO 1
27708 if test "$ENABLE_THREADS" -eq 1 ; then
27710 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27711 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27712 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27713 echo $ECHO_N "(cached) $ECHO_C" >&6
27715 ac_check_lib_save_LIBS=$LIBS
27716 LIBS="-lpthread $LIBS"
27717 cat >conftest.$ac_ext <<_ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h. */
27724 /* Override any GCC internal prototype to avoid an error.
27725 Use char because int might match the return type of a GCC
27726 builtin and then its argument prototype would still apply. */
27730 char pthread_mutex_init ();
27734 return pthread_mutex_init ();
27739 rm -f conftest.$ac_objext conftest$ac_exeext
27740 if { (ac_try="$ac_link"
27741 case "(($ac_try" in
27742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746 (eval "$ac_link") 2>conftest.er1
27748 grep -v '^ *+' conftest.er1 >conftest.err
27750 cat conftest.err >&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); } &&
27753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27754 { (case "(($ac_try" in
27755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756 *) ac_try_echo=$ac_try;;
27758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759 (eval "$ac_try") 2>&5
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); }; } &&
27763 { ac_try='test -s conftest$ac_exeext'
27764 { (case "(($ac_try" in
27765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766 *) ac_try_echo=$ac_try;;
27768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769 (eval "$ac_try") 2>&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; }; then
27773 ac_cv_lib_pthread_pthread_mutex_init=yes
27775 echo "$as_me: failed program was:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
27778 ac_cv_lib_pthread_pthread_mutex_init=no
27781 rm -f core conftest.err conftest.$ac_objext \
27782 conftest$ac_exeext conftest.$ac_ext
27783 LIBS=$ac_check_lib_save_LIBS
27785 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27786 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27787 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27788 cat >>confdefs.h <<_ACEOF
27789 #define HAVE_LIBPTHREAD 1
27792 LIBS="-lpthread $LIBS"
27796 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27797 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27798 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27799 echo $ECHO_N "(cached) $ECHO_C" >&6
27801 ac_func_search_save_LIBS=$LIBS
27802 cat >conftest.$ac_ext <<_ACEOF
27805 cat confdefs.h >>conftest.$ac_ext
27806 cat >>conftest.$ac_ext <<_ACEOF
27807 /* end confdefs.h. */
27809 /* Override any GCC internal prototype to avoid an error.
27810 Use char because int might match the return type of a GCC
27811 builtin and then its argument prototype would still apply. */
27815 char pthread_mutex_lock ();
27819 return pthread_mutex_lock ();
27824 for ac_lib in '' pthread; do
27825 if test -z "$ac_lib"; then
27826 ac_res="none required"
27829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27831 rm -f conftest.$ac_objext conftest$ac_exeext
27832 if { (ac_try="$ac_link"
27833 case "(($ac_try" in
27834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27835 *) ac_try_echo=$ac_try;;
27837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27838 (eval "$ac_link") 2>conftest.er1
27840 grep -v '^ *+' conftest.er1 >conftest.err
27842 cat conftest.err >&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); } &&
27845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27846 { (case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_try") 2>&5
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); }; } &&
27855 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27865 ac_cv_search_pthread_mutex_lock=$ac_res
27867 echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27873 rm -f core conftest.err conftest.$ac_objext \
27875 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27879 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27882 ac_cv_search_pthread_mutex_lock=no
27884 rm conftest.$ac_ext
27885 LIBS=$ac_func_search_save_LIBS
27887 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27888 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27889 ac_res=$ac_cv_search_pthread_mutex_lock
27890 if test "$ac_res" != no; then
27891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27893 cat >>confdefs.h <<\_ACEOF
27894 #define HAVE_PTHREAD_MUTEX_LOCK 1
27902 # Check whether --with-udis86 was given.
27903 if test "${with_udis86+set}" = set; then
27904 withval=$with_udis86;
27909 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27912 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27913 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27914 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27917 ac_check_lib_save_LIBS=$LIBS
27918 LIBS="-ludis86 $LIBS"
27919 cat >conftest.$ac_ext <<_ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h. */
27926 /* Override any GCC internal prototype to avoid an error.
27927 Use char because int might match the return type of a GCC
27928 builtin and then its argument prototype would still apply. */
27941 rm -f conftest.$ac_objext conftest$ac_exeext
27942 if { (ac_try="$ac_link"
27943 case "(($ac_try" in
27944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945 *) ac_try_echo=$ac_try;;
27947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27948 (eval "$ac_link") 2>conftest.er1
27950 grep -v '^ *+' conftest.er1 >conftest.err
27952 cat conftest.err >&5
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); } &&
27955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27956 { (case "(($ac_try" in
27957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27958 *) ac_try_echo=$ac_try;;
27960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27961 (eval "$ac_try") 2>&5
27963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); }; } &&
27965 { ac_try='test -s conftest$ac_exeext'
27966 { (case "(($ac_try" in
27967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27968 *) ac_try_echo=$ac_try;;
27970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27971 (eval "$ac_try") 2>&5
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); }; }; then
27975 ac_cv_lib_udis86_ud_init=yes
27977 echo "$as_me: failed program was:" >&5
27978 sed 's/^/| /' conftest.$ac_ext >&5
27980 ac_cv_lib_udis86_ud_init=no
27983 rm -f core conftest.err conftest.$ac_objext \
27984 conftest$ac_exeext conftest.$ac_ext
27985 LIBS=$ac_check_lib_save_LIBS
27987 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27988 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27989 if test $ac_cv_lib_udis86_ud_init = yes; then
27990 cat >>confdefs.h <<_ACEOF
27991 #define HAVE_LIBUDIS86 1
27994 LIBS="-ludis86 $LIBS"
27998 echo "Error! You need to have libudis86 around."
28010 cat >>confdefs.h <<_ACEOF
28011 #define USE_UDIS86 $USE_UDIS86
28021 ac_header_dirent=no
28022 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28023 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28024 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28025 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28027 echo $ECHO_N "(cached) $ECHO_C" >&6
28029 cat >conftest.$ac_ext <<_ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h. */
28035 #include <sys/types.h>
28047 rm -f conftest.$ac_objext
28048 if { (ac_try="$ac_compile"
28049 case "(($ac_try" in
28050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051 *) ac_try_echo=$ac_try;;
28053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054 (eval "$ac_compile") 2>conftest.er1
28056 grep -v '^ *+' conftest.er1 >conftest.err
28058 cat conftest.err >&5
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060 (exit $ac_status); } &&
28061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28062 { (case "(($ac_try" in
28063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064 *) ac_try_echo=$ac_try;;
28066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067 (eval "$ac_try") 2>&5
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); }; } &&
28071 { ac_try='test -s conftest.$ac_objext'
28072 { (case "(($ac_try" in
28073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074 *) ac_try_echo=$ac_try;;
28076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077 (eval "$ac_try") 2>&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; }; then
28081 eval "$as_ac_Header=yes"
28083 echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28086 eval "$as_ac_Header=no"
28089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28091 ac_res=`eval echo '${'$as_ac_Header'}'`
28092 { echo "$as_me:$LINENO: result: $ac_res" >&5
28093 echo "${ECHO_T}$ac_res" >&6; }
28094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28095 cat >>confdefs.h <<_ACEOF
28096 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28099 ac_header_dirent=$ac_hdr; break
28103 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28104 if test $ac_header_dirent = dirent.h; then
28105 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28106 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28107 if test "${ac_cv_search_opendir+set}" = set; then
28108 echo $ECHO_N "(cached) $ECHO_C" >&6
28110 ac_func_search_save_LIBS=$LIBS
28111 cat >conftest.$ac_ext <<_ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h. */
28118 /* Override any GCC internal prototype to avoid an error.
28119 Use char because int might match the return type of a GCC
28120 builtin and then its argument prototype would still apply. */
28133 for ac_lib in '' dir; do
28134 if test -z "$ac_lib"; then
28135 ac_res="none required"
28138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28140 rm -f conftest.$ac_objext conftest$ac_exeext
28141 if { (ac_try="$ac_link"
28142 case "(($ac_try" in
28143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144 *) ac_try_echo=$ac_try;;
28146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147 (eval "$ac_link") 2>conftest.er1
28149 grep -v '^ *+' conftest.er1 >conftest.err
28151 cat conftest.err >&5
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153 (exit $ac_status); } &&
28154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28155 { (case "(($ac_try" in
28156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157 *) ac_try_echo=$ac_try;;
28159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160 (eval "$ac_try") 2>&5
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); }; } &&
28164 { ac_try='test -s conftest$ac_exeext'
28165 { (case "(($ac_try" in
28166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167 *) ac_try_echo=$ac_try;;
28169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170 (eval "$ac_try") 2>&5
28172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173 (exit $ac_status); }; }; then
28174 ac_cv_search_opendir=$ac_res
28176 echo "$as_me: failed program was:" >&5
28177 sed 's/^/| /' conftest.$ac_ext >&5
28182 rm -f core conftest.err conftest.$ac_objext \
28184 if test "${ac_cv_search_opendir+set}" = set; then
28188 if test "${ac_cv_search_opendir+set}" = set; then
28191 ac_cv_search_opendir=no
28193 rm conftest.$ac_ext
28194 LIBS=$ac_func_search_save_LIBS
28196 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28197 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28198 ac_res=$ac_cv_search_opendir
28199 if test "$ac_res" != no; then
28200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28205 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28206 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28207 if test "${ac_cv_search_opendir+set}" = set; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28210 ac_func_search_save_LIBS=$LIBS
28211 cat >conftest.$ac_ext <<_ACEOF
28214 cat confdefs.h >>conftest.$ac_ext
28215 cat >>conftest.$ac_ext <<_ACEOF
28216 /* end confdefs.h. */
28218 /* Override any GCC internal prototype to avoid an error.
28219 Use char because int might match the return type of a GCC
28220 builtin and then its argument prototype would still apply. */
28233 for ac_lib in '' x; do
28234 if test -z "$ac_lib"; then
28235 ac_res="none required"
28238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28240 rm -f conftest.$ac_objext conftest$ac_exeext
28241 if { (ac_try="$ac_link"
28242 case "(($ac_try" in
28243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28244 *) ac_try_echo=$ac_try;;
28246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28247 (eval "$ac_link") 2>conftest.er1
28249 grep -v '^ *+' conftest.er1 >conftest.err
28251 cat conftest.err >&5
28252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253 (exit $ac_status); } &&
28254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28255 { (case "(($ac_try" in
28256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28257 *) ac_try_echo=$ac_try;;
28259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28260 (eval "$ac_try") 2>&5
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); }; } &&
28264 { ac_try='test -s conftest$ac_exeext'
28265 { (case "(($ac_try" in
28266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267 *) ac_try_echo=$ac_try;;
28269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28270 (eval "$ac_try") 2>&5
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); }; }; then
28274 ac_cv_search_opendir=$ac_res
28276 echo "$as_me: failed program was:" >&5
28277 sed 's/^/| /' conftest.$ac_ext >&5
28282 rm -f core conftest.err conftest.$ac_objext \
28284 if test "${ac_cv_search_opendir+set}" = set; then
28288 if test "${ac_cv_search_opendir+set}" = set; then
28291 ac_cv_search_opendir=no
28293 rm conftest.$ac_ext
28294 LIBS=$ac_func_search_save_LIBS
28296 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28297 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28298 ac_res=$ac_cv_search_opendir
28299 if test "$ac_res" != no; then
28300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28306 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28307 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28308 if test "${ac_cv_header_mmap_anon+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28312 ac_cpp='$CPP $CPPFLAGS'
28313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28317 cat >conftest.$ac_ext <<_ACEOF
28320 cat confdefs.h >>conftest.$ac_ext
28321 cat >>conftest.$ac_ext <<_ACEOF
28322 /* end confdefs.h. */
28323 #include <sys/mman.h>
28324 #include <unistd.h>
28329 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28334 rm -f conftest.$ac_objext
28335 if { (ac_try="$ac_compile"
28336 case "(($ac_try" in
28337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28338 *) ac_try_echo=$ac_try;;
28340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28341 (eval "$ac_compile") 2>conftest.er1
28343 grep -v '^ *+' conftest.er1 >conftest.err
28345 cat conftest.err >&5
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); } &&
28348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28349 { (case "(($ac_try" in
28350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28351 *) ac_try_echo=$ac_try;;
28353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28354 (eval "$ac_try") 2>&5
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); }; } &&
28358 { ac_try='test -s conftest.$ac_objext'
28359 { (case "(($ac_try" in
28360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361 *) ac_try_echo=$ac_try;;
28363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_try") 2>&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; }; then
28368 ac_cv_header_mmap_anon=yes
28370 echo "$as_me: failed program was:" >&5
28371 sed 's/^/| /' conftest.$ac_ext >&5
28373 ac_cv_header_mmap_anon=no
28376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28378 ac_cpp='$CPP $CPPFLAGS'
28379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28385 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28386 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28387 if test "$ac_cv_header_mmap_anon" = yes; then
28389 cat >>confdefs.h <<\_ACEOF
28390 #define HAVE_MMAP_ANONYMOUS 1
28395 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28396 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28397 if test "${ac_cv_header_stat_broken+set}" = set; then
28398 echo $ECHO_N "(cached) $ECHO_C" >&6
28400 cat >conftest.$ac_ext <<_ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h. */
28406 #include <sys/types.h>
28407 #include <sys/stat.h>
28409 #if defined S_ISBLK && defined S_IFDIR
28410 # if S_ISBLK (S_IFDIR)
28415 #if defined S_ISBLK && defined S_IFCHR
28416 # if S_ISBLK (S_IFCHR)
28421 #if defined S_ISLNK && defined S_IFREG
28422 # if S_ISLNK (S_IFREG)
28427 #if defined S_ISSOCK && defined S_IFREG
28428 # if S_ISSOCK (S_IFREG)
28434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28435 $EGREP "You lose" >/dev/null 2>&1; then
28436 ac_cv_header_stat_broken=yes
28438 ac_cv_header_stat_broken=no
28443 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28444 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28445 if test $ac_cv_header_stat_broken = yes; then
28447 cat >>confdefs.h <<\_ACEOF
28448 #define STAT_MACROS_BROKEN 1
28453 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28454 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28455 if test "${ac_cv_header_stdc+set}" = set; then
28456 echo $ECHO_N "(cached) $ECHO_C" >&6
28458 cat >conftest.$ac_ext <<_ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h. */
28464 #include <stdlib.h>
28465 #include <stdarg.h>
28466 #include <string.h>
28477 rm -f conftest.$ac_objext
28478 if { (ac_try="$ac_compile"
28479 case "(($ac_try" in
28480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28481 *) ac_try_echo=$ac_try;;
28483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484 (eval "$ac_compile") 2>conftest.er1
28486 grep -v '^ *+' conftest.er1 >conftest.err
28488 cat conftest.err >&5
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); } &&
28491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28492 { (case "(($ac_try" in
28493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28494 *) ac_try_echo=$ac_try;;
28496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28497 (eval "$ac_try") 2>&5
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); }; } &&
28501 { ac_try='test -s conftest.$ac_objext'
28502 { (case "(($ac_try" in
28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504 *) ac_try_echo=$ac_try;;
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_try") 2>&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; }; then
28511 ac_cv_header_stdc=yes
28513 echo "$as_me: failed program was:" >&5
28514 sed 's/^/| /' conftest.$ac_ext >&5
28516 ac_cv_header_stdc=no
28519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28521 if test $ac_cv_header_stdc = yes; then
28522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28523 cat >conftest.$ac_ext <<_ACEOF
28526 cat confdefs.h >>conftest.$ac_ext
28527 cat >>conftest.$ac_ext <<_ACEOF
28528 /* end confdefs.h. */
28529 #include <string.h>
28532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28533 $EGREP "memchr" >/dev/null 2>&1; then
28536 ac_cv_header_stdc=no
28542 if test $ac_cv_header_stdc = yes; then
28543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28544 cat >conftest.$ac_ext <<_ACEOF
28547 cat confdefs.h >>conftest.$ac_ext
28548 cat >>conftest.$ac_ext <<_ACEOF
28549 /* end confdefs.h. */
28550 #include <stdlib.h>
28553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28554 $EGREP "free" >/dev/null 2>&1; then
28557 ac_cv_header_stdc=no
28563 if test $ac_cv_header_stdc = yes; then
28564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28565 if test "$cross_compiling" = yes; then
28568 cat >conftest.$ac_ext <<_ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h. */
28575 #include <stdlib.h>
28576 #if ((' ' & 0x0FF) == 0x020)
28577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28580 # define ISLOWER(c) \
28581 (('a' <= (c) && (c) <= 'i') \
28582 || ('j' <= (c) && (c) <= 'r') \
28583 || ('s' <= (c) && (c) <= 'z'))
28584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28592 for (i = 0; i < 256; i++)
28593 if (XOR (islower (i), ISLOWER (i))
28594 || toupper (i) != TOUPPER (i))
28599 rm -f conftest$ac_exeext
28600 if { (ac_try="$ac_link"
28601 case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_link") 2>&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28621 echo "$as_me: program exited with status $ac_status" >&5
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28625 ( exit $ac_status )
28626 ac_cv_header_stdc=no
28628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28634 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28635 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28636 if test $ac_cv_header_stdc = yes; then
28638 cat >>confdefs.h <<\_ACEOF
28639 #define STDC_HEADERS 1
28644 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28645 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28646 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28647 echo $ECHO_N "(cached) $ECHO_C" >&6
28649 cat >conftest.$ac_ext <<_ACEOF
28652 cat confdefs.h >>conftest.$ac_ext
28653 cat >>conftest.$ac_ext <<_ACEOF
28654 /* end confdefs.h. */
28655 #include <sys/types.h>
28656 #include <sys/wait.h>
28657 #ifndef WEXITSTATUS
28658 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28661 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28669 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28674 rm -f conftest.$ac_objext
28675 if { (ac_try="$ac_compile"
28676 case "(($ac_try" in
28677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678 *) ac_try_echo=$ac_try;;
28680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681 (eval "$ac_compile") 2>conftest.er1
28683 grep -v '^ *+' conftest.er1 >conftest.err
28685 cat conftest.err >&5
28686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687 (exit $ac_status); } &&
28688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28689 { (case "(($ac_try" in
28690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691 *) ac_try_echo=$ac_try;;
28693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694 (eval "$ac_try") 2>&5
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; } &&
28698 { ac_try='test -s conftest.$ac_objext'
28699 { (case "(($ac_try" in
28700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28701 *) ac_try_echo=$ac_try;;
28703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28704 (eval "$ac_try") 2>&5
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); }; }; then
28708 ac_cv_header_sys_wait_h=yes
28710 echo "$as_me: failed program was:" >&5
28711 sed 's/^/| /' conftest.$ac_ext >&5
28713 ac_cv_header_sys_wait_h=no
28716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28718 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28719 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28720 if test $ac_cv_header_sys_wait_h = yes; then
28722 cat >>confdefs.h <<\_ACEOF
28723 #define HAVE_SYS_WAIT_H 1
28728 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28729 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28730 if test "${ac_cv_header_time+set}" = set; then
28731 echo $ECHO_N "(cached) $ECHO_C" >&6
28733 cat >conftest.$ac_ext <<_ACEOF
28736 cat confdefs.h >>conftest.$ac_ext
28737 cat >>conftest.$ac_ext <<_ACEOF
28738 /* end confdefs.h. */
28739 #include <sys/types.h>
28740 #include <sys/time.h>
28746 if ((struct tm *) 0)
28752 rm -f conftest.$ac_objext
28753 if { (ac_try="$ac_compile"
28754 case "(($ac_try" in
28755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28756 *) ac_try_echo=$ac_try;;
28758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28759 (eval "$ac_compile") 2>conftest.er1
28761 grep -v '^ *+' conftest.er1 >conftest.err
28763 cat conftest.err >&5
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); } &&
28766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28767 { (case "(($ac_try" in
28768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28769 *) ac_try_echo=$ac_try;;
28771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28772 (eval "$ac_try") 2>&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); }; } &&
28776 { ac_try='test -s conftest.$ac_objext'
28777 { (case "(($ac_try" in
28778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779 *) ac_try_echo=$ac_try;;
28781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28782 (eval "$ac_try") 2>&5
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); }; }; then
28786 ac_cv_header_time=yes
28788 echo "$as_me: failed program was:" >&5
28789 sed 's/^/| /' conftest.$ac_ext >&5
28791 ac_cv_header_time=no
28794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28796 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28797 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28798 if test $ac_cv_header_time = yes; then
28800 cat >>confdefs.h <<\_ACEOF
28801 #define TIME_WITH_SYS_TIME 1
28813 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28820 echo $ECHO_N "(cached) $ECHO_C" >&6
28822 ac_res=`eval echo '${'$as_ac_Header'}'`
28823 { echo "$as_me:$LINENO: result: $ac_res" >&5
28824 echo "${ECHO_T}$ac_res" >&6; }
28826 # Is the header compilable?
28827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28829 cat >conftest.$ac_ext <<_ACEOF
28832 cat confdefs.h >>conftest.$ac_ext
28833 cat >>conftest.$ac_ext <<_ACEOF
28834 /* end confdefs.h. */
28835 $ac_includes_default
28836 #include <$ac_header>
28838 rm -f conftest.$ac_objext
28839 if { (ac_try="$ac_compile"
28840 case "(($ac_try" in
28841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842 *) ac_try_echo=$ac_try;;
28844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845 (eval "$ac_compile") 2>conftest.er1
28847 grep -v '^ *+' conftest.er1 >conftest.err
28849 cat conftest.err >&5
28850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851 (exit $ac_status); } &&
28852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28853 { (case "(($ac_try" in
28854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855 *) ac_try_echo=$ac_try;;
28857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28858 (eval "$ac_try") 2>&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; } &&
28862 { ac_try='test -s conftest.$ac_objext'
28863 { (case "(($ac_try" in
28864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868 (eval "$ac_try") 2>&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; }; then
28872 ac_header_compiler=yes
28874 echo "$as_me: failed program was:" >&5
28875 sed 's/^/| /' conftest.$ac_ext >&5
28877 ac_header_compiler=no
28880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28882 echo "${ECHO_T}$ac_header_compiler" >&6; }
28884 # Is the header present?
28885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28887 cat >conftest.$ac_ext <<_ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h. */
28893 #include <$ac_header>
28895 if { (ac_try="$ac_cpp conftest.$ac_ext"
28896 case "(($ac_try" in
28897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898 *) ac_try_echo=$ac_try;;
28900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28903 grep -v '^ *+' conftest.er1 >conftest.err
28905 cat conftest.err >&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); } >/dev/null; then
28908 if test -s conftest.err; then
28909 ac_cpp_err=$ac_c_preproc_warn_flag
28910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28917 if test -z "$ac_cpp_err"; then
28918 ac_header_preproc=yes
28920 echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28923 ac_header_preproc=no
28926 rm -f conftest.err conftest.$ac_ext
28927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28928 echo "${ECHO_T}$ac_header_preproc" >&6; }
28930 # So? What about this header?
28931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28937 ac_header_preproc=yes
28940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28953 ## ----------------------------------- ##
28954 ## Report this to llvmbugs@cs.uiuc.edu ##
28955 ## ----------------------------------- ##
28957 ) | sed "s/^/$as_me: WARNING: /" >&2
28960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28963 echo $ECHO_N "(cached) $ECHO_C" >&6
28965 eval "$as_ac_Header=\$ac_header_preproc"
28967 ac_res=`eval echo '${'$as_ac_Header'}'`
28968 { echo "$as_me:$LINENO: result: $ac_res" >&5
28969 echo "${ECHO_T}$ac_res" >&6; }
28972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28973 cat >>confdefs.h <<_ACEOF
28974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28987 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28994 echo $ECHO_N "(cached) $ECHO_C" >&6
28996 ac_res=`eval echo '${'$as_ac_Header'}'`
28997 { echo "$as_me:$LINENO: result: $ac_res" >&5
28998 echo "${ECHO_T}$ac_res" >&6; }
29000 # Is the header compilable?
29001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29003 cat >conftest.$ac_ext <<_ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h. */
29009 $ac_includes_default
29010 #include <$ac_header>
29012 rm -f conftest.$ac_objext
29013 if { (ac_try="$ac_compile"
29014 case "(($ac_try" in
29015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016 *) ac_try_echo=$ac_try;;
29018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019 (eval "$ac_compile") 2>conftest.er1
29021 grep -v '^ *+' conftest.er1 >conftest.err
29023 cat conftest.err >&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); } &&
29026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29027 { (case "(($ac_try" in
29028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29029 *) ac_try_echo=$ac_try;;
29031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29032 (eval "$ac_try") 2>&5
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; } &&
29036 { ac_try='test -s conftest.$ac_objext'
29037 { (case "(($ac_try" in
29038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039 *) ac_try_echo=$ac_try;;
29041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042 (eval "$ac_try") 2>&5
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); }; }; then
29046 ac_header_compiler=yes
29048 echo "$as_me: failed program was:" >&5
29049 sed 's/^/| /' conftest.$ac_ext >&5
29051 ac_header_compiler=no
29054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29056 echo "${ECHO_T}$ac_header_compiler" >&6; }
29058 # Is the header present?
29059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29061 cat >conftest.$ac_ext <<_ACEOF
29064 cat confdefs.h >>conftest.$ac_ext
29065 cat >>conftest.$ac_ext <<_ACEOF
29066 /* end confdefs.h. */
29067 #include <$ac_header>
29069 if { (ac_try="$ac_cpp conftest.$ac_ext"
29070 case "(($ac_try" in
29071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072 *) ac_try_echo=$ac_try;;
29074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29077 grep -v '^ *+' conftest.er1 >conftest.err
29079 cat conftest.err >&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); } >/dev/null; then
29082 if test -s conftest.err; then
29083 ac_cpp_err=$ac_c_preproc_warn_flag
29084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29091 if test -z "$ac_cpp_err"; then
29092 ac_header_preproc=yes
29094 echo "$as_me: failed program was:" >&5
29095 sed 's/^/| /' conftest.$ac_ext >&5
29097 ac_header_preproc=no
29100 rm -f conftest.err conftest.$ac_ext
29101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29102 echo "${ECHO_T}$ac_header_preproc" >&6; }
29104 # So? What about this header?
29105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29111 ac_header_preproc=yes
29114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29127 ## ----------------------------------- ##
29128 ## Report this to llvmbugs@cs.uiuc.edu ##
29129 ## ----------------------------------- ##
29131 ) | sed "s/^/$as_me: WARNING: /" >&2
29134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29139 eval "$as_ac_Header=\$ac_header_preproc"
29141 ac_res=`eval echo '${'$as_ac_Header'}'`
29142 { echo "$as_me:$LINENO: result: $ac_res" >&5
29143 echo "${ECHO_T}$ac_res" >&6; }
29146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29147 cat >>confdefs.h <<_ACEOF
29148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29156 for ac_header in windows.h
29158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29163 echo $ECHO_N "(cached) $ECHO_C" >&6
29165 ac_res=`eval echo '${'$as_ac_Header'}'`
29166 { echo "$as_me:$LINENO: result: $ac_res" >&5
29167 echo "${ECHO_T}$ac_res" >&6; }
29169 # Is the header compilable?
29170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29172 cat >conftest.$ac_ext <<_ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h. */
29178 $ac_includes_default
29179 #include <$ac_header>
29181 rm -f conftest.$ac_objext
29182 if { (ac_try="$ac_compile"
29183 case "(($ac_try" in
29184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29185 *) ac_try_echo=$ac_try;;
29187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29188 (eval "$ac_compile") 2>conftest.er1
29190 grep -v '^ *+' conftest.er1 >conftest.err
29192 cat conftest.err >&5
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); } &&
29195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29196 { (case "(($ac_try" in
29197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198 *) ac_try_echo=$ac_try;;
29200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201 (eval "$ac_try") 2>&5
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; } &&
29205 { ac_try='test -s conftest.$ac_objext'
29206 { (case "(($ac_try" in
29207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208 *) ac_try_echo=$ac_try;;
29210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211 (eval "$ac_try") 2>&5
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); }; }; then
29215 ac_header_compiler=yes
29217 echo "$as_me: failed program was:" >&5
29218 sed 's/^/| /' conftest.$ac_ext >&5
29220 ac_header_compiler=no
29223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29225 echo "${ECHO_T}$ac_header_compiler" >&6; }
29227 # Is the header present?
29228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29230 cat >conftest.$ac_ext <<_ACEOF
29233 cat confdefs.h >>conftest.$ac_ext
29234 cat >>conftest.$ac_ext <<_ACEOF
29235 /* end confdefs.h. */
29236 #include <$ac_header>
29238 if { (ac_try="$ac_cpp conftest.$ac_ext"
29239 case "(($ac_try" in
29240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241 *) ac_try_echo=$ac_try;;
29243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29246 grep -v '^ *+' conftest.er1 >conftest.err
29248 cat conftest.err >&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } >/dev/null; then
29251 if test -s conftest.err; then
29252 ac_cpp_err=$ac_c_preproc_warn_flag
29253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29260 if test -z "$ac_cpp_err"; then
29261 ac_header_preproc=yes
29263 echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29266 ac_header_preproc=no
29269 rm -f conftest.err conftest.$ac_ext
29270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29271 echo "${ECHO_T}$ac_header_preproc" >&6; }
29273 # So? What about this header?
29274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29280 ac_header_preproc=yes
29283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29296 ## ----------------------------------- ##
29297 ## Report this to llvmbugs@cs.uiuc.edu ##
29298 ## ----------------------------------- ##
29300 ) | sed "s/^/$as_me: WARNING: /" >&2
29303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29306 echo $ECHO_N "(cached) $ECHO_C" >&6
29308 eval "$as_ac_Header=\$ac_header_preproc"
29310 ac_res=`eval echo '${'$as_ac_Header'}'`
29311 { echo "$as_me:$LINENO: result: $ac_res" >&5
29312 echo "${ECHO_T}$ac_res" >&6; }
29315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29316 cat >>confdefs.h <<_ACEOF
29317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29328 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29335 echo $ECHO_N "(cached) $ECHO_C" >&6
29337 ac_res=`eval echo '${'$as_ac_Header'}'`
29338 { echo "$as_me:$LINENO: result: $ac_res" >&5
29339 echo "${ECHO_T}$ac_res" >&6; }
29341 # Is the header compilable?
29342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29344 cat >conftest.$ac_ext <<_ACEOF
29347 cat confdefs.h >>conftest.$ac_ext
29348 cat >>conftest.$ac_ext <<_ACEOF
29349 /* end confdefs.h. */
29350 $ac_includes_default
29351 #include <$ac_header>
29353 rm -f conftest.$ac_objext
29354 if { (ac_try="$ac_compile"
29355 case "(($ac_try" in
29356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29357 *) ac_try_echo=$ac_try;;
29359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29360 (eval "$ac_compile") 2>conftest.er1
29362 grep -v '^ *+' conftest.er1 >conftest.err
29364 cat conftest.err >&5
29365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366 (exit $ac_status); } &&
29367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29368 { (case "(($ac_try" in
29369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29370 *) ac_try_echo=$ac_try;;
29372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29373 (eval "$ac_try") 2>&5
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); }; } &&
29377 { ac_try='test -s conftest.$ac_objext'
29378 { (case "(($ac_try" in
29379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380 *) ac_try_echo=$ac_try;;
29382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29383 (eval "$ac_try") 2>&5
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); }; }; then
29387 ac_header_compiler=yes
29389 echo "$as_me: failed program was:" >&5
29390 sed 's/^/| /' conftest.$ac_ext >&5
29392 ac_header_compiler=no
29395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29397 echo "${ECHO_T}$ac_header_compiler" >&6; }
29399 # Is the header present?
29400 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29402 cat >conftest.$ac_ext <<_ACEOF
29405 cat confdefs.h >>conftest.$ac_ext
29406 cat >>conftest.$ac_ext <<_ACEOF
29407 /* end confdefs.h. */
29408 #include <$ac_header>
29410 if { (ac_try="$ac_cpp conftest.$ac_ext"
29411 case "(($ac_try" in
29412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413 *) ac_try_echo=$ac_try;;
29415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29418 grep -v '^ *+' conftest.er1 >conftest.err
29420 cat conftest.err >&5
29421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422 (exit $ac_status); } >/dev/null; then
29423 if test -s conftest.err; then
29424 ac_cpp_err=$ac_c_preproc_warn_flag
29425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29432 if test -z "$ac_cpp_err"; then
29433 ac_header_preproc=yes
29435 echo "$as_me: failed program was:" >&5
29436 sed 's/^/| /' conftest.$ac_ext >&5
29438 ac_header_preproc=no
29441 rm -f conftest.err conftest.$ac_ext
29442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29443 echo "${ECHO_T}$ac_header_preproc" >&6; }
29445 # So? What about this header?
29446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29452 ac_header_preproc=yes
29455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29468 ## ----------------------------------- ##
29469 ## Report this to llvmbugs@cs.uiuc.edu ##
29470 ## ----------------------------------- ##
29472 ) | sed "s/^/$as_me: WARNING: /" >&2
29475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29478 echo $ECHO_N "(cached) $ECHO_C" >&6
29480 eval "$as_ac_Header=\$ac_header_preproc"
29482 ac_res=`eval echo '${'$as_ac_Header'}'`
29483 { echo "$as_me:$LINENO: result: $ac_res" >&5
29484 echo "${ECHO_T}$ac_res" >&6; }
29487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29488 cat >>confdefs.h <<_ACEOF
29489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29499 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29506 echo $ECHO_N "(cached) $ECHO_C" >&6
29508 ac_res=`eval echo '${'$as_ac_Header'}'`
29509 { echo "$as_me:$LINENO: result: $ac_res" >&5
29510 echo "${ECHO_T}$ac_res" >&6; }
29512 # Is the header compilable?
29513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29515 cat >conftest.$ac_ext <<_ACEOF
29518 cat confdefs.h >>conftest.$ac_ext
29519 cat >>conftest.$ac_ext <<_ACEOF
29520 /* end confdefs.h. */
29521 $ac_includes_default
29522 #include <$ac_header>
29524 rm -f conftest.$ac_objext
29525 if { (ac_try="$ac_compile"
29526 case "(($ac_try" in
29527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528 *) ac_try_echo=$ac_try;;
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531 (eval "$ac_compile") 2>conftest.er1
29533 grep -v '^ *+' conftest.er1 >conftest.err
29535 cat conftest.err >&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); } &&
29538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29539 { (case "(($ac_try" in
29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541 *) ac_try_echo=$ac_try;;
29543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544 (eval "$ac_try") 2>&5
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; } &&
29548 { ac_try='test -s conftest.$ac_objext'
29549 { (case "(($ac_try" in
29550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29551 *) ac_try_echo=$ac_try;;
29553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29554 (eval "$ac_try") 2>&5
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); }; }; then
29558 ac_header_compiler=yes
29560 echo "$as_me: failed program was:" >&5
29561 sed 's/^/| /' conftest.$ac_ext >&5
29563 ac_header_compiler=no
29566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29568 echo "${ECHO_T}$ac_header_compiler" >&6; }
29570 # Is the header present?
29571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29573 cat >conftest.$ac_ext <<_ACEOF
29576 cat confdefs.h >>conftest.$ac_ext
29577 cat >>conftest.$ac_ext <<_ACEOF
29578 /* end confdefs.h. */
29579 #include <$ac_header>
29581 if { (ac_try="$ac_cpp conftest.$ac_ext"
29582 case "(($ac_try" in
29583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29584 *) ac_try_echo=$ac_try;;
29586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29589 grep -v '^ *+' conftest.er1 >conftest.err
29591 cat conftest.err >&5
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); } >/dev/null; then
29594 if test -s conftest.err; then
29595 ac_cpp_err=$ac_c_preproc_warn_flag
29596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29603 if test -z "$ac_cpp_err"; then
29604 ac_header_preproc=yes
29606 echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29609 ac_header_preproc=no
29612 rm -f conftest.err conftest.$ac_ext
29613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29614 echo "${ECHO_T}$ac_header_preproc" >&6; }
29616 # So? What about this header?
29617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29623 ac_header_preproc=yes
29626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29639 ## ----------------------------------- ##
29640 ## Report this to llvmbugs@cs.uiuc.edu ##
29641 ## ----------------------------------- ##
29643 ) | sed "s/^/$as_me: WARNING: /" >&2
29646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29649 echo $ECHO_N "(cached) $ECHO_C" >&6
29651 eval "$as_ac_Header=\$ac_header_preproc"
29653 ac_res=`eval echo '${'$as_ac_Header'}'`
29654 { echo "$as_me:$LINENO: result: $ac_res" >&5
29655 echo "${ECHO_T}$ac_res" >&6; }
29658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29659 cat >>confdefs.h <<_ACEOF
29660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29667 if test "$ENABLE_THREADS" -eq 1 ; then
29669 for ac_header in pthread.h
29671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29676 echo $ECHO_N "(cached) $ECHO_C" >&6
29678 ac_res=`eval echo '${'$as_ac_Header'}'`
29679 { echo "$as_me:$LINENO: result: $ac_res" >&5
29680 echo "${ECHO_T}$ac_res" >&6; }
29682 # Is the header compilable?
29683 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29685 cat >conftest.$ac_ext <<_ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h. */
29691 $ac_includes_default
29692 #include <$ac_header>
29694 rm -f conftest.$ac_objext
29695 if { (ac_try="$ac_compile"
29696 case "(($ac_try" in
29697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698 *) ac_try_echo=$ac_try;;
29700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29701 (eval "$ac_compile") 2>conftest.er1
29703 grep -v '^ *+' conftest.er1 >conftest.err
29705 cat conftest.err >&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); } &&
29708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29709 { (case "(($ac_try" in
29710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29711 *) ac_try_echo=$ac_try;;
29713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29714 (eval "$ac_try") 2>&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); }; } &&
29718 { ac_try='test -s conftest.$ac_objext'
29719 { (case "(($ac_try" in
29720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29721 *) ac_try_echo=$ac_try;;
29723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29724 (eval "$ac_try") 2>&5
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); }; }; then
29728 ac_header_compiler=yes
29730 echo "$as_me: failed program was:" >&5
29731 sed 's/^/| /' conftest.$ac_ext >&5
29733 ac_header_compiler=no
29736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29738 echo "${ECHO_T}$ac_header_compiler" >&6; }
29740 # Is the header present?
29741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29743 cat >conftest.$ac_ext <<_ACEOF
29746 cat confdefs.h >>conftest.$ac_ext
29747 cat >>conftest.$ac_ext <<_ACEOF
29748 /* end confdefs.h. */
29749 #include <$ac_header>
29751 if { (ac_try="$ac_cpp conftest.$ac_ext"
29752 case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29759 grep -v '^ *+' conftest.er1 >conftest.err
29761 cat conftest.err >&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); } >/dev/null; then
29764 if test -s conftest.err; then
29765 ac_cpp_err=$ac_c_preproc_warn_flag
29766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29773 if test -z "$ac_cpp_err"; then
29774 ac_header_preproc=yes
29776 echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29779 ac_header_preproc=no
29782 rm -f conftest.err conftest.$ac_ext
29783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29784 echo "${ECHO_T}$ac_header_preproc" >&6; }
29786 # So? What about this header?
29787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29793 ac_header_preproc=yes
29796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29809 ## ----------------------------------- ##
29810 ## Report this to llvmbugs@cs.uiuc.edu ##
29811 ## ----------------------------------- ##
29813 ) | sed "s/^/$as_me: WARNING: /" >&2
29816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29819 echo $ECHO_N "(cached) $ECHO_C" >&6
29821 eval "$as_ac_Header=\$ac_header_preproc"
29823 ac_res=`eval echo '${'$as_ac_Header'}'`
29824 { echo "$as_me:$LINENO: result: $ac_res" >&5
29825 echo "${ECHO_T}$ac_res" >&6; }
29828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29829 cat >>confdefs.h <<_ACEOF
29830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29846 if test -n "$have_libffi" ; then
29849 for ac_header in ffi.h ffi/ffi.h
29851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29856 echo $ECHO_N "(cached) $ECHO_C" >&6
29858 ac_res=`eval echo '${'$as_ac_Header'}'`
29859 { echo "$as_me:$LINENO: result: $ac_res" >&5
29860 echo "${ECHO_T}$ac_res" >&6; }
29862 # Is the header compilable?
29863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29865 cat >conftest.$ac_ext <<_ACEOF
29868 cat confdefs.h >>conftest.$ac_ext
29869 cat >>conftest.$ac_ext <<_ACEOF
29870 /* end confdefs.h. */
29871 $ac_includes_default
29872 #include <$ac_header>
29874 rm -f conftest.$ac_objext
29875 if { (ac_try="$ac_compile"
29876 case "(($ac_try" in
29877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29878 *) ac_try_echo=$ac_try;;
29880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29881 (eval "$ac_compile") 2>conftest.er1
29883 grep -v '^ *+' conftest.er1 >conftest.err
29885 cat conftest.err >&5
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); } &&
29888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29889 { (case "(($ac_try" in
29890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891 *) ac_try_echo=$ac_try;;
29893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894 (eval "$ac_try") 2>&5
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; } &&
29898 { ac_try='test -s conftest.$ac_objext'
29899 { (case "(($ac_try" in
29900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29901 *) ac_try_echo=$ac_try;;
29903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29904 (eval "$ac_try") 2>&5
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); }; }; then
29908 ac_header_compiler=yes
29910 echo "$as_me: failed program was:" >&5
29911 sed 's/^/| /' conftest.$ac_ext >&5
29913 ac_header_compiler=no
29916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29918 echo "${ECHO_T}$ac_header_compiler" >&6; }
29920 # Is the header present?
29921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29923 cat >conftest.$ac_ext <<_ACEOF
29926 cat confdefs.h >>conftest.$ac_ext
29927 cat >>conftest.$ac_ext <<_ACEOF
29928 /* end confdefs.h. */
29929 #include <$ac_header>
29931 if { (ac_try="$ac_cpp conftest.$ac_ext"
29932 case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29939 grep -v '^ *+' conftest.er1 >conftest.err
29941 cat conftest.err >&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } >/dev/null; then
29944 if test -s conftest.err; then
29945 ac_cpp_err=$ac_c_preproc_warn_flag
29946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29953 if test -z "$ac_cpp_err"; then
29954 ac_header_preproc=yes
29956 echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29959 ac_header_preproc=no
29962 rm -f conftest.err conftest.$ac_ext
29963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29964 echo "${ECHO_T}$ac_header_preproc" >&6; }
29966 # So? What about this header?
29967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29973 ac_header_preproc=yes
29976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29989 ## ----------------------------------- ##
29990 ## Report this to llvmbugs@cs.uiuc.edu ##
29991 ## ----------------------------------- ##
29993 ) | sed "s/^/$as_me: WARNING: /" >&2
29996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29999 echo $ECHO_N "(cached) $ECHO_C" >&6
30001 eval "$as_ac_Header=\$ac_header_preproc"
30003 ac_res=`eval echo '${'$as_ac_Header'}'`
30004 { echo "$as_me:$LINENO: result: $ac_res" >&5
30005 echo "${ECHO_T}$ac_res" >&6; }
30008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30009 cat >>confdefs.h <<_ACEOF
30010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30022 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30023 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30024 if test "${ac_cv_huge_val_sanity+set}" = set; then
30025 echo $ECHO_N "(cached) $ECHO_C" >&6
30029 ac_cpp='$CXXCPP $CPPFLAGS'
30030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30035 if test "$cross_compiling" = yes; then
30036 ac_cv_huge_val_sanity=yes
30038 cat >conftest.$ac_ext <<_ACEOF
30041 cat confdefs.h >>conftest.$ac_ext
30042 cat >>conftest.$ac_ext <<_ACEOF
30043 /* end confdefs.h. */
30048 double x = HUGE_VAL; return x != x;
30053 rm -f conftest$ac_exeext
30054 if { (ac_try="$ac_link"
30055 case "(($ac_try" in
30056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057 *) ac_try_echo=$ac_try;;
30059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060 (eval "$ac_link") 2>&5
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30064 { (case "(($ac_try" in
30065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30066 *) ac_try_echo=$ac_try;;
30068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30069 (eval "$ac_try") 2>&5
30071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072 (exit $ac_status); }; }; then
30073 ac_cv_huge_val_sanity=yes
30075 echo "$as_me: program exited with status $ac_status" >&5
30076 echo "$as_me: failed program was:" >&5
30077 sed 's/^/| /' conftest.$ac_ext >&5
30079 ( exit $ac_status )
30080 ac_cv_huge_val_sanity=no
30082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30087 ac_cpp='$CPP $CPPFLAGS'
30088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30094 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30095 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30096 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30099 { echo "$as_me:$LINENO: checking for pid_t" >&5
30100 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30101 if test "${ac_cv_type_pid_t+set}" = set; then
30102 echo $ECHO_N "(cached) $ECHO_C" >&6
30104 cat >conftest.$ac_ext <<_ACEOF
30107 cat confdefs.h >>conftest.$ac_ext
30108 cat >>conftest.$ac_ext <<_ACEOF
30109 /* end confdefs.h. */
30110 $ac_includes_default
30111 typedef pid_t ac__type_new_;
30115 if ((ac__type_new_ *) 0)
30117 if (sizeof (ac__type_new_))
30123 rm -f conftest.$ac_objext
30124 if { (ac_try="$ac_compile"
30125 case "(($ac_try" in
30126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127 *) ac_try_echo=$ac_try;;
30129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130 (eval "$ac_compile") 2>conftest.er1
30132 grep -v '^ *+' conftest.er1 >conftest.err
30134 cat conftest.err >&5
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); } &&
30137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30138 { (case "(($ac_try" in
30139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30140 *) ac_try_echo=$ac_try;;
30142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30143 (eval "$ac_try") 2>&5
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); }; } &&
30147 { ac_try='test -s conftest.$ac_objext'
30148 { (case "(($ac_try" in
30149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150 *) ac_try_echo=$ac_try;;
30152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153 (eval "$ac_try") 2>&5
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); }; }; then
30157 ac_cv_type_pid_t=yes
30159 echo "$as_me: failed program was:" >&5
30160 sed 's/^/| /' conftest.$ac_ext >&5
30162 ac_cv_type_pid_t=no
30165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30167 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30168 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30169 if test $ac_cv_type_pid_t = yes; then
30173 cat >>confdefs.h <<_ACEOF
30179 { echo "$as_me:$LINENO: checking for size_t" >&5
30180 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30181 if test "${ac_cv_type_size_t+set}" = set; then
30182 echo $ECHO_N "(cached) $ECHO_C" >&6
30184 cat >conftest.$ac_ext <<_ACEOF
30187 cat confdefs.h >>conftest.$ac_ext
30188 cat >>conftest.$ac_ext <<_ACEOF
30189 /* end confdefs.h. */
30190 $ac_includes_default
30191 typedef size_t ac__type_new_;
30195 if ((ac__type_new_ *) 0)
30197 if (sizeof (ac__type_new_))
30203 rm -f conftest.$ac_objext
30204 if { (ac_try="$ac_compile"
30205 case "(($ac_try" in
30206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207 *) ac_try_echo=$ac_try;;
30209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210 (eval "$ac_compile") 2>conftest.er1
30212 grep -v '^ *+' conftest.er1 >conftest.err
30214 cat conftest.err >&5
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); } &&
30217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30218 { (case "(($ac_try" in
30219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220 *) ac_try_echo=$ac_try;;
30222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223 (eval "$ac_try") 2>&5
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; } &&
30227 { ac_try='test -s conftest.$ac_objext'
30228 { (case "(($ac_try" in
30229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230 *) ac_try_echo=$ac_try;;
30232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233 (eval "$ac_try") 2>&5
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); }; }; then
30237 ac_cv_type_size_t=yes
30239 echo "$as_me: failed program was:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30242 ac_cv_type_size_t=no
30245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30247 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30248 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30249 if test $ac_cv_type_size_t = yes; then
30253 cat >>confdefs.h <<_ACEOF
30254 #define size_t unsigned int
30259 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30260 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30261 if test "${ac_cv_type_signal+set}" = set; then
30262 echo $ECHO_N "(cached) $ECHO_C" >&6
30264 cat >conftest.$ac_ext <<_ACEOF
30267 cat confdefs.h >>conftest.$ac_ext
30268 cat >>conftest.$ac_ext <<_ACEOF
30269 /* end confdefs.h. */
30270 #include <sys/types.h>
30271 #include <signal.h>
30276 return *(signal (0, 0)) (0) == 1;
30281 rm -f conftest.$ac_objext
30282 if { (ac_try="$ac_compile"
30283 case "(($ac_try" in
30284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30285 *) ac_try_echo=$ac_try;;
30287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30288 (eval "$ac_compile") 2>conftest.er1
30290 grep -v '^ *+' conftest.er1 >conftest.err
30292 cat conftest.err >&5
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); } &&
30295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30296 { (case "(($ac_try" in
30297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301 (eval "$ac_try") 2>&5
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; } &&
30305 { ac_try='test -s conftest.$ac_objext'
30306 { (case "(($ac_try" in
30307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30308 *) ac_try_echo=$ac_try;;
30310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30311 (eval "$ac_try") 2>&5
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; }; then
30315 ac_cv_type_signal=int
30317 echo "$as_me: failed program was:" >&5
30318 sed 's/^/| /' conftest.$ac_ext >&5
30320 ac_cv_type_signal=void
30323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30325 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30326 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30328 cat >>confdefs.h <<_ACEOF
30329 #define RETSIGTYPE $ac_cv_type_signal
30333 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30334 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30335 if test "${ac_cv_struct_tm+set}" = set; then
30336 echo $ECHO_N "(cached) $ECHO_C" >&6
30338 cat >conftest.$ac_ext <<_ACEOF
30341 cat confdefs.h >>conftest.$ac_ext
30342 cat >>conftest.$ac_ext <<_ACEOF
30343 /* end confdefs.h. */
30344 #include <sys/types.h>
30350 struct tm *tp; tp->tm_sec;
30355 rm -f conftest.$ac_objext
30356 if { (ac_try="$ac_compile"
30357 case "(($ac_try" in
30358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359 *) ac_try_echo=$ac_try;;
30361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362 (eval "$ac_compile") 2>conftest.er1
30364 grep -v '^ *+' conftest.er1 >conftest.err
30366 cat conftest.err >&5
30367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368 (exit $ac_status); } &&
30369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30370 { (case "(($ac_try" in
30371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372 *) ac_try_echo=$ac_try;;
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375 (eval "$ac_try") 2>&5
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); }; } &&
30379 { ac_try='test -s conftest.$ac_objext'
30380 { (case "(($ac_try" in
30381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382 *) ac_try_echo=$ac_try;;
30384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385 (eval "$ac_try") 2>&5
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); }; }; then
30389 ac_cv_struct_tm=time.h
30391 echo "$as_me: failed program was:" >&5
30392 sed 's/^/| /' conftest.$ac_ext >&5
30394 ac_cv_struct_tm=sys/time.h
30397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30399 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30400 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30401 if test $ac_cv_struct_tm = sys/time.h; then
30403 cat >>confdefs.h <<\_ACEOF
30404 #define TM_IN_SYS_TIME 1
30409 { echo "$as_me:$LINENO: checking for int64_t" >&5
30410 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30411 if test "${ac_cv_type_int64_t+set}" = set; then
30412 echo $ECHO_N "(cached) $ECHO_C" >&6
30414 cat >conftest.$ac_ext <<_ACEOF
30417 cat confdefs.h >>conftest.$ac_ext
30418 cat >>conftest.$ac_ext <<_ACEOF
30419 /* end confdefs.h. */
30420 $ac_includes_default
30421 typedef int64_t ac__type_new_;
30425 if ((ac__type_new_ *) 0)
30427 if (sizeof (ac__type_new_))
30433 rm -f conftest.$ac_objext
30434 if { (ac_try="$ac_compile"
30435 case "(($ac_try" in
30436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30437 *) ac_try_echo=$ac_try;;
30439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30440 (eval "$ac_compile") 2>conftest.er1
30442 grep -v '^ *+' conftest.er1 >conftest.err
30444 cat conftest.err >&5
30445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30446 (exit $ac_status); } &&
30447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30448 { (case "(($ac_try" in
30449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450 *) ac_try_echo=$ac_try;;
30452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453 (eval "$ac_try") 2>&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); }; } &&
30457 { ac_try='test -s conftest.$ac_objext'
30458 { (case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_try") 2>&5
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; }; then
30467 ac_cv_type_int64_t=yes
30469 echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30472 ac_cv_type_int64_t=no
30475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30477 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30478 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30479 if test $ac_cv_type_int64_t = yes; then
30481 cat >>confdefs.h <<_ACEOF
30482 #define HAVE_INT64_T 1
30487 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30488 echo "$as_me: error: Type int64_t required but not found" >&2;}
30489 { (exit 1); exit 1; }; }
30492 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30493 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30494 if test "${ac_cv_type_uint64_t+set}" = set; then
30495 echo $ECHO_N "(cached) $ECHO_C" >&6
30497 cat >conftest.$ac_ext <<_ACEOF
30500 cat confdefs.h >>conftest.$ac_ext
30501 cat >>conftest.$ac_ext <<_ACEOF
30502 /* end confdefs.h. */
30503 $ac_includes_default
30504 typedef uint64_t ac__type_new_;
30508 if ((ac__type_new_ *) 0)
30510 if (sizeof (ac__type_new_))
30516 rm -f conftest.$ac_objext
30517 if { (ac_try="$ac_compile"
30518 case "(($ac_try" in
30519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520 *) ac_try_echo=$ac_try;;
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523 (eval "$ac_compile") 2>conftest.er1
30525 grep -v '^ *+' conftest.er1 >conftest.err
30527 cat conftest.err >&5
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); } &&
30530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30531 { (case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_try") 2>&5
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; } &&
30540 { ac_try='test -s conftest.$ac_objext'
30541 { (case "(($ac_try" in
30542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30543 *) ac_try_echo=$ac_try;;
30545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30546 (eval "$ac_try") 2>&5
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); }; }; then
30550 ac_cv_type_uint64_t=yes
30552 echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30555 ac_cv_type_uint64_t=no
30558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30560 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30561 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30562 if test $ac_cv_type_uint64_t = yes; then
30564 cat >>confdefs.h <<_ACEOF
30565 #define HAVE_UINT64_T 1
30570 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30571 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30572 if test "${ac_cv_type_u_int64_t+set}" = set; then
30573 echo $ECHO_N "(cached) $ECHO_C" >&6
30575 cat >conftest.$ac_ext <<_ACEOF
30578 cat confdefs.h >>conftest.$ac_ext
30579 cat >>conftest.$ac_ext <<_ACEOF
30580 /* end confdefs.h. */
30581 $ac_includes_default
30582 typedef u_int64_t ac__type_new_;
30586 if ((ac__type_new_ *) 0)
30588 if (sizeof (ac__type_new_))
30594 rm -f conftest.$ac_objext
30595 if { (ac_try="$ac_compile"
30596 case "(($ac_try" in
30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598 *) ac_try_echo=$ac_try;;
30600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601 (eval "$ac_compile") 2>conftest.er1
30603 grep -v '^ *+' conftest.er1 >conftest.err
30605 cat conftest.err >&5
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); } &&
30608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30609 { (case "(($ac_try" in
30610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611 *) ac_try_echo=$ac_try;;
30613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614 (eval "$ac_try") 2>&5
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; } &&
30618 { ac_try='test -s conftest.$ac_objext'
30619 { (case "(($ac_try" in
30620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30621 *) ac_try_echo=$ac_try;;
30623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30624 (eval "$ac_try") 2>&5
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); }; }; then
30628 ac_cv_type_u_int64_t=yes
30630 echo "$as_me: failed program was:" >&5
30631 sed 's/^/| /' conftest.$ac_ext >&5
30633 ac_cv_type_u_int64_t=no
30636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30638 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30639 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30640 if test $ac_cv_type_u_int64_t = yes; then
30642 cat >>confdefs.h <<_ACEOF
30643 #define HAVE_U_INT64_T 1
30648 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30649 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30650 { (exit 1); exit 1; }; }
30664 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30670 echo $ECHO_N "(cached) $ECHO_C" >&6
30672 cat >conftest.$ac_ext <<_ACEOF
30675 cat confdefs.h >>conftest.$ac_ext
30676 cat >>conftest.$ac_ext <<_ACEOF
30677 /* end confdefs.h. */
30678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30680 #define $ac_func innocuous_$ac_func
30682 /* System header to define __stub macros and hopefully few prototypes,
30683 which can conflict with char $ac_func (); below.
30684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30685 <limits.h> exists even on freestanding compilers. */
30688 # include <limits.h>
30690 # include <assert.h>
30695 /* Override any GCC internal prototype to avoid an error.
30696 Use char because int might match the return type of a GCC
30697 builtin and then its argument prototype would still apply. */
30702 /* The GNU C library defines this for functions which it implements
30703 to always fail with ENOSYS. Some functions are actually named
30704 something starting with __ and the normal name is an alias. */
30705 #if defined __stub_$ac_func || defined __stub___$ac_func
30712 return $ac_func ();
30717 rm -f conftest.$ac_objext conftest$ac_exeext
30718 if { (ac_try="$ac_link"
30719 case "(($ac_try" in
30720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721 *) ac_try_echo=$ac_try;;
30723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724 (eval "$ac_link") 2>conftest.er1
30726 grep -v '^ *+' conftest.er1 >conftest.err
30728 cat conftest.err >&5
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); } &&
30731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30732 { (case "(($ac_try" in
30733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30734 *) ac_try_echo=$ac_try;;
30736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30737 (eval "$ac_try") 2>&5
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); }; } &&
30741 { ac_try='test -s conftest$ac_exeext'
30742 { (case "(($ac_try" in
30743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30744 *) ac_try_echo=$ac_try;;
30746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747 (eval "$ac_try") 2>&5
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; }; then
30751 eval "$as_ac_var=yes"
30753 echo "$as_me: failed program was:" >&5
30754 sed 's/^/| /' conftest.$ac_ext >&5
30756 eval "$as_ac_var=no"
30759 rm -f core conftest.err conftest.$ac_objext \
30760 conftest$ac_exeext conftest.$ac_ext
30762 ac_res=`eval echo '${'$as_ac_var'}'`
30763 { echo "$as_me:$LINENO: result: $ac_res" >&5
30764 echo "${ECHO_T}$ac_res" >&6; }
30765 if test `eval echo '${'$as_ac_var'}'` = yes; then
30766 cat >>confdefs.h <<_ACEOF
30767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30777 for ac_func in powf fmodf strtof round
30779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30783 echo $ECHO_N "(cached) $ECHO_C" >&6
30785 cat >conftest.$ac_ext <<_ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h. */
30791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30793 #define $ac_func innocuous_$ac_func
30795 /* System header to define __stub macros and hopefully few prototypes,
30796 which can conflict with char $ac_func (); below.
30797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30798 <limits.h> exists even on freestanding compilers. */
30801 # include <limits.h>
30803 # include <assert.h>
30808 /* Override any GCC internal prototype to avoid an error.
30809 Use char because int might match the return type of a GCC
30810 builtin and then its argument prototype would still apply. */
30815 /* The GNU C library defines this for functions which it implements
30816 to always fail with ENOSYS. Some functions are actually named
30817 something starting with __ and the normal name is an alias. */
30818 #if defined __stub_$ac_func || defined __stub___$ac_func
30825 return $ac_func ();
30830 rm -f conftest.$ac_objext conftest$ac_exeext
30831 if { (ac_try="$ac_link"
30832 case "(($ac_try" in
30833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30834 *) ac_try_echo=$ac_try;;
30836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30837 (eval "$ac_link") 2>conftest.er1
30839 grep -v '^ *+' conftest.er1 >conftest.err
30841 cat conftest.err >&5
30842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843 (exit $ac_status); } &&
30844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30845 { (case "(($ac_try" in
30846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30847 *) ac_try_echo=$ac_try;;
30849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30850 (eval "$ac_try") 2>&5
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); }; } &&
30854 { ac_try='test -s conftest$ac_exeext'
30855 { (case "(($ac_try" in
30856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857 *) ac_try_echo=$ac_try;;
30859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860 (eval "$ac_try") 2>&5
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); }; }; then
30864 eval "$as_ac_var=yes"
30866 echo "$as_me: failed program was:" >&5
30867 sed 's/^/| /' conftest.$ac_ext >&5
30869 eval "$as_ac_var=no"
30872 rm -f core conftest.err conftest.$ac_objext \
30873 conftest$ac_exeext conftest.$ac_ext
30875 ac_res=`eval echo '${'$as_ac_var'}'`
30876 { echo "$as_me:$LINENO: result: $ac_res" >&5
30877 echo "${ECHO_T}$ac_res" >&6; }
30878 if test `eval echo '${'$as_ac_var'}'` = yes; then
30879 cat >>confdefs.h <<_ACEOF
30880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30891 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30897 echo $ECHO_N "(cached) $ECHO_C" >&6
30899 cat >conftest.$ac_ext <<_ACEOF
30902 cat confdefs.h >>conftest.$ac_ext
30903 cat >>conftest.$ac_ext <<_ACEOF
30904 /* end confdefs.h. */
30905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30907 #define $ac_func innocuous_$ac_func
30909 /* System header to define __stub macros and hopefully few prototypes,
30910 which can conflict with char $ac_func (); below.
30911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30912 <limits.h> exists even on freestanding compilers. */
30915 # include <limits.h>
30917 # include <assert.h>
30922 /* Override any GCC internal prototype to avoid an error.
30923 Use char because int might match the return type of a GCC
30924 builtin and then its argument prototype would still apply. */
30929 /* The GNU C library defines this for functions which it implements
30930 to always fail with ENOSYS. Some functions are actually named
30931 something starting with __ and the normal name is an alias. */
30932 #if defined __stub_$ac_func || defined __stub___$ac_func
30939 return $ac_func ();
30944 rm -f conftest.$ac_objext conftest$ac_exeext
30945 if { (ac_try="$ac_link"
30946 case "(($ac_try" in
30947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948 *) ac_try_echo=$ac_try;;
30950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951 (eval "$ac_link") 2>conftest.er1
30953 grep -v '^ *+' conftest.er1 >conftest.err
30955 cat conftest.err >&5
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); } &&
30958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30959 { (case "(($ac_try" in
30960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961 *) ac_try_echo=$ac_try;;
30963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964 (eval "$ac_try") 2>&5
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; } &&
30968 { ac_try='test -s conftest$ac_exeext'
30969 { (case "(($ac_try" in
30970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30971 *) ac_try_echo=$ac_try;;
30973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30974 (eval "$ac_try") 2>&5
30976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977 (exit $ac_status); }; }; then
30978 eval "$as_ac_var=yes"
30980 echo "$as_me: failed program was:" >&5
30981 sed 's/^/| /' conftest.$ac_ext >&5
30983 eval "$as_ac_var=no"
30986 rm -f core conftest.err conftest.$ac_objext \
30987 conftest$ac_exeext conftest.$ac_ext
30989 ac_res=`eval echo '${'$as_ac_var'}'`
30990 { echo "$as_me:$LINENO: result: $ac_res" >&5
30991 echo "${ECHO_T}$ac_res" >&6; }
30992 if test `eval echo '${'$as_ac_var'}'` = yes; then
30993 cat >>confdefs.h <<_ACEOF
30994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31003 for ac_func in isatty mkdtemp mkstemp
31005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31011 cat >conftest.$ac_ext <<_ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31019 #define $ac_func innocuous_$ac_func
31021 /* System header to define __stub macros and hopefully few prototypes,
31022 which can conflict with char $ac_func (); below.
31023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31024 <limits.h> exists even on freestanding compilers. */
31027 # include <limits.h>
31029 # include <assert.h>
31034 /* Override any GCC internal prototype to avoid an error.
31035 Use char because int might match the return type of a GCC
31036 builtin and then its argument prototype would still apply. */
31041 /* The GNU C library defines this for functions which it implements
31042 to always fail with ENOSYS. Some functions are actually named
31043 something starting with __ and the normal name is an alias. */
31044 #if defined __stub_$ac_func || defined __stub___$ac_func
31051 return $ac_func ();
31056 rm -f conftest.$ac_objext conftest$ac_exeext
31057 if { (ac_try="$ac_link"
31058 case "(($ac_try" in
31059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060 *) ac_try_echo=$ac_try;;
31062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063 (eval "$ac_link") 2>conftest.er1
31065 grep -v '^ *+' conftest.er1 >conftest.err
31067 cat conftest.err >&5
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); } &&
31070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31071 { (case "(($ac_try" in
31072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073 *) ac_try_echo=$ac_try;;
31075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076 (eval "$ac_try") 2>&5
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; } &&
31080 { ac_try='test -s conftest$ac_exeext'
31081 { (case "(($ac_try" in
31082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083 *) ac_try_echo=$ac_try;;
31085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086 (eval "$ac_try") 2>&5
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); }; }; then
31090 eval "$as_ac_var=yes"
31092 echo "$as_me: failed program was:" >&5
31093 sed 's/^/| /' conftest.$ac_ext >&5
31095 eval "$as_ac_var=no"
31098 rm -f core conftest.err conftest.$ac_objext \
31099 conftest$ac_exeext conftest.$ac_ext
31101 ac_res=`eval echo '${'$as_ac_var'}'`
31102 { echo "$as_me:$LINENO: result: $ac_res" >&5
31103 echo "${ECHO_T}$ac_res" >&6; }
31104 if test `eval echo '${'$as_ac_var'}'` = yes; then
31105 cat >>confdefs.h <<_ACEOF
31106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31119 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31125 echo $ECHO_N "(cached) $ECHO_C" >&6
31127 cat >conftest.$ac_ext <<_ACEOF
31130 cat confdefs.h >>conftest.$ac_ext
31131 cat >>conftest.$ac_ext <<_ACEOF
31132 /* end confdefs.h. */
31133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31135 #define $ac_func innocuous_$ac_func
31137 /* System header to define __stub macros and hopefully few prototypes,
31138 which can conflict with char $ac_func (); below.
31139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31140 <limits.h> exists even on freestanding compilers. */
31143 # include <limits.h>
31145 # include <assert.h>
31150 /* Override any GCC internal prototype to avoid an error.
31151 Use char because int might match the return type of a GCC
31152 builtin and then its argument prototype would still apply. */
31157 /* The GNU C library defines this for functions which it implements
31158 to always fail with ENOSYS. Some functions are actually named
31159 something starting with __ and the normal name is an alias. */
31160 #if defined __stub_$ac_func || defined __stub___$ac_func
31167 return $ac_func ();
31172 rm -f conftest.$ac_objext conftest$ac_exeext
31173 if { (ac_try="$ac_link"
31174 case "(($ac_try" in
31175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176 *) ac_try_echo=$ac_try;;
31178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179 (eval "$ac_link") 2>conftest.er1
31181 grep -v '^ *+' conftest.er1 >conftest.err
31183 cat conftest.err >&5
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); } &&
31186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31187 { (case "(($ac_try" in
31188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189 *) ac_try_echo=$ac_try;;
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192 (eval "$ac_try") 2>&5
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; } &&
31196 { ac_try='test -s conftest$ac_exeext'
31197 { (case "(($ac_try" in
31198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199 *) ac_try_echo=$ac_try;;
31201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202 (eval "$ac_try") 2>&5
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); }; }; then
31206 eval "$as_ac_var=yes"
31208 echo "$as_me: failed program was:" >&5
31209 sed 's/^/| /' conftest.$ac_ext >&5
31211 eval "$as_ac_var=no"
31214 rm -f core conftest.err conftest.$ac_objext \
31215 conftest$ac_exeext conftest.$ac_ext
31217 ac_res=`eval echo '${'$as_ac_var'}'`
31218 { echo "$as_me:$LINENO: result: $ac_res" >&5
31219 echo "${ECHO_T}$ac_res" >&6; }
31220 if test `eval echo '${'$as_ac_var'}'` = yes; then
31221 cat >>confdefs.h <<_ACEOF
31222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31232 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31238 echo $ECHO_N "(cached) $ECHO_C" >&6
31240 cat >conftest.$ac_ext <<_ACEOF
31243 cat confdefs.h >>conftest.$ac_ext
31244 cat >>conftest.$ac_ext <<_ACEOF
31245 /* end confdefs.h. */
31246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31248 #define $ac_func innocuous_$ac_func
31250 /* System header to define __stub macros and hopefully few prototypes,
31251 which can conflict with char $ac_func (); below.
31252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31253 <limits.h> exists even on freestanding compilers. */
31256 # include <limits.h>
31258 # include <assert.h>
31263 /* Override any GCC internal prototype to avoid an error.
31264 Use char because int might match the return type of a GCC
31265 builtin and then its argument prototype would still apply. */
31270 /* The GNU C library defines this for functions which it implements
31271 to always fail with ENOSYS. Some functions are actually named
31272 something starting with __ and the normal name is an alias. */
31273 #if defined __stub_$ac_func || defined __stub___$ac_func
31280 return $ac_func ();
31285 rm -f conftest.$ac_objext conftest$ac_exeext
31286 if { (ac_try="$ac_link"
31287 case "(($ac_try" in
31288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_link") 2>conftest.er1
31294 grep -v '^ *+' conftest.er1 >conftest.err
31296 cat conftest.err >&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); } &&
31299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31300 { (case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_try") 2>&5
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); }; } &&
31309 { ac_try='test -s conftest$ac_exeext'
31310 { (case "(($ac_try" in
31311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312 *) ac_try_echo=$ac_try;;
31314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315 (eval "$ac_try") 2>&5
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; }; then
31319 eval "$as_ac_var=yes"
31321 echo "$as_me: failed program was:" >&5
31322 sed 's/^/| /' conftest.$ac_ext >&5
31324 eval "$as_ac_var=no"
31327 rm -f core conftest.err conftest.$ac_objext \
31328 conftest$ac_exeext conftest.$ac_ext
31330 ac_res=`eval echo '${'$as_ac_var'}'`
31331 { echo "$as_me:$LINENO: result: $ac_res" >&5
31332 echo "${ECHO_T}$ac_res" >&6; }
31333 if test `eval echo '${'$as_ac_var'}'` = yes; then
31334 cat >>confdefs.h <<_ACEOF
31335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31345 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31351 echo $ECHO_N "(cached) $ECHO_C" >&6
31353 cat >conftest.$ac_ext <<_ACEOF
31356 cat confdefs.h >>conftest.$ac_ext
31357 cat >>conftest.$ac_ext <<_ACEOF
31358 /* end confdefs.h. */
31359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31361 #define $ac_func innocuous_$ac_func
31363 /* System header to define __stub macros and hopefully few prototypes,
31364 which can conflict with char $ac_func (); below.
31365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31366 <limits.h> exists even on freestanding compilers. */
31369 # include <limits.h>
31371 # include <assert.h>
31376 /* Override any GCC internal prototype to avoid an error.
31377 Use char because int might match the return type of a GCC
31378 builtin and then its argument prototype would still apply. */
31383 /* The GNU C library defines this for functions which it implements
31384 to always fail with ENOSYS. Some functions are actually named
31385 something starting with __ and the normal name is an alias. */
31386 #if defined __stub_$ac_func || defined __stub___$ac_func
31393 return $ac_func ();
31398 rm -f conftest.$ac_objext conftest$ac_exeext
31399 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31407 grep -v '^ *+' conftest.er1 >conftest.err
31409 cat conftest.err >&5
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); } &&
31412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31413 { (case "(($ac_try" in
31414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415 *) ac_try_echo=$ac_try;;
31417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418 (eval "$ac_try") 2>&5
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); }; } &&
31422 { ac_try='test -s conftest$ac_exeext'
31423 { (case "(($ac_try" in
31424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425 *) ac_try_echo=$ac_try;;
31427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428 (eval "$ac_try") 2>&5
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); }; }; then
31432 eval "$as_ac_var=yes"
31434 echo "$as_me: failed program was:" >&5
31435 sed 's/^/| /' conftest.$ac_ext >&5
31437 eval "$as_ac_var=no"
31440 rm -f core conftest.err conftest.$ac_objext \
31441 conftest$ac_exeext conftest.$ac_ext
31443 ac_res=`eval echo '${'$as_ac_var'}'`
31444 { echo "$as_me:$LINENO: result: $ac_res" >&5
31445 echo "${ECHO_T}$ac_res" >&6; }
31446 if test `eval echo '${'$as_ac_var'}'` = yes; then
31447 cat >>confdefs.h <<_ACEOF
31448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31454 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31455 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31456 if test "${llvm_cv_c_printf_a+set}" = set; then
31457 echo $ECHO_N "(cached) $ECHO_C" >&6
31460 ac_cpp='$CPP $CPPFLAGS'
31461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31465 if test "$cross_compiling" = yes; then
31466 llvmac_cv_c_printf_a=no
31468 cat >conftest.$ac_ext <<_ACEOF
31472 cat confdefs.h >>conftest.$ac_ext
31473 cat >>conftest.$ac_ext <<_ACEOF
31474 /* end confdefs.h. */
31477 #include <stdlib.h>
31483 volatile double A, B;
31487 sprintf(Buffer, "%a", A);
31491 if (A != 0x1.999999999999ap-4)
31498 rm -f conftest$ac_exeext
31499 if { (ac_try="$ac_link"
31500 case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_link") 2>&5
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; }; then
31518 llvm_cv_c_printf_a=yes
31520 echo "$as_me: program exited with status $ac_status" >&5
31521 echo "$as_me: failed program was:" >&5
31522 sed 's/^/| /' conftest.$ac_ext >&5
31524 ( exit $ac_status )
31525 llvmac_cv_c_printf_a=no
31527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31532 ac_cpp='$CPP $CPPFLAGS'
31533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31538 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31539 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31540 if test "$llvm_cv_c_printf_a" = "yes"; then
31542 cat >>confdefs.h <<\_ACEOF
31543 #define HAVE_PRINTF_A 1
31548 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31549 # for constant arguments. Useless!
31550 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31551 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31552 if test "${ac_cv_working_alloca_h+set}" = set; then
31553 echo $ECHO_N "(cached) $ECHO_C" >&6
31555 cat >conftest.$ac_ext <<_ACEOF
31558 cat confdefs.h >>conftest.$ac_ext
31559 cat >>conftest.$ac_ext <<_ACEOF
31560 /* end confdefs.h. */
31561 #include <alloca.h>
31565 char *p = (char *) alloca (2 * sizeof (int));
31571 rm -f conftest.$ac_objext conftest$ac_exeext
31572 if { (ac_try="$ac_link"
31573 case "(($ac_try" in
31574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31575 *) ac_try_echo=$ac_try;;
31577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31578 (eval "$ac_link") 2>conftest.er1
31580 grep -v '^ *+' conftest.er1 >conftest.err
31582 cat conftest.err >&5
31583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31584 (exit $ac_status); } &&
31585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31586 { (case "(($ac_try" in
31587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31588 *) ac_try_echo=$ac_try;;
31590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31591 (eval "$ac_try") 2>&5
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); }; } &&
31595 { ac_try='test -s conftest$ac_exeext'
31596 { (case "(($ac_try" in
31597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598 *) ac_try_echo=$ac_try;;
31600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31601 (eval "$ac_try") 2>&5
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); }; }; then
31605 ac_cv_working_alloca_h=yes
31607 echo "$as_me: failed program was:" >&5
31608 sed 's/^/| /' conftest.$ac_ext >&5
31610 ac_cv_working_alloca_h=no
31613 rm -f core conftest.err conftest.$ac_objext \
31614 conftest$ac_exeext conftest.$ac_ext
31616 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31617 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31618 if test $ac_cv_working_alloca_h = yes; then
31620 cat >>confdefs.h <<\_ACEOF
31621 #define HAVE_ALLOCA_H 1
31626 { echo "$as_me:$LINENO: checking for alloca" >&5
31627 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31628 if test "${ac_cv_func_alloca_works+set}" = set; then
31629 echo $ECHO_N "(cached) $ECHO_C" >&6
31631 cat >conftest.$ac_ext <<_ACEOF
31634 cat confdefs.h >>conftest.$ac_ext
31635 cat >>conftest.$ac_ext <<_ACEOF
31636 /* end confdefs.h. */
31638 # define alloca __builtin_alloca
31641 # include <malloc.h>
31642 # define alloca _alloca
31645 # include <alloca.h>
31650 # ifndef alloca /* predefined by HP cc +Olibcalls */
31661 char *p = (char *) alloca (1);
31667 rm -f conftest.$ac_objext conftest$ac_exeext
31668 if { (ac_try="$ac_link"
31669 case "(($ac_try" in
31670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31671 *) ac_try_echo=$ac_try;;
31673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31674 (eval "$ac_link") 2>conftest.er1
31676 grep -v '^ *+' conftest.er1 >conftest.err
31678 cat conftest.err >&5
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); } &&
31681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31682 { (case "(($ac_try" in
31683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31684 *) ac_try_echo=$ac_try;;
31686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31687 (eval "$ac_try") 2>&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); }; } &&
31691 { ac_try='test -s conftest$ac_exeext'
31692 { (case "(($ac_try" in
31693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694 *) ac_try_echo=$ac_try;;
31696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697 (eval "$ac_try") 2>&5
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; }; then
31701 ac_cv_func_alloca_works=yes
31703 echo "$as_me: failed program was:" >&5
31704 sed 's/^/| /' conftest.$ac_ext >&5
31706 ac_cv_func_alloca_works=no
31709 rm -f core conftest.err conftest.$ac_objext \
31710 conftest$ac_exeext conftest.$ac_ext
31712 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31713 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31715 if test $ac_cv_func_alloca_works = yes; then
31717 cat >>confdefs.h <<\_ACEOF
31718 #define HAVE_ALLOCA 1
31722 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31723 # that cause trouble. Some versions do not even contain alloca or
31724 # contain a buggy version. If you still want to use their alloca,
31725 # use ar to extract alloca.o from them instead of compiling alloca.c.
31727 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31729 cat >>confdefs.h <<\_ACEOF
31734 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31735 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31736 if test "${ac_cv_os_cray+set}" = set; then
31737 echo $ECHO_N "(cached) $ECHO_C" >&6
31739 cat >conftest.$ac_ext <<_ACEOF
31742 cat confdefs.h >>conftest.$ac_ext
31743 cat >>conftest.$ac_ext <<_ACEOF
31744 /* end confdefs.h. */
31745 #if defined CRAY && ! defined CRAY2
31752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31753 $EGREP "webecray" >/dev/null 2>&1; then
31761 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31762 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31763 if test $ac_cv_os_cray = yes; then
31764 for ac_func in _getb67 GETB67 getb67; do
31765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31769 echo $ECHO_N "(cached) $ECHO_C" >&6
31771 cat >conftest.$ac_ext <<_ACEOF
31774 cat confdefs.h >>conftest.$ac_ext
31775 cat >>conftest.$ac_ext <<_ACEOF
31776 /* end confdefs.h. */
31777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31779 #define $ac_func innocuous_$ac_func
31781 /* System header to define __stub macros and hopefully few prototypes,
31782 which can conflict with char $ac_func (); below.
31783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31784 <limits.h> exists even on freestanding compilers. */
31787 # include <limits.h>
31789 # include <assert.h>
31794 /* Override any GCC internal prototype to avoid an error.
31795 Use char because int might match the return type of a GCC
31796 builtin and then its argument prototype would still apply. */
31801 /* The GNU C library defines this for functions which it implements
31802 to always fail with ENOSYS. Some functions are actually named
31803 something starting with __ and the normal name is an alias. */
31804 #if defined __stub_$ac_func || defined __stub___$ac_func
31811 return $ac_func ();
31816 rm -f conftest.$ac_objext conftest$ac_exeext
31817 if { (ac_try="$ac_link"
31818 case "(($ac_try" in
31819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31820 *) ac_try_echo=$ac_try;;
31822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31823 (eval "$ac_link") 2>conftest.er1
31825 grep -v '^ *+' conftest.er1 >conftest.err
31827 cat conftest.err >&5
31828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31829 (exit $ac_status); } &&
31830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31831 { (case "(($ac_try" in
31832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31833 *) ac_try_echo=$ac_try;;
31835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31836 (eval "$ac_try") 2>&5
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); }; } &&
31840 { ac_try='test -s conftest$ac_exeext'
31841 { (case "(($ac_try" in
31842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843 *) ac_try_echo=$ac_try;;
31845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846 (eval "$ac_try") 2>&5
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; }; then
31850 eval "$as_ac_var=yes"
31852 echo "$as_me: failed program was:" >&5
31853 sed 's/^/| /' conftest.$ac_ext >&5
31855 eval "$as_ac_var=no"
31858 rm -f core conftest.err conftest.$ac_objext \
31859 conftest$ac_exeext conftest.$ac_ext
31861 ac_res=`eval echo '${'$as_ac_var'}'`
31862 { echo "$as_me:$LINENO: result: $ac_res" >&5
31863 echo "${ECHO_T}$ac_res" >&6; }
31864 if test `eval echo '${'$as_ac_var'}'` = yes; then
31866 cat >>confdefs.h <<_ACEOF
31867 #define CRAY_STACKSEG_END $ac_func
31876 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31877 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31878 if test "${ac_cv_c_stack_direction+set}" = set; then
31879 echo $ECHO_N "(cached) $ECHO_C" >&6
31881 if test "$cross_compiling" = yes; then
31882 ac_cv_c_stack_direction=0
31884 cat >conftest.$ac_ext <<_ACEOF
31887 cat confdefs.h >>conftest.$ac_ext
31888 cat >>conftest.$ac_ext <<_ACEOF
31889 /* end confdefs.h. */
31890 $ac_includes_default
31892 find_stack_direction ()
31894 static char *addr = 0;
31899 return find_stack_direction ();
31902 return (&dummy > addr) ? 1 : -1;
31908 return find_stack_direction () < 0;
31911 rm -f conftest$ac_exeext
31912 if { (ac_try="$ac_link"
31913 case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_link") 2>&5
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31922 { (case "(($ac_try" in
31923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924 *) ac_try_echo=$ac_try;;
31926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927 (eval "$ac_try") 2>&5
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); }; }; then
31931 ac_cv_c_stack_direction=1
31933 echo "$as_me: program exited with status $ac_status" >&5
31934 echo "$as_me: failed program was:" >&5
31935 sed 's/^/| /' conftest.$ac_ext >&5
31937 ( exit $ac_status )
31938 ac_cv_c_stack_direction=-1
31940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31945 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31946 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31948 cat >>confdefs.h <<_ACEOF
31949 #define STACK_DIRECTION $ac_cv_c_stack_direction
31956 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31957 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31958 if test "${ac_cv_func_rand48+set}" = set; then
31959 echo $ECHO_N "(cached) $ECHO_C" >&6
31962 ac_cpp='$CXXCPP $CPPFLAGS'
31963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31967 cat >conftest.$ac_ext <<_ACEOF
31970 cat confdefs.h >>conftest.$ac_ext
31971 cat >>conftest.$ac_ext <<_ACEOF
31972 /* end confdefs.h. */
31973 #include <stdlib.h>
31977 srand48(0);lrand48();drand48();
31982 rm -f conftest.$ac_objext
31983 if { (ac_try="$ac_compile"
31984 case "(($ac_try" in
31985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31986 *) ac_try_echo=$ac_try;;
31988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31989 (eval "$ac_compile") 2>conftest.er1
31991 grep -v '^ *+' conftest.er1 >conftest.err
31993 cat conftest.err >&5
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); } &&
31996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31997 { (case "(($ac_try" in
31998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999 *) ac_try_echo=$ac_try;;
32001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002 (eval "$ac_try") 2>&5
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); }; } &&
32006 { ac_try='test -s conftest.$ac_objext'
32007 { (case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_try") 2>&5
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); }; }; then
32016 ac_cv_func_rand48=yes
32018 echo "$as_me: failed program was:" >&5
32019 sed 's/^/| /' conftest.$ac_ext >&5
32021 ac_cv_func_rand48=no
32024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32026 ac_cpp='$CPP $CPPFLAGS'
32027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32032 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32033 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32035 if test "$ac_cv_func_rand48" = "yes" ; then
32037 cat >>confdefs.h <<\_ACEOF
32038 #define HAVE_RAND48 1
32044 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32045 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32046 if test "${ac_cv_cxx_namespaces+set}" = set; then
32047 echo $ECHO_N "(cached) $ECHO_C" >&6
32050 ac_cpp='$CXXCPP $CPPFLAGS'
32051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32055 cat >conftest.$ac_ext <<_ACEOF
32058 cat confdefs.h >>conftest.$ac_ext
32059 cat >>conftest.$ac_ext <<_ACEOF
32060 /* end confdefs.h. */
32061 namespace Outer { namespace Inner { int i = 0; }}
32065 using namespace Outer::Inner; return i;
32070 rm -f conftest.$ac_objext
32071 if { (ac_try="$ac_compile"
32072 case "(($ac_try" in
32073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074 *) ac_try_echo=$ac_try;;
32076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32077 (eval "$ac_compile") 2>conftest.er1
32079 grep -v '^ *+' conftest.er1 >conftest.err
32081 cat conftest.err >&5
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); } &&
32084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32085 { (case "(($ac_try" in
32086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32087 *) ac_try_echo=$ac_try;;
32089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32090 (eval "$ac_try") 2>&5
32092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093 (exit $ac_status); }; } &&
32094 { ac_try='test -s conftest.$ac_objext'
32095 { (case "(($ac_try" in
32096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32097 *) ac_try_echo=$ac_try;;
32099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32100 (eval "$ac_try") 2>&5
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); }; }; then
32104 ac_cv_cxx_namespaces=yes
32106 echo "$as_me: failed program was:" >&5
32107 sed 's/^/| /' conftest.$ac_ext >&5
32109 ac_cv_cxx_namespaces=no
32112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32114 ac_cpp='$CPP $CPPFLAGS'
32115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32121 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32122 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32123 if test "$ac_cv_cxx_namespaces" = yes; then
32125 cat >>confdefs.h <<\_ACEOF
32126 #define HAVE_NAMESPACES
32131 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32132 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32133 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32134 echo $ECHO_N "(cached) $ECHO_C" >&6
32138 ac_cpp='$CXXCPP $CPPFLAGS'
32139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32143 cat >conftest.$ac_ext <<_ACEOF
32146 cat confdefs.h >>conftest.$ac_ext
32147 cat >>conftest.$ac_ext <<_ACEOF
32148 /* end confdefs.h. */
32149 #include <iterator>
32150 #ifdef HAVE_NAMESPACES
32151 using namespace std;
32156 iterator<int,int,int> t; return 0;
32161 rm -f conftest.$ac_objext
32162 if { (ac_try="$ac_compile"
32163 case "(($ac_try" in
32164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32165 *) ac_try_echo=$ac_try;;
32167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32168 (eval "$ac_compile") 2>conftest.er1
32170 grep -v '^ *+' conftest.er1 >conftest.err
32172 cat conftest.err >&5
32173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174 (exit $ac_status); } &&
32175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32176 { (case "(($ac_try" in
32177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32178 *) ac_try_echo=$ac_try;;
32180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32181 (eval "$ac_try") 2>&5
32183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184 (exit $ac_status); }; } &&
32185 { ac_try='test -s conftest.$ac_objext'
32186 { (case "(($ac_try" in
32187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32188 *) ac_try_echo=$ac_try;;
32190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32191 (eval "$ac_try") 2>&5
32193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194 (exit $ac_status); }; }; then
32195 ac_cv_cxx_have_std_iterator=yes
32197 echo "$as_me: failed program was:" >&5
32198 sed 's/^/| /' conftest.$ac_ext >&5
32200 ac_cv_cxx_have_std_iterator=no
32203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32205 ac_cpp='$CPP $CPPFLAGS'
32206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32212 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32213 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32214 if test "$ac_cv_cxx_have_std_iterator" = yes
32217 cat >>confdefs.h <<\_ACEOF
32218 #define HAVE_STD_ITERATOR 1
32223 cat >>confdefs.h <<\_ACEOF
32224 #define HAVE_STD_ITERATOR 0
32229 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32230 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32231 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32232 echo $ECHO_N "(cached) $ECHO_C" >&6
32236 ac_cpp='$CXXCPP $CPPFLAGS'
32237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32241 cat >conftest.$ac_ext <<_ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h. */
32247 #include <iterator>
32248 #ifdef HAVE_NAMESPACES
32249 using namespace std;
32254 bidirectional_iterator<int,int> t; return 0;
32259 rm -f conftest.$ac_objext
32260 if { (ac_try="$ac_compile"
32261 case "(($ac_try" in
32262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32263 *) ac_try_echo=$ac_try;;
32265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32266 (eval "$ac_compile") 2>conftest.er1
32268 grep -v '^ *+' conftest.er1 >conftest.err
32270 cat conftest.err >&5
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); } &&
32273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32274 { (case "(($ac_try" in
32275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32276 *) ac_try_echo=$ac_try;;
32278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32279 (eval "$ac_try") 2>&5
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; } &&
32283 { ac_try='test -s conftest.$ac_objext'
32284 { (case "(($ac_try" in
32285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32286 *) ac_try_echo=$ac_try;;
32288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32289 (eval "$ac_try") 2>&5
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); }; }; then
32293 ac_cv_cxx_have_bi_iterator=yes
32295 echo "$as_me: failed program was:" >&5
32296 sed 's/^/| /' conftest.$ac_ext >&5
32298 ac_cv_cxx_have_bi_iterator=no
32301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32303 ac_cpp='$CPP $CPPFLAGS'
32304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32310 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32311 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32312 if test "$ac_cv_cxx_have_bi_iterator" = yes
32315 cat >>confdefs.h <<\_ACEOF
32316 #define HAVE_BI_ITERATOR 1
32321 cat >>confdefs.h <<\_ACEOF
32322 #define HAVE_BI_ITERATOR 0
32327 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32328 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32329 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32330 echo $ECHO_N "(cached) $ECHO_C" >&6
32334 ac_cpp='$CXXCPP $CPPFLAGS'
32335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32339 cat >conftest.$ac_ext <<_ACEOF
32342 cat confdefs.h >>conftest.$ac_ext
32343 cat >>conftest.$ac_ext <<_ACEOF
32344 /* end confdefs.h. */
32345 #include <iterator>
32346 #ifdef HAVE_NAMESPACES
32347 using namespace std;
32352 forward_iterator<int,int> t; return 0;
32357 rm -f conftest.$ac_objext
32358 if { (ac_try="$ac_compile"
32359 case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_compile") 2>conftest.er1
32366 grep -v '^ *+' conftest.er1 >conftest.err
32368 cat conftest.err >&5
32369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370 (exit $ac_status); } &&
32371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32372 { (case "(($ac_try" in
32373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32374 *) ac_try_echo=$ac_try;;
32376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32377 (eval "$ac_try") 2>&5
32379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 (exit $ac_status); }; } &&
32381 { ac_try='test -s conftest.$ac_objext'
32382 { (case "(($ac_try" in
32383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32384 *) ac_try_echo=$ac_try;;
32386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32387 (eval "$ac_try") 2>&5
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); }; }; then
32391 ac_cv_cxx_have_fwd_iterator=yes
32393 echo "$as_me: failed program was:" >&5
32394 sed 's/^/| /' conftest.$ac_ext >&5
32396 ac_cv_cxx_have_fwd_iterator=no
32399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32401 ac_cpp='$CPP $CPPFLAGS'
32402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32408 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32409 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32410 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32413 cat >>confdefs.h <<\_ACEOF
32414 #define HAVE_FWD_ITERATOR 1
32419 cat >>confdefs.h <<\_ACEOF
32420 #define HAVE_FWD_ITERATOR 0
32426 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32427 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32428 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32429 echo $ECHO_N "(cached) $ECHO_C" >&6
32432 ac_cpp='$CXXCPP $CPPFLAGS'
32433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32437 cat >conftest.$ac_ext <<_ACEOF
32440 cat confdefs.h >>conftest.$ac_ext
32441 cat >>conftest.$ac_ext <<_ACEOF
32442 /* end confdefs.h. */
32452 rm -f conftest.$ac_objext
32453 if { (ac_try="$ac_compile"
32454 case "(($ac_try" in
32455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456 *) ac_try_echo=$ac_try;;
32458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459 (eval "$ac_compile") 2>conftest.er1
32461 grep -v '^ *+' conftest.er1 >conftest.err
32463 cat conftest.err >&5
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); } &&
32466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32467 { (case "(($ac_try" in
32468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32469 *) ac_try_echo=$ac_try;;
32471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32472 (eval "$ac_try") 2>&5
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); }; } &&
32476 { ac_try='test -s conftest.$ac_objext'
32477 { (case "(($ac_try" in
32478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32479 *) ac_try_echo=$ac_try;;
32481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32482 (eval "$ac_try") 2>&5
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; }; then
32486 ac_cv_func_isnan_in_math_h=yes
32488 echo "$as_me: failed program was:" >&5
32489 sed 's/^/| /' conftest.$ac_ext >&5
32491 ac_cv_func_isnan_in_math_h=no
32494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32496 ac_cpp='$CPP $CPPFLAGS'
32497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32502 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32503 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32506 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32508 cat >>confdefs.h <<\_ACEOF
32509 #define HAVE_ISNAN_IN_MATH_H 1
32514 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32515 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32516 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32517 echo $ECHO_N "(cached) $ECHO_C" >&6
32520 ac_cpp='$CXXCPP $CPPFLAGS'
32521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32525 cat >conftest.$ac_ext <<_ACEOF
32528 cat confdefs.h >>conftest.$ac_ext
32529 cat >>conftest.$ac_ext <<_ACEOF
32530 /* end confdefs.h. */
32540 rm -f conftest.$ac_objext
32541 if { (ac_try="$ac_compile"
32542 case "(($ac_try" in
32543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544 *) ac_try_echo=$ac_try;;
32546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547 (eval "$ac_compile") 2>conftest.er1
32549 grep -v '^ *+' conftest.er1 >conftest.err
32551 cat conftest.err >&5
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); } &&
32554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32555 { (case "(($ac_try" in
32556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32557 *) ac_try_echo=$ac_try;;
32559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32560 (eval "$ac_try") 2>&5
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); }; } &&
32564 { ac_try='test -s conftest.$ac_objext'
32565 { (case "(($ac_try" in
32566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32567 *) ac_try_echo=$ac_try;;
32569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32570 (eval "$ac_try") 2>&5
32572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); }; }; then
32574 ac_cv_func_isnan_in_cmath=yes
32576 echo "$as_me: failed program was:" >&5
32577 sed 's/^/| /' conftest.$ac_ext >&5
32579 ac_cv_func_isnan_in_cmath=no
32582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32584 ac_cpp='$CPP $CPPFLAGS'
32585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32590 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32591 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32593 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32595 cat >>confdefs.h <<\_ACEOF
32596 #define HAVE_ISNAN_IN_CMATH 1
32601 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32602 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32603 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32604 echo $ECHO_N "(cached) $ECHO_C" >&6
32607 ac_cpp='$CXXCPP $CPPFLAGS'
32608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32612 cat >conftest.$ac_ext <<_ACEOF
32615 cat confdefs.h >>conftest.$ac_ext
32616 cat >>conftest.$ac_ext <<_ACEOF
32617 /* end confdefs.h. */
32622 float f; std::isnan(f);
32627 rm -f conftest.$ac_objext
32628 if { (ac_try="$ac_compile"
32629 case "(($ac_try" in
32630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631 *) ac_try_echo=$ac_try;;
32633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634 (eval "$ac_compile") 2>conftest.er1
32636 grep -v '^ *+' conftest.er1 >conftest.err
32638 cat conftest.err >&5
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); } &&
32641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32642 { (case "(($ac_try" in
32643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644 *) ac_try_echo=$ac_try;;
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647 (eval "$ac_try") 2>&5
32649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650 (exit $ac_status); }; } &&
32651 { ac_try='test -s conftest.$ac_objext'
32652 { (case "(($ac_try" in
32653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32654 *) ac_try_echo=$ac_try;;
32656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32657 (eval "$ac_try") 2>&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); }; }; then
32661 ac_cv_func_std_isnan_in_cmath=yes
32663 echo "$as_me: failed program was:" >&5
32664 sed 's/^/| /' conftest.$ac_ext >&5
32666 ac_cv_func_std_isnan_in_cmath=no
32669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32671 ac_cpp='$CPP $CPPFLAGS'
32672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32677 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32678 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32680 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32682 cat >>confdefs.h <<\_ACEOF
32683 #define HAVE_STD_ISNAN_IN_CMATH 1
32689 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32690 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32691 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32692 echo $ECHO_N "(cached) $ECHO_C" >&6
32695 ac_cpp='$CXXCPP $CPPFLAGS'
32696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32700 cat >conftest.$ac_ext <<_ACEOF
32703 cat confdefs.h >>conftest.$ac_ext
32704 cat >>conftest.$ac_ext <<_ACEOF
32705 /* end confdefs.h. */
32715 rm -f conftest.$ac_objext
32716 if { (ac_try="$ac_compile"
32717 case "(($ac_try" in
32718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719 *) ac_try_echo=$ac_try;;
32721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722 (eval "$ac_compile") 2>conftest.er1
32724 grep -v '^ *+' conftest.er1 >conftest.err
32726 cat conftest.err >&5
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); } &&
32729 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32730 { (case "(($ac_try" in
32731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32732 *) ac_try_echo=$ac_try;;
32734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32735 (eval "$ac_try") 2>&5
32737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738 (exit $ac_status); }; } &&
32739 { ac_try='test -s conftest.$ac_objext'
32740 { (case "(($ac_try" in
32741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32742 *) ac_try_echo=$ac_try;;
32744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32745 (eval "$ac_try") 2>&5
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); }; }; then
32749 ac_cv_func_isinf_in_math_h=yes
32751 echo "$as_me: failed program was:" >&5
32752 sed 's/^/| /' conftest.$ac_ext >&5
32754 ac_cv_func_isinf_in_math_h=no
32757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32759 ac_cpp='$CPP $CPPFLAGS'
32760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32765 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32766 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32768 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32770 cat >>confdefs.h <<\_ACEOF
32771 #define HAVE_ISINF_IN_MATH_H 1
32776 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32777 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32778 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32779 echo $ECHO_N "(cached) $ECHO_C" >&6
32782 ac_cpp='$CXXCPP $CPPFLAGS'
32783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32787 cat >conftest.$ac_ext <<_ACEOF
32790 cat confdefs.h >>conftest.$ac_ext
32791 cat >>conftest.$ac_ext <<_ACEOF
32792 /* end confdefs.h. */
32802 rm -f conftest.$ac_objext
32803 if { (ac_try="$ac_compile"
32804 case "(($ac_try" in
32805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806 *) ac_try_echo=$ac_try;;
32808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809 (eval "$ac_compile") 2>conftest.er1
32811 grep -v '^ *+' conftest.er1 >conftest.err
32813 cat conftest.err >&5
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); } &&
32816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32817 { (case "(($ac_try" in
32818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819 *) ac_try_echo=$ac_try;;
32821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822 (eval "$ac_try") 2>&5
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); }; } &&
32826 { ac_try='test -s conftest.$ac_objext'
32827 { (case "(($ac_try" in
32828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32829 *) ac_try_echo=$ac_try;;
32831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32832 (eval "$ac_try") 2>&5
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); }; }; then
32836 ac_cv_func_isinf_in_cmath=yes
32838 echo "$as_me: failed program was:" >&5
32839 sed 's/^/| /' conftest.$ac_ext >&5
32841 ac_cv_func_isinf_in_cmath=no
32844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32846 ac_cpp='$CPP $CPPFLAGS'
32847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32852 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32853 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32855 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32857 cat >>confdefs.h <<\_ACEOF
32858 #define HAVE_ISINF_IN_CMATH 1
32863 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32864 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32865 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32866 echo $ECHO_N "(cached) $ECHO_C" >&6
32869 ac_cpp='$CXXCPP $CPPFLAGS'
32870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32874 cat >conftest.$ac_ext <<_ACEOF
32877 cat confdefs.h >>conftest.$ac_ext
32878 cat >>conftest.$ac_ext <<_ACEOF
32879 /* end confdefs.h. */
32884 float f; std::isinf(f)}
32889 rm -f conftest.$ac_objext
32890 if { (ac_try="$ac_compile"
32891 case "(($ac_try" in
32892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893 *) ac_try_echo=$ac_try;;
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896 (eval "$ac_compile") 2>conftest.er1
32898 grep -v '^ *+' conftest.er1 >conftest.err
32900 cat conftest.err >&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); } &&
32903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32904 { (case "(($ac_try" in
32905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906 *) ac_try_echo=$ac_try;;
32908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909 (eval "$ac_try") 2>&5
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); }; } &&
32913 { ac_try='test -s conftest.$ac_objext'
32914 { (case "(($ac_try" in
32915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916 *) ac_try_echo=$ac_try;;
32918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919 (eval "$ac_try") 2>&5
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); }; }; then
32923 ac_cv_func_std_isinf_in_cmath=yes
32925 echo "$as_me: failed program was:" >&5
32926 sed 's/^/| /' conftest.$ac_ext >&5
32928 ac_cv_func_std_isinf_in_cmath=no
32931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32933 ac_cpp='$CPP $CPPFLAGS'
32934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32939 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32940 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32942 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32944 cat >>confdefs.h <<\_ACEOF
32945 #define HAVE_STD_ISINF_IN_CMATH 1
32950 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32951 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32952 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32953 echo $ECHO_N "(cached) $ECHO_C" >&6
32956 ac_cpp='$CXXCPP $CPPFLAGS'
32957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32961 cat >conftest.$ac_ext <<_ACEOF
32964 cat confdefs.h >>conftest.$ac_ext
32965 cat >>conftest.$ac_ext <<_ACEOF
32966 /* end confdefs.h. */
32967 #include <ieeefp.h>
32971 float f; finite(f);
32976 rm -f conftest.$ac_objext
32977 if { (ac_try="$ac_compile"
32978 case "(($ac_try" in
32979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980 *) ac_try_echo=$ac_try;;
32982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983 (eval "$ac_compile") 2>conftest.er1
32985 grep -v '^ *+' conftest.er1 >conftest.err
32987 cat conftest.err >&5
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); } &&
32990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32991 { (case "(($ac_try" in
32992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993 *) ac_try_echo=$ac_try;;
32995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996 (eval "$ac_try") 2>&5
32998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); }; } &&
33000 { ac_try='test -s conftest.$ac_objext'
33001 { (case "(($ac_try" in
33002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33003 *) ac_try_echo=$ac_try;;
33005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33006 (eval "$ac_try") 2>&5
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); }; }; then
33010 ac_cv_func_finite_in_ieeefp_h=yes
33012 echo "$as_me: failed program was:" >&5
33013 sed 's/^/| /' conftest.$ac_ext >&5
33015 ac_cv_func_finite_in_ieeefp_h=no
33018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33020 ac_cpp='$CPP $CPPFLAGS'
33021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33026 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33027 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33029 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33031 cat >>confdefs.h <<\_ACEOF
33032 #define HAVE_FINITE_IN_IEEEFP_H 1
33039 if test "$llvm_cv_platform_type" = "Unix" ; then
33042 for ac_header in stdlib.h unistd.h
33044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33049 echo $ECHO_N "(cached) $ECHO_C" >&6
33051 ac_res=`eval echo '${'$as_ac_Header'}'`
33052 { echo "$as_me:$LINENO: result: $ac_res" >&5
33053 echo "${ECHO_T}$ac_res" >&6; }
33055 # Is the header compilable?
33056 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33058 cat >conftest.$ac_ext <<_ACEOF
33061 cat confdefs.h >>conftest.$ac_ext
33062 cat >>conftest.$ac_ext <<_ACEOF
33063 /* end confdefs.h. */
33064 $ac_includes_default
33065 #include <$ac_header>
33067 rm -f conftest.$ac_objext
33068 if { (ac_try="$ac_compile"
33069 case "(($ac_try" in
33070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071 *) ac_try_echo=$ac_try;;
33073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074 (eval "$ac_compile") 2>conftest.er1
33076 grep -v '^ *+' conftest.er1 >conftest.err
33078 cat conftest.err >&5
33079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080 (exit $ac_status); } &&
33081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33082 { (case "(($ac_try" in
33083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084 *) ac_try_echo=$ac_try;;
33086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087 (eval "$ac_try") 2>&5
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try='test -s conftest.$ac_objext'
33092 { (case "(($ac_try" in
33093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094 *) ac_try_echo=$ac_try;;
33096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097 (eval "$ac_try") 2>&5
33099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100 (exit $ac_status); }; }; then
33101 ac_header_compiler=yes
33103 echo "$as_me: failed program was:" >&5
33104 sed 's/^/| /' conftest.$ac_ext >&5
33106 ac_header_compiler=no
33109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33111 echo "${ECHO_T}$ac_header_compiler" >&6; }
33113 # Is the header present?
33114 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33116 cat >conftest.$ac_ext <<_ACEOF
33119 cat confdefs.h >>conftest.$ac_ext
33120 cat >>conftest.$ac_ext <<_ACEOF
33121 /* end confdefs.h. */
33122 #include <$ac_header>
33124 if { (ac_try="$ac_cpp conftest.$ac_ext"
33125 case "(($ac_try" in
33126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33127 *) ac_try_echo=$ac_try;;
33129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33132 grep -v '^ *+' conftest.er1 >conftest.err
33134 cat conftest.err >&5
33135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136 (exit $ac_status); } >/dev/null; then
33137 if test -s conftest.err; then
33138 ac_cpp_err=$ac_c_preproc_warn_flag
33139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33146 if test -z "$ac_cpp_err"; then
33147 ac_header_preproc=yes
33149 echo "$as_me: failed program was:" >&5
33150 sed 's/^/| /' conftest.$ac_ext >&5
33152 ac_header_preproc=no
33155 rm -f conftest.err conftest.$ac_ext
33156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33157 echo "${ECHO_T}$ac_header_preproc" >&6; }
33159 # So? What about this header?
33160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33166 ac_header_preproc=yes
33169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33182 ## ----------------------------------- ##
33183 ## Report this to llvmbugs@cs.uiuc.edu ##
33184 ## ----------------------------------- ##
33186 ) | sed "s/^/$as_me: WARNING: /" >&2
33189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33192 echo $ECHO_N "(cached) $ECHO_C" >&6
33194 eval "$as_ac_Header=\$ac_header_preproc"
33196 ac_res=`eval echo '${'$as_ac_Header'}'`
33197 { echo "$as_me:$LINENO: result: $ac_res" >&5
33198 echo "${ECHO_T}$ac_res" >&6; }
33201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33202 cat >>confdefs.h <<_ACEOF
33203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33211 for ac_func in getpagesize
33213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33217 echo $ECHO_N "(cached) $ECHO_C" >&6
33219 cat >conftest.$ac_ext <<_ACEOF
33222 cat confdefs.h >>conftest.$ac_ext
33223 cat >>conftest.$ac_ext <<_ACEOF
33224 /* end confdefs.h. */
33225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33227 #define $ac_func innocuous_$ac_func
33229 /* System header to define __stub macros and hopefully few prototypes,
33230 which can conflict with char $ac_func (); below.
33231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33232 <limits.h> exists even on freestanding compilers. */
33235 # include <limits.h>
33237 # include <assert.h>
33242 /* Override any GCC internal prototype to avoid an error.
33243 Use char because int might match the return type of a GCC
33244 builtin and then its argument prototype would still apply. */
33249 /* The GNU C library defines this for functions which it implements
33250 to always fail with ENOSYS. Some functions are actually named
33251 something starting with __ and the normal name is an alias. */
33252 #if defined __stub_$ac_func || defined __stub___$ac_func
33259 return $ac_func ();
33264 rm -f conftest.$ac_objext conftest$ac_exeext
33265 if { (ac_try="$ac_link"
33266 case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_link") 2>conftest.er1
33273 grep -v '^ *+' conftest.er1 >conftest.err
33275 cat conftest.err >&5
33276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277 (exit $ac_status); } &&
33278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33279 { (case "(($ac_try" in
33280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33281 *) ac_try_echo=$ac_try;;
33283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33284 (eval "$ac_try") 2>&5
33286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); }; } &&
33288 { ac_try='test -s conftest$ac_exeext'
33289 { (case "(($ac_try" in
33290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33291 *) ac_try_echo=$ac_try;;
33293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33294 (eval "$ac_try") 2>&5
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); }; }; then
33298 eval "$as_ac_var=yes"
33300 echo "$as_me: failed program was:" >&5
33301 sed 's/^/| /' conftest.$ac_ext >&5
33303 eval "$as_ac_var=no"
33306 rm -f core conftest.err conftest.$ac_objext \
33307 conftest$ac_exeext conftest.$ac_ext
33309 ac_res=`eval echo '${'$as_ac_var'}'`
33310 { echo "$as_me:$LINENO: result: $ac_res" >&5
33311 echo "${ECHO_T}$ac_res" >&6; }
33312 if test `eval echo '${'$as_ac_var'}'` = yes; then
33313 cat >>confdefs.h <<_ACEOF
33314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33320 { echo "$as_me:$LINENO: checking for working mmap" >&5
33321 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33322 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33323 echo $ECHO_N "(cached) $ECHO_C" >&6
33325 if test "$cross_compiling" = yes; then
33326 ac_cv_func_mmap_fixed_mapped=no
33328 cat >conftest.$ac_ext <<_ACEOF
33331 cat confdefs.h >>conftest.$ac_ext
33332 cat >>conftest.$ac_ext <<_ACEOF
33333 /* end confdefs.h. */
33334 $ac_includes_default
33335 /* malloc might have been renamed as rpl_malloc. */
33338 /* Thanks to Mike Haertel and Jim Avera for this test.
33339 Here is a matrix of mmap possibilities:
33340 mmap private not fixed
33341 mmap private fixed at somewhere currently unmapped
33342 mmap private fixed at somewhere already mapped
33343 mmap shared not fixed
33344 mmap shared fixed at somewhere currently unmapped
33345 mmap shared fixed at somewhere already mapped
33346 For private mappings, we should verify that changes cannot be read()
33347 back from the file, nor mmap's back from the file at a different
33348 address. (There have been systems where private was not correctly
33349 implemented like the infamous i386 svr4.0, and systems where the
33350 VM page cache was not coherent with the file system buffer cache
33351 like early versions of FreeBSD and possibly contemporary NetBSD.)
33352 For shared mappings, we should conversely verify that changes get
33353 propagated back to all the places they're supposed to be.
33355 Grep wants private fixed already mapped.
33356 The main things grep needs to know about mmap are:
33357 * does it exist and is it safe to write into the mmap'd area
33358 * how to use it (BSD variants) */
33361 #include <sys/mman.h>
33363 #if !STDC_HEADERS && !HAVE_STDLIB_H
33367 /* This mess was copied from the GNU getpagesize.h. */
33368 #if !HAVE_GETPAGESIZE
33369 /* Assume that all systems that can run configure have sys/param.h. */
33370 # if !HAVE_SYS_PARAM_H
33371 # define HAVE_SYS_PARAM_H 1
33374 # ifdef _SC_PAGESIZE
33375 # define getpagesize() sysconf(_SC_PAGESIZE)
33376 # else /* no _SC_PAGESIZE */
33377 # if HAVE_SYS_PARAM_H
33378 # include <sys/param.h>
33379 # ifdef EXEC_PAGESIZE
33380 # define getpagesize() EXEC_PAGESIZE
33381 # else /* no EXEC_PAGESIZE */
33383 # define getpagesize() NBPG * CLSIZE
33386 # endif /* no CLSIZE */
33387 # else /* no NBPG */
33389 # define getpagesize() NBPC
33390 # else /* no NBPC */
33392 # define getpagesize() PAGESIZE
33393 # endif /* PAGESIZE */
33394 # endif /* no NBPC */
33395 # endif /* no NBPG */
33396 # endif /* no EXEC_PAGESIZE */
33397 # else /* no HAVE_SYS_PARAM_H */
33398 # define getpagesize() 8192 /* punt totally */
33399 # endif /* no HAVE_SYS_PARAM_H */
33400 # endif /* no _SC_PAGESIZE */
33402 #endif /* no HAVE_GETPAGESIZE */
33407 char *data, *data2, *data3;
33411 pagesize = getpagesize ();
33413 /* First, make a file with some known garbage in it. */
33414 data = (char *) malloc (pagesize);
33417 for (i = 0; i < pagesize; ++i)
33418 *(data + i) = rand ();
33420 fd = creat ("conftest.mmap", 0600);
33423 if (write (fd, data, pagesize) != pagesize)
33427 /* Next, try to mmap the file at a fixed address which already has
33428 something else allocated at it. If we can, also make sure that
33429 we see the same garbage. */
33430 fd = open ("conftest.mmap", O_RDWR);
33433 data2 = (char *) malloc (2 * pagesize);
33436 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33437 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33438 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33440 for (i = 0; i < pagesize; ++i)
33441 if (*(data + i) != *(data2 + i))
33444 /* Finally, make sure that changes to the mapped area do not
33445 percolate back to the file as seen by read(). (This is a bug on
33446 some variants of i386 svr4.0.) */
33447 for (i = 0; i < pagesize; ++i)
33448 *(data2 + i) = *(data2 + i) + 1;
33449 data3 = (char *) malloc (pagesize);
33452 if (read (fd, data3, pagesize) != pagesize)
33454 for (i = 0; i < pagesize; ++i)
33455 if (*(data + i) != *(data3 + i))
33461 rm -f conftest$ac_exeext
33462 if { (ac_try="$ac_link"
33463 case "(($ac_try" in
33464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465 *) ac_try_echo=$ac_try;;
33467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468 (eval "$ac_link") 2>&5
33470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33472 { (case "(($ac_try" in
33473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33474 *) ac_try_echo=$ac_try;;
33476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33477 (eval "$ac_try") 2>&5
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); }; }; then
33481 ac_cv_func_mmap_fixed_mapped=yes
33483 echo "$as_me: program exited with status $ac_status" >&5
33484 echo "$as_me: failed program was:" >&5
33485 sed 's/^/| /' conftest.$ac_ext >&5
33487 ( exit $ac_status )
33488 ac_cv_func_mmap_fixed_mapped=no
33490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33495 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33496 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33497 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33499 cat >>confdefs.h <<\_ACEOF
33500 #define HAVE_MMAP 1
33504 rm -f conftest.mmap
33506 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33507 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33508 if test "${ac_cv_func_mmap_file+set}" = set; then
33509 echo $ECHO_N "(cached) $ECHO_C" >&6
33512 ac_cpp='$CPP $CPPFLAGS'
33513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33517 if test "$cross_compiling" = yes; then
33518 ac_cv_func_mmap_file=no
33520 cat >conftest.$ac_ext <<_ACEOF
33524 cat confdefs.h >>conftest.$ac_ext
33525 cat >>conftest.$ac_ext <<_ACEOF
33526 /* end confdefs.h. */
33528 #include <sys/types.h>
33529 #include <sys/mman.h>
33537 fd = creat ("foo",0777);
33538 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33540 return (fd != (int) MAP_FAILED);
33545 rm -f conftest$ac_exeext
33546 if { (ac_try="$ac_link"
33547 case "(($ac_try" in
33548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549 *) ac_try_echo=$ac_try;;
33551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_link") 2>&5
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33556 { (case "(($ac_try" in
33557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33558 *) ac_try_echo=$ac_try;;
33560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33561 (eval "$ac_try") 2>&5
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); }; }; then
33565 ac_cv_func_mmap_file=yes
33567 echo "$as_me: program exited with status $ac_status" >&5
33568 echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33571 ( exit $ac_status )
33572 ac_cv_func_mmap_file=no
33574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33579 ac_cpp='$CPP $CPPFLAGS'
33580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33586 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33587 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33588 if test "$ac_cv_func_mmap_file" = yes; then
33590 cat >>confdefs.h <<\_ACEOF
33591 #define HAVE_MMAP_FILE
33598 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33599 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33600 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33601 echo $ECHO_N "(cached) $ECHO_C" >&6
33603 if test "$llvm_cv_os_type" = "Interix" ; then
33604 ac_cv_need_dev_zero_for_mmap=yes
33606 ac_cv_need_dev_zero_for_mmap=no
33610 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33611 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33612 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33614 cat >>confdefs.h <<\_ACEOF
33615 #define NEED_DEV_ZERO_FOR_MMAP 1
33620 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33622 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33623 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33625 if test "$ac_cv_func_mmap_file" = "no"
33627 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33628 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33634 for ac_func in __dso_handle
33636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33640 echo $ECHO_N "(cached) $ECHO_C" >&6
33642 cat >conftest.$ac_ext <<_ACEOF
33645 cat confdefs.h >>conftest.$ac_ext
33646 cat >>conftest.$ac_ext <<_ACEOF
33647 /* end confdefs.h. */
33648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33650 #define $ac_func innocuous_$ac_func
33652 /* System header to define __stub macros and hopefully few prototypes,
33653 which can conflict with char $ac_func (); below.
33654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33655 <limits.h> exists even on freestanding compilers. */
33658 # include <limits.h>
33660 # include <assert.h>
33665 /* Override any GCC internal prototype to avoid an error.
33666 Use char because int might match the return type of a GCC
33667 builtin and then its argument prototype would still apply. */
33672 /* The GNU C library defines this for functions which it implements
33673 to always fail with ENOSYS. Some functions are actually named
33674 something starting with __ and the normal name is an alias. */
33675 #if defined __stub_$ac_func || defined __stub___$ac_func
33682 return $ac_func ();
33687 rm -f conftest.$ac_objext conftest$ac_exeext
33688 if { (ac_try="$ac_link"
33689 case "(($ac_try" in
33690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33691 *) ac_try_echo=$ac_try;;
33693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33694 (eval "$ac_link") 2>conftest.er1
33696 grep -v '^ *+' conftest.er1 >conftest.err
33698 cat conftest.err >&5
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); } &&
33701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33702 { (case "(($ac_try" in
33703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33704 *) ac_try_echo=$ac_try;;
33706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33707 (eval "$ac_try") 2>&5
33709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710 (exit $ac_status); }; } &&
33711 { ac_try='test -s conftest$ac_exeext'
33712 { (case "(($ac_try" in
33713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33714 *) ac_try_echo=$ac_try;;
33716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33717 (eval "$ac_try") 2>&5
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); }; }; then
33721 eval "$as_ac_var=yes"
33723 echo "$as_me: failed program was:" >&5
33724 sed 's/^/| /' conftest.$ac_ext >&5
33726 eval "$as_ac_var=no"
33729 rm -f core conftest.err conftest.$ac_objext \
33730 conftest$ac_exeext conftest.$ac_ext
33732 ac_res=`eval echo '${'$as_ac_var'}'`
33733 { echo "$as_me:$LINENO: result: $ac_res" >&5
33734 echo "${ECHO_T}$ac_res" >&6; }
33735 if test `eval echo '${'$as_ac_var'}'` = yes; then
33736 cat >>confdefs.h <<_ACEOF
33737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33744 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33745 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33746 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33747 echo $ECHO_N "(cached) $ECHO_C" >&6
33749 llvm_cv_llvmgcc_sanity="no"
33750 if test -x "$LLVMGCC" ; then
33751 cp /dev/null conftest.c
33752 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33753 grep 'target datalayout =' > /dev/null 2>&1
33754 if test $? -eq 0 ; then
33755 llvm_cv_llvmgcc_sanity="yes"
33760 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33761 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33763 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33764 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33765 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33766 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33767 LLVMCC1=$llvmcc1path
33769 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33770 LLVMCC1PLUS=$llvmcc1pluspath
33772 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33773 LLVMGCCDIR=$llvmgccdir
33775 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33776 LLVMGCCLIBEXEC=$llvmgcclibexec
33778 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33779 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33780 LLVMGCC_VERSION=$llvmgccversion
33782 LLVMGCC_MAJVERS=$llvmgccmajvers
33784 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33785 LLVMGCC_LANGS=$llvmgcclangs
33787 { echo "$as_me:$LINENO: result: ok" >&5
33788 echo "${ECHO_T}ok" >&6; }
33791 SHLIBEXT=$libltdl_cv_shlibext
33794 # Translate the various configuration directories and other basic
33795 # information into substitutions that will end up in Makefile.config.in
33796 # that these configured values can be used by the makefiles
33797 if test "${prefix}" = "NONE" ; then
33798 prefix="/usr/local"
33800 eval LLVM_PREFIX="${prefix}";
33801 eval LLVM_BINDIR="${prefix}/bin";
33802 eval LLVM_LIBDIR="${prefix}/lib";
33803 eval LLVM_DATADIR="${prefix}/share/llvm";
33804 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33805 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33806 eval LLVM_INCLUDEDIR="${prefix}/include";
33807 eval LLVM_INFODIR="${prefix}/info";
33808 eval LLVM_MANDIR="${prefix}/man";
33809 LLVM_CONFIGTIME=`date`
33821 # Place the various directores into the config.h file as #defines so that we
33822 # can know about the installation paths within LLVM.
33824 cat >>confdefs.h <<_ACEOF
33825 #define LLVM_PREFIX "$LLVM_PREFIX"
33829 cat >>confdefs.h <<_ACEOF
33830 #define LLVM_BINDIR "$LLVM_BINDIR"
33834 cat >>confdefs.h <<_ACEOF
33835 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33839 cat >>confdefs.h <<_ACEOF
33840 #define LLVM_DATADIR "$LLVM_DATADIR"
33844 cat >>confdefs.h <<_ACEOF
33845 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
33849 cat >>confdefs.h <<_ACEOF
33850 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33854 cat >>confdefs.h <<_ACEOF
33855 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33859 cat >>confdefs.h <<_ACEOF
33860 #define LLVM_INFODIR "$LLVM_INFODIR"
33864 cat >>confdefs.h <<_ACEOF
33865 #define LLVM_MANDIR "$LLVM_MANDIR"
33869 cat >>confdefs.h <<_ACEOF
33870 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33874 cat >>confdefs.h <<_ACEOF
33875 #define LLVM_HOSTTRIPLE "$host"
33879 # Determine which bindings to build.
33880 if test "$BINDINGS_TO_BUILD" = auto ; then
33881 BINDINGS_TO_BUILD=""
33882 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33883 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33886 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33889 # This isn't really configurey, but it avoids having to repeat the list in
33894 # Do any work necessary to ensure that bindings have what they need.
33895 binding_prereqs_failed=0
33896 for a_binding in $BINDINGS_TO_BUILD ; do
33897 case "$a_binding" in
33899 if test "x$OCAMLC" = x ; then
33900 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33901 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33902 binding_prereqs_failed=1
33904 if test "x$OCAMLDEP" = x ; then
33905 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33906 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33907 binding_prereqs_failed=1
33909 if test "x$OCAMLOPT" = x ; then
33910 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33911 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33913 if test "x$with_ocaml_libdir" != xauto ; then
33914 OCAML_LIBDIR=$with_ocaml_libdir
33917 ocaml_stdlib="`"$OCAMLC" -where`"
33918 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33920 # ocaml stdlib is beneath our prefix; use stdlib
33921 OCAML_LIBDIR=$ocaml_stdlib
33924 # ocaml stdlib is outside our prefix; use libdir/ocaml
33925 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33932 if test "$binding_prereqs_failed" = 1 ; then
33933 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33934 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33935 { (exit 1); exit 1; }; }
33938 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33939 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33940 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33941 echo $ECHO_N "(cached) $ECHO_C" >&6
33944 ac_cpp='$CXXCPP $CPPFLAGS'
33945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33949 oldcxxflags="$CXXFLAGS"
33950 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33951 cat >conftest.$ac_ext <<_ACEOF
33954 cat confdefs.h >>conftest.$ac_ext
33955 cat >>conftest.$ac_ext <<_ACEOF
33956 /* end confdefs.h. */
33966 rm -f conftest.$ac_objext
33967 if { (ac_try="$ac_compile"
33968 case "(($ac_try" in
33969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970 *) ac_try_echo=$ac_try;;
33972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973 (eval "$ac_compile") 2>conftest.er1
33975 grep -v '^ *+' conftest.er1 >conftest.err
33977 cat conftest.err >&5
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979 (exit $ac_status); } &&
33980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33981 { (case "(($ac_try" in
33982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33983 *) ac_try_echo=$ac_try;;
33985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33986 (eval "$ac_try") 2>&5
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); }; } &&
33990 { ac_try='test -s conftest.$ac_objext'
33991 { (case "(($ac_try" in
33992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993 *) ac_try_echo=$ac_try;;
33995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996 (eval "$ac_try") 2>&5
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); }; }; then
34000 llvm_cv_cxx_visibility_inlines_hidden=yes
34002 echo "$as_me: failed program was:" >&5
34003 sed 's/^/| /' conftest.$ac_ext >&5
34005 llvm_cv_cxx_visibility_inlines_hidden=no
34008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34009 CXXFLAGS="$oldcxxflags"
34011 ac_cpp='$CPP $CPPFLAGS'
34012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34018 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34019 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34020 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34021 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34024 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34029 if test "$llvm_cv_link_use_r" = "yes" ; then
34036 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34037 RDYNAMIC="-Wl,-export-dynamic"
34044 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34046 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34048 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34051 ac_config_files="$ac_config_files Makefile.config"
34054 ac_config_files="$ac_config_files llvm.spec"
34057 ac_config_files="$ac_config_files docs/doxygen.cfg"
34060 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34063 ac_config_commands="$ac_config_commands setup"
34065 ac_config_commands="$ac_config_commands Makefile"
34068 ac_config_commands="$ac_config_commands Makefile.common"
34071 ac_config_commands="$ac_config_commands examples/Makefile"
34074 ac_config_commands="$ac_config_commands lib/Makefile"
34077 ac_config_commands="$ac_config_commands runtime/Makefile"
34080 ac_config_commands="$ac_config_commands test/Makefile"
34083 ac_config_commands="$ac_config_commands test/Makefile.tests"
34086 ac_config_commands="$ac_config_commands unittests/Makefile"
34089 ac_config_commands="$ac_config_commands tools/Makefile"
34092 ac_config_commands="$ac_config_commands utils/Makefile"
34095 ac_config_commands="$ac_config_commands projects/Makefile"
34098 ac_config_commands="$ac_config_commands bindings/Makefile"
34101 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34105 cat >confcache <<\_ACEOF
34106 # This file is a shell script that caches the results of configure
34107 # tests run on this system so they can be shared between configure
34108 # scripts and configure runs, see configure's option --config-cache.
34109 # It is not useful on other systems. If it contains results you don't
34110 # want to keep, you may remove or edit it.
34112 # config.status only pays attention to the cache file if you give it
34113 # the --recheck option to rerun configure.
34115 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34116 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34117 # following values.
34121 # The following way of writing the cache mishandles newlines in values,
34122 # but we know of no workaround that is simple, portable, and efficient.
34123 # So, we kill variables containing newlines.
34124 # Ultrix sh set writes to stderr and can't be redirected directly,
34125 # and sets the high bit in the cache file unless we assign to the vars.
34127 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34128 eval ac_val=\$$ac_var
34132 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34133 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34136 _ | IFS | as_nl) ;; #(
34137 *) $as_unset $ac_var ;;
34143 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34144 *${as_nl}ac_space=\ *)
34145 # `set' does not quote correctly, so add quotes (double-quote
34146 # substitution turns \\\\ into \\, and sed turns \\ into \).
34149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34152 # `set' quotes correctly as required by POSIX, so do not add quotes.
34153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34162 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34164 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34166 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34167 if test -w "$cache_file"; then
34168 test "x$cache_file" != "x/dev/null" &&
34169 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34170 echo "$as_me: updating cache $cache_file" >&6;}
34171 cat confcache >$cache_file
34173 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34174 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34180 # Let make expand exec_prefix.
34181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34183 DEFS=-DHAVE_CONFIG_H
34187 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34188 # 1. Remove the extension, and $U if already installed.
34189 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34190 ac_i=`echo "$ac_i" | sed "$ac_script"`
34191 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34192 # will be set to the directory where LIBOBJS objects are built.
34193 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34194 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34196 LIBOBJS=$ac_libobjs
34198 LTLIBOBJS=$ac_ltlibobjs
34201 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34202 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34203 Usually this means the macro was only invoked conditionally." >&5
34204 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34205 Usually this means the macro was only invoked conditionally." >&2;}
34206 { (exit 1); exit 1; }; }
34208 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34209 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34210 Usually this means the macro was only invoked conditionally." >&5
34211 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34212 Usually this means the macro was only invoked conditionally." >&2;}
34213 { (exit 1); exit 1; }; }
34216 : ${CONFIG_STATUS=./config.status}
34217 ac_clean_files_save=$ac_clean_files
34218 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34219 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34220 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34221 cat >$CONFIG_STATUS <<_ACEOF
34223 # Generated by $as_me.
34224 # Run this file to recreate the current configuration.
34225 # Compiler output produced by configure, useful for debugging
34226 # configure, is in config.log if it exists.
34229 ac_cs_recheck=false
34231 SHELL=\${CONFIG_SHELL-$SHELL}
34234 cat >>$CONFIG_STATUS <<\_ACEOF
34235 ## --------------------- ##
34236 ## M4sh Initialization. ##
34237 ## --------------------- ##
34239 # Be Bourne compatible
34240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34244 # is contrary to our usage. Disable this feature.
34245 alias -g '${1+"$@"}'='"$@"'
34246 setopt NO_GLOB_SUBST
34248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34250 BIN_SH=xpg4; export BIN_SH # for Tru64
34251 DUALCASE=1; export DUALCASE # for MKS sh
34255 # Avoid depending upon Character Ranges.
34256 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34257 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34258 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34259 as_cr_digits='0123456789'
34260 as_cr_alnum=$as_cr_Letters$as_cr_digits
34262 # The user is always right.
34263 if test "${PATH_SEPARATOR+set}" != set; then
34264 echo "#! /bin/sh" >conf$$.sh
34265 echo "exit 0" >>conf$$.sh
34267 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34275 # Support unset when possible.
34276 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34284 # We need space, tab and new line, in precisely that order. Quoting is
34285 # there to prevent editors from complaining about space-tab.
34286 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34287 # splitting by setting IFS to empty value.)
34292 # Find who we are. Look in the path if we contain no directory separator.
34294 *[\\/]* ) as_myself=$0 ;;
34295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34296 for as_dir in $PATH
34299 test -z "$as_dir" && as_dir=.
34300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34306 # We did not find ourselves, most probably we were run as `sh COMMAND'
34307 # in which case we are not to be found in the path.
34308 if test "x$as_myself" = x; then
34311 if test ! -f "$as_myself"; then
34312 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34313 { (exit 1); exit 1; }
34316 # Work around bugs in pre-3.0 UWIN ksh.
34317 for as_var in ENV MAIL MAILPATH
34318 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34326 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34327 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34328 LC_TELEPHONE LC_TIME
34330 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34331 eval $as_var=C; export $as_var
34333 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34337 # Required to use basename.
34338 if expr a : '\(a\)' >/dev/null 2>&1 &&
34339 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34345 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34346 as_basename=basename
34352 # Name of the executable.
34353 as_me=`$as_basename -- "$0" ||
34354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34355 X"$0" : 'X\(//\)$' \| \
34356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34358 sed '/^.*\/\([^/][^/]*\)\/*$/{
34377 as_lineno_1=$LINENO
34378 as_lineno_2=$LINENO
34379 test "x$as_lineno_1" != "x$as_lineno_2" &&
34380 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34382 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34383 # uniformly replaced by the line number. The first 'sed' inserts a
34384 # line-number line after each line using $LINENO; the second 'sed'
34385 # does the real work. The second script uses 'N' to pair each
34386 # line-number line with the line containing $LINENO, and appends
34387 # trailing '-' during substitution so that $LINENO is not a special
34388 # case at line end.
34389 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34390 # scripts with optimization help from Paolo Bonzini. Blame Lee
34391 # E. McMahon (1931-1989) for sed's syntax. :-)
34403 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34406 ' >$as_me.lineno &&
34407 chmod +x "$as_me.lineno" ||
34408 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34409 { (exit 1); exit 1; }; }
34411 # Don't try to exec as it changes $[0], causing all sort of problems
34412 # (the dirname of $[0] is not the place where we might find the
34413 # original and so on. Autoconf is especially sensitive to this).
34414 . "./$as_me.lineno"
34415 # Exit status is that of the last command.
34420 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34426 ECHO_C= ECHO_N= ECHO_T=
34427 case `echo -n x` in
34429 case `echo 'x\c'` in
34430 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34437 if expr a : '\(a\)' >/dev/null 2>&1 &&
34438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34444 rm -f conf$$ conf$$.exe conf$$.file
34445 if test -d conf$$.dir; then
34446 rm -f conf$$.dir/conf$$.file
34452 if ln -s conf$$.file conf$$ 2>/dev/null; then
34454 # ... but there are two gotchas:
34455 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34456 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34457 # In both cases, we have to default to `cp -p'.
34458 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34460 elif ln conf$$.file conf$$ 2>/dev/null; then
34465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34466 rmdir conf$$.dir 2>/dev/null
34468 if mkdir -p . 2>/dev/null; then
34471 test -d ./-p && rmdir ./-p
34475 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34476 # systems may use methods other than mode bits to determine executability.
34477 cat >conf$$.file <<_ASEOF
34481 chmod +x conf$$.file
34482 if test -x conf$$.file >/dev/null 2>&1; then
34483 as_executable_p="test -x"
34489 # Sed expression to map a string onto a valid CPP name.
34490 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34492 # Sed expression to map a string onto a valid variable name.
34493 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34498 # Save the log message, to keep $[0] and so on meaningful, and to
34499 # report actual input values of CONFIG_FILES etc. instead of their
34500 # values after options handling.
34502 This file was extended by llvm $as_me 2.6svn, which was
34503 generated by GNU Autoconf 2.60. Invocation command line was
34505 CONFIG_FILES = $CONFIG_FILES
34506 CONFIG_HEADERS = $CONFIG_HEADERS
34507 CONFIG_LINKS = $CONFIG_LINKS
34508 CONFIG_COMMANDS = $CONFIG_COMMANDS
34511 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34516 cat >>$CONFIG_STATUS <<_ACEOF
34517 # Files that config.status was made for.
34518 config_files="$ac_config_files"
34519 config_headers="$ac_config_headers"
34520 config_commands="$ac_config_commands"
34524 cat >>$CONFIG_STATUS <<\_ACEOF
34526 \`$as_me' instantiates files from templates according to the
34527 current configuration.
34529 Usage: $0 [OPTIONS] [FILE]...
34531 -h, --help print this help, then exit
34532 -V, --version print version number, then exit
34533 -q, --quiet do not print progress messages
34534 -d, --debug don't remove temporary files
34535 --recheck update $as_me by reconfiguring in the same conditions
34536 --file=FILE[:TEMPLATE]
34537 instantiate the configuration file FILE
34538 --header=FILE[:TEMPLATE]
34539 instantiate the configuration header FILE
34541 Configuration files:
34544 Configuration headers:
34547 Configuration commands:
34550 Report bugs to <bug-autoconf@gnu.org>."
34553 cat >>$CONFIG_STATUS <<_ACEOF
34555 llvm config.status 2.6svn
34556 configured by $0, generated by GNU Autoconf 2.60,
34557 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34559 Copyright (C) 2006 Free Software Foundation, Inc.
34560 This config.status script is free software; the Free Software Foundation
34561 gives unlimited permission to copy, distribute and modify it."
34568 cat >>$CONFIG_STATUS <<\_ACEOF
34569 # If no file are specified by the user, then we need to provide default
34570 # value. By we need to know if files were specified by the user.
34576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34588 # Handling of the options.
34589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34592 echo "$ac_cs_version"; exit ;;
34593 --debug | --debu | --deb | --de | --d | -d )
34595 --file | --fil | --fi | --f )
34597 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34598 ac_need_defaults=false;;
34599 --header | --heade | --head | --hea )
34601 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34602 ac_need_defaults=false;;
34604 # Conflict between --help and --header
34605 { echo "$as_me: error: ambiguous option: $1
34606 Try \`$0 --help' for more information." >&2
34607 { (exit 1); exit 1; }; };;
34608 --help | --hel | -h )
34609 echo "$ac_cs_usage"; exit ;;
34610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34611 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34614 # This is an error.
34615 -*) { echo "$as_me: error: unrecognized option: $1
34616 Try \`$0 --help' for more information." >&2
34617 { (exit 1); exit 1; }; } ;;
34619 *) ac_config_targets="$ac_config_targets $1"
34620 ac_need_defaults=false ;;
34626 ac_configure_extra_args=
34628 if $ac_cs_silent; then
34630 ac_configure_extra_args="$ac_configure_extra_args --silent"
34634 cat >>$CONFIG_STATUS <<_ACEOF
34635 if \$ac_cs_recheck; then
34636 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34637 CONFIG_SHELL=$SHELL
34638 export CONFIG_SHELL
34639 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34643 cat >>$CONFIG_STATUS <<\_ACEOF
34647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34648 ## Running $as_me. ##
34654 cat >>$CONFIG_STATUS <<_ACEOF
34658 llvm_src="${srcdir}"
34662 cat >>$CONFIG_STATUS <<\_ACEOF
34664 # Handling of arguments.
34665 for ac_config_target in $ac_config_targets
34667 case $ac_config_target in
34668 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34669 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34670 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34671 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34672 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34673 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34674 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34675 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34676 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34677 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34678 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34679 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34680 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34681 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34682 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34683 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34684 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34685 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34686 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34687 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34688 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34690 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34691 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34692 { (exit 1); exit 1; }; };;
34697 # If the user did not use the arguments to specify the items to instantiate,
34698 # then the envvar interface is used. Set only those that are not.
34699 # We use the long form for the default assignment because of an extremely
34700 # bizarre bug on SunOS 4.1.3.
34701 if $ac_need_defaults; then
34702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34704 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34707 # Have a temporary directory for convenience. Make it in the build tree
34708 # simply because there is no reason against having it here, and in addition,
34709 # creating and moving files from /tmp can sometimes cause problems.
34710 # Hook for its removal unless debugging.
34711 # Note that there is a small window in which the directory will not be cleaned:
34712 # after its creation but before its name has been assigned to `$tmp'.
34716 trap 'exit_status=$?
34717 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34719 trap '{ (exit 1); exit 1; }' 1 2 13 15
34721 # Create a (secure) tmp directory for tmp files.
34724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34725 test -n "$tmp" && test -d "$tmp"
34728 tmp=./conf$$-$RANDOM
34729 (umask 077 && mkdir "$tmp")
34732 echo "$me: cannot create a temporary directory in ." >&2
34733 { (exit 1); exit 1; }
34737 # Set up the sed scripts for CONFIG_FILES section.
34740 # No need to generate the scripts if there are no CONFIG_FILES.
34741 # This happens for instance when ./config.status config.h
34742 if test -n "$CONFIG_FILES"; then
34749 for ac_last_try in false false false false false :; do
34750 cat >conf$$subs.sed <<_ACEOF
34751 SHELL!$SHELL$ac_delim
34752 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34753 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34754 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34755 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34756 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34757 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34758 exec_prefix!$exec_prefix$ac_delim
34759 prefix!$prefix$ac_delim
34760 program_transform_name!$program_transform_name$ac_delim
34761 bindir!$bindir$ac_delim
34762 sbindir!$sbindir$ac_delim
34763 libexecdir!$libexecdir$ac_delim
34764 datarootdir!$datarootdir$ac_delim
34765 datadir!$datadir$ac_delim
34766 sysconfdir!$sysconfdir$ac_delim
34767 sharedstatedir!$sharedstatedir$ac_delim
34768 localstatedir!$localstatedir$ac_delim
34769 includedir!$includedir$ac_delim
34770 oldincludedir!$oldincludedir$ac_delim
34771 docdir!$docdir$ac_delim
34772 infodir!$infodir$ac_delim
34773 htmldir!$htmldir$ac_delim
34774 dvidir!$dvidir$ac_delim
34775 pdfdir!$pdfdir$ac_delim
34776 psdir!$psdir$ac_delim
34777 libdir!$libdir$ac_delim
34778 localedir!$localedir$ac_delim
34779 mandir!$mandir$ac_delim
34780 DEFS!$DEFS$ac_delim
34781 ECHO_C!$ECHO_C$ac_delim
34782 ECHO_N!$ECHO_N$ac_delim
34783 ECHO_T!$ECHO_T$ac_delim
34784 LIBS!$LIBS$ac_delim
34785 build_alias!$build_alias$ac_delim
34786 host_alias!$host_alias$ac_delim
34787 target_alias!$target_alias$ac_delim
34788 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34789 subdirs!$subdirs$ac_delim
34790 build!$build$ac_delim
34791 build_cpu!$build_cpu$ac_delim
34792 build_vendor!$build_vendor$ac_delim
34793 build_os!$build_os$ac_delim
34794 host!$host$ac_delim
34795 host_cpu!$host_cpu$ac_delim
34796 host_vendor!$host_vendor$ac_delim
34797 host_os!$host_os$ac_delim
34798 target!$target$ac_delim
34799 target_cpu!$target_cpu$ac_delim
34800 target_vendor!$target_vendor$ac_delim
34801 target_os!$target_os$ac_delim
34803 LINKALL!$LINKALL$ac_delim
34804 NOLINKALL!$NOLINKALL$ac_delim
34805 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34806 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34808 CFLAGS!$CFLAGS$ac_delim
34809 LDFLAGS!$LDFLAGS$ac_delim
34810 CPPFLAGS!$CPPFLAGS$ac_delim
34811 ac_ct_CC!$ac_ct_CC$ac_delim
34812 EXEEXT!$EXEEXT$ac_delim
34813 OBJEXT!$OBJEXT$ac_delim
34814 ARCH!$ARCH$ac_delim
34815 ENDIAN!$ENDIAN$ac_delim
34817 GREP!$GREP$ac_delim
34818 EGREP!$EGREP$ac_delim
34819 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34820 BUILD_CC!$BUILD_CC$ac_delim
34821 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34822 BUILD_CXX!$BUILD_CXX$ac_delim
34823 CVSBUILD!$CVSBUILD$ac_delim
34824 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34825 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34826 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34827 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34828 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34830 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34831 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34832 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34833 ENABLE_PIC!$ENABLE_PIC$ac_delim
34834 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34835 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34836 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34837 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
34839 CXXFLAGS!$CXXFLAGS$ac_delim
34840 ac_ct_CXX!$ac_ct_CXX$ac_delim
34842 ifGNUmake!$ifGNUmake$ac_delim
34843 LN_S!$LN_S$ac_delim
34846 DATE!$DATE$ac_delim
34847 FIND!$FIND$ac_delim
34850 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34852 elif $ac_last_try; then
34853 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34854 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34855 { (exit 1); exit 1; }; }
34857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34861 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34862 if test -n "$ac_eof"; then
34863 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34864 ac_eof=`expr $ac_eof + 1`
34867 cat >>$CONFIG_STATUS <<_ACEOF
34868 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34872 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34873 s/^/s,@/; s/!/@,|#_!!_#|/
34876 s/'"$ac_delim"'$/,g/; t
34878 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34879 ' >>$CONFIG_STATUS <conf$$subs.sed
34880 rm -f conf$$subs.sed
34881 cat >>$CONFIG_STATUS <<_ACEOF
34887 for ac_last_try in false false false false false :; do
34888 cat >conf$$subs.sed <<_ACEOF
34889 MKDIR!$MKDIR$ac_delim
34891 RANLIB!$RANLIB$ac_delim
34895 BINPWD!$BINPWD$ac_delim
34896 GRAPHVIZ!$GRAPHVIZ$ac_delim
34899 DOTTY!$DOTTY$ac_delim
34900 PERL!$PERL$ac_delim
34901 HAVE_PERL!$HAVE_PERL$ac_delim
34902 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34903 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34904 INSTALL_DATA!$INSTALL_DATA$ac_delim
34905 BZIP2!$BZIP2$ac_delim
34906 DOXYGEN!$DOXYGEN$ac_delim
34907 GROFF!$GROFF$ac_delim
34908 GZIP!$GZIP$ac_delim
34909 POD2HTML!$POD2HTML$ac_delim
34910 POD2MAN!$POD2MAN$ac_delim
34911 RUNTEST!$RUNTEST$ac_delim
34912 TCLSH!$TCLSH$ac_delim
34914 OCAMLC!$OCAMLC$ac_delim
34915 OCAMLOPT!$OCAMLOPT$ac_delim
34916 OCAMLDEP!$OCAMLDEP$ac_delim
34917 OCAMLDOC!$OCAMLDOC$ac_delim
34919 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34920 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34921 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34922 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34923 LIBADD_DL!$LIBADD_DL$ac_delim
34924 ECHO!$ECHO$ac_delim
34926 STRIP!$STRIP$ac_delim
34927 CXXCPP!$CXXCPP$ac_delim
34929 FFLAGS!$FFLAGS$ac_delim
34930 ac_ct_F77!$ac_ct_F77$ac_delim
34931 LIBTOOL!$LIBTOOL$ac_delim
34932 LLVMGCC!$LLVMGCC$ac_delim
34933 LLVMGXX!$LLVMGXX$ac_delim
34934 USE_UDIS86!$USE_UDIS86$ac_delim
34935 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34936 HAVE_FFI!$HAVE_FFI$ac_delim
34937 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34938 ALLOCA!$ALLOCA$ac_delim
34939 MMAP_FILE!$MMAP_FILE$ac_delim
34940 LLVMCC1!$LLVMCC1$ac_delim
34941 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34942 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34943 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34944 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34945 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34946 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34947 SHLIBEXT!$SHLIBEXT$ac_delim
34948 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34949 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34950 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34951 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34952 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34953 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34954 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34955 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34956 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34957 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34958 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34959 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
34960 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
34961 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
34962 RPATH!$RPATH$ac_delim
34963 RDYNAMIC!$RDYNAMIC$ac_delim
34964 LIBOBJS!$LIBOBJS$ac_delim
34965 LTLIBOBJS!$LTLIBOBJS$ac_delim
34968 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
34970 elif $ac_last_try; then
34971 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34972 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34973 { (exit 1); exit 1; }; }
34975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34979 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34980 if test -n "$ac_eof"; then
34981 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34982 ac_eof=`expr $ac_eof + 1`
34985 cat >>$CONFIG_STATUS <<_ACEOF
34986 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34990 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34991 s/^/s,@/; s/!/@,|#_!!_#|/
34994 s/'"$ac_delim"'$/,g/; t
34996 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34997 ' >>$CONFIG_STATUS <conf$$subs.sed
34998 rm -f conf$$subs.sed
34999 cat >>$CONFIG_STATUS <<_ACEOF
35006 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35007 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35008 # trailing colons and then remove the whole line if VPATH becomes empty
35009 # (actually we leave an empty line to preserve line numbers).
35010 if test "x$srcdir" = x.; then
35011 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35012 s/:*\$(srcdir):*/:/
35013 s/:*\${srcdir}:*/:/
35015 s/^\([^=]*=[ ]*\):*/\1/
35021 cat >>$CONFIG_STATUS <<\_ACEOF
35022 fi # test -n "$CONFIG_FILES"
35025 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35028 :[FHLC]) ac_mode=$ac_tag; continue;;
35030 case $ac_mode$ac_tag in
35032 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35033 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35034 { (exit 1); exit 1; }; };;
35035 :[FH]-) ac_tag=-:-;;
35036 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35053 -) ac_f="$tmp/stdin";;
35054 *) # Look for the file first in the build tree, then in the source tree
35055 # (if the path is not absolute). The absolute path cannot be DOS-style,
35056 # because $ac_f cannot contain `:'.
35060 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35062 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35063 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35064 { (exit 1); exit 1; }; };;
35066 ac_file_inputs="$ac_file_inputs $ac_f"
35069 # Let's still pretend it is `configure' which instantiates (i.e., don't
35070 # use $as_me), people would be surprised to read:
35071 # /* config.h. Generated by config.status. */
35072 configure_input="Generated from "`IFS=:
35073 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35074 if test x"$ac_file" != x-; then
35075 configure_input="$ac_file. $configure_input"
35076 { echo "$as_me:$LINENO: creating $ac_file" >&5
35077 echo "$as_me: creating $ac_file" >&6;}
35081 *:-:* | *:-) cat >"$tmp/stdin";;
35086 ac_dir=`$as_dirname -- "$ac_file" ||
35087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35088 X"$ac_file" : 'X\(//\)[^/]' \| \
35089 X"$ac_file" : 'X\(//\)$' \| \
35090 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35096 /^X\(\/\/\)[^/].*/{
35111 -*) as_dir=./$as_dir;;
35113 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35117 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35118 *) as_qdir=$as_dir;;
35120 as_dirs="'$as_qdir' $as_dirs"
35121 as_dir=`$as_dirname -- "$as_dir" ||
35122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35123 X"$as_dir" : 'X\(//\)[^/]' \| \
35124 X"$as_dir" : 'X\(//\)$' \| \
35125 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35131 /^X\(\/\/\)[^/].*/{
35144 test -d "$as_dir" && break
35146 test -z "$as_dirs" || eval "mkdir $as_dirs"
35147 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35148 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35149 { (exit 1); exit 1; }; }; }
35153 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35155 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35156 # A ".." for each directory in $ac_dir_suffix.
35157 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35158 case $ac_top_builddir_sub in
35159 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35160 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35163 ac_abs_top_builddir=$ac_pwd
35164 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35165 # for backward compatibility:
35166 ac_top_builddir=$ac_top_build_prefix
35169 .) # We are building in place.
35171 ac_top_srcdir=$ac_top_builddir_sub
35172 ac_abs_top_srcdir=$ac_pwd ;;
35173 [\\/]* | ?:[\\/]* ) # Absolute name.
35174 ac_srcdir=$srcdir$ac_dir_suffix;
35175 ac_top_srcdir=$srcdir
35176 ac_abs_top_srcdir=$srcdir ;;
35177 *) # Relative name.
35178 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35179 ac_top_srcdir=$ac_top_build_prefix$srcdir
35180 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35182 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35192 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35193 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35197 cat >>$CONFIG_STATUS <<\_ACEOF
35198 # If the template does not know about datarootdir, expand it.
35199 # FIXME: This hack should be removed a few years after 2.60.
35200 ac_datarootdir_hack=; ac_datarootdir_seen=
35202 case `sed -n '/datarootdir/ {
35211 ' $ac_file_inputs` in
35212 *datarootdir*) ac_datarootdir_seen=yes;;
35213 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35214 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35215 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35217 cat >>$CONFIG_STATUS <<_ACEOF
35218 ac_datarootdir_hack='
35219 s&@datadir@&$datadir&g
35220 s&@docdir@&$docdir&g
35221 s&@infodir@&$infodir&g
35222 s&@localedir@&$localedir&g
35223 s&@mandir@&$mandir&g
35224 s&\\\${datarootdir}&$datarootdir&g' ;;
35228 # Neutralize VPATH when `$srcdir' = `.'.
35229 # Shell code in configure.ac might set extrasub.
35230 # FIXME: do we really want to maintain this feature?
35231 cat >>$CONFIG_STATUS <<_ACEOF
35235 cat >>$CONFIG_STATUS <<\_ACEOF
35237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35238 s&@configure_input@&$configure_input&;t t
35239 s&@top_builddir@&$ac_top_builddir_sub&;t t
35240 s&@srcdir@&$ac_srcdir&;t t
35241 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35242 s&@top_srcdir@&$ac_top_srcdir&;t t
35243 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35244 s&@builddir@&$ac_builddir&;t t
35245 s&@abs_builddir@&$ac_abs_builddir&;t t
35246 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35247 s&@INSTALL@&$ac_INSTALL&;t t
35248 $ac_datarootdir_hack
35249 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35251 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35252 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35253 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35254 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35255 which seems to be undefined. Please make sure it is defined." >&5
35256 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35257 which seems to be undefined. Please make sure it is defined." >&2;}
35261 -) cat "$tmp/out"; rm -f "$tmp/out";;
35262 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35271 # Transform confdefs.h into a sed script `conftest.defines', that
35272 # substitutes the proper values into config.h.in to produce config.h.
35273 rm -f conftest.defines conftest.tail
35274 # First, append a space to every undef/define line, to ease matching.
35275 echo 's/$/ /' >conftest.defines
35276 # Then, protect against being on the right side of a sed subst, or in
35277 # an unquoted here document, in config.status. If some macros were
35278 # called several times there might be several #defines for the same
35279 # symbol, which is useless. But do not sort them, since the last
35280 # AC_DEFINE must be honored.
35281 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35282 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35283 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35284 # PARAMS is the parameter list in the macro definition--in most cases, it's
35285 # just an empty string.
35286 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35287 ac_dB='\\)[ (].*,\\1define\\2'
35295 s/^[ ]*#[ ]*define[ ][ ]*//
35300 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35301 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35302 ' >>conftest.defines
35304 # Remove the space that was appended to ease matching.
35305 # Then replace #undef with comments. This is necessary, for
35306 # example, in the case of _POSIX_SOURCE, which is predefined and required
35307 # on some systems where configure will not decide to define it.
35308 # (The regexp can be short, since the line contains either #define or #undef.)
35310 s,^[ #]*u.*,/* & */,' >>conftest.defines
35312 # Break up conftest.defines:
35313 ac_max_sed_lines=50
35315 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35316 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35317 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35319 ac_in='$ac_file_inputs'
35320 ac_out='"$tmp/out1"'
35321 ac_nxt='"$tmp/out2"'
35325 # Write a here document:
35326 cat >>$CONFIG_STATUS <<_ACEOF
35327 # First, check the format of the line:
35328 cat >"\$tmp/defines.sed" <<\\CEOF
35329 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35330 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35334 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35336 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35337 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35338 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35339 grep . conftest.tail >/dev/null || break
35340 rm -f conftest.defines
35341 mv conftest.tail conftest.defines
35343 rm -f conftest.defines conftest.tail
35345 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35346 cat >>$CONFIG_STATUS <<\_ACEOF
35347 if test x"$ac_file" != x-; then
35348 echo "/* $configure_input */" >"$tmp/config.h"
35349 cat "$ac_result" >>"$tmp/config.h"
35350 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35351 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35352 echo "$as_me: $ac_file is unchanged" >&6;}
35355 mv "$tmp/config.h" $ac_file
35358 echo "/* $configure_input */"
35364 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35365 echo "$as_me: executing $ac_file commands" >&6;}
35370 case $ac_file$ac_mode in
35371 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35372 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35373 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35374 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35375 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35376 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35377 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35378 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35379 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35380 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35381 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35382 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35383 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35384 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35385 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35386 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35387 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35388 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35389 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35390 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35391 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35392 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35393 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35394 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35395 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35396 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35402 { (exit 0); exit 0; }
35404 chmod +x $CONFIG_STATUS
35405 ac_clean_files=$ac_clean_files_save
35408 # configure is writing to config.log, and then calls config.status.
35409 # config.status does its own redirection, appending to config.log.
35410 # Unfortunately, on DOS this fails, as config.log is still kept open
35411 # by configure, so config.status won't be able to write to it; its
35412 # output is simply discarded. So we exec the FD to /dev/null,
35413 # effectively closing config.log, so it can be properly (re)opened and
35414 # appended to by config.status. When coming back to configure, we
35415 # need to make the FD available again.
35416 if test "$no_create" != yes; then
35418 ac_config_status_args=
35419 test "$silent" = yes &&
35420 ac_config_status_args="$ac_config_status_args --quiet"
35422 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35424 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35425 # would make configure fail if this is the last instruction.
35426 $ac_cs_success || { (exit 1); exit 1; }
35430 # CONFIG_SUBDIRS section.
35432 if test "$no_recursion" != yes; then
35434 # Remove --cache-file and --srcdir arguments so they do not pile up.
35435 ac_sub_configure_args=
35437 eval "set x $ac_configure_args"
35441 if test -n "$ac_prev"; then
35446 -cache-file | --cache-file | --cache-fil | --cache-fi \
35447 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35448 ac_prev=cache_file ;;
35449 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35450 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35453 --config-cache | -C)
35455 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35457 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35459 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35461 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35465 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35467 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35471 # Always prepend --prefix to ensure using the same prefix
35472 # in subdir configurations.
35473 ac_arg="--prefix=$prefix"
35475 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35477 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35480 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35482 # Do not complain, so a configure script can configure whichever
35483 # parts of a large source tree are present.
35484 test -d "$srcdir/$ac_dir" || continue
35486 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35487 echo "$as_me:$LINENO: $ac_msg" >&5
35491 -*) as_dir=./$as_dir;;
35493 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35497 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35498 *) as_qdir=$as_dir;;
35500 as_dirs="'$as_qdir' $as_dirs"
35501 as_dir=`$as_dirname -- "$as_dir" ||
35502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35503 X"$as_dir" : 'X\(//\)[^/]' \| \
35504 X"$as_dir" : 'X\(//\)$' \| \
35505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35511 /^X\(\/\/\)[^/].*/{
35524 test -d "$as_dir" && break
35526 test -z "$as_dirs" || eval "mkdir $as_dirs"
35527 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35528 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35529 { (exit 1); exit 1; }; }; }
35533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35536 # A ".." for each directory in $ac_dir_suffix.
35537 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35538 case $ac_top_builddir_sub in
35539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35543 ac_abs_top_builddir=$ac_pwd
35544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35545 # for backward compatibility:
35546 ac_top_builddir=$ac_top_build_prefix
35549 .) # We are building in place.
35551 ac_top_srcdir=$ac_top_builddir_sub
35552 ac_abs_top_srcdir=$ac_pwd ;;
35553 [\\/]* | ?:[\\/]* ) # Absolute name.
35554 ac_srcdir=$srcdir$ac_dir_suffix;
35555 ac_top_srcdir=$srcdir
35556 ac_abs_top_srcdir=$srcdir ;;
35557 *) # Relative name.
35558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35559 ac_top_srcdir=$ac_top_build_prefix$srcdir
35560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35567 # Check for guested configure; otherwise get Cygnus style configure.
35568 if test -f "$ac_srcdir/configure.gnu"; then
35569 ac_sub_configure=$ac_srcdir/configure.gnu
35570 elif test -f "$ac_srcdir/configure"; then
35571 ac_sub_configure=$ac_srcdir/configure
35572 elif test -f "$ac_srcdir/configure.in"; then
35573 # This should be Cygnus configure.
35574 ac_sub_configure=$ac_aux_dir/configure
35576 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35581 # The recursion is here.
35582 if test -n "$ac_sub_configure"; then
35583 # Make the cache file name correct relative to the subdirectory.
35584 case $cache_file in
35585 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35586 *) # Relative name.
35587 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35590 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35591 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35592 # The eval makes quoting arguments work.
35593 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35594 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35595 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35596 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35597 { (exit 1); exit 1; }; }