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
835 ENABLE_EXPENSIVE_CHECKS
889 CONVENIENCE_LTDL_TRUE
890 CONVENIENCE_LTDL_FALSE
930 ENABLE_VISIBILITY_INLINES_HIDDEN
936 ac_precious_vars='build_alias
950 ac_subdirs_all='projects/sample
952 projects/llvm-stacker
959 projects/llvm-poolalloc
961 projects/llvm-kernel'
963 # Initialize some variables set by options.
965 ac_init_version=false
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
975 program_transform_name=s,x,x,
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000 infodir='${datarootdir}/info'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1027 case $ac_dashdash$ac_option in
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1051 -datadir | --datadir | --datadi | --datad)
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1063 -disable-* | --disable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1070 eval enable_$ac_feature=no ;;
1072 -docdir | --docdir | --docdi | --doc | --do)
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1082 -enable-* | --enable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1089 eval enable_$ac_feature=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1253 -site=* | --site=* | --sit=*)
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1280 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
1285 ac_package=`echo $ac_package| sed 's/-/_/g'`
1286 eval with_$ac_package=\$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package=`echo $ac_package | sed 's/-/_/g'`
1295 eval with_$ac_package=no ;;
1298 # Obsolete; use --with-x.
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1315 -*) { echo "$as_me: error: unrecognized option: $ac_option
1316 Try \`$0 --help' for more information." >&2
1317 { (exit 1); exit 1; }; }
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325 { (exit 1); exit 1; }; }
1326 eval $ac_envvar=\$ac_optarg
1327 export $ac_envvar ;;
1330 # FIXME: should be removed in autoconf 3.0.
1331 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340 if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 { echo "$as_me: error: missing argument to $ac_option" >&2
1343 { (exit 1); exit 1; }; }
1346 # Be sure to have absolute directory names.
1347 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
1352 eval ac_val=\$$ac_var
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358 { (exit 1); exit 1; }; }
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1366 target=$target_alias
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382 test "$silent" = yes && exec 6>/dev/null
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 { echo "$as_me: error: Working directory cannot be determined" >&2
1389 { (exit 1); exit 1; }; }
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 { echo "$as_me: error: pwd does not report name of working directory" >&2
1392 { (exit 1); exit 1; }; }
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
1398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$0" ||
1400 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$0" : 'X\(//\)[^/]' \| \
1402 X"$0" : 'X\(//\)$' \| \
1403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1427 ac_srcdir_defaulted=no
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1432 { (exit 1); exit 1; }; }
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1437 { (exit 1); exit 1; }; }
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1463 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1527 if test -n "$ac_init_help"; then
1528 case $ac_init_help in
1529 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-optimized Compile with optimizations enabled (default is NO)
1537 --enable-profiling Compile with profiling enabled (default is NO)
1538 --enable-assertions Compile with assertion checks enabled (default is
1540 --enable-expensive-checks
1541 Compile with expensive debug checks enabled (default
1543 --enable-debug-runtime Build runtime libs with debug symbols (default is
1545 --enable-jit Enable Just In Time Compiling (default is YES)
1546 --enable-doxygen Build doxygen documentation (default is NO)
1547 --enable-threads Use threads if available (default is YES)
1548 --enable-pic Build LLVM with Position Independent Code (default
1550 --enable-targets Build specific host targets:
1551 all,host-only,{target-name} (default=all)
1552 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1554 --enable-bindings Build specific language bindings:
1555 all,auto,none,{binding-name} (default=auto)
1556 --enable-libffi Check for the presence of libffi (default is YES)
1557 --enable-ltdl-install install libltdl
1558 --enable-shared[=PKGS] build shared libraries
1560 --enable-static[=PKGS] build static libraries
1562 --enable-fast-install[=PKGS]
1563 optimize for fast installation
1565 --disable-libtool-lock avoid locking (might break parallel builds)
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1570 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1572 --with-llvmgcc Specify location of llvm-gcc driver (default
1574 --with-llvmgxx Specify location of llvm-g++ driver (default
1576 --with-extra-options Specify additional options to compile LLVM with
1577 --with-ocaml-libdir Specify install location for ocaml bindings (default
1579 --with-binutils-include Specify path to binutils/include/ containing
1580 plugin-api.h file for gold plugin.
1581 --with-tclinclude directory where tcl headers are
1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1585 --with-tags[=TAGS] include additional configurations [automatic]
1586 --with-udis86=<path> Use udis86 external x86 disassembler library
1588 Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1594 you have headers in a nonstandard directory <include dir>
1596 CXX C++ compiler command
1597 CXXFLAGS C++ compiler flags
1598 CXXCPP C++ preprocessor
1599 F77 Fortran 77 compiler command
1600 FFLAGS Fortran 77 compiler flags
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 Report bugs to <llvmbugs@cs.uiuc.edu>.
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" || continue
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1633 .) # We are building in place.
1635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
1638 ac_srcdir=$srcdir$ac_dir_suffix;
1639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1655 $SHELL "$ac_srcdir/configure" --help=recursive
1657 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 cd "$ac_pwd" || { ac_status=$?; break; }
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1666 llvm configure 2.6svn
1667 generated by GNU Autoconf 2.60
1669 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1670 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1671 This configure script is free software; the Free Software Foundation
1672 gives unlimited permission to copy, distribute and modify it.
1674 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1678 cat >config.log <<_ACEOF
1679 This file contains any messages produced by compilers while
1680 running configure, to aid debugging if configure makes a mistake.
1682 It was created by llvm $as_me 2.6svn, which was
1683 generated by GNU Autoconf 2.60. Invocation command line was
1695 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1704 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1705 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1706 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1707 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1708 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1709 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1710 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 echo "PATH: $as_dir"
1735 # Keep a trace of the command line.
1736 # Strip out --no-create and --no-recursion so they do not pile up.
1737 # Strip out --silent because we don't want to record it for future runs.
1738 # Also quote any args containing shell meta-characters.
1739 # Make two passes to allow for proper duplicate-argument suppression.
1743 ac_must_keep_next=false
1749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751 | -silent | --silent | --silen | --sile | --sil)
1754 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760 if test $ac_must_keep_next = true; then
1761 ac_must_keep_next=false # Got value, back to normal.
1764 *=* | --config-cache | -C | -disable-* | --disable-* \
1765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767 | -with-* | --with-* | -without-* | --without-* | --x)
1768 case "$ac_configure_args0 " in
1769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1772 -* ) ac_must_keep_next=true ;;
1775 ac_configure_args="$ac_configure_args '$ac_arg'"
1780 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1783 # When interrupted or exit'd, cleanup temporary files, and complete
1784 # config.log. We remove comments because anyway the quotes in there
1785 # would cause problems or look ugly.
1786 # WARNING: Use '\'' to represent an apostrophe within the trap.
1787 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1788 trap 'exit_status=$?
1789 # Save into config.log some information that might help in debugging.
1794 ## ---------------- ##
1795 ## Cache variables. ##
1796 ## ---------------- ##
1799 # The following way of writing the cache mishandles newlines in values,
1801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802 eval ac_val=\$$ac_var
1806 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1807 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1810 _ | IFS | as_nl) ;; #(
1811 *) $as_unset $ac_var ;;
1816 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1817 *${as_nl}ac_space=\ *)
1819 "s/'\''/'\''\\\\'\'''\''/g;
1820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1831 ## ----------------- ##
1832 ## Output variables. ##
1833 ## ----------------- ##
1836 for ac_var in $ac_subst_vars
1838 eval ac_val=\$$ac_var
1840 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842 echo "$ac_var='\''$ac_val'\''"
1846 if test -n "$ac_subst_files"; then
1848 ## ------------------- ##
1849 ## File substitutions. ##
1850 ## ------------------- ##
1853 for ac_var in $ac_subst_files
1855 eval ac_val=\$$ac_var
1857 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 echo "$ac_var='\''$ac_val'\''"
1864 if test -s confdefs.h; then
1874 test "$ac_signal" != 0 &&
1875 echo "$as_me: caught signal $ac_signal"
1876 echo "$as_me: exit $exit_status"
1878 rm -f core *.core core.conftest.* &&
1879 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1882 for ac_signal in 1 2 13 15; do
1883 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1887 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1888 rm -f -r conftest* confdefs.h
1890 # Predefined preprocessor variables.
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_NAME "$PACKAGE_NAME"
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_STRING "$PACKAGE_STRING"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1917 # Let the site file select an alternate cache file if it wants to.
1918 # Prefer explicitly selected file to automatically selected ones.
1919 if test -n "$CONFIG_SITE"; then
1920 set x "$CONFIG_SITE"
1921 elif test "x$prefix" != xNONE; then
1922 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1924 set x "$ac_default_prefix/share/config.site" \
1925 "$ac_default_prefix/etc/config.site"
1930 if test -r "$ac_site_file"; then
1931 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932 echo "$as_me: loading site script $ac_site_file" >&6;}
1933 sed 's/^/| /' "$ac_site_file" >&5
1938 if test -r "$cache_file"; then
1939 # Some versions of bash will fail to source /dev/null (special
1940 # files actually), so we avoid doing that.
1941 if test -f "$cache_file"; then
1942 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943 echo "$as_me: loading cache $cache_file" >&6;}
1945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946 *) . "./$cache_file";;
1950 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951 echo "$as_me: creating cache $cache_file" >&6;}
1955 # Check that the precious variables saved in the cache have kept the same
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
1961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1969 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1976 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1977 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1978 echo "$as_me: former value: $ac_old_val" >&2;}
1979 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1980 echo "$as_me: current value: $ac_new_val" >&2;}
1981 ac_cache_corrupted=:
1984 # Pass precious variables to config.status.
1985 if test "$ac_new_set" = set; then
1987 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1988 *) ac_arg=$ac_var=$ac_new_val ;;
1990 case " $ac_configure_args " in
1991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1992 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1996 if $ac_cache_corrupted; then
1997 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1998 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1999 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2000 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2001 { (exit 1); exit 1; }; }
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2045 for ac_dir in autoconf "$srcdir"/autoconf; do
2046 if test -f "$ac_dir/install-sh"; then
2048 ac_install_sh="$ac_aux_dir/install-sh -c"
2050 elif test -f "$ac_dir/install.sh"; then
2052 ac_install_sh="$ac_aux_dir/install.sh -c"
2054 elif test -f "$ac_dir/shtool"; then
2056 ac_install_sh="$ac_aux_dir/shtool install -c"
2060 if test -z "$ac_aux_dir"; then
2061 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2062 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2063 { (exit 1); exit 1; }; }
2066 # These three variables are undocumented and unsupported,
2067 # and are intended to be withdrawn in a future Autoconf release.
2068 # They can cause serious problems if a builder's source tree is in a directory
2069 # whose full name contains unusual characters.
2070 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2076 if test ${srcdir} != "." ; then
2077 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2078 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2079 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2080 { (exit 1); exit 1; }; }
2084 for i in `ls ${srcdir}/projects`
2086 if test -d ${srcdir}/projects/${i} ; then
2089 sample) subdirs="$subdirs projects/sample"
2091 privbracket) subdirs="$subdirs projects/privbracket"
2093 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2095 # llvm-test is the old name of the test-suite, kept here for backwards
2097 llvm-test) subdirs="$subdirs projects/llvm-test"
2099 test-suite) subdirs="$subdirs projects/test-suite"
2101 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2103 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2105 llvm-java) subdirs="$subdirs projects/llvm-java"
2107 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2109 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2111 poolalloc) subdirs="$subdirs projects/poolalloc"
2113 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2116 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2117 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2124 # Make sure we can run config.sub.
2125 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2126 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2127 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2128 { (exit 1); exit 1; }; }
2130 { echo "$as_me:$LINENO: checking build system type" >&5
2131 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2132 if test "${ac_cv_build+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 ac_build_alias=$build_alias
2136 test "x$ac_build_alias" = x &&
2137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2138 test "x$ac_build_alias" = x &&
2139 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2140 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2141 { (exit 1); exit 1; }; }
2142 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2148 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2149 echo "${ECHO_T}$ac_cv_build" >&6; }
2150 case $ac_cv_build in
2152 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2153 echo "$as_me: error: invalid value of canonical build" >&2;}
2154 { (exit 1); exit 1; }; };;
2157 ac_save_IFS=$IFS; IFS='-'
2163 # Remember, the first character of IFS is used to create $*,
2164 # except with old shells:
2167 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2170 { echo "$as_me:$LINENO: checking host system type" >&5
2171 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2172 if test "${ac_cv_host+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test "x$host_alias" = x; then
2176 ac_cv_host=$ac_cv_build
2178 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2179 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2180 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2181 { (exit 1); exit 1; }; }
2185 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2186 echo "${ECHO_T}$ac_cv_host" >&6; }
2189 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2190 echo "$as_me: error: invalid value of canonical host" >&2;}
2191 { (exit 1); exit 1; }; };;
2194 ac_save_IFS=$IFS; IFS='-'
2200 # Remember, the first character of IFS is used to create $*,
2201 # except with old shells:
2204 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2207 { echo "$as_me:$LINENO: checking target system type" >&5
2208 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2209 if test "${ac_cv_target+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test "x$target_alias" = x; then
2213 ac_cv_target=$ac_cv_host
2215 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2216 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2217 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2218 { (exit 1); exit 1; }; }
2222 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2223 echo "${ECHO_T}$ac_cv_target" >&6; }
2224 case $ac_cv_target in
2226 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2227 echo "$as_me: error: invalid value of canonical target" >&2;}
2228 { (exit 1); exit 1; }; };;
2230 target=$ac_cv_target
2231 ac_save_IFS=$IFS; IFS='-'
2237 # Remember, the first character of IFS is used to create $*,
2238 # except with old shells:
2241 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2244 # The aliases save the names the user supplied, while $host etc.
2245 # will get canonicalized.
2246 test -n "$target_alias" &&
2247 test "$program_prefix$program_suffix$program_transform_name" = \
2249 program_prefix=${target_alias}-
2251 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2252 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2253 if test "${llvm_cv_os_type+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 llvm_cv_link_all_option="-Wl,--whole-archive"
2259 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2260 llvm_cv_os_type="AIX"
2261 llvm_cv_platform_type="Unix" ;;
2263 llvm_cv_link_all_option="-Wl,--whole-archive"
2264 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2265 llvm_cv_os_type="IRIX"
2266 llvm_cv_platform_type="Unix" ;;
2268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270 llvm_cv_os_type="Cygwin"
2271 llvm_cv_platform_type="Unix" ;;
2273 llvm_cv_link_all_option="-Wl,-all_load"
2274 llvm_cv_no_link_all_option="-Wl,-noall_load"
2275 llvm_cv_os_type="Darwin"
2276 llvm_cv_platform_type="Unix" ;;
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="FreeBSD"
2281 llvm_cv_platform_type="Unix" ;;
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="OpenBSD"
2286 llvm_cv_platform_type="Unix" ;;
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="NetBSD"
2291 llvm_cv_platform_type="Unix" ;;
2293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295 llvm_cv_os_type="DragonFly"
2296 llvm_cv_platform_type="Unix" ;;
2298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300 llvm_cv_os_type="HP-UX"
2301 llvm_cv_platform_type="Unix" ;;
2303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305 llvm_cv_os_type="Interix"
2306 llvm_cv_platform_type="Unix" ;;
2308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310 llvm_cv_os_type="Linux"
2311 llvm_cv_platform_type="Unix" ;;
2313 llvm_cv_link_all_option="-Wl,-z,allextract"
2314 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2315 llvm_cv_os_type="SunOS"
2316 llvm_cv_platform_type="Unix" ;;
2318 llvm_cv_link_all_option="-Wl,--whole-archive"
2319 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2320 llvm_cv_os_type="Win32"
2321 llvm_cv_platform_type="Win32" ;;
2323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2325 llvm_cv_os_type="MingW"
2326 llvm_cv_platform_type="Win32" ;;
2328 llvm_cv_link_all_option=""
2329 llvm_cv_no_link_all_option=""
2330 llvm_cv_os_type="Unknown"
2331 llvm_cv_platform_type="Unknown" ;;
2334 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2335 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2337 if test "$llvm_cv_os_type" = "Unknown" ; then
2338 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2339 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2340 { (exit 1); exit 1; }; }
2346 LINKALL=$llvm_cv_link_all_option
2348 NOLINKALL=$llvm_cv_no_link_all_option
2351 case $llvm_cv_platform_type in
2354 cat >>confdefs.h <<\_ACEOF
2355 #define LLVM_ON_UNIX 1
2365 cat >>confdefs.h <<\_ACEOF
2366 #define LLVM_ON_WIN32 1
2376 { echo "$as_me:$LINENO: checking target architecture" >&5
2377 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2378 if test "${llvm_cv_target_arch+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 i?86-*) llvm_cv_target_arch="x86" ;;
2383 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2384 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2385 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2386 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2387 ia64-*) llvm_cv_target_arch="IA64" ;;
2388 arm*-*) llvm_cv_target_arch="ARM" ;;
2389 mips-*) llvm_cv_target_arch="Mips" ;;
2390 pic16-*) llvm_cv_target_arch="PIC16" ;;
2391 xcore-*) llvm_cv_target_arch="XCore" ;;
2392 msp430-*) llvm_cv_target_arch="MSP430" ;;
2393 *) llvm_cv_target_arch="Unknown" ;;
2396 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2397 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2399 if test "$llvm_cv_target_arch" = "Unknown" ; then
2400 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2401 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2404 ARCH=$llvm_cv_target_arch
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412 if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2417 if test "${ac_cv_prog_CC+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 if test -n "$CC"; then
2442 { echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6; }
2445 { echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6; }
2451 if test -z "$ac_cv_prog_CC"; then
2453 # Extract the first word of "gcc", so it can be a program name with args.
2454 set dummy gcc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_ac_ct_CC="gcc"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481 if test -n "$ac_ct_CC"; then
2482 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2483 echo "${ECHO_T}$ac_ct_CC" >&6; }
2485 { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2489 if test "x$ac_ct_CC" = x; then
2492 case $cross_compiling:$ac_tool_warned in
2494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2495 whose name does not start with the host triplet. If you think this
2496 configuration is useful to you, please write to autoconf@gnu.org." >&5
2497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2498 whose name does not start with the host triplet. If you think this
2499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2500 ac_tool_warned=yes ;;
2508 if test -z "$CC"; then
2509 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2511 set dummy ${ac_tool_prefix}cc; ac_word=$2
2512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2514 if test "${ac_cv_prog_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2527 ac_cv_prog_CC="${ac_tool_prefix}cc"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 if test -n "$CC"; then
2539 { echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6; }
2542 { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2549 if test -z "$CC"; then
2550 # Extract the first word of "cc", so it can be a program name with args.
2551 set dummy cc; ac_word=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2569 ac_prog_rejected=yes
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 if test $ac_prog_rejected = yes; then
2581 # We found a bogon in the path, so make sure we never use it.
2582 set dummy $ac_cv_prog_CC
2584 if test $# != 0; then
2585 # We chose a different compiler from the bogus one.
2586 # However, it has the same basename, so the bogon will be chosen
2587 # first if we set CC to just the basename; use the full file name.
2589 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2595 if test -n "$CC"; then
2596 { echo "$as_me:$LINENO: result: $CC" >&5
2597 echo "${ECHO_T}$CC" >&6; }
2599 { echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6; }
2605 if test -z "$CC"; then
2606 if test -n "$ac_tool_prefix"; then
2607 for ac_prog in cl.exe
2609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 if test -n "$CC"; then
2638 { echo "$as_me:$LINENO: result: $CC" >&5
2639 echo "${ECHO_T}$CC" >&6; }
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2646 test -n "$CC" && break
2649 if test -z "$CC"; then
2651 for ac_prog in cl.exe
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 if test -n "$ac_ct_CC"; then
2661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_ac_ct_CC="$ac_prog"
2671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2681 if test -n "$ac_ct_CC"; then
2682 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2683 echo "${ECHO_T}$ac_ct_CC" >&6; }
2685 { echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6; }
2690 test -n "$ac_ct_CC" && break
2693 if test "x$ac_ct_CC" = x; then
2696 case $cross_compiling:$ac_tool_warned in
2698 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2699 whose name does not start with the host triplet. If you think this
2700 configuration is useful to you, please write to autoconf@gnu.org." >&5
2701 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2702 whose name does not start with the host triplet. If you think this
2703 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2704 ac_tool_warned=yes ;;
2713 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2714 See \`config.log' for more details." >&5
2715 echo "$as_me: error: no acceptable C compiler found in \$PATH
2716 See \`config.log' for more details." >&2;}
2717 { (exit 1); exit 1; }; }
2719 # Provide some information about the compiler.
2720 echo "$as_me:$LINENO: checking for C compiler version" >&5
2721 ac_compiler=`set X $ac_compile; echo $2`
2722 { (ac_try="$ac_compiler --version >&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 --version >&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); }
2742 { (ac_try="$ac_compiler -V >&5"
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -V >&5") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2753 cat >conftest.$ac_ext <<_ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2768 ac_clean_files_save=$ac_clean_files
2769 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2770 # Try to create an executable without -o first, disregard a.out.
2771 # It will help us diagnose broken compilers, and finding out an intuition
2773 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2774 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2775 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2777 # List of possible output files, starting from the most likely.
2778 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2779 # only as a last resort. b.out is created by i960 compilers.
2780 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2782 # The IRIX 6 linker writes into existing files which may not be
2783 # executable, retaining their permissions. Remove them first so a
2784 # subsequent execution test works.
2786 for ac_file in $ac_files
2789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2795 if { (ac_try="$ac_link_default"
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_link_default") 2>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; then
2805 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2806 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2807 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2808 # so that the user can short-circuit this test for compilers unknown to
2810 for ac_file in $ac_files
2812 test -f "$ac_file" || continue
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2817 # We found the default executable, but exeext='' is most
2821 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2823 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2825 # We set ac_cv_exeext here because the later test for it is not
2826 # safe: cross compilers may not add the suffix if given an `-o'
2827 # argument, so we may need to know it at that point already.
2828 # Even if this section looks crufty: it has the advantage of
2835 test "$ac_cv_exeext" = no && ac_cv_exeext=
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2841 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2842 See \`config.log' for more details." >&5
2843 echo "$as_me: error: C compiler cannot create executables
2844 See \`config.log' for more details." >&2;}
2845 { (exit 77); exit 77; }; }
2848 ac_exeext=$ac_cv_exeext
2849 { echo "$as_me:$LINENO: result: $ac_file" >&5
2850 echo "${ECHO_T}$ac_file" >&6; }
2852 # Check that the compiler produces executables we can run. If not, either
2853 # the compiler is broken, or we cross compile.
2854 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2855 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2856 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2857 # If not cross compiling, check that we can run a simple program.
2858 if test "$cross_compiling" != yes; then
2859 if { ac_try='./$ac_file'
2860 { (case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_try") 2>&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2871 if test "$cross_compiling" = maybe; then
2874 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2875 If you meant to cross compile, use \`--host'.
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: cannot run C compiled programs.
2878 If you meant to cross compile, use \`--host'.
2879 See \`config.log' for more details." >&2;}
2880 { (exit 1); exit 1; }; }
2884 { echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6; }
2887 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2888 ac_clean_files=$ac_clean_files_save
2889 # Check that the compiler produces executables we can run. If not, either
2890 # the compiler is broken, or we cross compile.
2891 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2892 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2893 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2894 echo "${ECHO_T}$cross_compiling" >&6; }
2896 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2897 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2898 if { (ac_try="$ac_link"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_link") 2>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; then
2908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2909 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2910 # work properly (i.e., refer to `conftest.exe'), while it won't with
2912 for ac_file in conftest.exe conftest conftest.*; do
2913 test -f "$ac_file" || continue
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2922 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2925 See \`config.log' for more details." >&2;}
2926 { (exit 1); exit 1; }; }
2929 rm -f conftest$ac_cv_exeext
2930 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2931 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2933 rm -f conftest.$ac_ext
2934 EXEEXT=$ac_cv_exeext
2936 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2937 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2938 if test "${ac_cv_objext+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2956 rm -f conftest.o conftest.obj
2957 if { (ac_try="$ac_compile"
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compile") 2>&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; then
2967 for ac_file in conftest.o conftest.obj conftest.*; do
2968 test -f "$ac_file" || continue;
2970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2980 See \`config.log' for more details." >&5
2981 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2982 See \`config.log' for more details." >&2;}
2983 { (exit 1); exit 1; }; }
2986 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2988 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2989 echo "${ECHO_T}$ac_cv_objext" >&6; }
2990 OBJEXT=$ac_cv_objext
2992 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2993 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2994 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 cat >conftest.$ac_ext <<_ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3015 rm -f conftest.$ac_objext
3016 if { (ac_try="$ac_compile"
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compile") 2>conftest.er1
3024 grep -v '^ *+' conftest.er1 >conftest.err
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } &&
3029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3061 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3062 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3063 GCC=`test $ac_compiler_gnu = yes && echo yes`
3064 ac_test_CFLAGS=${CFLAGS+set}
3065 ac_save_CFLAGS=$CFLAGS
3066 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3067 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3068 if test "${ac_cv_prog_cc_g+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 ac_save_c_werror_flag=$ac_c_werror_flag
3072 ac_c_werror_flag=yes
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_compile") 2>conftest.er1
3154 grep -v '^ *+' conftest.er1 >conftest.err
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3186 cat >conftest.$ac_ext <<_ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } &&
3215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_try") 2>&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3252 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3254 if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256 elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3263 if test "$GCC" = yes; then
3269 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3270 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3271 if test "${ac_cv_prog_cc_c89+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 ac_cv_prog_cc_c89=no
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3284 #include <sys/types.h>
3285 #include <sys/stat.h>
3286 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287 struct buf { int x; };
3288 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289 static char *e (p, i)
3295 static char *f (char * (*g) (char **, int), char **p, ...)
3300 s = g (p, va_arg (v,int));
3305 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
3308 as 'x'. The following induces an error, until -std is added to get
3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
3311 that's true only with -std. */
3312 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3314 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3315 inside strings and character constants. */
3317 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3319 int test (int i, double x);
3320 struct s1 {int (*f) (int a);};
3321 struct s2 {int (*f) (double a);};
3322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3333 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336 CC="$ac_save_CC $ac_arg"
3337 rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_compile") 2>conftest.er1
3346 grep -v '^ *+' conftest.er1 >conftest.err
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3361 { ac_try='test -s conftest.$ac_objext'
3362 { (case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_try") 2>&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 ac_cv_prog_cc_c89=$ac_arg
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3379 rm -f core conftest.err conftest.$ac_objext
3380 test "x$ac_cv_prog_cc_c89" != "xno" && break
3382 rm -f conftest.$ac_ext
3387 case "x$ac_cv_prog_cc_c89" in
3389 { echo "$as_me:$LINENO: result: none needed" >&5
3390 echo "${ECHO_T}none needed" >&6; } ;;
3392 { echo "$as_me:$LINENO: result: unsupported" >&5
3393 echo "${ECHO_T}unsupported" >&6; } ;;
3395 CC="$CC $ac_cv_prog_cc_c89"
3396 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3397 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3414 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3415 # On Suns, sometimes $CPP names a directory.
3416 if test -n "$CPP" && test -d "$CPP"; then
3419 if test -z "$CPP"; then
3420 if test "${ac_cv_prog_CPP+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 # Double quotes because CPP needs to be expanded
3424 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3427 for ac_c_preproc_warn_flag in '' yes
3429 # Use a header file that comes with gcc, so configuring glibc
3430 # with a fresh cross-compiler works.
3431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3432 # <limits.h> exists even on freestanding compilers.
3433 # On the NeXT, cc -E runs the code through the compiler's parser,
3434 # not just through cpp. "Syntax error" is here to catch this case.
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3442 # include <limits.h>
3444 # include <assert.h>
3448 if { (ac_try="$ac_cpp conftest.$ac_ext"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3456 grep -v '^ *+' conftest.er1 >conftest.err
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } >/dev/null; then
3461 if test -s conftest.err; then
3462 ac_cpp_err=$ac_c_preproc_warn_flag
3463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470 if test -z "$ac_cpp_err"; then
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 # Broken: fails on valid input.
3480 rm -f conftest.err conftest.$ac_ext
3482 # OK, works on sane cases. Now check whether nonexistent headers
3483 # can be detected and how.
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 #include <ac_nonexistent.h>
3492 if { (ac_try="$ac_cpp conftest.$ac_ext"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3500 grep -v '^ *+' conftest.er1 >conftest.err
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } >/dev/null; then
3505 if test -s conftest.err; then
3506 ac_cpp_err=$ac_c_preproc_warn_flag
3507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3514 if test -z "$ac_cpp_err"; then
3515 # Broken: success on invalid input.
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 # Passes both tests.
3526 rm -f conftest.err conftest.$ac_ext
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then
3543 { echo "$as_me:$LINENO: result: $CPP" >&5
3544 echo "${ECHO_T}$CPP" >&6; }
3546 for ac_c_preproc_warn_flag in '' yes
3548 # Use a header file that comes with gcc, so configuring glibc
3549 # with a fresh cross-compiler works.
3550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3551 # <limits.h> exists even on freestanding compilers.
3552 # On the NeXT, cc -E runs the code through the compiler's parser,
3553 # not just through cpp. "Syntax error" is here to catch this case.
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3561 # include <limits.h>
3563 # include <assert.h>
3567 if { (ac_try="$ac_cpp conftest.$ac_ext"
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3575 grep -v '^ *+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3589 if test -z "$ac_cpp_err"; then
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595 # Broken: fails on valid input.
3599 rm -f conftest.err conftest.$ac_ext
3601 # OK, works on sane cases. Now check whether nonexistent headers
3602 # can be detected and how.
3603 cat >conftest.$ac_ext <<_ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3609 #include <ac_nonexistent.h>
3611 if { (ac_try="$ac_cpp conftest.$ac_ext"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } >/dev/null; then
3624 if test -s conftest.err; then
3625 ac_cpp_err=$ac_c_preproc_warn_flag
3626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3633 if test -z "$ac_cpp_err"; then
3634 # Broken: success on invalid input.
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 # Passes both tests.
3645 rm -f conftest.err conftest.$ac_ext
3648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649 rm -f conftest.err conftest.$ac_ext
3650 if $ac_preproc_ok; then
3653 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3654 See \`config.log' for more details." >&5
3655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3656 See \`config.log' for more details." >&2;}
3657 { (exit 1); exit 1; }; }
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3668 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3669 if test "${ac_cv_path_GREP+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 # Extract the first word of "grep ggrep" to use in msg output
3673 if test -z "$GREP"; then
3674 set dummy grep ggrep; ac_prog_name=$2
3675 if test "${ac_cv_path_GREP+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 ac_path_GREP_found=false
3679 # Loop through the user's path and test for each of PROGNAME-LIST
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3684 test -z "$as_dir" && as_dir=.
3685 for ac_prog in grep ggrep; do
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3688 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3689 # Check for GNU ac_path_GREP and select it if it is found.
3690 # Check for GNU $ac_path_GREP
3691 case `"$ac_path_GREP" --version 2>&1` in
3693 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3696 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3699 cat "conftest.in" "conftest.in" >"conftest.tmp"
3700 mv "conftest.tmp" "conftest.in"
3701 cp "conftest.in" "conftest.nl"
3702 echo 'GREP' >> "conftest.nl"
3703 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3705 ac_count=`expr $ac_count + 1`
3706 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3707 # Best one so far, save it but keep looking for a better one
3708 ac_cv_path_GREP="$ac_path_GREP"
3709 ac_path_GREP_max=$ac_count
3711 # 10*(2^10) chars as input seems more than enough
3712 test $ac_count -gt 10 && break
3714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3718 $ac_path_GREP_found && break 3
3728 GREP="$ac_cv_path_GREP"
3729 if test -z "$GREP"; then
3730 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3731 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3732 { (exit 1); exit 1; }; }
3736 ac_cv_path_GREP=$GREP
3741 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3742 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3743 GREP="$ac_cv_path_GREP"
3746 { echo "$as_me:$LINENO: checking for egrep" >&5
3747 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3752 then ac_cv_path_EGREP="$GREP -E"
3754 # Extract the first word of "egrep" to use in msg output
3755 if test -z "$EGREP"; then
3756 set dummy egrep; ac_prog_name=$2
3757 if test "${ac_cv_path_EGREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 ac_path_EGREP_found=false
3761 # Loop through the user's path and test for each of PROGNAME-LIST
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3766 test -z "$as_dir" && as_dir=.
3767 for ac_prog in egrep; do
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3770 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3771 # Check for GNU ac_path_EGREP and select it if it is found.
3772 # Check for GNU $ac_path_EGREP
3773 case `"$ac_path_EGREP" --version 2>&1` in
3775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3778 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3781 cat "conftest.in" "conftest.in" >"conftest.tmp"
3782 mv "conftest.tmp" "conftest.in"
3783 cp "conftest.in" "conftest.nl"
3784 echo 'EGREP' >> "conftest.nl"
3785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787 ac_count=`expr $ac_count + 1`
3788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3789 # Best one so far, save it but keep looking for a better one
3790 ac_cv_path_EGREP="$ac_path_EGREP"
3791 ac_path_EGREP_max=$ac_count
3793 # 10*(2^10) chars as input seems more than enough
3794 test $ac_count -gt 10 && break
3796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3800 $ac_path_EGREP_found && break 3
3810 EGREP="$ac_cv_path_EGREP"
3811 if test -z "$EGREP"; then
3812 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3813 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3814 { (exit 1); exit 1; }; }
3818 ac_cv_path_EGREP=$EGREP
3824 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3825 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3826 EGREP="$ac_cv_path_EGREP"
3829 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3831 if test "${ac_cv_header_stdc+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 cat >conftest.$ac_ext <<_ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3853 rm -f conftest.$ac_objext
3854 if { (ac_try="$ac_compile"
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_compile") 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3868 { (case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_try") 2>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_try") 2>&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
3887 ac_cv_header_stdc=yes
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 ac_cv_header_stdc=no
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 if test $ac_cv_header_stdc = yes; then
3898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909 $EGREP "memchr" >/dev/null 2>&1; then
3912 ac_cv_header_stdc=no
3918 if test $ac_cv_header_stdc = yes; then
3919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3920 cat >conftest.$ac_ext <<_ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3930 $EGREP "free" >/dev/null 2>&1; then
3933 ac_cv_header_stdc=no
3939 if test $ac_cv_header_stdc = yes; then
3940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3941 if test "$cross_compiling" = yes; then
3944 cat >conftest.$ac_ext <<_ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3952 #if ((' ' & 0x0FF) == 0x020)
3953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3956 # define ISLOWER(c) \
3957 (('a' <= (c) && (c) <= 'i') \
3958 || ('j' <= (c) && (c) <= 'r') \
3959 || ('s' <= (c) && (c) <= 'z'))
3960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3968 for (i = 0; i < 256; i++)
3969 if (XOR (islower (i), ISLOWER (i))
3970 || toupper (i) != TOUPPER (i))
3975 rm -f conftest$ac_exeext
3976 if { (ac_try="$ac_link"
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_link") 2>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3986 { (case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_try") 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3997 echo "$as_me: program exited with status $ac_status" >&5
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4002 ac_cv_header_stdc=no
4004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4010 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4011 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4012 if test $ac_cv_header_stdc = yes; then
4014 cat >>confdefs.h <<\_ACEOF
4015 #define STDC_HEADERS 1
4020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4031 inttypes.h stdint.h unistd.h
4033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 $ac_includes_default
4047 #include <$ac_header>
4049 rm -f conftest.$ac_objext
4050 if { (ac_try="$ac_compile"
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_compile") 2>conftest.er1
4058 grep -v '^ *+' conftest.er1 >conftest.err
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4064 { (case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_try") 2>&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
4074 { (case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_try") 2>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 eval "$as_ac_Header=yes"
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088 eval "$as_ac_Header=no"
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_res=`eval echo '${'$as_ac_Header'}'`
4094 { echo "$as_me:$LINENO: result: $ac_res" >&5
4095 echo "${ECHO_T}$ac_res" >&6; }
4096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4097 cat >>confdefs.h <<_ACEOF
4098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4106 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4107 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4108 if test "${ac_cv_c_bigendian+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 # See if sys/param.h defines the BYTE_ORDER macro.
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4118 #include <sys/types.h>
4119 #include <sys/param.h>
4124 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4141 grep -v '^ *+' conftest.er1 >conftest.err
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_try") 2>&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 # It does; now see whether it defined to BIG_ENDIAN or not.
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 #include <sys/types.h>
4174 #include <sys/param.h>
4179 #if BYTE_ORDER != BIG_ENDIAN
4187 rm -f conftest.$ac_objext
4188 if { (ac_try="$ac_compile"
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_compile") 2>conftest.er1
4196 grep -v '^ *+' conftest.er1 >conftest.err
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4202 { (case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_try") 2>&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_try") 2>&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_cv_c_bigendian=yes
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 ac_cv_c_bigendian=no
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 # It does not; compile a test program.
4235 if test "$cross_compiling" = yes; then
4236 # try to guess the endianness by grepping values into an object file
4237 ac_cv_c_bigendian=unknown
4238 cat >conftest.$ac_ext <<_ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4245 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4246 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4247 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4248 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4249 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4253 _ascii (); _ebcdic ();
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4267 grep -v '^ *+' conftest.er1 >conftest.err
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4292 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4293 ac_cv_c_bigendian=yes
4295 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4296 if test "$ac_cv_c_bigendian" = unknown; then
4297 ac_cv_c_bigendian=no
4299 # finding both strings is unlikely to happen, but who knows?
4300 ac_cv_c_bigendian=unknown
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 $ac_includes_default
4323 /* Are we little or big endian? From Harbison&Steele. */
4327 char c[sizeof (long int)];
4330 return u.c[sizeof (long int) - 1] == 1;
4336 rm -f conftest$ac_exeext
4337 if { (ac_try="$ac_link"
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_link") 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4347 { (case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_c_bigendian=no
4358 echo "$as_me: program exited with status $ac_status" >&5
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4363 ac_cv_c_bigendian=yes
4365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4374 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4375 case $ac_cv_c_bigendian in
4383 { { echo "$as_me:$LINENO: error: unknown endianness
4384 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4385 echo "$as_me: error: unknown endianness
4386 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4387 { (exit 1); exit 1; }; } ;;
4391 if test "$cross_compiling" = yes; then
4392 LLVM_CROSS_COMPILING=1
4395 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4396 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4397 if test "${ac_cv_build_exeext+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4401 ac_cv_build_exeext=.exe
4403 ac_build_prefix=${build_alias}-
4405 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4406 set dummy ${ac_build_prefix}gcc; ac_word=$2
4407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4409 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 if test -n "$BUILD_CC"; then
4413 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 BUILD_CC=$ac_cv_prog_BUILD_CC
4433 if test -n "$BUILD_CC"; then
4434 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4435 echo "${ECHO_T}$BUILD_CC" >&6; }
4437 { echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6; }
4442 if test -z "$BUILD_CC"; then
4443 # Extract the first word of "gcc", so it can be a program name with args.
4444 set dummy gcc; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 if test -n "$BUILD_CC"; then
4451 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_prog_BUILD_CC="gcc"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 BUILD_CC=$ac_cv_prog_BUILD_CC
4471 if test -n "$BUILD_CC"; then
4472 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4473 echo "${ECHO_T}$BUILD_CC" >&6; }
4475 { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4480 if test -z "$BUILD_CC"; then
4481 # Extract the first word of "cc", so it can be a program name with args.
4482 set dummy cc; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 if test -n "$BUILD_CC"; then
4489 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4500 ac_prog_rejected=yes
4503 ac_cv_prog_BUILD_CC="cc"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 if test $ac_prog_rejected = yes; then
4512 # We found a bogon in the path, so make sure we never use it.
4513 set dummy $ac_cv_prog_BUILD_CC
4515 if test $# != 0; then
4516 # We chose a different compiler from the bogus one.
4517 # However, it has the same basename, so the bogon will be chosen
4518 # first if we set BUILD_CC to just the basename; use the full file name.
4520 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4525 BUILD_CC=$ac_cv_prog_BUILD_CC
4526 if test -n "$BUILD_CC"; then
4527 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4528 echo "${ECHO_T}$BUILD_CC" >&6; }
4530 { echo "$as_me:$LINENO: result: no" >&5
4531 echo "${ECHO_T}no" >&6; }
4537 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4538 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4539 { (exit 1); exit 1; }; }
4540 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4542 echo 'int main () { return 0; }' > conftest.$ac_ext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4545 (eval $ac_build_link) 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; then
4549 for file in conftest.*; do
4551 *.c | *.o | *.obj | *.dSYM) ;;
4552 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4556 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4557 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4558 { (exit 1); exit 1; }; }
4561 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4566 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4567 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4568 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4569 ac_build_exeext=$BUILD_EXEEXT
4571 ac_build_prefix=${build_alias}-
4572 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4573 set dummy ${ac_build_prefix}g++; ac_word=$2
4574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4576 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 if test -n "$BUILD_CXX"; then
4580 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4589 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4600 if test -n "$BUILD_CXX"; then
4601 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4602 echo "${ECHO_T}$BUILD_CXX" >&6; }
4604 { echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6; }
4609 if test -z "$BUILD_CXX"; then
4610 # Extract the first word of "g++", so it can be a program name with args.
4611 set dummy g++; ac_word=$2
4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 if test -n "$BUILD_CXX"; then
4618 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_BUILD_CXX="g++"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4638 if test -n "$BUILD_CXX"; then
4639 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4640 echo "${ECHO_T}$BUILD_CXX" >&6; }
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4647 if test -z "$BUILD_CXX"; then
4648 # Extract the first word of "c++", so it can be a program name with args.
4649 set dummy c++; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 if test -n "$BUILD_CXX"; then
4656 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4667 ac_prog_rejected=yes
4670 ac_cv_prog_BUILD_CXX="c++"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 if test $ac_prog_rejected = yes; then
4679 # We found a bogon in the path, so make sure we never use it.
4680 set dummy $ac_cv_prog_BUILD_CXX
4682 if test $# != 0; then
4683 # We chose a different compiler from the bogus one.
4684 # However, it has the same basename, so the bogon will be chosen
4685 # first if we set BUILD_CXX to just the basename; use the full file name.
4687 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4692 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4693 if test -n "$BUILD_CXX"; then
4694 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4695 echo "${ECHO_T}$BUILD_CXX" >&6; }
4697 { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4705 LLVM_CROSS_COMPILING=0
4709 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4720 # Check whether --enable-optimized was given.
4721 if test "${enable_optimized+set}" = set; then
4722 enableval=$enable_optimized;
4727 if test ${enableval} = "no" ; then
4731 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4735 # Check whether --enable-profiling was given.
4736 if test "${enable_profiling+set}" = set; then
4737 enableval=$enable_profiling;
4742 if test ${enableval} = "no" ; then
4746 ENABLE_PROFILING=ENABLE_PROFILING=1
4750 # Check whether --enable-assertions was given.
4751 if test "${enable_assertions+set}" = set; then
4752 enableval=$enable_assertions;
4757 if test ${enableval} = "yes" ; then
4761 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4765 # Check whether --enable-expensive-checks was given.
4766 if test "${enable_expensive_checks+set}" = set; then
4767 enableval=$enable_expensive_checks;
4772 if test ${enableval} = "yes" ; then
4773 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4775 EXPENSIVE_CHECKS=yes
4778 ENABLE_EXPENSIVE_CHECKS=
4784 # Check whether --enable-debug-runtime was given.
4785 if test "${enable_debug_runtime+set}" = set; then
4786 enableval=$enable_debug_runtime;
4791 if test ${enableval} = "no" ; then
4795 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4799 # Check whether --enable-jit was given.
4800 if test "${enable_jit+set}" = set; then
4801 enableval=$enable_jit;
4806 if test ${enableval} = "no"
4811 case "$llvm_cv_target_arch" in
4812 x86) TARGET_HAS_JIT=1
4814 Sparc) TARGET_HAS_JIT=0
4816 PowerPC) TARGET_HAS_JIT=1
4818 x86_64) TARGET_HAS_JIT=1
4820 Alpha) TARGET_HAS_JIT=1
4822 IA64) TARGET_HAS_JIT=0
4824 ARM) TARGET_HAS_JIT=0
4826 Mips) TARGET_HAS_JIT=0
4828 PIC16) TARGET_HAS_JIT=0
4830 XCore) TARGET_HAS_JIT=0
4832 MSP430) TARGET_HAS_JIT=0
4839 # Check whether --enable-doxygen was given.
4840 if test "${enable_doxygen+set}" = set; then
4841 enableval=$enable_doxygen;
4846 case "$enableval" in
4847 yes) ENABLE_DOXYGEN=1
4849 no) ENABLE_DOXYGEN=0
4851 default) ENABLE_DOXYGEN=0
4853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4854 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4855 { (exit 1); exit 1; }; } ;;
4858 # Check whether --enable-threads was given.
4859 if test "${enable_threads+set}" = set; then
4860 enableval=$enable_threads;
4865 case "$enableval" in
4866 yes) ENABLE_THREADS=1
4868 no) ENABLE_THREADS=0
4870 default) ENABLE_THREADS=1
4872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
4877 cat >>confdefs.h <<_ACEOF
4878 #define ENABLE_THREADS $ENABLE_THREADS
4882 # Check whether --enable-pic was given.
4883 if test "${enable_pic+set}" = set; then
4884 enableval=$enable_pic;
4889 case "$enableval" in
4894 default) ENABLE_PIC=1
4896 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4897 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4898 { (exit 1); exit 1; }; } ;;
4901 cat >>confdefs.h <<_ACEOF
4902 #define ENABLE_PIC $ENABLE_PIC
4907 # Check whether --enable-targets was given.
4908 if test "${enable_targets+set}" = set; then
4909 enableval=$enable_targets;
4914 case "$enableval" in
4915 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4917 case "$llvm_cv_target_arch" in
4918 x86) TARGETS_TO_BUILD="X86" ;;
4919 x86_64) TARGETS_TO_BUILD="X86" ;;
4920 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4921 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4922 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4923 IA64) TARGETS_TO_BUILD="IA64" ;;
4924 ARM) TARGETS_TO_BUILD="ARM" ;;
4925 Mips) TARGETS_TO_BUILD="Mips" ;;
4926 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4927 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4928 XCore) TARGETS_TO_BUILD="XCore" ;;
4929 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4930 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4931 echo "$as_me: error: Can not set target to build" >&2;}
4932 { (exit 1); exit 1; }; } ;;
4935 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4937 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4938 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4939 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4940 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4941 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4942 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4943 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4944 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4945 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4946 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4947 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4948 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4949 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4950 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4951 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4952 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4953 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4959 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4962 # Check whether --enable-cbe-printf-a was given.
4963 if test "${enable_cbe_printf_a+set}" = set; then
4964 enableval=$enable_cbe_printf_a;
4969 case "$enableval" in
4970 yes) ENABLE_CBE_PRINTF_A=1
4972 no) ENABLE_CBE_PRINTF_A=0
4974 default) ENABLE_CBE_PRINTF_A=1
4976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4977 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
4981 cat >>confdefs.h <<_ACEOF
4982 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4987 # Check whether --with-llvmgccdir was given.
4988 if test "${with_llvmgccdir+set}" = set; then
4989 withval=$with_llvmgccdir;
4995 default) WITH_LLVMGCCDIR=default ;;
4996 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4997 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4998 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5003 # Check whether --with-llvmgcc was given.
5004 if test "${with_llvmgcc+set}" = set; then
5005 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5011 # Check whether --with-llvmgxx was given.
5012 if test "${with_llvmgxx+set}" = set; then
5013 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5018 if test -n "$LLVMGCC"; then
5019 LLVMGCCCOMMAND="$LLVMGCC"
5022 if test -n "$LLVMGXX"; then
5023 LLVMGXXCOMMAND="$LLVMGXX"
5026 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5027 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5028 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5029 { (exit 1); exit 1; }; };
5032 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5033 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5034 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5035 { (exit 1); exit 1; }; };
5039 # Check whether --with-extra-options was given.
5040 if test "${with_extra_options+set}" = set; then
5041 withval=$with_extra_options;
5047 default) EXTRA_OPTIONS= ;;
5048 *) EXTRA_OPTIONS=$withval ;;
5050 EXTRA_OPTIONS=$EXTRA_OPTIONS
5053 # Check whether --enable-bindings was given.
5054 if test "${enable_bindings+set}" = set; then
5055 enableval=$enable_bindings;
5060 BINDINGS_TO_BUILD=""
5061 case "$enableval" in
5062 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5063 all ) BINDINGS_TO_BUILD="ocaml" ;;
5064 none | no) BINDINGS_TO_BUILD="" ;;
5065 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5066 case "$a_binding" in
5067 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5068 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5069 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5070 { (exit 1); exit 1; }; } ;;
5077 # Check whether --with-ocaml-libdir was given.
5078 if test "${with_ocaml_libdir+set}" = set; then
5079 withval=$with_ocaml_libdir;
5085 auto) with_ocaml_libdir="$withval" ;;
5086 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5087 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5088 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5089 { (exit 1); exit 1; }; } ;;
5093 # Check whether --with-binutils-include was given.
5094 if test "${with_binutils_include+set}" = set; then
5095 withval=$with_binutils_include;
5101 default) WITH_BINUTILS_INCDIR=default ;;
5102 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5103 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5104 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5105 { (exit 1); exit 1; }; } ;;
5107 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5108 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5110 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5111 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5112 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5113 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5114 { (exit 1); exit 1; }; };
5118 # Check whether --enable-libffi was given.
5119 if test "${enable_libffi+set}" = set; then
5120 enableval=$enable_libffi;
5125 case "$enableval" in
5126 yes) llvm_cv_enable_libffi="yes" ;;
5127 no) llvm_cv_enable_libffi="no" ;;
5128 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5129 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5130 { (exit 1); exit 1; }; } ;;
5135 ac_cpp='$CPP $CPPFLAGS'
5136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5140 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5141 # On Suns, sometimes $CPP names a directory.
5142 if test -n "$CPP" && test -d "$CPP"; then
5145 if test -z "$CPP"; then
5146 if test "${ac_cv_prog_CPP+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 # Double quotes because CPP needs to be expanded
5150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5153 for ac_c_preproc_warn_flag in '' yes
5155 # Use a header file that comes with gcc, so configuring glibc
5156 # with a fresh cross-compiler works.
5157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158 # <limits.h> exists even on freestanding compilers.
5159 # On the NeXT, cc -E runs the code through the compiler's parser,
5160 # not just through cpp. "Syntax error" is here to catch this case.
5161 cat >conftest.$ac_ext <<_ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5168 # include <limits.h>
5170 # include <assert.h>
5174 if { (ac_try="$ac_cpp conftest.$ac_ext"
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5182 grep -v '^ *+' conftest.er1 >conftest.err
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null; then
5187 if test -s conftest.err; then
5188 ac_cpp_err=$ac_c_preproc_warn_flag
5189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5196 if test -z "$ac_cpp_err"; then
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 # Broken: fails on valid input.
5206 rm -f conftest.err conftest.$ac_ext
5208 # OK, works on sane cases. Now check whether nonexistent headers
5209 # can be detected and how.
5210 cat >conftest.$ac_ext <<_ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 #include <ac_nonexistent.h>
5218 if { (ac_try="$ac_cpp conftest.$ac_ext"
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 grep -v '^ *+' conftest.er1 >conftest.err
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev/null; then
5231 if test -s conftest.err; then
5232 ac_cpp_err=$ac_c_preproc_warn_flag
5233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5240 if test -z "$ac_cpp_err"; then
5241 # Broken: success on invalid input.
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 # Passes both tests.
5252 rm -f conftest.err conftest.$ac_ext
5255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5256 rm -f conftest.err conftest.$ac_ext
5257 if $ac_preproc_ok; then
5269 { echo "$as_me:$LINENO: result: $CPP" >&5
5270 echo "${ECHO_T}$CPP" >&6; }
5272 for ac_c_preproc_warn_flag in '' yes
5274 # Use a header file that comes with gcc, so configuring glibc
5275 # with a fresh cross-compiler works.
5276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5277 # <limits.h> exists even on freestanding compilers.
5278 # On the NeXT, cc -E runs the code through the compiler's parser,
5279 # not just through cpp. "Syntax error" is here to catch this case.
5280 cat >conftest.$ac_ext <<_ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5287 # include <limits.h>
5289 # include <assert.h>
5293 if { (ac_try="$ac_cpp conftest.$ac_ext"
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5301 grep -v '^ *+' conftest.er1 >conftest.err
5303 cat conftest.err >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } >/dev/null; then
5306 if test -s conftest.err; then
5307 ac_cpp_err=$ac_c_preproc_warn_flag
5308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5315 if test -z "$ac_cpp_err"; then
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5321 # Broken: fails on valid input.
5325 rm -f conftest.err conftest.$ac_ext
5327 # OK, works on sane cases. Now check whether nonexistent headers
5328 # can be detected and how.
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 #include <ac_nonexistent.h>
5337 if { (ac_try="$ac_cpp conftest.$ac_ext"
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5345 grep -v '^ *+' conftest.er1 >conftest.err
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } >/dev/null; then
5350 if test -s conftest.err; then
5351 ac_cpp_err=$ac_c_preproc_warn_flag
5352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5359 if test -z "$ac_cpp_err"; then
5360 # Broken: success on invalid input.
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 # Passes both tests.
5371 rm -f conftest.err conftest.$ac_ext
5374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5375 rm -f conftest.err conftest.$ac_ext
5376 if $ac_preproc_ok; then
5379 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5380 See \`config.log' for more details." >&5
5381 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5382 See \`config.log' for more details." >&2;}
5383 { (exit 1); exit 1; }; }
5387 ac_cpp='$CPP $CPPFLAGS'
5388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 if test -n "$ac_tool_prefix"; then
5400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5404 if test "${ac_cv_prog_CC+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 if test -n "$CC"; then
5408 ac_cv_prog_CC="$CC" # Let the user override the test.
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 if test -n "$CC"; then
5429 { echo "$as_me:$LINENO: result: $CC" >&5
5430 echo "${ECHO_T}$CC" >&6; }
5432 { echo "$as_me:$LINENO: result: no" >&5
5433 echo "${ECHO_T}no" >&6; }
5437 test -n "$CC" && break
5440 if test -z "$CC"; then
5444 # Extract the first word of "$ac_prog", so it can be a program name with args.
5445 set dummy $ac_prog; ac_word=$2
5446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 if test -n "$ac_ct_CC"; then
5452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_prog_ac_ct_CC="$ac_prog"
5462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5472 if test -n "$ac_ct_CC"; then
5473 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5474 echo "${ECHO_T}$ac_ct_CC" >&6; }
5476 { echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6; }
5481 test -n "$ac_ct_CC" && break
5484 if test "x$ac_ct_CC" = x; then
5487 case $cross_compiling:$ac_tool_warned in
5489 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5490 whose name does not start with the host triplet. If you think this
5491 configuration is useful to you, please write to autoconf@gnu.org." >&5
5492 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5493 whose name does not start with the host triplet. If you think this
5494 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5495 ac_tool_warned=yes ;;
5502 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5503 See \`config.log' for more details." >&5
5504 echo "$as_me: error: no acceptable C compiler found in \$PATH
5505 See \`config.log' for more details." >&2;}
5506 { (exit 1); exit 1; }; }
5508 # Provide some information about the compiler.
5509 echo "$as_me:$LINENO: checking for C compiler version" >&5
5510 ac_compiler=`set X $ac_compile; echo $2`
5511 { (ac_try="$ac_compiler --version >&5"
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_compiler --version >&5") 2>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }
5521 { (ac_try="$ac_compiler -v >&5"
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_compiler -v >&5") 2>&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }
5531 { (ac_try="$ac_compiler -V >&5"
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_compiler -V >&5") 2>&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }
5542 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5543 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5544 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_compile") 2>conftest.er1
5574 grep -v '^ *+' conftest.er1 >conftest.err
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } &&
5579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5580 { (case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_try") 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; } &&
5589 { ac_try='test -s conftest.$ac_objext'
5590 { (case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_try") 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5611 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5612 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5613 GCC=`test $ac_compiler_gnu = yes && echo yes`
5614 ac_test_CFLAGS=${CFLAGS+set}
5615 ac_save_CFLAGS=$CFLAGS
5616 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5617 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5618 if test "${ac_cv_prog_cc_g+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 ac_save_c_werror_flag=$ac_c_werror_flag
5622 ac_c_werror_flag=yes
5625 cat >conftest.$ac_ext <<_ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5640 rm -f conftest.$ac_objext
5641 if { (ac_try="$ac_compile"
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_compile") 2>conftest.er1
5649 grep -v '^ *+' conftest.er1 >conftest.err
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5655 { (case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_try") 2>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; } &&
5664 { ac_try='test -s conftest.$ac_objext'
5665 { (case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_try") 2>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5680 cat >conftest.$ac_ext <<_ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5695 rm -f conftest.$ac_objext
5696 if { (ac_try="$ac_compile"
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702 (eval "$ac_compile") 2>conftest.er1
5704 grep -v '^ *+' conftest.er1 >conftest.err
5706 cat conftest.err >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } &&
5709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5710 { (case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_try") 2>&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; } &&
5719 { ac_try='test -s conftest.$ac_objext'
5720 { (case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_try") 2>&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5734 ac_c_werror_flag=$ac_save_c_werror_flag
5736 cat >conftest.$ac_ext <<_ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5766 { (case "(($ac_try" in
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_try") 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_try") 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 ac_c_werror_flag=$ac_save_c_werror_flag
5802 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5803 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5804 if test "$ac_test_CFLAGS" = set; then
5805 CFLAGS=$ac_save_CFLAGS
5806 elif test $ac_cv_prog_cc_g = yes; then
5807 if test "$GCC" = yes; then
5813 if test "$GCC" = yes; then
5819 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5820 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5821 if test "${ac_cv_prog_cc_c89+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 ac_cv_prog_cc_c89=no
5826 cat >conftest.$ac_ext <<_ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5834 #include <sys/types.h>
5835 #include <sys/stat.h>
5836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5837 struct buf { int x; };
5838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5839 static char *e (p, i)
5845 static char *f (char * (*g) (char **, int), char **p, ...)
5850 s = g (p, va_arg (v,int));
5855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5856 function prototypes and stuff, but not '\xHH' hex character constants.
5857 These don't provoke an error unfortunately, instead are silently treated
5858 as 'x'. The following induces an error, until -std is added to get
5859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5860 array size at least. It's necessary to write '\x00'==0 to get something
5861 that's true only with -std. */
5862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5865 inside strings and character constants. */
5867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5869 int test (int i, double x);
5870 struct s1 {int (*f) (int a);};
5871 struct s2 {int (*f) (double a);};
5872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5886 CC="$ac_save_CC $ac_arg"
5887 rm -f conftest.$ac_objext
5888 if { (ac_try="$ac_compile"
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_compile") 2>conftest.er1
5896 grep -v '^ *+' conftest.er1 >conftest.err
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } &&
5901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5902 { (case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_try") 2>&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_try") 2>&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_prog_cc_c89=$ac_arg
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5929 rm -f core conftest.err conftest.$ac_objext
5930 test "x$ac_cv_prog_cc_c89" != "xno" && break
5932 rm -f conftest.$ac_ext
5937 case "x$ac_cv_prog_cc_c89" in
5939 { echo "$as_me:$LINENO: result: none needed" >&5
5940 echo "${ECHO_T}none needed" >&6; } ;;
5942 { echo "$as_me:$LINENO: result: unsupported" >&5
5943 echo "${ECHO_T}unsupported" >&6; } ;;
5945 CC="$CC $ac_cv_prog_cc_c89"
5946 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5947 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5952 ac_cpp='$CPP $CPPFLAGS'
5953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958 ac_cpp='$CXXCPP $CPPFLAGS'
5959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5962 if test -z "$CXX"; then
5963 if test -n "$CCC"; then
5966 if test -n "$ac_tool_prefix"; then
5969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5973 if test "${ac_cv_prog_CXX+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 if test -n "$CXX"; then
5977 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5986 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 if test -n "$CXX"; then
5998 { echo "$as_me:$LINENO: result: $CXX" >&5
5999 echo "${ECHO_T}$CXX" >&6; }
6001 { echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6; }
6006 test -n "$CXX" && break
6009 if test -z "$CXX"; then
6013 # Extract the first word of "$ac_prog", so it can be a program name with args.
6014 set dummy $ac_prog; ac_word=$2
6015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6017 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 if test -n "$ac_ct_CXX"; then
6021 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_ac_ct_CXX="$ac_prog"
6031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6041 if test -n "$ac_ct_CXX"; then
6042 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6043 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6045 { echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6; }
6050 test -n "$ac_ct_CXX" && break
6053 if test "x$ac_ct_CXX" = x; then
6056 case $cross_compiling:$ac_tool_warned in
6058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6059 whose name does not start with the host triplet. If you think this
6060 configuration is useful to you, please write to autoconf@gnu.org." >&5
6061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6062 whose name does not start with the host triplet. If you think this
6063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6064 ac_tool_warned=yes ;;
6072 # Provide some information about the compiler.
6073 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6074 ac_compiler=`set X $ac_compile; echo $2`
6075 { (ac_try="$ac_compiler --version >&5"
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compiler --version >&5") 2>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }
6085 { (ac_try="$ac_compiler -v >&5"
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_compiler -v >&5") 2>&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }
6095 { (ac_try="$ac_compiler -V >&5"
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_compiler -V >&5") 2>&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }
6106 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6107 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6108 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6129 rm -f conftest.$ac_objext
6130 if { (ac_try="$ac_compile"
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compile") 2>conftest.er1
6138 grep -v '^ *+' conftest.er1 >conftest.err
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6144 { (case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_try") 2>&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6175 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6176 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6177 GXX=`test $ac_compiler_gnu = yes && echo yes`
6178 ac_test_CXXFLAGS=${CXXFLAGS+set}
6179 ac_save_CXXFLAGS=$CXXFLAGS
6180 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6181 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6182 if test "${ac_cv_prog_cxx_g+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6186 ac_cxx_werror_flag=yes
6189 cat >conftest.$ac_ext <<_ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6204 rm -f conftest.$ac_objext
6205 if { (ac_try="$ac_compile"
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_compile") 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6219 { (case "(($ac_try" in
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_try") 2>&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; } &&
6228 { ac_try='test -s conftest.$ac_objext'
6229 { (case "(($ac_try" in
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_try") 2>&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_prog_cxx_g=yes
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6244 cat >conftest.$ac_ext <<_ACEOF
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h. */
6259 rm -f conftest.$ac_objext
6260 if { (ac_try="$ac_compile"
6262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263 *) ac_try_echo=$ac_try;;
6265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266 (eval "$ac_compile") 2>conftest.er1
6268 grep -v '^ *+' conftest.er1 >conftest.err
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6274 { (case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_try") 2>&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try='test -s conftest.$ac_objext'
6284 { (case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_try") 2>&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6298 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6300 cat >conftest.$ac_ext <<_ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6315 rm -f conftest.$ac_objext
6316 if { (ac_try="$ac_compile"
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_compile") 2>conftest.er1
6324 grep -v '^ *+' conftest.er1 >conftest.err
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try='test -s conftest.$ac_objext'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_try") 2>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6349 ac_cv_prog_cxx_g=yes
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6366 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6367 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6368 if test "$ac_test_CXXFLAGS" = set; then
6369 CXXFLAGS=$ac_save_CXXFLAGS
6370 elif test $ac_cv_prog_cxx_g = yes; then
6371 if test "$GXX" = yes; then
6377 if test "$GXX" = yes; then
6384 ac_cpp='$CPP $CPPFLAGS'
6385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6390 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6391 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6392 if test "${lt_cv_path_NM+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 if test -n "$NM"; then
6396 # Let the user override the test.
6399 lt_nm_to_check="${ac_tool_prefix}nm"
6400 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6401 lt_nm_to_check="$lt_nm_to_check nm"
6403 for lt_tmp_nm in $lt_nm_to_check; do
6404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6405 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6407 test -z "$ac_dir" && ac_dir=.
6408 tmp_nm="$ac_dir/$lt_tmp_nm"
6409 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6410 # Check to see if the nm accepts a BSD-compat flag.
6411 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6412 # nm: unknown option "B" ignored
6413 # Tru64's nm complains that /dev/null is an invalid object file
6414 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6415 */dev/null* | *'Invalid file or object type'*)
6416 lt_cv_path_NM="$tmp_nm -B"
6420 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6422 lt_cv_path_NM="$tmp_nm -p"
6426 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6427 continue # so that we can try to find one that supports BSD flags
6436 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6439 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6440 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6445 { echo "$as_me:$LINENO: checking for GNU make" >&5
6446 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6447 if test "${llvm_cv_gnu_make_command+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 llvm_cv_gnu_make_command=''
6451 for a in "$MAKE" make gmake gnumake ; do
6452 if test -z "$a" ; then continue ; fi ;
6453 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6455 llvm_cv_gnu_make_command=$a ;
6460 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6461 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6462 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6466 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6467 echo "${ECHO_T}\"Not found\"" >&6; };
6471 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6472 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6474 if test "$LN_S" = "ln -s"; then
6475 { echo "$as_me:$LINENO: result: yes" >&5
6476 echo "${ECHO_T}yes" >&6; }
6478 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6479 echo "${ECHO_T}no, using $LN_S" >&6; }
6482 # Extract the first word of "cmp", so it can be a program name with args.
6483 set dummy cmp; ac_word=$2
6484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6486 if test "${ac_cv_path_CMP+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6514 if test -n "$CMP"; then
6515 { echo "$as_me:$LINENO: result: $CMP" >&5
6516 echo "${ECHO_T}$CMP" >&6; }
6518 { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6523 # Extract the first word of "cp", so it can be a program name with args.
6524 set dummy cp; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_path_CP+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6555 if test -n "$CP"; then
6556 { echo "$as_me:$LINENO: result: $CP" >&5
6557 echo "${ECHO_T}$CP" >&6; }
6559 { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6564 # Extract the first word of "date", so it can be a program name with args.
6565 set dummy date; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_path_DATE+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6583 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6595 DATE=$ac_cv_path_DATE
6596 if test -n "$DATE"; then
6597 { echo "$as_me:$LINENO: result: $DATE" >&5
6598 echo "${ECHO_T}$DATE" >&6; }
6600 { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6605 # Extract the first word of "find", so it can be a program name with args.
6606 set dummy find; ac_word=$2
6607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6609 if test "${ac_cv_path_FIND+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6636 FIND=$ac_cv_path_FIND
6637 if test -n "$FIND"; then
6638 { echo "$as_me:$LINENO: result: $FIND" >&5
6639 echo "${ECHO_T}$FIND" >&6; }
6641 { echo "$as_me:$LINENO: result: no" >&5
6642 echo "${ECHO_T}no" >&6; }
6646 # Extract the first word of "grep", so it can be a program name with args.
6647 set dummy grep; ac_word=$2
6648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650 if test "${ac_cv_path_GREP+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6677 GREP=$ac_cv_path_GREP
6678 if test -n "$GREP"; then
6679 { echo "$as_me:$LINENO: result: $GREP" >&5
6680 echo "${ECHO_T}$GREP" >&6; }
6682 { echo "$as_me:$LINENO: result: no" >&5
6683 echo "${ECHO_T}no" >&6; }
6687 # Extract the first word of "mkdir", so it can be a program name with args.
6688 set dummy mkdir; ac_word=$2
6689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691 if test "${ac_cv_path_MKDIR+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6718 MKDIR=$ac_cv_path_MKDIR
6719 if test -n "$MKDIR"; then
6720 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6721 echo "${ECHO_T}$MKDIR" >&6; }
6723 { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6728 # Extract the first word of "mv", so it can be a program name with args.
6729 set dummy mv; ac_word=$2
6730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6732 if test "${ac_cv_path_MV+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6760 if test -n "$MV"; then
6761 { echo "$as_me:$LINENO: result: $MV" >&5
6762 echo "${ECHO_T}$MV" >&6; }
6764 { echo "$as_me:$LINENO: result: no" >&5
6765 echo "${ECHO_T}no" >&6; }
6769 if test -n "$ac_tool_prefix"; then
6770 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6771 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6774 if test "${ac_cv_prog_RANLIB+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 if test -n "$RANLIB"; then
6778 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 RANLIB=$ac_cv_prog_RANLIB
6798 if test -n "$RANLIB"; then
6799 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6800 echo "${ECHO_T}$RANLIB" >&6; }
6802 { echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6; }
6808 if test -z "$ac_cv_prog_RANLIB"; then
6809 ac_ct_RANLIB=$RANLIB
6810 # Extract the first word of "ranlib", so it can be a program name with args.
6811 set dummy ranlib; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 if test -n "$ac_ct_RANLIB"; then
6818 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_prog_ac_ct_RANLIB="ranlib"
6828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6838 if test -n "$ac_ct_RANLIB"; then
6839 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6840 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6842 { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6846 if test "x$ac_ct_RANLIB" = x; then
6849 case $cross_compiling:$ac_tool_warned in
6851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6852 whose name does not start with the host triplet. If you think this
6853 configuration is useful to you, please write to autoconf@gnu.org." >&5
6854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6855 whose name does not start with the host triplet. If you think this
6856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6857 ac_tool_warned=yes ;;
6859 RANLIB=$ac_ct_RANLIB
6862 RANLIB="$ac_cv_prog_RANLIB"
6865 # Extract the first word of "rm", so it can be a program name with args.
6866 set dummy rm; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_path_RM+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6897 if test -n "$RM"; then
6898 { echo "$as_me:$LINENO: result: $RM" >&5
6899 echo "${ECHO_T}$RM" >&6; }
6901 { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6906 # Extract the first word of "sed", so it can be a program name with args.
6907 set dummy sed; ac_word=$2
6908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6910 if test "${ac_cv_path_SED+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6938 if test -n "$SED"; then
6939 { echo "$as_me:$LINENO: result: $SED" >&5
6940 echo "${ECHO_T}$SED" >&6; }
6942 { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6947 # Extract the first word of "tar", so it can be a program name with args.
6948 set dummy tar; ac_word=$2
6949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951 if test "${ac_cv_path_TAR+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6979 if test -n "$TAR"; then
6980 { echo "$as_me:$LINENO: result: $TAR" >&5
6981 echo "${ECHO_T}$TAR" >&6; }
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6988 # Extract the first word of "pwd", so it can be a program name with args.
6989 set dummy pwd; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_path_BINPWD+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7007 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7019 BINPWD=$ac_cv_path_BINPWD
7020 if test -n "$BINPWD"; then
7021 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7022 echo "${ECHO_T}$BINPWD" >&6; }
7024 { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7030 # Extract the first word of "Graphviz", so it can be a program name with args.
7031 set dummy Graphviz; ac_word=$2
7032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7034 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7049 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7061 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7062 if test -n "$GRAPHVIZ"; then
7063 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7064 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7066 { echo "$as_me:$LINENO: result: no" >&5
7067 echo "${ECHO_T}no" >&6; }
7071 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7073 cat >>confdefs.h <<\_ACEOF
7074 #define HAVE_GRAPHVIZ 1
7077 if test "$llvm_cv_os_type" = "MingW" ; then
7078 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7081 cat >>confdefs.h <<_ACEOF
7082 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7086 # Extract the first word of "dot", so it can be a program name with args.
7087 set dummy dot; ac_word=$2
7088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090 if test "${ac_cv_path_DOT+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7118 if test -n "$DOT"; then
7119 { echo "$as_me:$LINENO: result: $DOT" >&5
7120 echo "${ECHO_T}$DOT" >&6; }
7122 { echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6; }
7127 if test "$DOT" != "echo dot" ; then
7129 cat >>confdefs.h <<\_ACEOF
7133 if test "$llvm_cv_os_type" = "MingW" ; then
7134 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7137 cat >>confdefs.h <<_ACEOF
7138 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7142 for ac_prog in gv gsview32
7144 # Extract the first word of "$ac_prog", so it can be a program name with args.
7145 set dummy $ac_prog; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_GV+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 if test -n "$GV"; then
7176 { echo "$as_me:$LINENO: result: $GV" >&5
7177 echo "${ECHO_T}$GV" >&6; }
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7184 test -n "$GV" && break
7186 test -n "$GV" || GV="echo gv"
7188 if test "$GV" != "echo gv" ; then
7190 cat >>confdefs.h <<\_ACEOF
7194 if test "$llvm_cv_os_type" = "MingW" ; then
7195 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7198 cat >>confdefs.h <<_ACEOF
7199 #define LLVM_PATH_GV "$GV${EXEEXT}"
7203 # Extract the first word of "dotty", so it can be a program name with args.
7204 set dummy dotty; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_DOTTY+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7234 DOTTY=$ac_cv_path_DOTTY
7235 if test -n "$DOTTY"; then
7236 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7237 echo "${ECHO_T}$DOTTY" >&6; }
7239 { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7244 if test "$DOTTY" != "echo dotty" ; then
7246 cat >>confdefs.h <<\_ACEOF
7247 #define HAVE_DOTTY 1
7250 if test "$llvm_cv_os_type" = "MingW" ; then
7251 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7254 cat >>confdefs.h <<_ACEOF
7255 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7261 # Extract the first word of "perl", so it can be a program name with args.
7262 set dummy perl; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_PERL+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7292 PERL=$ac_cv_path_PERL
7293 if test -n "$PERL"; then
7294 { echo "$as_me:$LINENO: result: $PERL" >&5
7295 echo "${ECHO_T}$PERL" >&6; }
7297 { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7302 if test "$PERL" != "none"; then
7303 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7304 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7305 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7306 { echo "$as_me:$LINENO: result: yes" >&5
7307 echo "${ECHO_T}yes" >&6; }
7310 { echo "$as_me:$LINENO: result: not found" >&5
7311 echo "${ECHO_T}not found" >&6; }
7316 if test x"$PERL" = xnone; then
7319 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7320 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7321 { (exit 1); exit 1; }; }
7327 # Find a good install program. We prefer a C program (faster),
7328 # so one script is as good as another. But avoid the broken or
7329 # incompatible versions:
7330 # SysV /etc/install, /usr/sbin/install
7331 # SunOS /usr/etc/install
7332 # IRIX /sbin/install
7334 # AmigaOS /C/install, which installs bootblocks on floppy discs
7335 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7336 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7337 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7338 # OS/2's system install, which has a completely different semantic
7339 # ./install, which can be erroneously created by make from ./install.sh.
7340 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7341 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7342 if test -z "$INSTALL"; then
7343 if test "${ac_cv_path_install+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 test -z "$as_dir" && as_dir=.
7351 # Account for people who put trailing slashes in PATH elements.
7353 ./ | .// | /cC/* | \
7354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7355 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7358 # OSF1 and SCO ODT 3.0 have their own names for install.
7359 # Don't use installbsd from OSF since it installs stuff as root
7361 for ac_prog in ginstall scoinst install; do
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7364 if test $ac_prog = install &&
7365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7366 # AIX install. It has an incompatible calling convention.
7368 elif test $ac_prog = install &&
7369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7370 # program-specific install script used by HP pwplus--don't use.
7373 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7386 if test "${ac_cv_path_install+set}" = set; then
7387 INSTALL=$ac_cv_path_install
7389 # As a last resort, use the slow shell script. Don't cache a
7390 # value for INSTALL within a source directory, because that will
7391 # break other packages using the cache if that directory is
7392 # removed, or if the value is a relative name.
7393 INSTALL=$ac_install_sh
7396 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7397 echo "${ECHO_T}$INSTALL" >&6; }
7399 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7400 # It thinks the first close brace ends the variable substitution.
7401 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7403 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7405 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7408 # Extract the first word of "bzip2", so it can be a program name with args.
7409 set dummy bzip2; ac_word=$2
7410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412 if test "${ac_cv_path_BZIP2+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 BZIP2=$ac_cv_path_BZIP2
7439 if test -n "$BZIP2"; then
7440 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7441 echo "${ECHO_T}$BZIP2" >&6; }
7443 { echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6; }
7448 # Extract the first word of "doxygen", so it can be a program name with args.
7449 set dummy doxygen; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7467 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 DOXYGEN=$ac_cv_path_DOXYGEN
7479 if test -n "$DOXYGEN"; then
7480 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7481 echo "${ECHO_T}$DOXYGEN" >&6; }
7483 { echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6; }
7488 # Extract the first word of "groff", so it can be a program name with args.
7489 set dummy groff; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_GROFF+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 GROFF=$ac_cv_path_GROFF
7519 if test -n "$GROFF"; then
7520 { echo "$as_me:$LINENO: result: $GROFF" >&5
7521 echo "${ECHO_T}$GROFF" >&6; }
7523 { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7528 # Extract the first word of "gzip", so it can be a program name with args.
7529 set dummy gzip; ac_word=$2
7530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532 if test "${ac_cv_path_GZIP+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7547 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 GZIP=$ac_cv_path_GZIP
7559 if test -n "$GZIP"; then
7560 { echo "$as_me:$LINENO: result: $GZIP" >&5
7561 echo "${ECHO_T}$GZIP" >&6; }
7563 { echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6; }
7568 # Extract the first word of "pod2html", so it can be a program name with args.
7569 set dummy pod2html; ac_word=$2
7570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572 if test "${ac_cv_path_POD2HTML+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7587 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 POD2HTML=$ac_cv_path_POD2HTML
7599 if test -n "$POD2HTML"; then
7600 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7601 echo "${ECHO_T}$POD2HTML" >&6; }
7603 { echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6; }
7608 # Extract the first word of "pod2man", so it can be a program name with args.
7609 set dummy pod2man; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_path_POD2MAN+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 POD2MAN=$ac_cv_path_POD2MAN
7639 if test -n "$POD2MAN"; then
7640 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7641 echo "${ECHO_T}$POD2MAN" >&6; }
7643 { echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6; }
7648 # Extract the first word of "runtest", so it can be a program name with args.
7649 set dummy runtest; ac_word=$2
7650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652 if test "${ac_cv_path_RUNTEST+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 RUNTEST=$ac_cv_path_RUNTEST
7679 if test -n "$RUNTEST"; then
7680 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7681 echo "${ECHO_T}$RUNTEST" >&6; }
7683 { echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6; }
7690 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7691 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7693 # Check whether --with-tclinclude was given.
7694 if test "${with_tclinclude+set}" = set; then
7695 withval=$with_tclinclude; with_tclinclude=${withval}
7700 if test "${ac_cv_path_tclsh+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 if test x"${with_tclinclude}" != x ; then
7705 if test -f ${with_tclinclude}/tclsh ; then
7706 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7707 elif test -f ${with_tclinclude}/src/tclsh ; then
7708 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7710 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7711 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7712 { (exit 1); exit 1; }; }
7716 if test x"${ac_cv_path_tclsh}" = x ; then
7717 { echo "$as_me:$LINENO: result: none" >&5
7718 echo "${ECHO_T}none" >&6; }
7719 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
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722 set dummy $ac_prog; ac_word=$2
7723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725 if test "${ac_cv_path_TCLSH+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7740 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 TCLSH=$ac_cv_path_TCLSH
7752 if test -n "$TCLSH"; then
7753 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7754 echo "${ECHO_T}$TCLSH" >&6; }
7756 { echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; }
7761 test -n "$TCLSH" && break
7764 if test x"${TCLSH}" = x ; then
7765 ac_cv_path_tclsh='';
7767 ac_cv_path_tclsh="${TCLSH}";
7770 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7771 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7772 TCLSH="${ac_cv_path_tclsh}"
7778 # Extract the first word of "zip", so it can be a program name with args.
7779 set dummy zip; ac_word=$2
7780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7782 if test "${ac_cv_path_ZIP+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7797 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 if test -n "$ZIP"; then
7810 { echo "$as_me:$LINENO: result: $ZIP" >&5
7811 echo "${ECHO_T}$ZIP" >&6; }
7813 { echo "$as_me:$LINENO: result: no" >&5
7814 echo "${ECHO_T}no" >&6; }
7818 for ac_prog in ocamlc
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7824 if test "${ac_cv_path_OCAMLC+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7839 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 OCAMLC=$ac_cv_path_OCAMLC
7851 if test -n "$OCAMLC"; then
7852 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7853 echo "${ECHO_T}$OCAMLC" >&6; }
7855 { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7860 test -n "$OCAMLC" && break
7863 for ac_prog in ocamlopt
7865 # Extract the first word of "$ac_prog", so it can be a program name with args.
7866 set dummy $ac_prog; ac_word=$2
7867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7884 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 OCAMLOPT=$ac_cv_path_OCAMLOPT
7896 if test -n "$OCAMLOPT"; then
7897 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7898 echo "${ECHO_T}$OCAMLOPT" >&6; }
7900 { echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6; }
7905 test -n "$OCAMLOPT" && break
7908 for ac_prog in ocamldep
7910 # Extract the first word of "$ac_prog", so it can be a program name with args.
7911 set dummy $ac_prog; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 OCAMLDEP=$ac_cv_path_OCAMLDEP
7941 if test -n "$OCAMLDEP"; then
7942 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7943 echo "${ECHO_T}$OCAMLDEP" >&6; }
7945 { echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6; }
7950 test -n "$OCAMLDEP" && break
7953 for ac_prog in ocamldoc
7955 # Extract the first word of "$ac_prog", so it can be a program name with args.
7956 set dummy $ac_prog; ac_word=$2
7957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7959 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7974 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 OCAMLDOC=$ac_cv_path_OCAMLDOC
7986 if test -n "$OCAMLDOC"; then
7987 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7988 echo "${ECHO_T}$OCAMLDOC" >&6; }
7990 { echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6; }
7995 test -n "$OCAMLDOC" && break
7998 for ac_prog in gas as
8000 # Extract the first word of "$ac_prog", so it can be a program name with args.
8001 set dummy $ac_prog; ac_word=$2
8002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8004 if test "${ac_cv_path_GAS+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8019 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 if test -n "$GAS"; then
8032 { echo "$as_me:$LINENO: result: $GAS" >&5
8033 echo "${ECHO_T}$GAS" >&6; }
8035 { echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6; }
8040 test -n "$GAS" && break
8044 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8045 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8046 if test "${llvm_cv_link_use_r+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 ac_cpp='$CPP $CPPFLAGS'
8051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8056 CFLAGS="$CFLAGS -Wl,-R."
8057 cat >conftest.$ac_ext <<_ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8067 int main() { return 0; }
8072 rm -f conftest.$ac_objext conftest$ac_exeext
8073 if { (ac_try="$ac_link"
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_link") 2>conftest.er1
8081 grep -v '^ *+' conftest.er1 >conftest.err
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8087 { (case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_try") 2>&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; } &&
8096 { ac_try='test -s conftest$ac_exeext'
8097 { (case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_try") 2>&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 llvm_cv_link_use_r=yes
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8111 llvm_cv_link_use_r=no
8114 rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
8118 ac_cpp='$CPP $CPPFLAGS'
8119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8125 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8126 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8127 if test "$llvm_cv_link_use_r" = yes ; then
8129 cat >>confdefs.h <<\_ACEOF
8130 #define HAVE_LINK_R 1
8136 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8137 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8138 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 ac_cpp='$CPP $CPPFLAGS'
8143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8148 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8149 cat >conftest.$ac_ext <<_ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8159 int main() { return 0; }
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_link") 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest$ac_exeext'
8189 { (case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_try") 2>&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 llvm_cv_link_use_export_dynamic=yes
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 llvm_cv_link_use_export_dynamic=no
8206 rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8210 ac_cpp='$CPP $CPPFLAGS'
8211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8217 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8218 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8219 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8221 cat >>confdefs.h <<\_ACEOF
8222 #define HAVE_LINK_EXPORT_DYNAMIC 1
8230 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8231 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8232 if test "${ac_cv_c_const+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 cat >conftest.$ac_ext <<_ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8245 /* FIXME: Include the comments suggested by Paul. */
8247 /* Ultrix mips cc rejects this. */
8248 typedef int charset[2];
8250 /* SunOS 4.1.1 cc rejects this. */
8251 char const *const *ccp;
8253 /* NEC SVR4.0.2 mips cc rejects this. */
8254 struct point {int x, y;};
8255 static struct point const zero = {0,0};
8256 /* AIX XL C 1.02.0.0 rejects this.
8257 It does not let you subtract one const X* pointer from another in
8258 an arm of an if-expression whose if-part is not a constant
8260 const char *g = "string";
8261 ccp = &g + (g ? g-g : 0);
8262 /* HPUX 7.0 cc rejects these. */
8265 ccp = (char const *const *) p;
8266 { /* SCO 3.2v4 cc rejects this. */
8268 char const *s = 0 ? (char *) 0 : (char const *) 0;
8273 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8275 const int *foo = &x[0];
8278 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8279 typedef const int *iptr;
8283 { /* AIX XL C 1.02.0.0 rejects this saying
8284 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8285 struct s { int j; const int *ap[3]; };
8286 struct s *b; b->j = 5;
8288 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8292 return !x[0] && !zero.x;
8299 rm -f conftest.$ac_objext
8300 if { (ac_try="$ac_compile"
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_compile") 2>conftest.er1
8308 grep -v '^ *+' conftest.er1 >conftest.err
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_try") 2>&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try='test -s conftest.$ac_objext'
8324 { (case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_try") 2>&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8344 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8345 if test $ac_cv_c_const = no; then
8347 cat >>confdefs.h <<\_ACEOF
8359 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8360 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8361 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8362 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 cat >conftest.$ac_ext <<_ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8372 #include <sys/types.h>
8384 rm -f conftest.$ac_objext
8385 if { (ac_try="$ac_compile"
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_compile") 2>conftest.er1
8393 grep -v '^ *+' conftest.er1 >conftest.err
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8399 { (case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_try") 2>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; } &&
8408 { ac_try='test -s conftest.$ac_objext'
8409 { (case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_try") 2>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8418 eval "$as_ac_Header=yes"
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8423 eval "$as_ac_Header=no"
8426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 ac_res=`eval echo '${'$as_ac_Header'}'`
8429 { echo "$as_me:$LINENO: result: $ac_res" >&5
8430 echo "${ECHO_T}$ac_res" >&6; }
8431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8432 cat >>confdefs.h <<_ACEOF
8433 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8436 ac_header_dirent=$ac_hdr; break
8440 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8441 if test $ac_header_dirent = dirent.h; then
8442 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8443 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8444 if test "${ac_cv_search_opendir+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 ac_func_search_save_LIBS=$LIBS
8448 cat >conftest.$ac_ext <<_ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8455 /* Override any GCC internal prototype to avoid an error.
8456 Use char because int might match the return type of a GCC
8457 builtin and then its argument prototype would still apply. */
8470 for ac_lib in '' dir; do
8471 if test -z "$ac_lib"; then
8472 ac_res="none required"
8475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_link") 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492 { (case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_try") 2>&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; } &&
8501 { ac_try='test -s conftest$ac_exeext'
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_try") 2>&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_search_opendir=$ac_res
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8519 rm -f core conftest.err conftest.$ac_objext \
8521 if test "${ac_cv_search_opendir+set}" = set; then
8525 if test "${ac_cv_search_opendir+set}" = set; then
8528 ac_cv_search_opendir=no
8531 LIBS=$ac_func_search_save_LIBS
8533 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8534 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8535 ac_res=$ac_cv_search_opendir
8536 if test "$ac_res" != no; then
8537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8542 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8543 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8544 if test "${ac_cv_search_opendir+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 ac_func_search_save_LIBS=$LIBS
8548 cat >conftest.$ac_ext <<_ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8555 /* Override any GCC internal prototype to avoid an error.
8556 Use char because int might match the return type of a GCC
8557 builtin and then its argument prototype would still apply. */
8570 for ac_lib in '' x; do
8571 if test -z "$ac_lib"; then
8572 ac_res="none required"
8575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (ac_try="$ac_link"
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_link") 2>conftest.er1
8586 grep -v '^ *+' conftest.er1 >conftest.err
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8592 { (case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_try") 2>&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest$ac_exeext'
8602 { (case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_try") 2>&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8611 ac_cv_search_opendir=$ac_res
8613 echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8619 rm -f core conftest.err conftest.$ac_objext \
8621 if test "${ac_cv_search_opendir+set}" = set; then
8625 if test "${ac_cv_search_opendir+set}" = set; then
8628 ac_cv_search_opendir=no
8631 LIBS=$ac_func_search_save_LIBS
8633 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8634 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8635 ac_res=$ac_cv_search_opendir
8636 if test "$ac_res" != no; then
8637 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8644 for ac_header in dlfcn.h
8646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 ac_res=`eval echo '${'$as_ac_Header'}'`
8654 { echo "$as_me:$LINENO: result: $ac_res" >&5
8655 echo "${ECHO_T}$ac_res" >&6; }
8657 # Is the header compilable?
8658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8660 cat >conftest.$ac_ext <<_ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 $ac_includes_default
8667 #include <$ac_header>
8669 rm -f conftest.$ac_objext
8670 if { (ac_try="$ac_compile"
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
8678 grep -v '^ *+' conftest.er1 >conftest.err
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } &&
8683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8684 { (case "(($ac_try" in
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689 (eval "$ac_try") 2>&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try='test -s conftest.$ac_objext'
8694 { (case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_try") 2>&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; }; then
8703 ac_header_compiler=yes
8705 echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8708 ac_header_compiler=no
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8713 echo "${ECHO_T}$ac_header_compiler" >&6; }
8715 # Is the header present?
8716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8718 cat >conftest.$ac_ext <<_ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8724 #include <$ac_header>
8726 if { (ac_try="$ac_cpp conftest.$ac_ext"
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8734 grep -v '^ *+' conftest.er1 >conftest.err
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } >/dev/null; then
8739 if test -s conftest.err; then
8740 ac_cpp_err=$ac_c_preproc_warn_flag
8741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8748 if test -z "$ac_cpp_err"; then
8749 ac_header_preproc=yes
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 ac_header_preproc=no
8757 rm -f conftest.err conftest.$ac_ext
8758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759 echo "${ECHO_T}$ac_header_preproc" >&6; }
8761 # So? What about this header?
8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc=yes
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8784 ## ----------------------------------- ##
8785 ## Report this to llvmbugs@cs.uiuc.edu ##
8786 ## ----------------------------------- ##
8788 ) | sed "s/^/$as_me: WARNING: /" >&2
8791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 eval "$as_ac_Header=\$ac_header_preproc"
8798 ac_res=`eval echo '${'$as_ac_Header'}'`
8799 { echo "$as_me:$LINENO: result: $ac_res" >&5
8800 echo "${ECHO_T}$ac_res" >&6; }
8803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8804 cat >>confdefs.h <<_ACEOF
8805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8812 # Check whether --enable-ltdl-install was given.
8813 if test "${enable_ltdl_install+set}" = set; then
8814 enableval=$enable_ltdl_install;
8820 if test x"${enable_ltdl_install-no}" != xno; then
8822 INSTALL_LTDL_FALSE='#'
8824 INSTALL_LTDL_TRUE='#'
8830 if test x"${enable_ltdl_convenience-no}" != xno; then
8831 CONVENIENCE_LTDL_TRUE=
8832 CONVENIENCE_LTDL_FALSE='#'
8834 CONVENIENCE_LTDL_TRUE='#'
8835 CONVENIENCE_LTDL_FALSE=
8839 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8840 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8842 libname_spec='lib$name'
8850 shlibpath_overrides_runpath=unknown
8852 dynamic_linker="$host_os ld.so"
8853 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8854 if test "$GCC" = yes; then
8855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8856 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8857 # if the path contains ";" then we assume it to be the separator
8858 # otherwise default to the standard path separator (i.e. ":") - it is
8859 # assumed that no part of a normal pathname contains ";" but that should
8860 # okay in the real world where ";" in dirpaths is itself problematic.
8861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8866 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8868 need_lib_prefix=unknown
8869 hardcode_into_libs=no
8871 # when you set need_version to no, make sure it does not cause -set_version
8872 # flags to be left without arguments
8873 need_version=unknown
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8879 shlibpath_var=LIBPATH
8881 # AIX 3 has no versioning support, so we append a major version to the name.
8882 soname_spec='${libname}${release}${shared_ext}$major'
8889 hardcode_into_libs=yes
8890 if test "$host_cpu" = ia64; then
8891 # AIX 5 supports IA64
8892 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8893 shlibpath_var=LD_LIBRARY_PATH
8895 # With GCC up to 2.95.x, collect2 would create an import file
8896 # for dependence libraries. The import file would start with
8897 # the line `#! .'. This would cause the generated library to
8898 # depend on `.', always an invalid library. This was fixed in
8899 # development snapshots of GCC prior to 3.0.
8901 aix4 | aix4.[01] | aix4.[01].*)
8902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8904 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8911 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8912 # soname into executable. Probably we can add versioning support to
8913 # collect2, so additional links can be useful in future.
8914 if test "$aix_use_runtimelinking" = yes; then
8915 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8916 # instead of lib<name>.a to let people know that these are not
8917 # typical AIX shared libraries.
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 # We preserve .a as extension for shared libraries through AIX4.2
8921 # and later when we are not doing run time linking.
8922 library_names_spec='${libname}${release}.a $libname.a'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8925 shlibpath_var=LIBPATH
8930 library_names_spec='$libname.ixlibrary $libname.a'
8931 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8932 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'
8936 library_names_spec='${libname}${shared_ext}'
8937 dynamic_linker="$host_os ld.so"
8938 shlibpath_var=LIBRARY_PATH
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8949 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8950 # the default ld.so.conf also contains /usr/contrib/lib and
8951 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8952 # libtool to hard-code these into programs
8955 cygwin* | mingw* | pw32*)
8956 version_type=windows
8961 case $GCC,$host_os in
8962 yes,cygwin* | yes,mingw* | yes,pw32*)
8963 library_names_spec='$libname.dll.a'
8964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8965 postinstall_cmds='base_file=`basename \${file}`~
8966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8967 dldir=$destdir/`dirname \$dlpath`~
8968 test -d \$dldir || mkdir -p \$dldir~
8969 $install_prog $dir/$dlname \$dldir/$dlname~
8970 chmod a+x \$dldir/$dlname'
8971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8972 dlpath=$dir/\$dldll~
8974 shlibpath_overrides_runpath=yes
8978 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8979 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8980 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8983 # MinGW DLLs use traditional 'lib' prefix
8984 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8986 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8987 # It is most probably a Windows format PATH printed by
8988 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8989 # path with ; separators, and with drive letters. We can handle the
8990 # drive letters (cygwin fileutils understands them), so leave them,
8991 # especially as we might pass files found there to a mingw objdump,
8992 # which wouldn't understand a cygwinified path. Ahh.
8993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8999 # pw32 DLLs use 'pw' prefix rather than 'lib'
9000 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9006 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9009 dynamic_linker='Win32 ld.exe'
9010 # FIXME: first we should search . and the directory the executable is in
9014 darwin* | rhapsody*)
9015 dynamic_linker="$host_os dyld"
9019 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9020 soname_spec='${libname}${release}${major}$shared_ext'
9021 shlibpath_overrides_runpath=yes
9022 shlibpath_var=DYLD_LIBRARY_PATH
9023 shrext_cmds='.dylib'
9024 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9025 if test "$GCC" = yes; then
9026 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"`
9028 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9030 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 shlibpath_var=LD_LIBRARY_PATH
9053 shlibpath_overrides_runpath=no
9054 hardcode_into_libs=yes
9055 dynamic_linker='GNU ld.so'
9058 freebsd* | dragonfly*)
9059 # DragonFly does not have aout. When/if they implement a new
9060 # versioning mechanism, adjust this.
9061 if test -x /usr/bin/objformat; then
9062 objformat=`/usr/bin/objformat`
9065 freebsd[123]*) objformat=aout ;;
9069 version_type=freebsd-$objformat
9070 case $version_type in
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9081 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=yes
9086 freebsd3.[01]* | freebsdelf3.[01]*)
9087 shlibpath_overrides_runpath=yes
9088 hardcode_into_libs=yes
9090 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9091 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9092 shlibpath_overrides_runpath=no
9093 hardcode_into_libs=yes
9095 freebsd*) # from 4.6 on
9096 shlibpath_overrides_runpath=yes
9097 hardcode_into_libs=yes
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9107 soname_spec='${libname}${release}${shared_ext}$major'
9108 shlibpath_var=LD_LIBRARY_PATH
9109 hardcode_into_libs=yes
9112 hpux9* | hpux10* | hpux11*)
9113 # Give a soname corresponding to the major version so that dld.sl refuses to
9114 # link against other versions.
9121 hardcode_into_libs=yes
9122 dynamic_linker="$host_os dld.so"
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 if test "X$HPUX_IA64_MODE" = X32; then
9128 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9130 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9136 hardcode_into_libs=yes
9137 dynamic_linker="$host_os dld.sl"
9138 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9147 dynamic_linker="$host_os dld.sl"
9148 shlibpath_var=SHLIB_PATH
9149 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9154 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9155 postinstall_cmds='chmod 555 $lib'
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 shlibpath_overrides_runpath=no
9167 hardcode_into_libs=yes
9170 irix5* | irix6* | nonstopux*)
9172 nonstopux*) version_type=nonstopux ;;
9174 if test "$lt_cv_prog_gnu_ld" = yes; then
9182 soname_spec='${libname}${release}${shared_ext}$major'
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9185 irix5* | nonstopux*)
9189 case $LD in # libtool.m4 will add one of these switches to LD
9190 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9191 libsuff= shlibsuff= libmagic=32-bit;;
9192 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9193 libsuff=32 shlibsuff=N32 libmagic=N32;;
9194 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9195 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9196 *) libsuff= shlibsuff= libmagic=never-match;;
9200 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9201 shlibpath_overrides_runpath=no
9202 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9203 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9204 hardcode_into_libs=yes
9207 # No shared lib support for Linux oldld, aout, or coff.
9208 linux*oldld* | linux*aout* | linux*coff*)
9212 # This must be Linux ELF.
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=no
9222 # This implies no fast_install, which is unacceptable.
9223 # Some rework will be needed to allow for fast_install
9224 # before this can be enabled.
9225 hardcode_into_libs=yes
9227 # Append ld.so.conf contents to the search path
9228 if test -f /etc/ld.so.conf; then
9229 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' ' '`
9230 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9233 # We used to test for /lib/ld.so.1 and disable shared libraries on
9234 # powerpc, because MkLinux only supported shared libraries with the
9235 # GNU dynamic linker. Since this was broken with cross compilers,
9236 # most powerpc-linux boxes support dynamic linking these days and
9237 # people can always --disable-shared, the test was removed, and we
9238 # assume the GNU/Linux dynamic linker is in use.
9239 dynamic_linker='GNU/Linux ld.so'
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 shlibpath_overrides_runpath=no
9250 hardcode_into_libs=yes
9251 dynamic_linker='GNU ld.so'
9258 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9261 dynamic_linker='NetBSD (a.out) ld.so'
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 dynamic_linker='NetBSD ld.elf_so'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 shlibpath_overrides_runpath=yes
9269 hardcode_into_libs=yes
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 shlibpath_var=LD_LIBRARY_PATH
9276 shlibpath_overrides_runpath=yes
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=yes
9291 sys_lib_dlsearch_path_spec="/usr/lib"
9293 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9295 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9296 *) need_version=no ;;
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9303 openbsd2.[89] | openbsd2.[89].*)
9304 shlibpath_overrides_runpath=no
9307 shlibpath_overrides_runpath=yes
9311 shlibpath_overrides_runpath=yes
9316 libname_spec='$name'
9319 library_names_spec='$libname${shared_ext} $libname.a'
9320 dynamic_linker='OS/2 ld.exe'
9321 shlibpath_var=LIBPATH
9324 osf3* | osf4* | osf5*)
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9332 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 shlibpath_overrides_runpath=yes
9343 hardcode_into_libs=yes
9344 # ldd complains unless libraries are executable
9345 postinstall_cmds='chmod +x $lib'
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9351 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 shlibpath_overrides_runpath=yes
9354 if test "$with_gnu_ld" = yes; then
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 case $host_vendor in
9367 shlibpath_overrides_runpath=no
9369 export_dynamic_flag_spec='${wl}-Blargedynsym'
9370 runpath_var=LD_RUN_PATH
9378 shlibpath_overrides_runpath=no
9379 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9385 if test -d /usr/nec ;then
9387 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9388 soname_spec='$libname${shared_ext}.$major'
9389 shlibpath_var=LD_LIBRARY_PATH
9393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9394 version_type=freebsd-elf
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 shlibpath_var=LD_LIBRARY_PATH
9400 hardcode_into_libs=yes
9401 if test "$with_gnu_ld" = yes; then
9402 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9403 shlibpath_overrides_runpath=no
9405 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9406 shlibpath_overrides_runpath=yes
9409 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9413 sys_lib_dlsearch_path_spec='/usr/lib'
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419 soname_spec='${libname}${release}${shared_ext}$major'
9420 shlibpath_var=LD_LIBRARY_PATH
9427 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9428 echo "${ECHO_T}$dynamic_linker" >&6; }
9429 test "$dynamic_linker" = no && can_build_shared=no
9431 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9432 if test "$GCC" = yes; then
9433 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9437 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9438 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9439 if test "${libltdl_cv_shlibext+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 eval libltdl_cv_shlibext=$shrext_cmds
9447 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9448 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9449 if test -n "$libltdl_cv_shlibext"; then
9451 cat >>confdefs.h <<_ACEOF
9452 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9458 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9459 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9460 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 libltdl_cv_shlibpath_var="$shlibpath_var"
9465 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9466 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9467 if test -n "$libltdl_cv_shlibpath_var"; then
9469 cat >>confdefs.h <<_ACEOF
9470 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9476 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9477 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9478 if test "${libltdl_cv_sys_search_path+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9483 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9484 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9485 if test -n "$libltdl_cv_sys_search_path"; then
9487 for dir in $libltdl_cv_sys_search_path; do
9488 if test -z "$sys_search_path"; then
9489 sys_search_path="$dir"
9491 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9495 cat >>confdefs.h <<_ACEOF
9496 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9501 { echo "$as_me:$LINENO: checking for objdir" >&5
9502 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9503 if test "${libltdl_cv_objdir+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 libltdl_cv_objdir="$objdir"
9507 if test -n "$objdir"; then
9510 rm -f .libs 2>/dev/null
9511 mkdir .libs 2>/dev/null
9512 if test -d .libs; then
9513 libltdl_cv_objdir=.libs
9515 # MS-DOS does not allow filenames that begin with a dot.
9516 libltdl_cv_objdir=_libs
9518 rmdir .libs 2>/dev/null
9522 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9523 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9525 cat >>confdefs.h <<_ACEOF
9526 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9534 # Check for command to grab the raw symbol name followed by C symbol from nm.
9535 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9536 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9537 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 # These are sane defaults that work on at least a few old systems.
9542 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9544 # Character class describing NM global symbol codes.
9545 symcode='[BCDEGRST]'
9547 # Regexp to match symbols that can be accessed directly from C.
9548 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9550 # Transform an extracted symbol line into a proper C declaration
9551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9553 # Transform an extracted symbol line into symbol name and symbol address
9554 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'"
9556 # Define system-specific variables.
9561 cygwin* | mingw* | pw32*)
9562 symcode='[ABCDGISTW]'
9564 hpux*) # Its linker distinguishes data from code symbols
9565 if test "$host_cpu" = ia64; then
9566 symcode='[ABCDEGRST]'
9568 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9569 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'"
9572 if test "$host_cpu" = ia64; then
9573 symcode='[ABCDGIRSTW]'
9574 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9575 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'"
9579 symcode='[BCDEGRST]'
9582 symcode='[BCDEGQRST]'
9593 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9601 # Handle CRLF in mingw tool chain
9605 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9609 # If we're using GNU nm, then use its standard symbol codes.
9610 case `$NM -V 2>&1` in
9611 *GNU* | *'with BFD'*)
9612 symcode='[ABCDGIRSTW]' ;;
9615 # Try without a prefix undercore, then with it.
9616 for ac_symprfx in "" "_"; do
9618 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9619 symxfrm="\\1 $ac_symprfx\\2 \\2"
9621 # Write the raw and C identifiers.
9622 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9624 # Check to see that the pipe works correctly.
9628 cat > conftest.$ac_ext <<EOF
9633 void nm_test_func(){}
9637 int main(){nm_test_var='a';nm_test_func();return(0);}
9640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9641 (eval $ac_compile) 2>&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; then
9645 # Now try to grab the symbols.
9647 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9648 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && test -s "$nlist"; then
9652 # Try sorting and uniquifying the output.
9653 if sort "$nlist" | uniq > "$nlist"T; then
9654 mv -f "$nlist"T "$nlist"
9659 # Make sure that we snagged all the symbols we need.
9660 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9661 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9662 cat <<EOF > conftest.$ac_ext
9668 # Now generate the symbol file.
9669 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9671 cat <<EOF >> conftest.$ac_ext
9672 #if defined (__STDC__) && __STDC__
9673 # define lt_ptr_t void *
9675 # define lt_ptr_t char *
9679 /* The mapping between symbol names and symbols. */
9684 lt_preloaded_symbols[] =
9687 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9688 cat <<\EOF >> conftest.$ac_ext
9696 # Now try linking the two files.
9697 mv conftest.$ac_objext conftstm.$ac_objext
9698 lt_save_LIBS="$LIBS"
9699 lt_save_CFLAGS="$CFLAGS"
9700 LIBS="conftstm.$ac_objext"
9701 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9709 LIBS="$lt_save_LIBS"
9710 CFLAGS="$lt_save_CFLAGS"
9712 echo "cannot find nm_test_func in $nlist" >&5
9715 echo "cannot find nm_test_var in $nlist" >&5
9718 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9721 echo "$progname: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9724 rm -f conftest* conftst*
9726 # Do not use the global_symbol_pipe unless it works.
9727 if test "$pipe_works" = yes; then
9730 lt_cv_sys_global_symbol_pipe=
9736 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9737 lt_cv_sys_global_symbol_to_cdecl=
9739 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9740 { echo "$as_me:$LINENO: result: failed" >&5
9741 echo "${ECHO_T}failed" >&6; }
9743 { echo "$as_me:$LINENO: result: ok" >&5
9744 echo "${ECHO_T}ok" >&6; }
9748 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9749 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9750 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9754 libltdl_cv_preloaded_symbols=yes
9756 libltdl_cv_preloaded_symbols=no
9760 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9761 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9762 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9764 cat >>confdefs.h <<\_ACEOF
9765 #define HAVE_PRELOADED_SYMBOLS 1
9773 ac_cpp='$CPP $CPPFLAGS'
9774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9779 { echo "$as_me:$LINENO: checking for shl_load" >&5
9780 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9781 if test "${ac_cv_func_shl_load+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 cat >conftest.$ac_ext <<_ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9790 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9792 #define shl_load innocuous_shl_load
9794 /* System header to define __stub macros and hopefully few prototypes,
9795 which can conflict with char shl_load (); below.
9796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9797 <limits.h> exists even on freestanding compilers. */
9800 # include <limits.h>
9802 # include <assert.h>
9807 /* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
9814 /* The GNU C library defines this for functions which it implements
9815 to always fail with ENOSYS. Some functions are actually named
9816 something starting with __ and the normal name is an alias. */
9817 #if defined __stub_shl_load || defined __stub___shl_load
9829 rm -f conftest.$ac_objext conftest$ac_exeext
9830 if { (ac_try="$ac_link"
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_link") 2>conftest.er1
9838 grep -v '^ *+' conftest.er1 >conftest.err
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9844 { (case "(($ac_try" in
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_try") 2>&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_try") 2>&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_cv_func_shl_load=yes
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 ac_cv_func_shl_load=no
9871 rm -f core conftest.err conftest.$ac_objext \
9872 conftest$ac_exeext conftest.$ac_ext
9874 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9875 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9876 if test $ac_cv_func_shl_load = yes; then
9878 cat >>confdefs.h <<\_ACEOF
9879 #define HAVE_SHL_LOAD 1
9883 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9884 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9885 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 ac_check_lib_save_LIBS=$LIBS
9890 cat >conftest.$ac_ext <<_ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9897 /* Override any GCC internal prototype to avoid an error.
9898 Use char because int might match the return type of a GCC
9899 builtin and then its argument prototype would still apply. */
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (ac_try="$ac_link"
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_link") 2>conftest.er1
9921 grep -v '^ *+' conftest.er1 >conftest.err
9923 cat conftest.err >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } &&
9926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9927 { (case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_try") 2>&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try='test -s conftest$ac_exeext'
9937 { (case "(($ac_try" in
9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939 *) ac_try_echo=$ac_try;;
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942 (eval "$ac_try") 2>&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 ac_cv_lib_dld_shl_load=yes
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_lib_dld_shl_load=no
9954 rm -f core conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS
9958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9959 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9960 if test $ac_cv_lib_dld_shl_load = yes; then
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_SHL_LOAD 1
9966 LIBADD_DL="$LIBADD_DL -ldld"
9968 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9969 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 ac_check_lib_save_LIBS=$LIBS
9975 cat >conftest.$ac_ext <<_ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9982 /* Override any GCC internal prototype to avoid an error.
9983 Use char because int might match the return type of a GCC
9984 builtin and then its argument prototype would still apply. */
9997 rm -f conftest.$ac_objext conftest$ac_exeext
9998 if { (ac_try="$ac_link"
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_link") 2>conftest.er1
10006 grep -v '^ *+' conftest.er1 >conftest.err
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10012 { (case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_try") 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; } &&
10021 { ac_try='test -s conftest$ac_exeext'
10022 { (case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_try") 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 ac_cv_lib_dl_dlopen=yes
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10036 ac_cv_lib_dl_dlopen=no
10039 rm -f core conftest.err conftest.$ac_objext \
10040 conftest$ac_exeext conftest.$ac_ext
10041 LIBS=$ac_check_lib_save_LIBS
10043 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10044 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10045 if test $ac_cv_lib_dl_dlopen = yes; then
10047 cat >>confdefs.h <<\_ACEOF
10048 #define HAVE_LIBDL 1
10051 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10060 # include <dlfcn.h>
10071 rm -f conftest.$ac_objext conftest$ac_exeext
10072 if { (ac_try="$ac_link"
10073 case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_link") 2>conftest.er1
10080 grep -v '^ *+' conftest.er1 >conftest.err
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10086 { (case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_try") 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_try") 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; }; then
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_LIBDL 1
10109 libltdl_cv_func_dlopen="yes"
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10115 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10116 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 ac_check_lib_save_LIBS=$LIBS
10120 LIBS="-lsvld $LIBS"
10121 cat >conftest.$ac_ext <<_ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10128 /* Override any GCC internal prototype to avoid an error.
10129 Use char because int might match the return type of a GCC
10130 builtin and then its argument prototype would still apply. */
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (ac_try="$ac_link"
10145 case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
10152 grep -v '^ *+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_try") 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 ac_cv_lib_svld_dlopen=yes
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 ac_cv_lib_svld_dlopen=no
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10189 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10190 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10191 if test $ac_cv_lib_svld_dlopen = yes; then
10193 cat >>confdefs.h <<\_ACEOF
10194 #define HAVE_LIBDL 1
10197 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10199 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10200 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10201 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 ac_check_lib_save_LIBS=$LIBS
10206 cat >conftest.$ac_ext <<_ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10213 /* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10223 return dld_link ();
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10243 { (case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_try") 2>&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; } &&
10252 { ac_try='test -s conftest$ac_exeext'
10253 { (case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_try") 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_lib_dld_dld_link=yes
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ac_cv_lib_dld_dld_link=no
10270 rm -f core conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext conftest.$ac_ext
10272 LIBS=$ac_check_lib_save_LIBS
10274 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10275 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10276 if test $ac_cv_lib_dld_dld_link = yes; then
10278 cat >>confdefs.h <<\_ACEOF
10282 LIBADD_DL="$LIBADD_DL -ldld"
10284 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10285 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10286 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 cat >conftest.$ac_ext <<_ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10295 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10297 #define _dyld_func_lookup innocuous__dyld_func_lookup
10299 /* System header to define __stub macros and hopefully few prototypes,
10300 which can conflict with char _dyld_func_lookup (); below.
10301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10302 <limits.h> exists even on freestanding compilers. */
10305 # include <limits.h>
10307 # include <assert.h>
10310 #undef _dyld_func_lookup
10312 /* Override any GCC internal prototype to avoid an error.
10313 Use char because int might match the return type of a GCC
10314 builtin and then its argument prototype would still apply. */
10318 char _dyld_func_lookup ();
10319 /* The GNU C library defines this for functions which it implements
10320 to always fail with ENOSYS. Some functions are actually named
10321 something starting with __ and the normal name is an alias. */
10322 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10329 return _dyld_func_lookup ();
10334 rm -f conftest.$ac_objext conftest$ac_exeext
10335 if { (ac_try="$ac_link"
10336 case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_link") 2>conftest.er1
10343 grep -v '^ *+' conftest.er1 >conftest.err
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10349 { (case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354 (eval "$ac_try") 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest$ac_exeext'
10359 { (case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_try") 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
10368 ac_cv_func__dyld_func_lookup=yes
10370 echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10373 ac_cv_func__dyld_func_lookup=no
10376 rm -f core conftest.err conftest.$ac_objext \
10377 conftest$ac_exeext conftest.$ac_ext
10379 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10380 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10381 if test $ac_cv_func__dyld_func_lookup = yes; then
10383 cat >>confdefs.h <<\_ACEOF
10384 #define HAVE_DYLD 1
10398 rm -f core conftest.err conftest.$ac_objext \
10399 conftest$ac_exeext conftest.$ac_ext
10410 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10412 lt_save_LIBS="$LIBS"
10413 LIBS="$LIBS $LIBADD_DL"
10415 for ac_func in dlerror
10417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10431 #define $ac_func innocuous_$ac_func
10433 /* System header to define __stub macros and hopefully few prototypes,
10434 which can conflict with char $ac_func (); below.
10435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10436 <limits.h> exists even on freestanding compilers. */
10439 # include <limits.h>
10441 # include <assert.h>
10446 /* Override any GCC internal prototype to avoid an error.
10447 Use char because int might match the return type of a GCC
10448 builtin and then its argument prototype would still apply. */
10453 /* The GNU C library defines this for functions which it implements
10454 to always fail with ENOSYS. Some functions are actually named
10455 something starting with __ and the normal name is an alias. */
10456 #if defined __stub_$ac_func || defined __stub___$ac_func
10463 return $ac_func ();
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (ac_try="$ac_link"
10470 case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_link") 2>conftest.er1
10477 grep -v '^ *+' conftest.er1 >conftest.err
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10483 { (case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_try") 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; } &&
10492 { ac_try='test -s conftest$ac_exeext'
10493 { (case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_try") 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; }; then
10502 eval "$as_ac_var=yes"
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 eval "$as_ac_var=no"
10510 rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
10513 ac_res=`eval echo '${'$as_ac_var'}'`
10514 { echo "$as_me:$LINENO: result: $ac_res" >&5
10515 echo "${ECHO_T}$ac_res" >&6; }
10516 if test `eval echo '${'$as_ac_var'}'` = yes; then
10517 cat >>confdefs.h <<_ACEOF
10518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10524 LIBS="$lt_save_LIBS"
10527 ac_cpp='$CPP $CPPFLAGS'
10528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10534 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10535 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10536 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 ac_cv_sys_symbol_underscore=no
10540 cat > conftest.$ac_ext <<EOF
10541 void nm_test_func(){}
10542 int main(){nm_test_func;return 0;}
10544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10545 (eval $ac_compile) 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; then
10549 # Now try to grab the symbols.
10550 ac_nlist=conftest.nm
10551 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10552 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && test -s "$ac_nlist"; then
10556 # See whether the symbols have a leading underscore.
10557 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10558 ac_cv_sys_symbol_underscore=yes
10560 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10563 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10567 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10570 echo "configure: failed program was:" >&5
10576 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10577 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10580 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10581 if test x"$libltdl_cv_func_dlopen" = xyes ||
10582 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10583 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10584 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10585 if test "${libltdl_cv_need_uscore+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 libltdl_cv_need_uscore=unknown
10590 LIBS="$LIBS $LIBADD_DL"
10591 if test "$cross_compiling" = yes; then :
10592 libltdl_cv_need_uscore=cross
10594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10595 lt_status=$lt_dlunknown
10596 cat > conftest.$ac_ext <<EOF
10597 #line 10597 "configure"
10598 #include "confdefs.h"
10607 # define LT_DLGLOBAL RTLD_GLOBAL
10610 # define LT_DLGLOBAL DL_GLOBAL
10612 # define LT_DLGLOBAL 0
10616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10617 find out it does not work in some platform. */
10618 #ifndef LT_DLLAZY_OR_NOW
10620 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10623 # define LT_DLLAZY_OR_NOW DL_LAZY
10626 # define LT_DLLAZY_OR_NOW RTLD_NOW
10629 # define LT_DLLAZY_OR_NOW DL_NOW
10631 # define LT_DLLAZY_OR_NOW 0
10639 extern "C" void exit (int);
10642 void fnord() { int i=42;}
10645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10646 int status = $lt_dlunknown;
10650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10652 /* dlclose (self); */
10660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661 (eval $ac_link) 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10665 (./conftest; exit; ) >&5 2>/dev/null
10667 case x$lt_status in
10668 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10669 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10670 x$lt_dlunknown|x*) ;;
10673 # compilation failed
10682 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10683 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10687 if test x"$libltdl_cv_need_uscore" = xyes; then
10689 cat >>confdefs.h <<\_ACEOF
10690 #define NEED_USCORE 1
10696 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10697 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10698 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 # PORTME does your system automatically load deplibs for dlopen?
10702 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10703 # For now, we just catch OSes we know something about -- in the
10704 # future, we'll try test this programmatically.
10705 libltdl_cv_sys_dlopen_deplibs=unknown
10707 aix3*|aix4.1.*|aix4.2.*)
10708 # Unknown whether this is true for these versions of AIX, but
10709 # we want this `case' here to explicitly catch those versions.
10710 libltdl_cv_sys_dlopen_deplibs=unknown
10713 libltdl_cv_sys_dlopen_deplibs=yes
10716 # Assuming the user has installed a libdl from somewhere, this is true
10717 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10718 libltdl_cv_sys_dlopen_deplibs=yes
10720 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10721 # GNU and its variants, using gnu ld.so (Glibc)
10722 libltdl_cv_sys_dlopen_deplibs=yes
10725 libltdl_cv_sys_dlopen_deplibs=yes
10728 libltdl_cv_sys_dlopen_deplibs=yes
10730 irix[12345]*|irix6.[01]*)
10731 # Catch all versions of IRIX before 6.2, and indicate that we don't
10732 # know how it worked for any of those versions.
10733 libltdl_cv_sys_dlopen_deplibs=unknown
10736 # The case above catches anything before 6.2, and it's known that
10737 # at 6.2 and later dlopen does load deplibs.
10738 libltdl_cv_sys_dlopen_deplibs=yes
10741 libltdl_cv_sys_dlopen_deplibs=yes
10744 libltdl_cv_sys_dlopen_deplibs=yes
10747 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10748 # it did *not* use an RPATH in a shared library to find objects the
10749 # library depends on, so we explictly say `no'.
10750 libltdl_cv_sys_dlopen_deplibs=no
10752 osf5.0|osf5.0a|osf5.1)
10753 # dlopen *does* load deplibs and with the right loader patch applied
10754 # it even uses RPATH in a shared library to search for shared objects
10755 # that the library depends on, but there's no easy way to know if that
10756 # patch is installed. Since this is the case, all we can really
10757 # say is unknown -- it depends on the patch being installed. If
10758 # it is, this changes to `yes'. Without it, it would be `no'.
10759 libltdl_cv_sys_dlopen_deplibs=unknown
10762 # the two cases above should catch all versions of osf <= 5.1. Read
10763 # the comments above for what we know about them.
10764 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10765 # is used to find them so we can finally say `yes'.
10766 libltdl_cv_sys_dlopen_deplibs=yes
10769 libltdl_cv_sys_dlopen_deplibs=yes
10771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10772 libltdl_cv_sys_dlopen_deplibs=yes
10777 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10778 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10779 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10781 cat >>confdefs.h <<\_ACEOF
10782 #define LTDL_DLOPEN_DEPLIBS 1
10788 for ac_header in argz.h
10790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 ac_res=`eval echo '${'$as_ac_Header'}'`
10798 { echo "$as_me:$LINENO: result: $ac_res" >&5
10799 echo "${ECHO_T}$ac_res" >&6; }
10801 # Is the header compilable?
10802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10804 cat >conftest.$ac_ext <<_ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 $ac_includes_default
10811 #include <$ac_header>
10813 rm -f conftest.$ac_objext
10814 if { (ac_try="$ac_compile"
10815 case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_compile") 2>conftest.er1
10822 grep -v '^ *+' conftest.er1 >conftest.err
10824 cat conftest.err >&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } &&
10827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10828 { (case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_try") 2>&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; } &&
10837 { ac_try='test -s conftest.$ac_objext'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 ac_header_compiler=yes
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 ac_header_compiler=no
10855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10857 echo "${ECHO_T}$ac_header_compiler" >&6; }
10859 # Is the header present?
10860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10862 cat >conftest.$ac_ext <<_ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 #include <$ac_header>
10870 if { (ac_try="$ac_cpp conftest.$ac_ext"
10871 case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10878 grep -v '^ *+' conftest.er1 >conftest.err
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } >/dev/null; then
10883 if test -s conftest.err; then
10884 ac_cpp_err=$ac_c_preproc_warn_flag
10885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10892 if test -z "$ac_cpp_err"; then
10893 ac_header_preproc=yes
10895 echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10898 ac_header_preproc=no
10901 rm -f conftest.err conftest.$ac_ext
10902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10903 echo "${ECHO_T}$ac_header_preproc" >&6; }
10905 # So? What about this header?
10906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10912 ac_header_preproc=yes
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10928 ## ----------------------------------- ##
10929 ## Report this to llvmbugs@cs.uiuc.edu ##
10930 ## ----------------------------------- ##
10932 ) | sed "s/^/$as_me: WARNING: /" >&2
10935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 eval "$as_ac_Header=\$ac_header_preproc"
10942 ac_res=`eval echo '${'$as_ac_Header'}'`
10943 { echo "$as_me:$LINENO: result: $ac_res" >&5
10944 echo "${ECHO_T}$ac_res" >&6; }
10947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10948 cat >>confdefs.h <<_ACEOF
10949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10957 { echo "$as_me:$LINENO: checking for error_t" >&5
10958 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10959 if test "${ac_cv_type_error_t+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10972 typedef error_t ac__type_new_;
10976 if ((ac__type_new_ *) 0)
10978 if (sizeof (ac__type_new_))
10984 rm -f conftest.$ac_objext
10985 if { (ac_try="$ac_compile"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_compile") 2>conftest.er1
10993 grep -v '^ *+' conftest.er1 >conftest.err
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest.$ac_objext'
11009 { (case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_try") 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 ac_cv_type_error_t=yes
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11023 ac_cv_type_error_t=no
11026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11029 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11030 if test $ac_cv_type_error_t = yes; then
11032 cat >>confdefs.h <<_ACEOF
11033 #define HAVE_ERROR_T 1
11039 cat >>confdefs.h <<\_ACEOF
11040 #define error_t int
11051 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 cat >conftest.$ac_ext <<_ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h. */
11065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11067 #define $ac_func innocuous_$ac_func
11069 /* System header to define __stub macros and hopefully few prototypes,
11070 which can conflict with char $ac_func (); below.
11071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11072 <limits.h> exists even on freestanding compilers. */
11075 # include <limits.h>
11077 # include <assert.h>
11082 /* Override any GCC internal prototype to avoid an error.
11083 Use char because int might match the return type of a GCC
11084 builtin and then its argument prototype would still apply. */
11089 /* The GNU C library defines this for functions which it implements
11090 to always fail with ENOSYS. Some functions are actually named
11091 something starting with __ and the normal name is an alias. */
11092 #if defined __stub_$ac_func || defined __stub___$ac_func
11099 return $ac_func ();
11104 rm -f conftest.$ac_objext conftest$ac_exeext
11105 if { (ac_try="$ac_link"
11106 case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_link") 2>conftest.er1
11113 grep -v '^ *+' conftest.er1 >conftest.err
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119 { (case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_try") 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; } &&
11128 { ac_try='test -s conftest$ac_exeext'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 eval "$as_ac_var=yes"
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 eval "$as_ac_var=no"
11146 rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11149 ac_res=`eval echo '${'$as_ac_var'}'`
11150 { echo "$as_me:$LINENO: result: $ac_res" >&5
11151 echo "${ECHO_T}$ac_res" >&6; }
11152 if test `eval echo '${'$as_ac_var'}'` = yes; then
11153 cat >>confdefs.h <<_ACEOF
11154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11187 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 ac_res=`eval echo '${'$as_ac_Header'}'`
11198 { echo "$as_me:$LINENO: result: $ac_res" >&5
11199 echo "${ECHO_T}$ac_res" >&6; }
11201 # Is the header compilable?
11202 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11204 cat >conftest.$ac_ext <<_ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210 $ac_includes_default
11211 #include <$ac_header>
11213 rm -f conftest.$ac_objext
11214 if { (ac_try="$ac_compile"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_compile") 2>conftest.er1
11222 grep -v '^ *+' conftest.er1 >conftest.err
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
11227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11228 { (case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_try") 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (case "(($ac_try" in
11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243 (eval "$ac_try") 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
11247 ac_header_compiler=yes
11249 echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11252 ac_header_compiler=no
11255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11257 echo "${ECHO_T}$ac_header_compiler" >&6; }
11259 # Is the header present?
11260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11262 cat >conftest.$ac_ext <<_ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 #include <$ac_header>
11270 if { (ac_try="$ac_cpp conftest.$ac_ext"
11271 case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11278 grep -v '^ *+' conftest.er1 >conftest.err
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } >/dev/null; then
11283 if test -s conftest.err; then
11284 ac_cpp_err=$ac_c_preproc_warn_flag
11285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11292 if test -z "$ac_cpp_err"; then
11293 ac_header_preproc=yes
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 ac_header_preproc=no
11301 rm -f conftest.err conftest.$ac_ext
11302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303 echo "${ECHO_T}$ac_header_preproc" >&6; }
11305 # So? What about this header?
11306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11312 ac_header_preproc=yes
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11328 ## ----------------------------------- ##
11329 ## Report this to llvmbugs@cs.uiuc.edu ##
11330 ## ----------------------------------- ##
11332 ) | sed "s/^/$as_me: WARNING: /" >&2
11335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 eval "$as_ac_Header=\$ac_header_preproc"
11342 ac_res=`eval echo '${'$as_ac_Header'}'`
11343 { echo "$as_me:$LINENO: result: $ac_res" >&5
11344 echo "${ECHO_T}$ac_res" >&6; }
11347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11348 cat >>confdefs.h <<_ACEOF
11349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11360 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 ac_res=`eval echo '${'$as_ac_Header'}'`
11370 { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11373 # Is the header compilable?
11374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 $ac_includes_default
11383 #include <$ac_header>
11385 rm -f conftest.$ac_objext
11386 if { (ac_try="$ac_compile"
11387 case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_compile") 2>conftest.er1
11394 grep -v '^ *+' conftest.er1 >conftest.err
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11400 { (case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_try") 2>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; } &&
11409 { ac_try='test -s conftest.$ac_objext'
11410 { (case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_try") 2>&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 ac_header_compiler=yes
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 ac_header_compiler=no
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11429 echo "${ECHO_T}$ac_header_compiler" >&6; }
11431 # Is the header present?
11432 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11434 cat >conftest.$ac_ext <<_ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11440 #include <$ac_header>
11442 if { (ac_try="$ac_cpp conftest.$ac_ext"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11450 grep -v '^ *+' conftest.er1 >conftest.err
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } >/dev/null; then
11455 if test -s conftest.err; then
11456 ac_cpp_err=$ac_c_preproc_warn_flag
11457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11464 if test -z "$ac_cpp_err"; then
11465 ac_header_preproc=yes
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 ac_header_preproc=no
11473 rm -f conftest.err conftest.$ac_ext
11474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11475 echo "${ECHO_T}$ac_header_preproc" >&6; }
11477 # So? What about this header?
11478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11484 ac_header_preproc=yes
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11500 ## ----------------------------------- ##
11501 ## Report this to llvmbugs@cs.uiuc.edu ##
11502 ## ----------------------------------- ##
11504 ) | sed "s/^/$as_me: WARNING: /" >&2
11507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 eval "$as_ac_Header=\$ac_header_preproc"
11514 ac_res=`eval echo '${'$as_ac_Header'}'`
11515 { echo "$as_me:$LINENO: result: $ac_res" >&5
11516 echo "${ECHO_T}$ac_res" >&6; }
11519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11520 cat >>confdefs.h <<_ACEOF
11521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11530 for ac_header in string.h strings.h
11532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 ac_res=`eval echo '${'$as_ac_Header'}'`
11540 { echo "$as_me:$LINENO: result: $ac_res" >&5
11541 echo "${ECHO_T}$ac_res" >&6; }
11543 # Is the header compilable?
11544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11546 cat >conftest.$ac_ext <<_ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 $ac_includes_default
11553 #include <$ac_header>
11555 rm -f conftest.$ac_objext
11556 if { (ac_try="$ac_compile"
11557 case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_compile") 2>conftest.er1
11564 grep -v '^ *+' conftest.er1 >conftest.err
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } &&
11569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11570 { (case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_try") 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; } &&
11579 { ac_try='test -s conftest.$ac_objext'
11580 { (case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_try") 2>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11589 ac_header_compiler=yes
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 ac_header_compiler=no
11597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11599 echo "${ECHO_T}$ac_header_compiler" >&6; }
11601 # Is the header present?
11602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11604 cat >conftest.$ac_ext <<_ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 #include <$ac_header>
11612 if { (ac_try="$ac_cpp conftest.$ac_ext"
11613 case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11620 grep -v '^ *+' conftest.er1 >conftest.err
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } >/dev/null; then
11625 if test -s conftest.err; then
11626 ac_cpp_err=$ac_c_preproc_warn_flag
11627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11634 if test -z "$ac_cpp_err"; then
11635 ac_header_preproc=yes
11637 echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11640 ac_header_preproc=no
11643 rm -f conftest.err conftest.$ac_ext
11644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11645 echo "${ECHO_T}$ac_header_preproc" >&6; }
11647 # So? What about this header?
11648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11654 ac_header_preproc=yes
11657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11670 ## ----------------------------------- ##
11671 ## Report this to llvmbugs@cs.uiuc.edu ##
11672 ## ----------------------------------- ##
11674 ) | sed "s/^/$as_me: WARNING: /" >&2
11677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 eval "$as_ac_Header=\$ac_header_preproc"
11684 ac_res=`eval echo '${'$as_ac_Header'}'`
11685 { echo "$as_me:$LINENO: result: $ac_res" >&5
11686 echo "${ECHO_T}$ac_res" >&6; }
11689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11690 cat >>confdefs.h <<_ACEOF
11691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11701 for ac_func in strchr index
11703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 cat >conftest.$ac_ext <<_ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11717 #define $ac_func innocuous_$ac_func
11719 /* System header to define __stub macros and hopefully few prototypes,
11720 which can conflict with char $ac_func (); below.
11721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11722 <limits.h> exists even on freestanding compilers. */
11725 # include <limits.h>
11727 # include <assert.h>
11732 /* Override any GCC internal prototype to avoid an error.
11733 Use char because int might match the return type of a GCC
11734 builtin and then its argument prototype would still apply. */
11739 /* The GNU C library defines this for functions which it implements
11740 to always fail with ENOSYS. Some functions are actually named
11741 something starting with __ and the normal name is an alias. */
11742 #if defined __stub_$ac_func || defined __stub___$ac_func
11749 return $ac_func ();
11754 rm -f conftest.$ac_objext conftest$ac_exeext
11755 if { (ac_try="$ac_link"
11756 case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_link") 2>conftest.er1
11763 grep -v '^ *+' conftest.er1 >conftest.err
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } &&
11768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11769 { (case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774 (eval "$ac_try") 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest$ac_exeext'
11779 { (case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_try") 2>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11788 eval "$as_ac_var=yes"
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 eval "$as_ac_var=no"
11796 rm -f core conftest.err conftest.$ac_objext \
11797 conftest$ac_exeext conftest.$ac_ext
11799 ac_res=`eval echo '${'$as_ac_var'}'`
11800 { echo "$as_me:$LINENO: result: $ac_res" >&5
11801 echo "${ECHO_T}$ac_res" >&6; }
11802 if test `eval echo '${'$as_ac_var'}'` = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11812 for ac_func in strrchr rindex
11814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 cat >conftest.$ac_ext <<_ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11828 #define $ac_func innocuous_$ac_func
11830 /* System header to define __stub macros and hopefully few prototypes,
11831 which can conflict with char $ac_func (); below.
11832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11833 <limits.h> exists even on freestanding compilers. */
11836 # include <limits.h>
11838 # include <assert.h>
11843 /* Override any GCC internal prototype to avoid an error.
11844 Use char because int might match the return type of a GCC
11845 builtin and then its argument prototype would still apply. */
11850 /* The GNU C library defines this for functions which it implements
11851 to always fail with ENOSYS. Some functions are actually named
11852 something starting with __ and the normal name is an alias. */
11853 #if defined __stub_$ac_func || defined __stub___$ac_func
11860 return $ac_func ();
11865 rm -f conftest.$ac_objext conftest$ac_exeext
11866 if { (ac_try="$ac_link"
11867 case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_link") 2>conftest.er1
11874 grep -v '^ *+' conftest.er1 >conftest.err
11876 cat conftest.err >&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } &&
11879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11880 { (case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885 (eval "$ac_try") 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; } &&
11889 { ac_try='test -s conftest$ac_exeext'
11890 { (case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_try") 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 eval "$as_ac_var=yes"
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 eval "$as_ac_var=no"
11907 rm -f core conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11910 ac_res=`eval echo '${'$as_ac_var'}'`
11911 { echo "$as_me:$LINENO: result: $ac_res" >&5
11912 echo "${ECHO_T}$ac_res" >&6; }
11913 if test `eval echo '${'$as_ac_var'}'` = yes; then
11914 cat >>confdefs.h <<_ACEOF
11915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11923 for ac_func in memcpy bcopy
11925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 cat >conftest.$ac_ext <<_ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11939 #define $ac_func innocuous_$ac_func
11941 /* System header to define __stub macros and hopefully few prototypes,
11942 which can conflict with char $ac_func (); below.
11943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11944 <limits.h> exists even on freestanding compilers. */
11947 # include <limits.h>
11949 # include <assert.h>
11954 /* Override any GCC internal prototype to avoid an error.
11955 Use char because int might match the return type of a GCC
11956 builtin and then its argument prototype would still apply. */
11961 /* The GNU C library defines this for functions which it implements
11962 to always fail with ENOSYS. Some functions are actually named
11963 something starting with __ and the normal name is an alias. */
11964 #if defined __stub_$ac_func || defined __stub___$ac_func
11971 return $ac_func ();
11976 rm -f conftest.$ac_objext conftest$ac_exeext
11977 if { (ac_try="$ac_link"
11978 case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_link") 2>conftest.er1
11985 grep -v '^ *+' conftest.er1 >conftest.err
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } &&
11990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11991 { (case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_try") 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest$ac_exeext'
12001 { (case "(($ac_try" in
12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_try") 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 eval "$as_ac_var=yes"
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 eval "$as_ac_var=no"
12018 rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
12021 ac_res=`eval echo '${'$as_ac_var'}'`
12022 { echo "$as_me:$LINENO: result: $ac_res" >&5
12023 echo "${ECHO_T}$ac_res" >&6; }
12024 if test `eval echo '${'$as_ac_var'}'` = yes; then
12025 cat >>confdefs.h <<_ACEOF
12026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12034 for ac_func in memmove strcmp
12036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 cat >conftest.$ac_ext <<_ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12050 #define $ac_func innocuous_$ac_func
12052 /* System header to define __stub macros and hopefully few prototypes,
12053 which can conflict with char $ac_func (); below.
12054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12055 <limits.h> exists even on freestanding compilers. */
12058 # include <limits.h>
12060 # include <assert.h>
12065 /* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
12072 /* The GNU C library defines this for functions which it implements
12073 to always fail with ENOSYS. Some functions are actually named
12074 something starting with __ and the normal name is an alias. */
12075 #if defined __stub_$ac_func || defined __stub___$ac_func
12082 return $ac_func ();
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (ac_try="$ac_link"
12089 case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094 (eval "$ac_link") 2>conftest.er1
12096 grep -v '^ *+' conftest.er1 >conftest.err
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } &&
12101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12102 { (case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_try") 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest$ac_exeext'
12112 { (case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_try") 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 eval "$as_ac_var=yes"
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 eval "$as_ac_var=no"
12129 rm -f core conftest.err conftest.$ac_objext \
12130 conftest$ac_exeext conftest.$ac_ext
12132 ac_res=`eval echo '${'$as_ac_var'}'`
12133 { echo "$as_me:$LINENO: result: $ac_res" >&5
12134 echo "${ECHO_T}$ac_res" >&6; }
12135 if test `eval echo '${'$as_ac_var'}'` = yes; then
12136 cat >>confdefs.h <<_ACEOF
12137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12146 for ac_func in closedir opendir readdir
12148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12162 #define $ac_func innocuous_$ac_func
12164 /* System header to define __stub macros and hopefully few prototypes,
12165 which can conflict with char $ac_func (); below.
12166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12167 <limits.h> exists even on freestanding compilers. */
12170 # include <limits.h>
12172 # include <assert.h>
12177 /* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
12184 /* The GNU C library defines this for functions which it implements
12185 to always fail with ENOSYS. Some functions are actually named
12186 something starting with __ and the normal name is an alias. */
12187 #if defined __stub_$ac_func || defined __stub___$ac_func
12194 return $ac_func ();
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_link") 2>conftest.er1
12208 grep -v '^ *+' conftest.er1 >conftest.err
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12214 { (case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_try") 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest$ac_exeext'
12224 { (case "(($ac_try" in
12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_try") 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; }; then
12233 eval "$as_ac_var=yes"
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12238 eval "$as_ac_var=no"
12241 rm -f core conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
12244 ac_res=`eval echo '${'$as_ac_var'}'`
12245 { echo "$as_me:$LINENO: result: $ac_res" >&5
12246 echo "${ECHO_T}$ac_res" >&6; }
12247 if test `eval echo '${'$as_ac_var'}'` = yes; then
12248 cat >>confdefs.h <<_ACEOF
12249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12256 # Check whether --enable-shared was given.
12257 if test "${enable_shared+set}" = set; then
12258 enableval=$enable_shared; p=${PACKAGE-default}
12260 yes) enable_shared=yes ;;
12261 no) enable_shared=no ;;
12264 # Look at the argument we got. We use all the common list separators.
12265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12266 for pkg in $enableval; do
12268 if test "X$pkg" = "X$p"; then
12280 # Check whether --enable-static was given.
12281 if test "${enable_static+set}" = set; then
12282 enableval=$enable_static; p=${PACKAGE-default}
12284 yes) enable_static=yes ;;
12285 no) enable_static=no ;;
12288 # Look at the argument we got. We use all the common list separators.
12289 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12290 for pkg in $enableval; do
12292 if test "X$pkg" = "X$p"; then
12304 # Check whether --enable-fast-install was given.
12305 if test "${enable_fast_install+set}" = set; then
12306 enableval=$enable_fast_install; p=${PACKAGE-default}
12308 yes) enable_fast_install=yes ;;
12309 no) enable_fast_install=no ;;
12311 enable_fast_install=no
12312 # Look at the argument we got. We use all the common list separators.
12313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12314 for pkg in $enableval; do
12316 if test "X$pkg" = "X$p"; then
12317 enable_fast_install=yes
12324 enable_fast_install=yes
12328 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12329 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12330 if test "${lt_cv_path_SED+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 # Loop through the user's path and test for sed and gsed.
12334 # Then use that list of sed's as ones to test for truncation.
12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336 for as_dir in $PATH
12339 test -z "$as_dir" && as_dir=.
12340 for lt_ac_prog in sed gsed; do
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12343 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12350 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12351 # along with /bin/sed that truncates output.
12352 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12353 test ! -f $lt_ac_sed && continue
12354 cat /dev/null > conftest.in
12356 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12357 # Check for GNU sed and select it if it is found.
12358 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12359 lt_cv_path_SED=$lt_ac_sed
12363 cat conftest.in conftest.in >conftest.tmp
12364 mv conftest.tmp conftest.in
12365 cp conftest.in conftest.nl
12367 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12368 cmp -s conftest.out conftest.nl || break
12369 # 10000 chars as input seems more than enough
12370 test $lt_ac_count -gt 10 && break
12371 lt_ac_count=`expr $lt_ac_count + 1`
12372 if test $lt_ac_count -gt $lt_ac_max; then
12373 lt_ac_max=$lt_ac_count
12374 lt_cv_path_SED=$lt_ac_sed
12381 SED=$lt_cv_path_SED
12382 { echo "$as_me:$LINENO: result: $SED" >&5
12383 echo "${ECHO_T}$SED" >&6; }
12386 # Check whether --with-gnu-ld was given.
12387 if test "${with_gnu_ld+set}" = set; then
12388 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12394 if test "$GCC" = yes; then
12395 # Check if gcc -print-prog-name=ld gives a path.
12396 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12397 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12400 # gcc leaves a trailing carriage return which upsets mingw
12401 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12403 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12406 # Accept absolute paths.
12408 re_direlt='/[^/][^/]*/\.\./'
12409 # Canonicalize the pathname of ld
12410 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12411 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12412 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12414 test -z "$LD" && LD="$ac_prog"
12417 # If it fails, then pretend we aren't using GCC.
12421 # If it is relative, then search for the first ld in PATH.
12422 with_gnu_ld=unknown
12425 elif test "$with_gnu_ld" = yes; then
12426 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12427 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12429 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12430 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12432 if test "${lt_cv_path_LD+set}" = set; then
12433 echo $ECHO_N "(cached) $ECHO_C" >&6
12435 if test -z "$LD"; then
12436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12437 for ac_dir in $PATH; do
12439 test -z "$ac_dir" && ac_dir=.
12440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12441 lt_cv_path_LD="$ac_dir/$ac_prog"
12442 # Check to see if the program is GNU ld. I'd rather use --version,
12443 # but apparently some variants of GNU ld only accept -v.
12444 # Break only if it was the GNU/non-GNU ld that we prefer.
12445 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12446 *GNU* | *'with BFD'*)
12447 test "$with_gnu_ld" != no && break
12450 test "$with_gnu_ld" != yes && break
12457 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12461 LD="$lt_cv_path_LD"
12462 if test -n "$LD"; then
12463 { echo "$as_me:$LINENO: result: $LD" >&5
12464 echo "${ECHO_T}$LD" >&6; }
12466 { echo "$as_me:$LINENO: result: no" >&5
12467 echo "${ECHO_T}no" >&6; }
12469 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12470 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12471 { (exit 1); exit 1; }; }
12472 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12473 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12474 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12478 case `$LD -v 2>&1 </dev/null` in
12479 *GNU* | *'with BFD'*)
12480 lt_cv_prog_gnu_ld=yes
12483 lt_cv_prog_gnu_ld=no
12487 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12488 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12489 with_gnu_ld=$lt_cv_prog_gnu_ld
12492 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12493 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12494 if test "${lt_cv_ld_reload_flag+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 lt_cv_ld_reload_flag='-r'
12499 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12500 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12501 reload_flag=$lt_cv_ld_reload_flag
12502 case $reload_flag in
12504 *) reload_flag=" $reload_flag" ;;
12506 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12509 if test "$GCC" = yes; then
12510 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12512 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12517 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12518 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12519 if test "${lt_cv_deplibs_check_method+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 lt_cv_file_magic_cmd='$MAGIC_CMD'
12523 lt_cv_file_magic_test_file=
12524 lt_cv_deplibs_check_method='unknown'
12525 # Need to set the preceding variable on all platforms that support
12526 # interlibrary dependencies.
12527 # 'none' -- dependencies not supported.
12528 # `unknown' -- same as none, but documents that we really don't know.
12529 # 'pass_all' -- all dependencies passed with no checks.
12530 # 'test_compile' -- check by making test program.
12531 # 'file_magic [[regex]]' -- check by looking for files in library path
12532 # which responds to the $file_magic_cmd with a given extended regex.
12533 # If you have `file' or equivalent on your system and you're not sure
12534 # whether `pass_all' will *always* work, you probably want this one.
12538 lt_cv_deplibs_check_method=pass_all
12542 lt_cv_deplibs_check_method=pass_all
12546 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12547 lt_cv_file_magic_cmd='/usr/bin/file -L'
12548 lt_cv_file_magic_test_file=/shlib/libc.so
12552 # func_win32_libid is a shell function defined in ltmain.sh
12553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12554 lt_cv_file_magic_cmd='func_win32_libid'
12558 # Base MSYS/MinGW do not provide the 'file' command needed by
12559 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12560 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12561 lt_cv_file_magic_cmd='$OBJDUMP -f'
12564 darwin* | rhapsody*)
12565 lt_cv_deplibs_check_method=pass_all
12568 freebsd* | kfreebsd*-gnu | dragonfly*)
12569 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12572 # Not sure whether the presence of OpenBSD here was a mistake.
12573 # Let's accept both of them until this is cleared up.
12574 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12575 lt_cv_file_magic_cmd=/usr/bin/file
12576 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12580 lt_cv_deplibs_check_method=pass_all
12585 lt_cv_deplibs_check_method=pass_all
12588 hpux10.20* | hpux11*)
12589 lt_cv_file_magic_cmd=/usr/bin/file
12592 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12593 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12596 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]'
12597 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12600 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12601 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12607 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12611 irix5* | irix6* | nonstopux*)
12613 *-32|*"-32 ") libmagic=32-bit;;
12614 *-n32|*"-n32 ") libmagic=N32;;
12615 *-64|*"-64 ") libmagic=64-bit;;
12616 *) libmagic=never-match;;
12618 lt_cv_deplibs_check_method=pass_all
12621 # This must be Linux ELF.
12623 lt_cv_deplibs_check_method=pass_all
12627 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12636 lt_cv_file_magic_cmd=/usr/bin/file
12637 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12641 lt_cv_deplibs_check_method=unknown
12645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12652 osf3* | osf4* | osf5*)
12653 lt_cv_deplibs_check_method=pass_all
12657 lt_cv_deplibs_check_method=pass_all
12661 case $host_vendor in
12663 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]'
12664 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12667 lt_cv_deplibs_check_method=pass_all
12670 lt_cv_file_magic_cmd='/bin/file'
12671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12674 lt_cv_file_magic_cmd='/bin/file'
12675 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12676 lt_cv_file_magic_test_file=/lib/libc.so
12679 lt_cv_deplibs_check_method=pass_all
12682 lt_cv_deplibs_check_method=pass_all
12687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12688 lt_cv_deplibs_check_method=pass_all
12693 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12694 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12695 file_magic_cmd=$lt_cv_file_magic_cmd
12696 deplibs_check_method=$lt_cv_deplibs_check_method
12697 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12701 # If no C compiler was specified, use CC.
12704 # If no C compiler flags were specified, use CFLAGS.
12705 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12707 # Allow CC to be a program name with arguments.
12710 # Check whether --enable-libtool-lock was given.
12711 if test "${enable_libtool_lock+set}" = set; then
12712 enableval=$enable_libtool_lock;
12715 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12717 # Some flags need to be propagated to the compiler or linker for good
12721 # Find out which ABI we are using.
12722 echo 'int i;' > conftest.$ac_ext
12723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12724 (eval $ac_compile) 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; then
12728 case `/usr/bin/file conftest.$ac_objext` in
12730 HPUX_IA64_MODE="32"
12733 HPUX_IA64_MODE="64"
12740 # Find out which ABI we are using.
12741 echo '#line 12741 "configure"' > conftest.$ac_ext
12742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743 (eval $ac_compile) 2>&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; then
12747 if test "$lt_cv_prog_gnu_ld" = yes; then
12748 case `/usr/bin/file conftest.$ac_objext` in
12750 LD="${LD-ld} -melf32bsmip"
12753 LD="${LD-ld} -melf32bmipn32"
12756 LD="${LD-ld} -melf64bmip"
12760 case `/usr/bin/file conftest.$ac_objext` in
12776 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12777 # Find out which ABI we are using.
12778 echo 'int i;' > conftest.$ac_ext
12779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780 (eval $ac_compile) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; then
12784 case `/usr/bin/file conftest.o` in
12788 LD="${LD-ld} -m elf_i386"
12790 ppc64-*linux*|powerpc64-*linux*)
12791 LD="${LD-ld} -m elf32ppclinux"
12794 LD="${LD-ld} -m elf_s390"
12797 LD="${LD-ld} -m elf32_sparc"
12804 LD="${LD-ld} -m elf_x86_64"
12806 ppc*-*linux*|powerpc*-*linux*)
12807 LD="${LD-ld} -m elf64ppc"
12810 LD="${LD-ld} -m elf64_s390"
12813 LD="${LD-ld} -m elf64_sparc"
12823 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12824 SAVE_CFLAGS="$CFLAGS"
12825 CFLAGS="$CFLAGS -belf"
12826 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12827 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12828 if test "${lt_cv_cc_needs_belf+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12832 ac_cpp='$CPP $CPPFLAGS'
12833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12852 rm -f conftest.$ac_objext conftest$ac_exeext
12853 if { (ac_try="$ac_link"
12854 case "(($ac_try" in
12855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12856 *) ac_try_echo=$ac_try;;
12858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12859 (eval "$ac_link") 2>conftest.er1
12861 grep -v '^ *+' conftest.er1 >conftest.err
12863 cat conftest.err >&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
12866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12867 { (case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_try") 2>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; } &&
12876 { ac_try='test -s conftest$ac_exeext'
12877 { (case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_try") 2>&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 lt_cv_cc_needs_belf=yes
12888 echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12891 lt_cv_cc_needs_belf=no
12894 rm -f core conftest.err conftest.$ac_objext \
12895 conftest$ac_exeext conftest.$ac_ext
12897 ac_cpp='$CPP $CPPFLAGS'
12898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12903 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12904 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12905 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12906 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12907 CFLAGS="$SAVE_CFLAGS"
12911 # Find out which ABI we are using.
12912 echo 'int i;' > conftest.$ac_ext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914 (eval $ac_compile) 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; then
12918 case `/usr/bin/file conftest.o` in
12920 case $lt_cv_prog_gnu_ld in
12921 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12922 *) LD="${LD-ld} -64" ;;
12933 need_locks="$enable_libtool_lock"
12938 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12939 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12940 (test "X$CXX" != "Xg++"))) ; then
12942 ac_cpp='$CXXCPP $CPPFLAGS'
12943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12946 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12947 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12948 if test -z "$CXXCPP"; then
12949 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 # Double quotes because CXXCPP needs to be expanded
12953 for CXXCPP in "$CXX -E" "/lib/cpp"
12955 ac_preproc_ok=false
12956 for ac_cxx_preproc_warn_flag in '' yes
12958 # Use a header file that comes with gcc, so configuring glibc
12959 # with a fresh cross-compiler works.
12960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12961 # <limits.h> exists even on freestanding compilers.
12962 # On the NeXT, cc -E runs the code through the compiler's parser,
12963 # not just through cpp. "Syntax error" is here to catch this case.
12964 cat >conftest.$ac_ext <<_ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12971 # include <limits.h>
12973 # include <assert.h>
12977 if { (ac_try="$ac_cpp conftest.$ac_ext"
12978 case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12985 grep -v '^ *+' conftest.er1 >conftest.err
12987 cat conftest.err >&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } >/dev/null; then
12990 if test -s conftest.err; then
12991 ac_cpp_err=$ac_cxx_preproc_warn_flag
12992 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12999 if test -z "$ac_cpp_err"; then
13002 echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13005 # Broken: fails on valid input.
13009 rm -f conftest.err conftest.$ac_ext
13011 # OK, works on sane cases. Now check whether nonexistent headers
13012 # can be detected and how.
13013 cat >conftest.$ac_ext <<_ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13019 #include <ac_nonexistent.h>
13021 if { (ac_try="$ac_cpp conftest.$ac_ext"
13022 case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13029 grep -v '^ *+' conftest.er1 >conftest.err
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } >/dev/null; then
13034 if test -s conftest.err; then
13035 ac_cpp_err=$ac_cxx_preproc_warn_flag
13036 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13043 if test -z "$ac_cpp_err"; then
13044 # Broken: success on invalid input.
13047 echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13050 # Passes both tests.
13055 rm -f conftest.err conftest.$ac_ext
13058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13059 rm -f conftest.err conftest.$ac_ext
13060 if $ac_preproc_ok; then
13065 ac_cv_prog_CXXCPP=$CXXCPP
13068 CXXCPP=$ac_cv_prog_CXXCPP
13070 ac_cv_prog_CXXCPP=$CXXCPP
13072 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13073 echo "${ECHO_T}$CXXCPP" >&6; }
13074 ac_preproc_ok=false
13075 for ac_cxx_preproc_warn_flag in '' yes
13077 # Use a header file that comes with gcc, so configuring glibc
13078 # with a fresh cross-compiler works.
13079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13080 # <limits.h> exists even on freestanding compilers.
13081 # On the NeXT, cc -E runs the code through the compiler's parser,
13082 # not just through cpp. "Syntax error" is here to catch this case.
13083 cat >conftest.$ac_ext <<_ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13090 # include <limits.h>
13092 # include <assert.h>
13096 if { (ac_try="$ac_cpp conftest.$ac_ext"
13097 case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13104 grep -v '^ *+' conftest.er1 >conftest.err
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } >/dev/null; then
13109 if test -s conftest.err; then
13110 ac_cpp_err=$ac_cxx_preproc_warn_flag
13111 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13118 if test -z "$ac_cpp_err"; then
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 # Broken: fails on valid input.
13128 rm -f conftest.err conftest.$ac_ext
13130 # OK, works on sane cases. Now check whether nonexistent headers
13131 # can be detected and how.
13132 cat >conftest.$ac_ext <<_ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13138 #include <ac_nonexistent.h>
13140 if { (ac_try="$ac_cpp conftest.$ac_ext"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13148 grep -v '^ *+' conftest.er1 >conftest.err
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } >/dev/null; then
13153 if test -s conftest.err; then
13154 ac_cpp_err=$ac_cxx_preproc_warn_flag
13155 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13162 if test -z "$ac_cpp_err"; then
13163 # Broken: success on invalid input.
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 # Passes both tests.
13174 rm -f conftest.err conftest.$ac_ext
13177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13178 rm -f conftest.err conftest.$ac_ext
13179 if $ac_preproc_ok; then
13182 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13183 See \`config.log' for more details." >&5
13184 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13185 See \`config.log' for more details." >&2;}
13186 { (exit 1); exit 1; }; }
13190 ac_cpp='$CXXCPP $CPPFLAGS'
13191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13199 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13200 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13201 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13202 if test -n "$ac_tool_prefix"; then
13203 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
13205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13209 if test "${ac_cv_prog_F77+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 if test -n "$F77"; then
13213 ac_cv_prog_F77="$F77" # Let the user override the test.
13215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216 for as_dir in $PATH
13219 test -z "$as_dir" && as_dir=.
13220 for ac_exec_ext in '' $ac_executable_extensions; do
13221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13222 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13232 F77=$ac_cv_prog_F77
13233 if test -n "$F77"; then
13234 { echo "$as_me:$LINENO: result: $F77" >&5
13235 echo "${ECHO_T}$F77" >&6; }
13237 { echo "$as_me:$LINENO: result: no" >&5
13238 echo "${ECHO_T}no" >&6; }
13242 test -n "$F77" && break
13245 if test -z "$F77"; then
13247 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
13249 # Extract the first word of "$ac_prog", so it can be a program name with args.
13250 set dummy $ac_prog; ac_word=$2
13251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13253 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 if test -n "$ac_ct_F77"; then
13257 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13266 ac_cv_prog_ac_ct_F77="$ac_prog"
13267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13276 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13277 if test -n "$ac_ct_F77"; then
13278 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13279 echo "${ECHO_T}$ac_ct_F77" >&6; }
13281 { echo "$as_me:$LINENO: result: no" >&5
13282 echo "${ECHO_T}no" >&6; }
13286 test -n "$ac_ct_F77" && break
13289 if test "x$ac_ct_F77" = x; then
13292 case $cross_compiling:$ac_tool_warned in
13294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13295 whose name does not start with the host triplet. If you think this
13296 configuration is useful to you, please write to autoconf@gnu.org." >&5
13297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13298 whose name does not start with the host triplet. If you think this
13299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13300 ac_tool_warned=yes ;;
13307 # Provide some information about the compiler.
13308 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13309 ac_compiler=`set X $ac_compile; echo $2`
13310 { (ac_try="$ac_compiler --version >&5"
13311 case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_compiler --version >&5") 2>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }
13320 { (ac_try="$ac_compiler -v >&5"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_compiler -v >&5") 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }
13330 { (ac_try="$ac_compiler -V >&5"
13331 case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_compiler -V >&5") 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }
13342 # If we don't use `.F' as extension, the preprocessor is not run on the
13343 # input file. (Note that this only needs to work for GNU compilers.)
13344 ac_save_ext=$ac_ext
13346 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13347 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13348 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 cat >conftest.$ac_ext <<_ACEOF
13359 rm -f conftest.$ac_objext
13360 if { (ac_try="$ac_compile"
13361 case "(($ac_try" in
13362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363 *) ac_try_echo=$ac_try;;
13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366 (eval "$ac_compile") 2>conftest.er1
13368 grep -v '^ *+' conftest.er1 >conftest.err
13370 cat conftest.err >&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } &&
13373 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13374 { (case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_try") 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; } &&
13383 { ac_try='test -s conftest.$ac_objext'
13384 { (case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_try") 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_compiler_gnu=yes
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13405 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13406 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13407 ac_ext=$ac_save_ext
13408 ac_test_FFLAGS=${FFLAGS+set}
13409 ac_save_FFLAGS=$FFLAGS
13411 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13412 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13413 if test "${ac_cv_prog_f77_g+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 cat >conftest.$ac_ext <<_ACEOF
13422 rm -f conftest.$ac_objext
13423 if { (ac_try="$ac_compile"
13424 case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_compile") 2>conftest.er1
13431 grep -v '^ *+' conftest.er1 >conftest.err
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; } &&
13446 { ac_try='test -s conftest.$ac_objext'
13447 { (case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_try") 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 ac_cv_prog_f77_g=yes
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13461 ac_cv_prog_f77_g=no
13464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13467 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13468 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13469 if test "$ac_test_FFLAGS" = set; then
13470 FFLAGS=$ac_save_FFLAGS
13471 elif test $ac_cv_prog_f77_g = yes; then
13472 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13478 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13485 G77=`test $ac_compiler_gnu = yes && echo yes`
13487 ac_cpp='$CPP $CPPFLAGS'
13488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13494 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13496 # find the maximum length of command line arguments
13497 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13498 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13499 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13507 # On DJGPP, this test can blow up pretty badly due to problems in libc
13508 # (any single argument exceeding 2000 bytes causes a buffer overrun
13509 # during glob expansion). Even if it were fixed, the result of this
13510 # check would be larger than it should be.
13511 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13515 # Under GNU Hurd, this test is not required because there is
13516 # no limit to the length of command line arguments.
13517 # Libtool will interpret -1 as no limit whatsoever
13518 lt_cv_sys_max_cmd_len=-1;
13522 # On Win9x/ME, this test blows up -- it succeeds, but takes
13523 # about 5 minutes as the teststring grows exponentially.
13524 # Worse, since 9x/ME are not pre-emptively multitasking,
13525 # you end up with a "frozen" computer, even though with patience
13526 # the test eventually succeeds (with a max line length of 256k).
13527 # Instead, let's just punt: use the minimum linelength reported by
13528 # all of the supported platforms: 8192 (on NT/2K/XP).
13529 lt_cv_sys_max_cmd_len=8192;
13533 # On AmigaOS with pdksh, this test takes hours, literally.
13534 # So we just punt and use a minimum line length of 8192.
13535 lt_cv_sys_max_cmd_len=8192;
13538 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13539 # This has been around since 386BSD, at least. Likely further.
13540 if test -x /sbin/sysctl; then
13541 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13542 elif test -x /usr/sbin/sysctl; then
13543 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13545 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13547 # And add a safety zone
13548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13553 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13554 lt_cv_sys_max_cmd_len=196608
13558 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13559 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13560 # nice to cause kernel panics so lets avoid the loop below.
13561 # First set a reasonable default.
13562 lt_cv_sys_max_cmd_len=16384
13564 if test -x /sbin/sysconfig; then
13565 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13566 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13571 lt_cv_sys_max_cmd_len=102400
13573 sysv5* | sco5v6* | sysv4.2uw2*)
13574 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13575 if test -n "$kargmax"; then
13576 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13578 lt_cv_sys_max_cmd_len=32768
13582 # If test is not a shell built-in, we'll probably end up computing a
13583 # maximum length that is only half of the actual maximum length, but
13585 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13586 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13587 = "XX$teststring") >/dev/null 2>&1 &&
13588 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13589 lt_cv_sys_max_cmd_len=$new_result &&
13590 test $i != 17 # 1/2 MB should be enough
13593 teststring=$teststring$teststring
13596 # Add a significant safety factor because C++ compilers can tack on massive
13597 # amounts of additional arguments before passing them to the linker.
13598 # It appears as though 1/2 is a usable value.
13599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13605 if test -n $lt_cv_sys_max_cmd_len ; then
13606 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13607 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13609 { echo "$as_me:$LINENO: result: none" >&5
13610 echo "${ECHO_T}none" >&6; }
13616 # Check for command to grab the raw symbol name followed by C symbol from nm.
13617 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13618 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13619 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 # These are sane defaults that work on at least a few old systems.
13624 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13626 # Character class describing NM global symbol codes.
13627 symcode='[BCDEGRST]'
13629 # Regexp to match symbols that can be accessed directly from C.
13630 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13632 # Transform an extracted symbol line into a proper C declaration
13633 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13635 # Transform an extracted symbol line into symbol name and symbol address
13636 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'"
13638 # Define system-specific variables.
13643 cygwin* | mingw* | pw32*)
13644 symcode='[ABCDGISTW]'
13646 hpux*) # Its linker distinguishes data from code symbols
13647 if test "$host_cpu" = ia64; then
13648 symcode='[ABCDEGRST]'
13650 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13651 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'"
13654 if test "$host_cpu" = ia64; then
13655 symcode='[ABCDGIRSTW]'
13656 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13657 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'"
13660 irix* | nonstopux*)
13661 symcode='[BCDEGRST]'
13664 symcode='[BCDEGQRST]'
13675 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13683 # Handle CRLF in mingw tool chain
13687 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13691 # If we're using GNU nm, then use its standard symbol codes.
13692 case `$NM -V 2>&1` in
13693 *GNU* | *'with BFD'*)
13694 symcode='[ABCDGIRSTW]' ;;
13697 # Try without a prefix undercore, then with it.
13698 for ac_symprfx in "" "_"; do
13700 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13701 symxfrm="\\1 $ac_symprfx\\2 \\2"
13703 # Write the raw and C identifiers.
13704 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13706 # Check to see that the pipe works correctly.
13710 cat > conftest.$ac_ext <<EOF
13715 void nm_test_func(){}
13719 int main(){nm_test_var='a';nm_test_func();return(0);}
13722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723 (eval $ac_compile) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; then
13727 # Now try to grab the symbols.
13729 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13730 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } && test -s "$nlist"; then
13734 # Try sorting and uniquifying the output.
13735 if sort "$nlist" | uniq > "$nlist"T; then
13736 mv -f "$nlist"T "$nlist"
13741 # Make sure that we snagged all the symbols we need.
13742 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13743 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13744 cat <<EOF > conftest.$ac_ext
13750 # Now generate the symbol file.
13751 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13753 cat <<EOF >> conftest.$ac_ext
13754 #if defined (__STDC__) && __STDC__
13755 # define lt_ptr_t void *
13757 # define lt_ptr_t char *
13761 /* The mapping between symbol names and symbols. */
13766 lt_preloaded_symbols[] =
13769 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13770 cat <<\EOF >> conftest.$ac_ext
13778 # Now try linking the two files.
13779 mv conftest.$ac_objext conftstm.$ac_objext
13780 lt_save_LIBS="$LIBS"
13781 lt_save_CFLAGS="$CFLAGS"
13782 LIBS="conftstm.$ac_objext"
13783 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13785 (eval $ac_link) 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13791 LIBS="$lt_save_LIBS"
13792 CFLAGS="$lt_save_CFLAGS"
13794 echo "cannot find nm_test_func in $nlist" >&5
13797 echo "cannot find nm_test_var in $nlist" >&5
13800 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13803 echo "$progname: failed program was:" >&5
13804 cat conftest.$ac_ext >&5
13806 rm -f conftest* conftst*
13808 # Do not use the global_symbol_pipe unless it works.
13809 if test "$pipe_works" = yes; then
13812 lt_cv_sys_global_symbol_pipe=
13818 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13819 lt_cv_sys_global_symbol_to_cdecl=
13821 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13822 { echo "$as_me:$LINENO: result: failed" >&5
13823 echo "${ECHO_T}failed" >&6; }
13825 { echo "$as_me:$LINENO: result: ok" >&5
13826 echo "${ECHO_T}ok" >&6; }
13829 { echo "$as_me:$LINENO: checking for objdir" >&5
13830 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13831 if test "${lt_cv_objdir+set}" = set; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 rm -f .libs 2>/dev/null
13835 mkdir .libs 2>/dev/null
13836 if test -d .libs; then
13839 # MS-DOS does not allow filenames that begin with a dot.
13842 rmdir .libs 2>/dev/null
13844 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13845 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13846 objdir=$lt_cv_objdir
13854 # AIX sometimes has problems with the GCC collect2 program. For some
13855 # reason, if we set the COLLECT_NAMES environment variable, the problems
13856 # vanish in a puff of smoke.
13857 if test "X${COLLECT_NAMES+set}" != Xset; then
13859 export COLLECT_NAMES
13864 # Sed substitution that helps us do robust quoting. It backslashifies
13865 # metacharacters that are still active within double-quoted strings.
13866 Xsed='sed -e 1s/^X//'
13867 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13869 # Same as above, but do not quote variable references.
13870 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13872 # Sed substitution to delay expansion of an escaped shell variable in a
13873 # double_quote_subst'ed string.
13874 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13876 # Sed substitution to avoid accidental globbing in evaled expressions
13877 no_glob_subst='s/\*/\\\*/g'
13882 # Global variables:
13883 default_ofile=mklib
13884 can_build_shared=yes
13886 # All known linkers require a `.a' archive for static linking (except MSVC,
13887 # which needs '.lib').
13889 ltmain="$ac_aux_dir/ltmain.sh"
13890 ofile="$default_ofile"
13891 with_gnu_ld="$lt_cv_prog_gnu_ld"
13893 if test -n "$ac_tool_prefix"; then
13894 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13895 set dummy ${ac_tool_prefix}ar; ac_word=$2
13896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13898 if test "${ac_cv_prog_AR+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 if test -n "$AR"; then
13902 ac_cv_prog_AR="$AR" # Let the user override the test.
13904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH
13908 test -z "$as_dir" && as_dir=.
13909 for ac_exec_ext in '' $ac_executable_extensions; do
13910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13911 ac_cv_prog_AR="${ac_tool_prefix}ar"
13912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13922 if test -n "$AR"; then
13923 { echo "$as_me:$LINENO: result: $AR" >&5
13924 echo "${ECHO_T}$AR" >&6; }
13926 { echo "$as_me:$LINENO: result: no" >&5
13927 echo "${ECHO_T}no" >&6; }
13932 if test -z "$ac_cv_prog_AR"; then
13934 # Extract the first word of "ar", so it can be a program name with args.
13935 set dummy ar; ac_word=$2
13936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13938 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 if test -n "$ac_ct_AR"; then
13942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13948 test -z "$as_dir" && as_dir=.
13949 for ac_exec_ext in '' $ac_executable_extensions; do
13950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13951 ac_cv_prog_ac_ct_AR="ar"
13952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13962 if test -n "$ac_ct_AR"; then
13963 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13964 echo "${ECHO_T}$ac_ct_AR" >&6; }
13966 { echo "$as_me:$LINENO: result: no" >&5
13967 echo "${ECHO_T}no" >&6; }
13970 if test "x$ac_ct_AR" = x; then
13973 case $cross_compiling:$ac_tool_warned in
13975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13976 whose name does not start with the host triplet. If you think this
13977 configuration is useful to you, please write to autoconf@gnu.org." >&5
13978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13979 whose name does not start with the host triplet. If you think this
13980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13981 ac_tool_warned=yes ;;
13986 AR="$ac_cv_prog_AR"
13989 if test -n "$ac_tool_prefix"; then
13990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13994 if test "${ac_cv_prog_RANLIB+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 if test -n "$RANLIB"; then
13998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14004 test -z "$as_dir" && as_dir=.
14005 for ac_exec_ext in '' $ac_executable_extensions; do
14006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14017 RANLIB=$ac_cv_prog_RANLIB
14018 if test -n "$RANLIB"; then
14019 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14020 echo "${ECHO_T}$RANLIB" >&6; }
14022 { echo "$as_me:$LINENO: result: no" >&5
14023 echo "${ECHO_T}no" >&6; }
14028 if test -z "$ac_cv_prog_RANLIB"; then
14029 ac_ct_RANLIB=$RANLIB
14030 # Extract the first word of "ranlib", so it can be a program name with args.
14031 set dummy ranlib; ac_word=$2
14032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14034 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 if test -n "$ac_ct_RANLIB"; then
14038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14041 for as_dir in $PATH
14044 test -z "$as_dir" && as_dir=.
14045 for ac_exec_ext in '' $ac_executable_extensions; do
14046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14047 ac_cv_prog_ac_ct_RANLIB="ranlib"
14048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14058 if test -n "$ac_ct_RANLIB"; then
14059 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14060 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14062 { echo "$as_me:$LINENO: result: no" >&5
14063 echo "${ECHO_T}no" >&6; }
14066 if test "x$ac_ct_RANLIB" = x; then
14069 case $cross_compiling:$ac_tool_warned in
14071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14072 whose name does not start with the host triplet. If you think this
14073 configuration is useful to you, please write to autoconf@gnu.org." >&5
14074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14075 whose name does not start with the host triplet. If you think this
14076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14077 ac_tool_warned=yes ;;
14079 RANLIB=$ac_ct_RANLIB
14082 RANLIB="$ac_cv_prog_RANLIB"
14085 if test -n "$ac_tool_prefix"; then
14086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14087 set dummy ${ac_tool_prefix}strip; ac_word=$2
14088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14090 if test "${ac_cv_prog_STRIP+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14093 if test -n "$STRIP"; then
14094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14097 for as_dir in $PATH
14100 test -z "$as_dir" && as_dir=.
14101 for ac_exec_ext in '' $ac_executable_extensions; do
14102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14113 STRIP=$ac_cv_prog_STRIP
14114 if test -n "$STRIP"; then
14115 { echo "$as_me:$LINENO: result: $STRIP" >&5
14116 echo "${ECHO_T}$STRIP" >&6; }
14118 { echo "$as_me:$LINENO: result: no" >&5
14119 echo "${ECHO_T}no" >&6; }
14124 if test -z "$ac_cv_prog_STRIP"; then
14126 # Extract the first word of "strip", so it can be a program name with args.
14127 set dummy strip; ac_word=$2
14128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14130 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 if test -n "$ac_ct_STRIP"; then
14134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137 for as_dir in $PATH
14140 test -z "$as_dir" && as_dir=.
14141 for ac_exec_ext in '' $ac_executable_extensions; do
14142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14143 ac_cv_prog_ac_ct_STRIP="strip"
14144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14154 if test -n "$ac_ct_STRIP"; then
14155 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14156 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14158 { echo "$as_me:$LINENO: result: no" >&5
14159 echo "${ECHO_T}no" >&6; }
14162 if test "x$ac_ct_STRIP" = x; then
14165 case $cross_compiling:$ac_tool_warned in
14167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14168 whose name does not start with the host triplet. If you think this
14169 configuration is useful to you, please write to autoconf@gnu.org." >&5
14170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14171 whose name does not start with the host triplet. If you think this
14172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14173 ac_tool_warned=yes ;;
14178 STRIP="$ac_cv_prog_STRIP"
14183 old_CFLAGS="$CFLAGS"
14185 # Set sane defaults for various variables
14186 test -z "$AR" && AR=ar
14187 test -z "$AR_FLAGS" && AR_FLAGS=cru
14188 test -z "$AS" && AS=as
14189 test -z "$CC" && CC=cc
14190 test -z "$LTCC" && LTCC=$CC
14191 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14192 test -z "$DLLTOOL" && DLLTOOL=dlltool
14193 test -z "$LD" && LD=ld
14194 test -z "$LN_S" && LN_S="ln -s"
14195 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14196 test -z "$NM" && NM=nm
14197 test -z "$SED" && SED=sed
14198 test -z "$OBJDUMP" && OBJDUMP=objdump
14199 test -z "$RANLIB" && RANLIB=:
14200 test -z "$STRIP" && STRIP=:
14201 test -z "$ac_objext" && ac_objext=o
14203 # Determine commands to create old-style static archives.
14204 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14205 old_postinstall_cmds='chmod 644 $oldlib'
14206 old_postuninstall_cmds=
14208 if test -n "$RANLIB"; then
14211 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14214 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14217 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14220 for cc_temp in $compiler""; do
14222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14228 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14231 # Only perform the check for file, if the check method requires it
14232 case $deplibs_check_method in
14234 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14235 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14236 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14237 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14245 lt_save_MAGIC_CMD="$MAGIC_CMD"
14246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14248 for ac_dir in $ac_dummy; do
14250 test -z "$ac_dir" && ac_dir=.
14251 if test -f $ac_dir/${ac_tool_prefix}file; then
14252 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14253 if test -n "$file_magic_test_file"; then
14254 case $deplibs_check_method in
14256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14259 $EGREP "$file_magic_regex" > /dev/null; then
14264 *** Warning: the command libtool uses to detect shared libraries,
14265 *** $file_magic_cmd, produces output that libtool cannot recognize.
14266 *** The result is that libtool may fail to recognize shared libraries
14267 *** as such. This will affect the creation of libtool libraries that
14268 *** depend on shared libraries, but programs linked with such libtool
14269 *** libraries will work regardless of this problem. Nevertheless, you
14270 *** may want to report the problem to your system manager and/or to
14271 *** bug-libtool@gnu.org
14281 MAGIC_CMD="$lt_save_MAGIC_CMD"
14286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14287 if test -n "$MAGIC_CMD"; then
14288 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14289 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14291 { echo "$as_me:$LINENO: result: no" >&5
14292 echo "${ECHO_T}no" >&6; }
14295 if test -z "$lt_cv_path_MAGIC_CMD"; then
14296 if test -n "$ac_tool_prefix"; then
14297 { echo "$as_me:$LINENO: checking for file" >&5
14298 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14299 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14307 lt_save_MAGIC_CMD="$MAGIC_CMD"
14308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14309 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14310 for ac_dir in $ac_dummy; do
14312 test -z "$ac_dir" && ac_dir=.
14313 if test -f $ac_dir/file; then
14314 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14315 if test -n "$file_magic_test_file"; then
14316 case $deplibs_check_method in
14318 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14320 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14321 $EGREP "$file_magic_regex" > /dev/null; then
14326 *** Warning: the command libtool uses to detect shared libraries,
14327 *** $file_magic_cmd, produces output that libtool cannot recognize.
14328 *** The result is that libtool may fail to recognize shared libraries
14329 *** as such. This will affect the creation of libtool libraries that
14330 *** depend on shared libraries, but programs linked with such libtool
14331 *** libraries will work regardless of this problem. Nevertheless, you
14332 *** may want to report the problem to your system manager and/or to
14333 *** bug-libtool@gnu.org
14343 MAGIC_CMD="$lt_save_MAGIC_CMD"
14348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14349 if test -n "$MAGIC_CMD"; then
14350 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14351 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14353 { echo "$as_me:$LINENO: result: no" >&5
14354 echo "${ECHO_T}no" >&6; }
14367 enable_win32_dll=no
14369 # Check whether --enable-libtool-lock was given.
14370 if test "${enable_libtool_lock+set}" = set; then
14371 enableval=$enable_libtool_lock;
14374 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14377 # Check whether --with-pic was given.
14378 if test "${with_pic+set}" = set; then
14379 withval=$with_pic; pic_mode="$withval"
14384 test -z "$pic_mode" && pic_mode=default
14386 # Use C for the default configuration in the libtool script
14390 ac_cpp='$CPP $CPPFLAGS'
14391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14396 # Source file extension for C test sources.
14399 # Object file extension for compiled C test sources.
14403 # Code to be used in simple compile tests
14404 lt_simple_compile_test_code="int some_variable = 0;\n"
14406 # Code to be used in simple link tests
14407 lt_simple_link_test_code='int main(){return(0);}\n'
14410 # If no C compiler was specified, use CC.
14413 # If no C compiler flags were specified, use CFLAGS.
14414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14416 # Allow CC to be a program name with arguments.
14420 # save warnings/boilerplate of simple test code
14421 ac_outfile=conftest.$ac_objext
14422 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14423 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14424 _lt_compiler_boilerplate=`cat conftest.err`
14427 ac_outfile=conftest.$ac_objext
14428 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14429 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14430 _lt_linker_boilerplate=`cat conftest.err`
14435 lt_prog_compiler_no_builtin_flag=
14437 if test "$GCC" = yes; then
14438 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14441 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14442 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14443 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 lt_cv_prog_compiler_rtti_exceptions=no
14447 ac_outfile=conftest.$ac_objext
14448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14449 lt_compiler_flag="-fno-rtti -fno-exceptions"
14450 # Insert the option either (1) after the last *FLAGS variable, or
14451 # (2) before a word containing "conftest.", or (3) at the end.
14452 # Note that $ac_compile itself does not contain backslashes and begins
14453 # with a dollar sign (not a hyphen), so the echo should work correctly.
14454 # The option is referenced via a variable to avoid confusing sed.
14455 lt_compile=`echo "$ac_compile" | $SED \
14456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14458 -e 's:$: $lt_compiler_flag:'`
14459 (eval echo "\"\$as_me:14459: $lt_compile\"" >&5)
14460 (eval "$lt_compile" 2>conftest.err)
14462 cat conftest.err >&5
14463 echo "$as_me:14463: \$? = $ac_status" >&5
14464 if (exit $ac_status) && test -s "$ac_outfile"; then
14465 # The compiler can only warn and ignore the option if not recognized
14466 # So say no if there are warnings other than the usual output.
14467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14470 lt_cv_prog_compiler_rtti_exceptions=yes
14476 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14477 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14479 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14480 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14487 lt_prog_compiler_wl=
14488 lt_prog_compiler_pic=
14489 lt_prog_compiler_static=
14491 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14492 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14494 if test "$GCC" = yes; then
14495 lt_prog_compiler_wl='-Wl,'
14496 lt_prog_compiler_static='-static'
14500 # All AIX code is PIC.
14501 if test "$host_cpu" = ia64; then
14502 # AIX 5 now supports IA64 processor
14503 lt_prog_compiler_static='-Bstatic'
14508 # FIXME: we need at least 68020 code to build shared libraries, but
14509 # adding the `-m68020' flag to GCC prevents building anything better,
14511 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14514 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14515 # PIC is the default for these OSes.
14518 mingw* | pw32* | os2*)
14519 # This hack is so that the source file can tell whether it is being
14520 # built for inclusion in a dll (and should export symbols for example).
14521 lt_prog_compiler_pic='-DDLL_EXPORT'
14524 darwin* | rhapsody*)
14525 # PIC is the default on this platform
14526 # Common symbols not allowed in MH_DYLIB files
14527 lt_prog_compiler_pic='-fno-common'
14531 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14532 # Instead, we relocate shared libraries at runtime.
14536 # Just because we use GCC doesn't mean we suddenly get shared libraries
14537 # on systems that don't support them.
14538 lt_prog_compiler_can_build_shared=no
14543 if test -d /usr/nec; then
14544 lt_prog_compiler_pic=-Kconform_pic
14549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14550 # not for PA HP-UX.
14556 lt_prog_compiler_pic='-fPIC'
14562 lt_prog_compiler_pic='-fPIC'
14566 # PORTME Check for flag to pass linker flags through the system compiler.
14569 lt_prog_compiler_wl='-Wl,'
14570 if test "$host_cpu" = ia64; then
14571 # AIX 5 now supports IA64 processor
14572 lt_prog_compiler_static='-Bstatic'
14574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14578 # PIC is the default on this platform
14579 # Common symbols not allowed in MH_DYLIB files
14580 case $cc_basename in
14582 lt_prog_compiler_pic='-qnocommon'
14583 lt_prog_compiler_wl='-Wl,'
14588 mingw* | pw32* | os2*)
14589 # This hack is so that the source file can tell whether it is being
14590 # built for inclusion in a dll (and should export symbols for example).
14591 lt_prog_compiler_pic='-DDLL_EXPORT'
14594 hpux9* | hpux10* | hpux11*)
14595 lt_prog_compiler_wl='-Wl,'
14596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14597 # not for PA HP-UX.
14603 lt_prog_compiler_pic='+Z'
14606 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14607 lt_prog_compiler_static='${wl}-a ${wl}archive'
14610 irix5* | irix6* | nonstopux*)
14611 lt_prog_compiler_wl='-Wl,'
14612 # PIC (with -KPIC) is the default.
14613 lt_prog_compiler_static='-non_shared'
14617 lt_prog_compiler_pic='-KPIC'
14618 lt_prog_compiler_static='-Bstatic'
14622 case $cc_basename in
14624 lt_prog_compiler_wl='-Wl,'
14625 lt_prog_compiler_pic='-KPIC'
14626 lt_prog_compiler_static='-static'
14628 pgcc* | pgf77* | pgf90* | pgf95*)
14629 # Portland Group compilers (*not* the Pentium gcc compiler,
14630 # which looks to be a dead project)
14631 lt_prog_compiler_wl='-Wl,'
14632 lt_prog_compiler_pic='-fpic'
14633 lt_prog_compiler_static='-Bstatic'
14636 lt_prog_compiler_wl='-Wl,'
14637 # All Alpha code is PIC.
14638 lt_prog_compiler_static='-non_shared'
14643 osf3* | osf4* | osf5*)
14644 lt_prog_compiler_wl='-Wl,'
14645 # All OSF/1 code is PIC.
14646 lt_prog_compiler_static='-non_shared'
14650 lt_prog_compiler_pic='-KPIC'
14651 lt_prog_compiler_static='-Bstatic'
14652 case $cc_basename in
14653 f77* | f90* | f95*)
14654 lt_prog_compiler_wl='-Qoption ld ';;
14656 lt_prog_compiler_wl='-Wl,';;
14661 lt_prog_compiler_wl='-Qoption ld '
14662 lt_prog_compiler_pic='-PIC'
14663 lt_prog_compiler_static='-Bstatic'
14666 sysv4 | sysv4.2uw2* | sysv4.3*)
14667 lt_prog_compiler_wl='-Wl,'
14668 lt_prog_compiler_pic='-KPIC'
14669 lt_prog_compiler_static='-Bstatic'
14673 if test -d /usr/nec ;then
14674 lt_prog_compiler_pic='-Kconform_pic'
14675 lt_prog_compiler_static='-Bstatic'
14679 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14680 lt_prog_compiler_wl='-Wl,'
14681 lt_prog_compiler_pic='-KPIC'
14682 lt_prog_compiler_static='-Bstatic'
14686 lt_prog_compiler_wl='-Wl,'
14687 lt_prog_compiler_can_build_shared=no
14691 lt_prog_compiler_pic='-pic'
14692 lt_prog_compiler_static='-Bstatic'
14696 lt_prog_compiler_can_build_shared=no
14701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14702 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14705 # Check to make sure the PIC flag actually works.
14707 if test -n "$lt_prog_compiler_pic"; then
14709 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14710 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14711 if test "${lt_prog_compiler_pic_works+set}" = set; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 lt_prog_compiler_pic_works=no
14715 ac_outfile=conftest.$ac_objext
14716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14717 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14718 # Insert the option either (1) after the last *FLAGS variable, or
14719 # (2) before a word containing "conftest.", or (3) at the end.
14720 # Note that $ac_compile itself does not contain backslashes and begins
14721 # with a dollar sign (not a hyphen), so the echo should work correctly.
14722 # The option is referenced via a variable to avoid confusing sed.
14723 lt_compile=`echo "$ac_compile" | $SED \
14724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14726 -e 's:$: $lt_compiler_flag:'`
14727 (eval echo "\"\$as_me:14727: $lt_compile\"" >&5)
14728 (eval "$lt_compile" 2>conftest.err)
14730 cat conftest.err >&5
14731 echo "$as_me:14731: \$? = $ac_status" >&5
14732 if (exit $ac_status) && test -s "$ac_outfile"; then
14733 # The compiler can only warn and ignore the option if not recognized
14734 # So say no if there are warnings other than the usual output.
14735 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14738 lt_prog_compiler_pic_works=yes
14744 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14745 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14747 if test x"$lt_prog_compiler_pic_works" = xyes; then
14748 case $lt_prog_compiler_pic in
14750 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14753 lt_prog_compiler_pic=
14754 lt_prog_compiler_can_build_shared=no
14759 # For platforms which do not support PIC, -DPIC is meaningless:
14761 lt_prog_compiler_pic=
14764 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14769 # Check to make sure the static flag actually works.
14771 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14772 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14773 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14774 if test "${lt_prog_compiler_static_works+set}" = set; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 lt_prog_compiler_static_works=no
14778 save_LDFLAGS="$LDFLAGS"
14779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14780 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14782 # The linker can only warn and ignore the option if not recognized
14783 # So say no if there are warnings
14784 if test -s conftest.err; then
14785 # Append any errors to the config.log.
14786 cat conftest.err 1>&5
14787 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14789 if diff conftest.exp conftest.er2 >/dev/null; then
14790 lt_prog_compiler_static_works=yes
14793 lt_prog_compiler_static_works=yes
14797 LDFLAGS="$save_LDFLAGS"
14800 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14801 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14803 if test x"$lt_prog_compiler_static_works" = xyes; then
14806 lt_prog_compiler_static=
14810 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14811 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14812 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 lt_cv_prog_compiler_c_o=no
14816 $rm -r conftest 2>/dev/null
14820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14822 lt_compiler_flag="-o out/conftest2.$ac_objext"
14823 # Insert the option either (1) after the last *FLAGS variable, or
14824 # (2) before a word containing "conftest.", or (3) at the end.
14825 # Note that $ac_compile itself does not contain backslashes and begins
14826 # with a dollar sign (not a hyphen), so the echo should work correctly.
14827 lt_compile=`echo "$ac_compile" | $SED \
14828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14830 -e 's:$: $lt_compiler_flag:'`
14831 (eval echo "\"\$as_me:14831: $lt_compile\"" >&5)
14832 (eval "$lt_compile" 2>out/conftest.err)
14834 cat out/conftest.err >&5
14835 echo "$as_me:14835: \$? = $ac_status" >&5
14836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14838 # The compiler can only warn and ignore the option if not recognized
14839 # So say no if there are warnings
14840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14843 lt_cv_prog_compiler_c_o=yes
14848 # SGI C++ compiler will create directory out/ii_files/ for
14849 # template instantiation
14850 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14851 $rm out/* && rmdir out
14857 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14858 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14861 hard_links="nottested"
14862 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14863 # do not overwrite the value of need_locks provided by the user
14864 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14865 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14870 ln conftest.a conftest.b 2>&5 || hard_links=no
14871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14872 { echo "$as_me:$LINENO: result: $hard_links" >&5
14873 echo "${ECHO_T}$hard_links" >&6; }
14874 if test "$hard_links" = no; then
14875 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14876 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14883 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14884 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14887 allow_undefined_flag=
14888 enable_shared_with_static_runtimes=no
14890 archive_expsym_cmds=
14891 old_archive_From_new_cmds=
14892 old_archive_from_expsyms_cmds=
14893 export_dynamic_flag_spec=
14894 whole_archive_flag_spec=
14895 thread_safe_flag_spec=
14896 hardcode_libdir_flag_spec=
14897 hardcode_libdir_flag_spec_ld=
14898 hardcode_libdir_separator=
14900 hardcode_minus_L=no
14901 hardcode_shlibpath_var=unsupported
14902 link_all_deplibs=unknown
14903 hardcode_automatic=no
14905 module_expsym_cmds=
14906 always_export_symbols=no
14907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14908 # include_expsyms should be a list of space-separated symbols to be *always*
14909 # included in the symbol list
14911 # exclude_expsyms can be an extended regexp of symbols to exclude
14912 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14913 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14914 # as well as any symbol that contains `d'.
14915 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14916 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14917 # platforms (ab)use it in PIC code, but their linkers get confused if
14918 # the symbol is explicitly referenced. Since portable code cannot
14919 # rely on this symbol name, it's probably fine to never include it in
14920 # preloaded symbol tables.
14921 extract_expsyms_cmds=
14922 # Just being paranoid about ensuring that cc_basename is set.
14923 for cc_temp in $compiler""; do
14925 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14926 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14931 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14934 cygwin* | mingw* | pw32*)
14935 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14936 # When not using gcc, we currently assume that we are using
14937 # Microsoft Visual C++.
14938 if test "$GCC" != yes; then
14943 # we just hope/assume this is gcc and not c89 (= MSVC++)
14952 if test "$with_gnu_ld" = yes; then
14953 # If archive_cmds runs LD, not CC, wlarc should be empty
14956 # Set some defaults for GNU ld with shared library support. These
14957 # are reset later if shared libraries are not supported. Putting them
14958 # here allows them to be overridden if necessary.
14959 runpath_var=LD_RUN_PATH
14960 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14961 export_dynamic_flag_spec='${wl}--export-dynamic'
14962 # ancient GNU ld didn't support --whole-archive et. al.
14963 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14964 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14966 whole_archive_flag_spec=
14968 supports_anon_versioning=no
14969 case `$LD -v 2>/dev/null` in
14970 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14971 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14972 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14973 *\ 2.11.*) ;; # other 2.11 versions
14974 *) supports_anon_versioning=yes ;;
14977 # See if GNU ld supports shared libraries.
14979 aix3* | aix4* | aix5*)
14980 # On AIX/PPC, the GNU linker is very broken
14981 if test "$host_cpu" != ia64; then
14985 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14986 *** to be unable to reliably create shared libraries on AIX.
14987 *** Therefore, libtool is disabling shared libraries support. If you
14988 *** really care for shared libraries, you may want to modify your PATH
14989 *** so that a non-GNU linker is found, and then restart.
14996 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)'
14997 hardcode_libdir_flag_spec='-L$libdir'
14998 hardcode_minus_L=yes
15000 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15001 # that the semantics of dynamic libraries on AmigaOS, at least up
15002 # to version 4, is to share data among multiple programs linked
15003 # with the same dynamic library. Since this doesn't match the
15004 # behavior of shared libraries on other platforms, we can't use
15010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011 allow_undefined_flag=unsupported
15012 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15013 # support --undefined. This deserves some investigation. FIXME
15014 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15020 cygwin* | mingw* | pw32*)
15021 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15022 # as there is no search path for DLLs.
15023 hardcode_libdir_flag_spec='-L$libdir'
15024 allow_undefined_flag=unsupported
15025 always_export_symbols=no
15026 enable_shared_with_static_runtimes=yes
15027 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15029 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15031 # If the export-symbols file already is a .def file (1st line
15032 # is EXPORTS), use it as is; otherwise, prepend...
15033 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15034 cp $export_symbols $output_objdir/$soname.def;
15036 echo EXPORTS > $output_objdir/$soname.def;
15037 cat $export_symbols >> $output_objdir/$soname.def;
15039 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15047 hardcode_shlibpath_var=no
15048 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15049 export_dynamic_flag_spec='${wl}-E'
15050 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15051 # Instead, shared libraries are loaded at an image base (0x10000000 by
15052 # default) and relocated if they conflict, which is a slow very memory
15053 # consuming and fragmenting process. To avoid this, we pick a random,
15054 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15055 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15056 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15057 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'
15061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15063 case $cc_basename,$host_cpu in
15064 pgcc*) # Portland Group C compiler
15065 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'
15066 tmp_addflag=' $pic_flag'
15068 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15069 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'
15070 tmp_addflag=' $pic_flag -Mnomain' ;;
15071 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15072 tmp_addflag=' -i_dynamic' ;;
15073 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15074 tmp_addflag=' -i_dynamic -nofor_main' ;;
15075 ifc* | ifort*) # Intel Fortran compiler
15076 tmp_addflag=' -nofor_main' ;;
15078 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15080 if test $supports_anon_versioning = yes; then
15081 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15082 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15083 $echo "local: *; };" >> $output_objdir/$libname.ver~
15084 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15093 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15102 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15106 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15107 *** create shared libraries on Solaris systems. Therefore, libtool
15108 *** is disabling shared libraries support. We urge you to upgrade GNU
15109 *** binutils to release 2.9.1 or newer. Another option is to modify
15110 *** your PATH or compiler configuration so that the native linker is
15111 *** used, and then restart.
15114 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15123 case `$LD -v 2>&1` in
15124 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15128 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15129 *** reliably create shared libraries on SCO systems. Therefore, libtool
15130 *** is disabling shared libraries support. We urge you to upgrade GNU
15131 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15132 *** your PATH or compiler configuration so that the native linker is
15133 *** used, and then restart.
15138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15139 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15141 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15150 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15152 hardcode_direct=yes
15153 hardcode_shlibpath_var=no
15157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15166 if test "$ld_shlibs" = no; then
15168 hardcode_libdir_flag_spec=
15169 export_dynamic_flag_spec=
15170 whole_archive_flag_spec=
15173 # PORTME fill in a description of your system's linker (not GNU ld)
15176 allow_undefined_flag=unsupported
15177 always_export_symbols=yes
15178 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'
15179 # Note: this linker hardcodes the directories in LIBPATH if there
15180 # are no directories specified by -L.
15181 hardcode_minus_L=yes
15182 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15183 # Neither direct hardcoding nor static linking is supported with a
15185 hardcode_direct=unsupported
15190 if test "$host_cpu" = ia64; then
15191 # On IA64, the linker does run time linking by default, so we don't
15192 # have to do anything special.
15193 aix_use_runtimelinking=no
15194 exp_sym_flag='-Bexport'
15197 # If we're using GNU nm, then we don't want the "-C" option.
15198 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15199 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15200 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'
15202 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'
15204 aix_use_runtimelinking=no
15206 # Test if we are trying to use run time linking or normal
15207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15208 # need to do runtime linking.
15209 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15210 for ld_flag in $LDFLAGS; do
15211 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15212 aix_use_runtimelinking=yes
15219 exp_sym_flag='-bexport'
15220 no_entry_flag='-bnoentry'
15223 # When large executables or shared objects are built, AIX ld can
15224 # have problems creating the table of contents. If linking a library
15225 # or program results in "error TOC overflow" add -mminimal-toc to
15226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15230 hardcode_direct=yes
15231 hardcode_libdir_separator=':'
15232 link_all_deplibs=yes
15234 if test "$GCC" = yes; then
15235 case $host_os in aix4.[012]|aix4.[012].*)
15236 # We only want to do this on AIX 4.2 and lower, the check
15237 # below for broken collect2 doesn't work under 4.3+
15238 collect2name=`${CC} -print-prog-name=collect2`
15239 if test -f "$collect2name" && \
15240 strings "$collect2name" | grep resolve_lib_name >/dev/null
15242 # We have reworked collect2
15243 hardcode_direct=yes
15245 # We have old collect2
15246 hardcode_direct=unsupported
15247 # It fails to find uninstalled libraries when the uninstalled
15248 # path is not listed in the libpath. Setting hardcode_minus_L
15249 # to unsupported forces relinking
15250 hardcode_minus_L=yes
15251 hardcode_libdir_flag_spec='-L$libdir'
15252 hardcode_libdir_separator=
15256 shared_flag='-shared'
15257 if test "$aix_use_runtimelinking" = yes; then
15258 shared_flag="$shared_flag "'${wl}-G'
15262 if test "$host_cpu" = ia64; then
15263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15264 # chokes on -Wl,-G. The following line is correct:
15267 if test "$aix_use_runtimelinking" = yes; then
15268 shared_flag='${wl}-G'
15270 shared_flag='${wl}-bM:SRE'
15275 # It seems that -bexpall does not export symbols beginning with
15276 # underscore (_), so it is better to generate a list of symbols to export.
15277 always_export_symbols=yes
15278 if test "$aix_use_runtimelinking" = yes; then
15279 # Warning - without using the other runtime loading flags (-brtl),
15280 # -berok will link without error, but may produce a broken library.
15281 allow_undefined_flag='-berok'
15282 # Determine the default libpath from the value encoded in an empty executable.
15283 cat >conftest.$ac_ext <<_ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15298 rm -f conftest.$ac_objext conftest$ac_exeext
15299 if { (ac_try="$ac_link"
15300 case "(($ac_try" in
15301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302 *) ac_try_echo=$ac_try;;
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305 (eval "$ac_link") 2>conftest.er1
15307 grep -v '^ *+' conftest.er1 >conftest.err
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
15312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15313 { (case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_try") 2>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } &&
15322 { ac_try='test -s conftest$ac_exeext'
15323 { (case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_try") 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15333 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15335 # Check for a 64-bit object if we didn't find anything.
15336 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; }
15339 echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15345 rm -f core conftest.err conftest.$ac_objext \
15346 conftest$ac_exeext conftest.$ac_ext
15347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15349 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15350 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"
15352 if test "$host_cpu" = ia64; then
15353 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15354 allow_undefined_flag="-z nodefs"
15355 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"
15357 # Determine the default libpath from the value encoded in an empty executable.
15358 cat >conftest.$ac_ext <<_ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h. */
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (ac_try="$ac_link"
15375 case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_link") 2>conftest.er1
15382 grep -v '^ *+' conftest.er1 >conftest.err
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
15387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15388 { (case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 (eval "$ac_try") 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; } &&
15397 { ac_try='test -s conftest$ac_exeext'
15398 { (case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_try") 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15410 # Check for a 64-bit object if we didn't find anything.
15411 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; }
15414 echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15420 rm -f core conftest.err conftest.$ac_objext \
15421 conftest$ac_exeext conftest.$ac_ext
15422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15425 # Warning - without using the other run time loading flags,
15426 # -berok will link without error, but may produce a broken library.
15427 no_undefined_flag=' ${wl}-bernotok'
15428 allow_undefined_flag=' ${wl}-berok'
15429 # Exported symbols can be pulled into shared objects from archives
15430 whole_archive_flag_spec='$convenience'
15431 archive_cmds_need_lc=yes
15432 # This is similar to how AIX traditionally builds its shared libraries.
15433 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'
15439 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)'
15440 hardcode_libdir_flag_spec='-L$libdir'
15441 hardcode_minus_L=yes
15442 # see comment about different semantics on the GNU ld section
15447 export_dynamic_flag_spec=-rdynamic
15450 cygwin* | mingw* | pw32*)
15451 # When not using gcc, we currently assume that we are using
15452 # Microsoft Visual C++.
15453 # hardcode_libdir_flag_spec is actually meaningless, as there is
15454 # no search path for DLLs.
15455 hardcode_libdir_flag_spec=' '
15456 allow_undefined_flag=unsupported
15457 # Tell ltmain to make .lib files, not .a files.
15459 # Tell ltmain to make .dll files, not .so files.
15461 # FIXME: Setting linknames here is a bad hack.
15462 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15463 # The linker will automatically build a .lib file if we build a DLL.
15464 old_archive_From_new_cmds='true'
15465 # FIXME: Should let the user specify the lib program.
15466 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15467 fix_srcfile_path='`cygpath -w "$srcfile"`'
15468 enable_shared_with_static_runtimes=yes
15471 darwin* | rhapsody*)
15473 rhapsody* | darwin1.[012])
15474 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15477 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15478 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15480 case ${MACOSX_DEPLOYMENT_TARGET} in
15482 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15485 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15491 archive_cmds_need_lc=no
15493 hardcode_automatic=yes
15494 hardcode_shlibpath_var=unsupported
15495 whole_archive_flag_spec=''
15496 link_all_deplibs=yes
15497 if test "$GCC" = yes ; then
15498 output_verbose_link_cmd='echo'
15499 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15500 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15501 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15502 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}'
15503 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}'
15505 case $cc_basename in
15507 output_verbose_link_cmd='echo'
15508 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15509 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15511 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}'
15512 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}'
15522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15523 hardcode_libdir_flag_spec='-L$libdir'
15524 hardcode_shlibpath_var=no
15531 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15532 # support. Future versions do this automatically, but an explicit c++rt0.o
15533 # does not break anything, and helps significantly (at the cost of a little
15536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15537 hardcode_libdir_flag_spec='-R$libdir'
15538 hardcode_direct=yes
15539 hardcode_shlibpath_var=no
15542 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15545 hardcode_direct=yes
15546 hardcode_minus_L=yes
15547 hardcode_shlibpath_var=no
15550 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15551 freebsd* | kfreebsd*-gnu | dragonfly*)
15552 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15553 hardcode_libdir_flag_spec='-R$libdir'
15554 hardcode_direct=yes
15555 hardcode_shlibpath_var=no
15559 if test "$GCC" = yes; then
15560 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'
15562 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'
15564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15565 hardcode_libdir_separator=:
15566 hardcode_direct=yes
15568 # hardcode_minus_L: Not really in the search PATH,
15569 # but as the default location of the library.
15570 hardcode_minus_L=yes
15571 export_dynamic_flag_spec='${wl}-E'
15575 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15576 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15578 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15580 if test "$with_gnu_ld" = no; then
15581 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15582 hardcode_libdir_separator=:
15584 hardcode_direct=yes
15585 export_dynamic_flag_spec='${wl}-E'
15587 # hardcode_minus_L: Not really in the search PATH,
15588 # but as the default location of the library.
15589 hardcode_minus_L=yes
15594 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15597 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15603 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15609 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15612 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15615 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15619 if test "$with_gnu_ld" = no; then
15620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15621 hardcode_libdir_separator=:
15625 hardcode_libdir_flag_spec_ld='+b $libdir'
15627 hardcode_shlibpath_var=no
15630 hardcode_direct=yes
15631 export_dynamic_flag_spec='${wl}-E'
15633 # hardcode_minus_L: Not really in the search PATH,
15634 # but as the default location of the library.
15635 hardcode_minus_L=yes
15641 irix5* | irix6* | nonstopux*)
15642 if test "$GCC" = yes; then
15643 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'
15645 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'
15646 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15649 hardcode_libdir_separator=:
15650 link_all_deplibs=yes
15654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15657 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15659 hardcode_libdir_flag_spec='-R$libdir'
15660 hardcode_direct=yes
15661 hardcode_shlibpath_var=no
15665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666 hardcode_direct=yes
15667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15668 hardcode_libdir_separator=:
15669 hardcode_shlibpath_var=no
15673 hardcode_direct=yes
15674 hardcode_shlibpath_var=no
15675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15677 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15679 export_dynamic_flag_spec='${wl}-E'
15682 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15684 hardcode_libdir_flag_spec='-R$libdir'
15687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15688 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15695 hardcode_libdir_flag_spec='-L$libdir'
15696 hardcode_minus_L=yes
15697 allow_undefined_flag=unsupported
15698 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'
15699 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15703 if test "$GCC" = yes; then
15704 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15705 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'
15707 allow_undefined_flag=' -expect_unresolved \*'
15708 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'
15710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15711 hardcode_libdir_separator=:
15714 osf4* | osf5*) # as osf3* with the addition of -msym flag
15715 if test "$GCC" = yes; then
15716 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15717 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'
15718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15720 allow_undefined_flag=' -expect_unresolved \*'
15721 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'
15722 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15723 $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'
15725 # Both c and cxx compiler support -rpath directly
15726 hardcode_libdir_flag_spec='-rpath $libdir'
15728 hardcode_libdir_separator=:
15732 no_undefined_flag=' -z text'
15733 if test "$GCC" = yes; then
15735 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15736 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15737 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15740 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15742 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15744 hardcode_libdir_flag_spec='-R$libdir'
15745 hardcode_shlibpath_var=no
15747 solaris2.[0-5] | solaris2.[0-5].*) ;;
15749 # The compiler driver will combine linker options so we
15750 # cannot just pass the convience library names through
15751 # without $wl, iff we do not link with $LD.
15752 # Luckily, gcc supports the same syntax we need for Sun Studio.
15753 # Supported since Solaris 2.6 (maybe 2.5.1?)
15756 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15758 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' ;;
15761 link_all_deplibs=yes
15765 if test "x$host_vendor" = xsequent; then
15766 # Use $CC to link under sequent, because it throws in some extra .o
15767 # files that make .init and .fini sections work.
15768 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15770 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15772 hardcode_libdir_flag_spec='-L$libdir'
15773 hardcode_direct=yes
15774 hardcode_minus_L=yes
15775 hardcode_shlibpath_var=no
15779 case $host_vendor in
15781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15782 hardcode_direct=yes # is this really true???
15785 ## LD is ld it makes a PLAMLIB
15786 ## CC just makes a GrossModule.
15787 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15788 reload_cmds='$CC -r -o $output$reload_objs'
15792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15793 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15796 runpath_var='LD_RUN_PATH'
15797 hardcode_shlibpath_var=no
15801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802 hardcode_shlibpath_var=no
15803 export_dynamic_flag_spec='-Bexport'
15807 if test -d /usr/nec; then
15808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_shlibpath_var=no
15810 runpath_var=LD_RUN_PATH
15811 hardcode_runpath_var=yes
15816 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15817 no_undefined_flag='${wl}-z,text'
15818 archive_cmds_need_lc=no
15819 hardcode_shlibpath_var=no
15820 runpath_var='LD_RUN_PATH'
15822 if test "$GCC" = yes; then
15823 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15824 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15826 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15827 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15831 sysv5* | sco3.2v5* | sco5v6*)
15832 # Note: We can NOT use -z defs as we might desire, because we do not
15833 # link with -lc, and that would cause any symbols used from libc to
15834 # always be unresolved, which means just about no library would
15835 # ever link correctly. If we're not using GNU ld we use -z text
15836 # though, which does catch some bad symbols but isn't as heavy-handed
15838 no_undefined_flag='${wl}-z,text'
15839 allow_undefined_flag='${wl}-z,nodefs'
15840 archive_cmds_need_lc=no
15841 hardcode_shlibpath_var=no
15842 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15843 hardcode_libdir_separator=':'
15844 link_all_deplibs=yes
15845 export_dynamic_flag_spec='${wl}-Bexport'
15846 runpath_var='LD_RUN_PATH'
15848 if test "$GCC" = yes; then
15849 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15850 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15852 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15853 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_libdir_flag_spec='-L$libdir'
15860 hardcode_shlibpath_var=no
15869 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15870 echo "${ECHO_T}$ld_shlibs" >&6; }
15871 test "$ld_shlibs" = no && can_build_shared=no
15874 # Do we need to explicitly link libc?
15876 case "x$archive_cmds_need_lc" in
15878 # Assume -lc should be added
15879 archive_cmds_need_lc=yes
15881 if test "$enable_shared" = yes && test "$GCC" = yes; then
15882 case $archive_cmds in
15884 # FIXME: we may have to deal with multi-command sequences.
15887 # Test whether the compiler implicitly links with -lc since on some
15888 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15889 # to ld, don't add -lc before -lgcc.
15890 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15891 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15893 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15896 (eval $ac_compile) 2>&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } 2>conftest.err; then
15902 libobjs=conftest.$ac_objext
15904 wl=$lt_prog_compiler_wl
15905 pic_flag=$lt_prog_compiler_pic
15911 lt_save_allow_undefined_flag=$allow_undefined_flag
15912 allow_undefined_flag=
15913 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15914 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }
15919 archive_cmds_need_lc=no
15921 archive_cmds_need_lc=yes
15923 allow_undefined_flag=$lt_save_allow_undefined_flag
15925 cat conftest.err 1>&5
15928 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15929 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15936 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15937 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15938 library_names_spec=
15939 libname_spec='lib$name'
15943 postuninstall_cmds=
15947 shlibpath_overrides_runpath=unknown
15949 dynamic_linker="$host_os ld.so"
15950 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15951 if test "$GCC" = yes; then
15952 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15953 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15954 # if the path contains ";" then we assume it to be the separator
15955 # otherwise default to the standard path separator (i.e. ":") - it is
15956 # assumed that no part of a normal pathname contains ";" but that should
15957 # okay in the real world where ";" in dirpaths is itself problematic.
15958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15963 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15965 need_lib_prefix=unknown
15966 hardcode_into_libs=no
15968 # when you set need_version to no, make sure it does not cause -set_version
15969 # flags to be left without arguments
15970 need_version=unknown
15975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15976 shlibpath_var=LIBPATH
15978 # AIX 3 has no versioning support, so we append a major version to the name.
15979 soname_spec='${libname}${release}${shared_ext}$major'
15986 hardcode_into_libs=yes
15987 if test "$host_cpu" = ia64; then
15988 # AIX 5 supports IA64
15989 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15990 shlibpath_var=LD_LIBRARY_PATH
15992 # With GCC up to 2.95.x, collect2 would create an import file
15993 # for dependence libraries. The import file would start with
15994 # the line `#! .'. This would cause the generated library to
15995 # depend on `.', always an invalid library. This was fixed in
15996 # development snapshots of GCC prior to 3.0.
15998 aix4 | aix4.[01] | aix4.[01].*)
15999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16001 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16004 can_build_shared=no
16008 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16009 # soname into executable. Probably we can add versioning support to
16010 # collect2, so additional links can be useful in future.
16011 if test "$aix_use_runtimelinking" = yes; then
16012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16013 # instead of lib<name>.a to let people know that these are not
16014 # typical AIX shared libraries.
16015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16017 # We preserve .a as extension for shared libraries through AIX4.2
16018 # and later when we are not doing run time linking.
16019 library_names_spec='${libname}${release}.a $libname.a'
16020 soname_spec='${libname}${release}${shared_ext}$major'
16022 shlibpath_var=LIBPATH
16027 library_names_spec='$libname.ixlibrary $libname.a'
16028 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16029 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'
16033 library_names_spec='${libname}${shared_ext}'
16034 dynamic_linker="$host_os ld.so"
16035 shlibpath_var=LIBRARY_PATH
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16043 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16044 shlibpath_var=LD_LIBRARY_PATH
16045 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16046 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16047 # the default ld.so.conf also contains /usr/contrib/lib and
16048 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16049 # libtool to hard-code these into programs
16052 cygwin* | mingw* | pw32*)
16053 version_type=windows
16058 case $GCC,$host_os in
16059 yes,cygwin* | yes,mingw* | yes,pw32*)
16060 library_names_spec='$libname.dll.a'
16061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16062 postinstall_cmds='base_file=`basename \${file}`~
16063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16064 dldir=$destdir/`dirname \$dlpath`~
16065 test -d \$dldir || mkdir -p \$dldir~
16066 $install_prog $dir/$dlname \$dldir/$dlname~
16067 chmod a+x \$dldir/$dlname'
16068 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16069 dlpath=$dir/\$dldll~
16071 shlibpath_overrides_runpath=yes
16075 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16076 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16077 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16080 # MinGW DLLs use traditional 'lib' prefix
16081 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16083 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16084 # It is most probably a Windows format PATH printed by
16085 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16086 # path with ; separators, and with drive letters. We can handle the
16087 # drive letters (cygwin fileutils understands them), so leave them,
16088 # especially as we might pass files found there to a mingw objdump,
16089 # which wouldn't understand a cygwinified path. Ahh.
16090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16096 # pw32 DLLs use 'pw' prefix rather than 'lib'
16097 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16103 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16106 dynamic_linker='Win32 ld.exe'
16107 # FIXME: first we should search . and the directory the executable is in
16111 darwin* | rhapsody*)
16112 dynamic_linker="$host_os dyld"
16113 version_type=darwin
16116 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16117 soname_spec='${libname}${release}${major}$shared_ext'
16118 shlibpath_overrides_runpath=yes
16119 shlibpath_var=DYLD_LIBRARY_PATH
16120 shrext_cmds='.dylib'
16121 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16122 if test "$GCC" = yes; then
16123 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"`
16125 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16127 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16135 soname_spec='${libname}${release}${shared_ext}$major'
16136 shlibpath_var=LD_LIBRARY_PATH
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16148 soname_spec='${libname}${release}${shared_ext}$major'
16149 shlibpath_var=LD_LIBRARY_PATH
16150 shlibpath_overrides_runpath=no
16151 hardcode_into_libs=yes
16152 dynamic_linker='GNU ld.so'
16155 freebsd* | dragonfly*)
16156 # DragonFly does not have aout. When/if they implement a new
16157 # versioning mechanism, adjust this.
16158 if test -x /usr/bin/objformat; then
16159 objformat=`/usr/bin/objformat`
16162 freebsd[123]*) objformat=aout ;;
16163 *) objformat=elf ;;
16166 version_type=freebsd-$objformat
16167 case $version_type in
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16178 shlibpath_var=LD_LIBRARY_PATH
16181 shlibpath_overrides_runpath=yes
16183 freebsd3.[01]* | freebsdelf3.[01]*)
16184 shlibpath_overrides_runpath=yes
16185 hardcode_into_libs=yes
16187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16189 shlibpath_overrides_runpath=no
16190 hardcode_into_libs=yes
16192 freebsd*) # from 4.6 on
16193 shlibpath_overrides_runpath=yes
16194 hardcode_into_libs=yes
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 shlibpath_var=LD_LIBRARY_PATH
16206 hardcode_into_libs=yes
16209 hpux9* | hpux10* | hpux11*)
16210 # Give a soname corresponding to the major version so that dld.sl refuses to
16211 # link against other versions.
16218 hardcode_into_libs=yes
16219 dynamic_linker="$host_os dld.so"
16220 shlibpath_var=LD_LIBRARY_PATH
16221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 if test "X$HPUX_IA64_MODE" = X32; then
16225 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16227 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16233 hardcode_into_libs=yes
16234 dynamic_linker="$host_os dld.sl"
16235 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16244 dynamic_linker="$host_os dld.sl"
16245 shlibpath_var=SHLIB_PATH
16246 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16251 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16252 postinstall_cmds='chmod 555 $lib'
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16260 soname_spec='${libname}${release}${shared_ext}$major'
16261 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16262 shlibpath_var=LD_LIBRARY_PATH
16263 shlibpath_overrides_runpath=no
16264 hardcode_into_libs=yes
16267 irix5* | irix6* | nonstopux*)
16269 nonstopux*) version_type=nonstopux ;;
16271 if test "$lt_cv_prog_gnu_ld" = yes; then
16279 soname_spec='${libname}${release}${shared_ext}$major'
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16282 irix5* | nonstopux*)
16283 libsuff= shlibsuff=
16286 case $LD in # libtool.m4 will add one of these switches to LD
16287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16288 libsuff= shlibsuff= libmagic=32-bit;;
16289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16290 libsuff=32 shlibsuff=N32 libmagic=N32;;
16291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16293 *) libsuff= shlibsuff= libmagic=never-match;;
16297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16298 shlibpath_overrides_runpath=no
16299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16301 hardcode_into_libs=yes
16304 # No shared lib support for Linux oldld, aout, or coff.
16305 linux*oldld* | linux*aout* | linux*coff*)
16309 # This must be Linux ELF.
16314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315 soname_spec='${libname}${release}${shared_ext}$major'
16316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16317 shlibpath_var=LD_LIBRARY_PATH
16318 shlibpath_overrides_runpath=no
16319 # This implies no fast_install, which is unacceptable.
16320 # Some rework will be needed to allow for fast_install
16321 # before this can be enabled.
16322 hardcode_into_libs=yes
16324 # Append ld.so.conf contents to the search path
16325 if test -f /etc/ld.so.conf; then
16326 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' ' '`
16327 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16330 # We used to test for /lib/ld.so.1 and disable shared libraries on
16331 # powerpc, because MkLinux only supported shared libraries with the
16332 # GNU dynamic linker. Since this was broken with cross compilers,
16333 # most powerpc-linux boxes support dynamic linking these days and
16334 # people can always --disable-shared, the test was removed, and we
16335 # assume the GNU/Linux dynamic linker is in use.
16336 dynamic_linker='GNU/Linux ld.so'
16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16344 soname_spec='${libname}${release}${shared_ext}$major'
16345 shlibpath_var=LD_LIBRARY_PATH
16346 shlibpath_overrides_runpath=no
16347 hardcode_into_libs=yes
16348 dynamic_linker='GNU ld.so'
16355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16358 dynamic_linker='NetBSD (a.out) ld.so'
16360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16361 soname_spec='${libname}${release}${shared_ext}$major'
16362 dynamic_linker='NetBSD ld.elf_so'
16364 shlibpath_var=LD_LIBRARY_PATH
16365 shlibpath_overrides_runpath=yes
16366 hardcode_into_libs=yes
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372 shlibpath_var=LD_LIBRARY_PATH
16373 shlibpath_overrides_runpath=yes
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 shlibpath_var=LD_LIBRARY_PATH
16383 shlibpath_overrides_runpath=yes
16388 sys_lib_dlsearch_path_spec="/usr/lib"
16390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16393 *) need_version=no ;;
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16400 openbsd2.[89] | openbsd2.[89].*)
16401 shlibpath_overrides_runpath=no
16404 shlibpath_overrides_runpath=yes
16408 shlibpath_overrides_runpath=yes
16413 libname_spec='$name'
16416 library_names_spec='$libname${shared_ext} $libname.a'
16417 dynamic_linker='OS/2 ld.exe'
16418 shlibpath_var=LIBPATH
16421 osf3* | osf4* | osf5*)
16425 soname_spec='${libname}${release}${shared_ext}$major'
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16427 shlibpath_var=LD_LIBRARY_PATH
16428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16437 soname_spec='${libname}${release}${shared_ext}$major'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 shlibpath_overrides_runpath=yes
16440 hardcode_into_libs=yes
16441 # ldd complains unless libraries are executable
16442 postinstall_cmds='chmod +x $lib'
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16448 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 shlibpath_overrides_runpath=yes
16451 if test "$with_gnu_ld" = yes; then
16459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16460 soname_spec='${libname}${release}${shared_ext}$major'
16461 shlibpath_var=LD_LIBRARY_PATH
16462 case $host_vendor in
16464 shlibpath_overrides_runpath=no
16466 export_dynamic_flag_spec='${wl}-Blargedynsym'
16467 runpath_var=LD_RUN_PATH
16475 shlibpath_overrides_runpath=no
16476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16482 if test -d /usr/nec ;then
16484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16485 soname_spec='$libname${shared_ext}.$major'
16486 shlibpath_var=LD_LIBRARY_PATH
16490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16491 version_type=freebsd-elf
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16495 soname_spec='${libname}${release}${shared_ext}$major'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 hardcode_into_libs=yes
16498 if test "$with_gnu_ld" = yes; then
16499 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16500 shlibpath_overrides_runpath=no
16502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16503 shlibpath_overrides_runpath=yes
16506 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16510 sys_lib_dlsearch_path_spec='/usr/lib'
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 shlibpath_var=LD_LIBRARY_PATH
16524 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16525 echo "${ECHO_T}$dynamic_linker" >&6; }
16526 test "$dynamic_linker" = no && can_build_shared=no
16528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16529 if test "$GCC" = yes; then
16530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16533 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16536 if test -n "$hardcode_libdir_flag_spec" || \
16537 test -n "$runpath_var" || \
16538 test "X$hardcode_automatic" = "Xyes" ; then
16540 # We can hardcode non-existant directories.
16541 if test "$hardcode_direct" != no &&
16542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16543 # have to relink, otherwise we might link with an installed library
16544 # when we should be linking with a yet-to-be-installed one
16545 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16546 test "$hardcode_minus_L" != no; then
16547 # Linking always hardcodes the temporary library directory.
16548 hardcode_action=relink
16550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16551 hardcode_action=immediate
16554 # We cannot hardcode anything, or else we can only hardcode existing
16556 hardcode_action=unsupported
16558 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16559 echo "${ECHO_T}$hardcode_action" >&6; }
16561 if test "$hardcode_action" = relink; then
16562 # Fast installation is not supported
16563 enable_fast_install=no
16564 elif test "$shlibpath_overrides_runpath" = yes ||
16565 test "$enable_shared" = no; then
16566 # Fast installation is not necessary
16567 enable_fast_install=needless
16572 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16573 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16574 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16576 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16577 { echo "$as_me:$LINENO: result: yes" >&5
16578 echo "${ECHO_T}yes" >&6; }
16580 # FIXME - insert some real tests, host_os isn't really good enough
16583 if test -n "$STRIP" ; then
16584 striplib="$STRIP -x"
16585 { echo "$as_me:$LINENO: result: yes" >&5
16586 echo "${ECHO_T}yes" >&6; }
16588 { echo "$as_me:$LINENO: result: no" >&5
16589 echo "${ECHO_T}no" >&6; }
16593 { echo "$as_me:$LINENO: result: no" >&5
16594 echo "${ECHO_T}no" >&6; }
16599 if test "x$enable_dlopen" != xyes; then
16600 enable_dlopen=unknown
16601 enable_dlopen_self=unknown
16602 enable_dlopen_self_static=unknown
16609 lt_cv_dlopen="load_add_on"
16611 lt_cv_dlopen_self=yes
16615 lt_cv_dlopen="LoadLibrary"
16620 lt_cv_dlopen="dlopen"
16625 # if libdl is installed we need to link against it
16626 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 ac_check_lib_save_LIBS=$LIBS
16633 cat >conftest.$ac_ext <<_ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h. */
16640 /* Override any GCC internal prototype to avoid an error.
16641 Use char because int might match the return type of a GCC
16642 builtin and then its argument prototype would still apply. */
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (ac_try="$ac_link"
16657 case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_link") 2>conftest.er1
16664 grep -v '^ *+' conftest.er1 >conftest.err
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
16669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16670 { (case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_try") 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; } &&
16679 { ac_try='test -s conftest$ac_exeext'
16680 { (case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_try") 2>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; }; then
16689 ac_cv_lib_dl_dlopen=yes
16691 echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16694 ac_cv_lib_dl_dlopen=no
16697 rm -f core conftest.err conftest.$ac_objext \
16698 conftest$ac_exeext conftest.$ac_ext
16699 LIBS=$ac_check_lib_save_LIBS
16701 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16702 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16703 if test $ac_cv_lib_dl_dlopen = yes; then
16704 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16707 lt_cv_dlopen="dyld"
16709 lt_cv_dlopen_self=yes
16716 { echo "$as_me:$LINENO: checking for shl_load" >&5
16717 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16718 if test "${ac_cv_func_shl_load+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 cat >conftest.$ac_ext <<_ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16727 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16729 #define shl_load innocuous_shl_load
16731 /* System header to define __stub macros and hopefully few prototypes,
16732 which can conflict with char shl_load (); below.
16733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16734 <limits.h> exists even on freestanding compilers. */
16737 # include <limits.h>
16739 # include <assert.h>
16744 /* Override any GCC internal prototype to avoid an error.
16745 Use char because int might match the return type of a GCC
16746 builtin and then its argument prototype would still apply. */
16751 /* The GNU C library defines this for functions which it implements
16752 to always fail with ENOSYS. Some functions are actually named
16753 something starting with __ and the normal name is an alias. */
16754 #if defined __stub_shl_load || defined __stub___shl_load
16761 return shl_load ();
16766 rm -f conftest.$ac_objext conftest$ac_exeext
16767 if { (ac_try="$ac_link"
16768 case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_link") 2>conftest.er1
16775 grep -v '^ *+' conftest.er1 >conftest.err
16777 cat conftest.err >&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
16780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16781 { (case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_try") 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest$ac_exeext'
16791 { (case "(($ac_try" in
16792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796 (eval "$ac_try") 2>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_cv_func_shl_load=yes
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ac_cv_func_shl_load=no
16808 rm -f core conftest.err conftest.$ac_objext \
16809 conftest$ac_exeext conftest.$ac_ext
16811 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16812 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16813 if test $ac_cv_func_shl_load = yes; then
16814 lt_cv_dlopen="shl_load"
16816 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16817 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16818 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 ac_check_lib_save_LIBS=$LIBS
16823 cat >conftest.$ac_ext <<_ACEOF
16826 cat confdefs.h >>conftest.$ac_ext
16827 cat >>conftest.$ac_ext <<_ACEOF
16828 /* end confdefs.h. */
16830 /* Override any GCC internal prototype to avoid an error.
16831 Use char because int might match the return type of a GCC
16832 builtin and then its argument prototype would still apply. */
16840 return shl_load ();
16845 rm -f conftest.$ac_objext conftest$ac_exeext
16846 if { (ac_try="$ac_link"
16847 case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_link") 2>conftest.er1
16854 grep -v '^ *+' conftest.er1 >conftest.err
16856 cat conftest.err >&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16860 { (case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_try") 2>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; } &&
16869 { ac_try='test -s conftest$ac_exeext'
16870 { (case "(($ac_try" in
16871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872 *) ac_try_echo=$ac_try;;
16874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875 (eval "$ac_try") 2>&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; }; then
16879 ac_cv_lib_dld_shl_load=yes
16881 echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16884 ac_cv_lib_dld_shl_load=no
16887 rm -f core conftest.err conftest.$ac_objext \
16888 conftest$ac_exeext conftest.$ac_ext
16889 LIBS=$ac_check_lib_save_LIBS
16891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16892 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16893 if test $ac_cv_lib_dld_shl_load = yes; then
16894 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16896 { echo "$as_me:$LINENO: checking for dlopen" >&5
16897 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16898 if test "${ac_cv_func_dlopen+set}" = set; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16901 cat >conftest.$ac_ext <<_ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16909 #define dlopen innocuous_dlopen
16911 /* System header to define __stub macros and hopefully few prototypes,
16912 which can conflict with char dlopen (); below.
16913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16914 <limits.h> exists even on freestanding compilers. */
16917 # include <limits.h>
16919 # include <assert.h>
16924 /* Override any GCC internal prototype to avoid an error.
16925 Use char because int might match the return type of a GCC
16926 builtin and then its argument prototype would still apply. */
16931 /* The GNU C library defines this for functions which it implements
16932 to always fail with ENOSYS. Some functions are actually named
16933 something starting with __ and the normal name is an alias. */
16934 #if defined __stub_dlopen || defined __stub___dlopen
16946 rm -f conftest.$ac_objext conftest$ac_exeext
16947 if { (ac_try="$ac_link"
16948 case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_link") 2>conftest.er1
16955 grep -v '^ *+' conftest.er1 >conftest.err
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
16960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16961 { (case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_try") 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest$ac_exeext'
16971 { (case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_try") 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; }; then
16980 ac_cv_func_dlopen=yes
16982 echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16985 ac_cv_func_dlopen=no
16988 rm -f core conftest.err conftest.$ac_objext \
16989 conftest$ac_exeext conftest.$ac_ext
16991 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16992 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16993 if test $ac_cv_func_dlopen = yes; then
16994 lt_cv_dlopen="dlopen"
16996 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16997 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16998 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 ac_check_lib_save_LIBS=$LIBS
17003 cat >conftest.$ac_ext <<_ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17010 /* Override any GCC internal prototype to avoid an error.
17011 Use char because int might match the return type of a GCC
17012 builtin and then its argument prototype would still apply. */
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (ac_try="$ac_link"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_link") 2>conftest.er1
17034 grep -v '^ *+' conftest.er1 >conftest.err
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_try") 2>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 ac_cv_lib_dl_dlopen=yes
17061 echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17064 ac_cv_lib_dl_dlopen=no
17067 rm -f core conftest.err conftest.$ac_objext \
17068 conftest$ac_exeext conftest.$ac_ext
17069 LIBS=$ac_check_lib_save_LIBS
17071 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17072 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17073 if test $ac_cv_lib_dl_dlopen = yes; then
17074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17076 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17077 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17078 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 ac_check_lib_save_LIBS=$LIBS
17082 LIBS="-lsvld $LIBS"
17083 cat >conftest.$ac_ext <<_ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17090 /* Override any GCC internal prototype to avoid an error.
17091 Use char because int might match the return type of a GCC
17092 builtin and then its argument prototype would still apply. */
17105 rm -f conftest.$ac_objext conftest$ac_exeext
17106 if { (ac_try="$ac_link"
17107 case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_link") 2>conftest.er1
17114 grep -v '^ *+' conftest.er1 >conftest.err
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
17119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17120 { (case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_try") 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest$ac_exeext'
17130 { (case "(($ac_try" in
17131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135 (eval "$ac_try") 2>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; }; then
17139 ac_cv_lib_svld_dlopen=yes
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 ac_cv_lib_svld_dlopen=no
17147 rm -f core conftest.err conftest.$ac_objext \
17148 conftest$ac_exeext conftest.$ac_ext
17149 LIBS=$ac_check_lib_save_LIBS
17151 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17152 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17153 if test $ac_cv_lib_svld_dlopen = yes; then
17154 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17156 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17157 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17158 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 ac_check_lib_save_LIBS=$LIBS
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17170 /* Override any GCC internal prototype to avoid an error.
17171 Use char because int might match the return type of a GCC
17172 builtin and then its argument prototype would still apply. */
17180 return dld_link ();
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (ac_try="$ac_link"
17187 case "(($ac_try" in
17188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17189 *) ac_try_echo=$ac_try;;
17191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17192 (eval "$ac_link") 2>conftest.er1
17194 grep -v '^ *+' conftest.er1 >conftest.err
17196 cat conftest.err >&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } &&
17199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17200 { (case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_try") 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; } &&
17209 { ac_try='test -s conftest$ac_exeext'
17210 { (case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_try") 2>&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17219 ac_cv_lib_dld_dld_link=yes
17221 echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17224 ac_cv_lib_dld_dld_link=no
17227 rm -f core conftest.err conftest.$ac_objext \
17228 conftest$ac_exeext conftest.$ac_ext
17229 LIBS=$ac_check_lib_save_LIBS
17231 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17232 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17233 if test $ac_cv_lib_dld_dld_link = yes; then
17234 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17255 if test "x$lt_cv_dlopen" != xno; then
17261 case $lt_cv_dlopen in
17263 save_CPPFLAGS="$CPPFLAGS"
17264 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17266 save_LDFLAGS="$LDFLAGS"
17267 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17270 LIBS="$lt_cv_dlopen_libs $LIBS"
17272 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17273 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17274 if test "${lt_cv_dlopen_self+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 if test "$cross_compiling" = yes; then :
17278 lt_cv_dlopen_self=cross
17280 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17281 lt_status=$lt_dlunknown
17282 cat > conftest.$ac_ext <<EOF
17283 #line 17283 "configure"
17284 #include "confdefs.h"
17293 # define LT_DLGLOBAL RTLD_GLOBAL
17296 # define LT_DLGLOBAL DL_GLOBAL
17298 # define LT_DLGLOBAL 0
17302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17303 find out it does not work in some platform. */
17304 #ifndef LT_DLLAZY_OR_NOW
17306 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17309 # define LT_DLLAZY_OR_NOW DL_LAZY
17312 # define LT_DLLAZY_OR_NOW RTLD_NOW
17315 # define LT_DLLAZY_OR_NOW DL_NOW
17317 # define LT_DLLAZY_OR_NOW 0
17325 extern "C" void exit (int);
17328 void fnord() { int i=42;}
17331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17332 int status = $lt_dlunknown;
17336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17337 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17338 /* dlclose (self); */
17346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17347 (eval $ac_link) 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17351 (./conftest; exit; ) >&5 2>/dev/null
17353 case x$lt_status in
17354 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17355 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17356 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17359 # compilation failed
17360 lt_cv_dlopen_self=no
17367 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17368 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17370 if test "x$lt_cv_dlopen_self" = xyes; then
17371 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17372 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17373 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17374 if test "${lt_cv_dlopen_self_static+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17377 if test "$cross_compiling" = yes; then :
17378 lt_cv_dlopen_self_static=cross
17380 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17381 lt_status=$lt_dlunknown
17382 cat > conftest.$ac_ext <<EOF
17383 #line 17383 "configure"
17384 #include "confdefs.h"
17393 # define LT_DLGLOBAL RTLD_GLOBAL
17396 # define LT_DLGLOBAL DL_GLOBAL
17398 # define LT_DLGLOBAL 0
17402 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17403 find out it does not work in some platform. */
17404 #ifndef LT_DLLAZY_OR_NOW
17406 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17409 # define LT_DLLAZY_OR_NOW DL_LAZY
17412 # define LT_DLLAZY_OR_NOW RTLD_NOW
17415 # define LT_DLLAZY_OR_NOW DL_NOW
17417 # define LT_DLLAZY_OR_NOW 0
17425 extern "C" void exit (int);
17428 void fnord() { int i=42;}
17431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17432 int status = $lt_dlunknown;
17436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17437 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17438 /* dlclose (self); */
17446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17447 (eval $ac_link) 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17451 (./conftest; exit; ) >&5 2>/dev/null
17453 case x$lt_status in
17454 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17455 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17456 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17459 # compilation failed
17460 lt_cv_dlopen_self_static=no
17467 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17468 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17471 CPPFLAGS="$save_CPPFLAGS"
17472 LDFLAGS="$save_LDFLAGS"
17477 case $lt_cv_dlopen_self in
17478 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17479 *) enable_dlopen_self=unknown ;;
17482 case $lt_cv_dlopen_self_static in
17483 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17484 *) enable_dlopen_self_static=unknown ;;
17489 # Report which library types will actually be built
17490 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17491 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17492 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17493 echo "${ECHO_T}$can_build_shared" >&6; }
17495 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17496 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17497 test "$can_build_shared" = "no" && enable_shared=no
17499 # On AIX, shared libraries and static libraries use the same namespace, and
17500 # are all built from PIC.
17503 test "$enable_shared" = yes && enable_static=no
17504 if test -n "$RANLIB"; then
17505 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17506 postinstall_cmds='$RANLIB $lib'
17511 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17512 test "$enable_shared" = yes && enable_static=no
17516 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17517 echo "${ECHO_T}$enable_shared" >&6; }
17519 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17520 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17521 # Make sure either enable_shared or enable_static is yes.
17522 test "$enable_shared" = yes || enable_static=yes
17523 { echo "$as_me:$LINENO: result: $enable_static" >&5
17524 echo "${ECHO_T}$enable_static" >&6; }
17526 # The else clause should only fire when bootstrapping the
17527 # libtool distribution, otherwise you forgot to ship ltmain.sh
17528 # with your package, and you will get complaints that there are
17529 # no rules to generate ltmain.sh.
17530 if test -f "$ltmain"; then
17531 # See if we are running on zsh, and set the options which allow our commands through
17532 # without removal of \ escapes.
17533 if test -n "${ZSH_VERSION+set}" ; then
17534 setopt NO_GLOB_SUBST
17536 # Now quote all the things that may contain metacharacters while being
17537 # careful not to overquote the AC_SUBSTed values. We take copies of the
17538 # variables and quote the copies for generation of the libtool script.
17539 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17541 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17542 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17543 deplibs_check_method reload_flag reload_cmds need_locks \
17544 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17545 lt_cv_sys_global_symbol_to_c_name_address \
17546 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17547 old_postinstall_cmds old_postuninstall_cmds \
17551 lt_prog_compiler_wl \
17552 lt_prog_compiler_pic \
17553 lt_prog_compiler_static \
17554 lt_prog_compiler_no_builtin_flag \
17555 export_dynamic_flag_spec \
17556 thread_safe_flag_spec \
17557 whole_archive_flag_spec \
17558 enable_shared_with_static_runtimes \
17560 old_archive_from_new_cmds \
17565 compiler_lib_search_path \
17567 archive_expsym_cmds \
17569 postuninstall_cmds \
17570 old_archive_from_expsyms_cmds \
17571 allow_undefined_flag \
17572 no_undefined_flag \
17573 export_symbols_cmds \
17574 hardcode_libdir_flag_spec \
17575 hardcode_libdir_flag_spec_ld \
17576 hardcode_libdir_separator \
17577 hardcode_automatic \
17579 module_expsym_cmds \
17580 lt_cv_prog_compiler_c_o \
17582 include_expsyms; do
17585 old_archive_cmds | \
17586 old_archive_from_new_cmds | \
17588 archive_expsym_cmds | \
17590 module_expsym_cmds | \
17591 old_archive_from_expsyms_cmds | \
17592 export_symbols_cmds | \
17593 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17594 postinstall_cmds | postuninstall_cmds | \
17595 old_postinstall_cmds | old_postuninstall_cmds | \
17596 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17597 # Double-quote double-evaled strings.
17598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17601 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17607 *'\$0 --fallback-echo"')
17608 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17612 cfgfile="${ofile}T"
17613 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17615 { echo "$as_me:$LINENO: creating $ofile" >&5
17616 echo "$as_me: creating $ofile" >&6;}
17618 cat <<__EOF__ >> "$cfgfile"
17621 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17622 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17623 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17625 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17626 # Free Software Foundation, Inc.
17628 # This file is part of GNU Libtool:
17629 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17631 # This program is free software; you can redistribute it and/or modify
17632 # it under the terms of the GNU General Public License as published by
17633 # the Free Software Foundation; either version 2 of the License, or
17634 # (at your option) any later version.
17636 # This program is distributed in the hope that it will be useful, but
17637 # WITHOUT ANY WARRANTY; without even the implied warranty of
17638 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17639 # General Public License for more details.
17641 # You should have received a copy of the GNU General Public License
17642 # along with this program; if not, write to the Free Software
17643 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17645 # As a special exception to the GNU General Public License, if you
17646 # distribute this file as part of a program that contains a
17647 # configuration script generated by Autoconf, you may include it under
17648 # the same distribution terms that you use for the rest of that program.
17650 # A sed program that does not truncate output.
17653 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17654 Xsed="$SED -e 1s/^X//"
17656 # The HP-UX ksh and POSIX shell print the target directory to stdout
17657 # if CDPATH is set.
17658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17660 # The names of the tagged configurations supported by this script.
17663 # ### BEGIN LIBTOOL CONFIG
17665 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17667 # Shell to use when invoking shell scripts.
17670 # Whether or not to build shared libraries.
17671 build_libtool_libs=$enable_shared
17673 # Whether or not to build static libraries.
17674 build_old_libs=$enable_static
17676 # Whether or not to add -lc for building shared libraries.
17677 build_libtool_need_lc=$archive_cmds_need_lc
17679 # Whether or not to disallow shared libs when runtime libs are static
17680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17682 # Whether or not to optimize for fast installation.
17683 fast_install=$enable_fast_install
17686 host_alias=$host_alias
17690 # The build system.
17691 build_alias=$build_alias
17695 # An echo program that does not interpret backslashes.
17700 AR_FLAGS=$lt_AR_FLAGS
17705 # LTCC compiler flags.
17706 LTCFLAGS=$lt_LTCFLAGS
17708 # A language-specific compiler.
17711 # Is the compiler the GNU C compiler?
17717 # The linker used to build libraries.
17720 # Whether we need hard or soft links.
17723 # A BSD-compatible nm program.
17726 # A symbol stripping program
17729 # Used to examine libraries when file_magic_cmd begins "file"
17730 MAGIC_CMD=$MAGIC_CMD
17732 # Used on cygwin: DLL creation program.
17735 # Used on cygwin: object dumper.
17738 # Used on cygwin: assembler.
17741 # The name of the directory that contains temporary libtool files.
17744 # How to create reloadable object files.
17745 reload_flag=$lt_reload_flag
17746 reload_cmds=$lt_reload_cmds
17748 # How to pass a linker flag through the compiler.
17749 wl=$lt_lt_prog_compiler_wl
17751 # Object file suffix (normally "o").
17752 objext="$ac_objext"
17754 # Old archive suffix (normally "a").
17757 # Shared library suffix (normally ".so").
17758 shrext_cmds='$shrext_cmds'
17760 # Executable file suffix (normally "").
17763 # Additional compiler flags for building library objects.
17764 pic_flag=$lt_lt_prog_compiler_pic
17767 # What is the maximum length of a command?
17768 max_cmd_len=$lt_cv_sys_max_cmd_len
17770 # Does compiler simultaneously support -c and -o options?
17771 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17773 # Must we lock files when doing compilation?
17774 need_locks=$lt_need_locks
17776 # Do we need the lib prefix for modules?
17777 need_lib_prefix=$need_lib_prefix
17779 # Do we need a version for libraries?
17780 need_version=$need_version
17782 # Whether dlopen is supported.
17783 dlopen_support=$enable_dlopen
17785 # Whether dlopen of programs is supported.
17786 dlopen_self=$enable_dlopen_self
17788 # Whether dlopen of statically linked programs is supported.
17789 dlopen_self_static=$enable_dlopen_self_static
17791 # Compiler flag to prevent dynamic linking.
17792 link_static_flag=$lt_lt_prog_compiler_static
17794 # Compiler flag to turn off builtin functions.
17795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17797 # Compiler flag to allow reflexive dlopens.
17798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17800 # Compiler flag to generate shared objects directly from archives.
17801 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17803 # Compiler flag to generate thread-safe objects.
17804 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17806 # Library versioning type.
17807 version_type=$version_type
17809 # Format of library name prefix.
17810 libname_spec=$lt_libname_spec
17812 # List of archive names. First name is the real one, the rest are links.
17813 # The last name is the one that the linker finds with -lNAME.
17814 library_names_spec=$lt_library_names_spec
17816 # The coded name of the library, if different from the real name.
17817 soname_spec=$lt_soname_spec
17819 # Commands used to build and install an old-style archive.
17821 old_archive_cmds=$lt_old_archive_cmds
17822 old_postinstall_cmds=$lt_old_postinstall_cmds
17823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17825 # Create an old-style archive from a shared archive.
17826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17828 # Create a temporary old-style archive to link instead of a shared archive.
17829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17831 # Commands used to build and install a shared archive.
17832 archive_cmds=$lt_archive_cmds
17833 archive_expsym_cmds=$lt_archive_expsym_cmds
17834 postinstall_cmds=$lt_postinstall_cmds
17835 postuninstall_cmds=$lt_postuninstall_cmds
17837 # Commands used to build a loadable module (assumed same as above if empty)
17838 module_cmds=$lt_module_cmds
17839 module_expsym_cmds=$lt_module_expsym_cmds
17841 # Commands to strip libraries.
17842 old_striplib=$lt_old_striplib
17843 striplib=$lt_striplib
17845 # Dependencies to place before the objects being linked to create a
17847 predep_objects=$lt_predep_objects
17849 # Dependencies to place after the objects being linked to create a
17851 postdep_objects=$lt_postdep_objects
17853 # Dependencies to place before the objects being linked to create a
17855 predeps=$lt_predeps
17857 # Dependencies to place after the objects being linked to create a
17859 postdeps=$lt_postdeps
17861 # The library search path used internally by the compiler when linking
17862 # a shared library.
17863 compiler_lib_search_path=$lt_compiler_lib_search_path
17865 # Method to check whether dependent libraries are shared objects.
17866 deplibs_check_method=$lt_deplibs_check_method
17868 # Command to use when deplibs_check_method == file_magic.
17869 file_magic_cmd=$lt_file_magic_cmd
17871 # Flag that allows shared libraries with undefined symbols to be built.
17872 allow_undefined_flag=$lt_allow_undefined_flag
17874 # Flag that forces no undefined symbols.
17875 no_undefined_flag=$lt_no_undefined_flag
17877 # Commands used to finish a libtool library installation in a directory.
17878 finish_cmds=$lt_finish_cmds
17880 # Same as above, but a single script fragment to be evaled but not shown.
17881 finish_eval=$lt_finish_eval
17883 # Take the output of nm and produce a listing of raw symbols and C names.
17884 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17886 # Transform the output of nm in a proper C declaration
17887 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17889 # Transform the output of nm in a C name address pair
17890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17892 # This is the shared library runtime path variable.
17893 runpath_var=$runpath_var
17895 # This is the shared library path variable.
17896 shlibpath_var=$shlibpath_var
17898 # Is shlibpath searched before the hard-coded library search path?
17899 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17901 # How to hardcode a shared library path into an executable.
17902 hardcode_action=$hardcode_action
17904 # Whether we should hardcode library paths into libraries.
17905 hardcode_into_libs=$hardcode_into_libs
17907 # Flag to hardcode \$libdir into a binary during linking.
17908 # This must work even if \$libdir does not exist.
17909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17911 # If ld is used when linking, flag to hardcode \$libdir into
17912 # a binary during linking. This must work even if \$libdir does
17914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17916 # Whether we need a single -rpath flag with a separated argument.
17917 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17919 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17920 # resulting binary.
17921 hardcode_direct=$hardcode_direct
17923 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17924 # resulting binary.
17925 hardcode_minus_L=$hardcode_minus_L
17927 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17928 # the resulting binary.
17929 hardcode_shlibpath_var=$hardcode_shlibpath_var
17931 # Set to yes if building a shared library automatically hardcodes DIR into the library
17932 # and all subsequent libraries and executables linked against it.
17933 hardcode_automatic=$hardcode_automatic
17935 # Variables whose values should be saved in libtool wrapper scripts and
17936 # restored at relink time.
17937 variables_saved_for_relink="$variables_saved_for_relink"
17939 # Whether libtool must link a program against all its dependency libraries.
17940 link_all_deplibs=$link_all_deplibs
17942 # Compile-time system search path for libraries
17943 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17945 # Run-time system search path for libraries
17946 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17948 # Fix the shell variable \$srcfile for the compiler.
17949 fix_srcfile_path="$fix_srcfile_path"
17951 # Set to yes if exported symbols are required.
17952 always_export_symbols=$always_export_symbols
17954 # The commands to list exported symbols.
17955 export_symbols_cmds=$lt_export_symbols_cmds
17957 # The commands to extract the exported symbol list from a shared archive.
17958 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17960 # Symbols that should not be listed in the preloaded symbols.
17961 exclude_expsyms=$lt_exclude_expsyms
17963 # Symbols that must always be exported.
17964 include_expsyms=$lt_include_expsyms
17966 # ### END LIBTOOL CONFIG
17973 cat <<\EOF >> "$cfgfile"
17975 # AIX sometimes has problems with the GCC collect2 program. For some
17976 # reason, if we set the COLLECT_NAMES environment variable, the problems
17977 # vanish in a puff of smoke.
17978 if test "X${COLLECT_NAMES+set}" != Xset; then
17980 export COLLECT_NAMES
17986 # We use sed instead of cat because bash on DJGPP gets confused if
17987 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17988 # text mode, it properly converts lines to CR/LF. This bash problem
17989 # is reportedly fixed, but why not run on old versions too?
17990 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17992 mv -f "$cfgfile" "$ofile" || \
17993 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17997 # If there is no Makefile yet, we rely on a make rule to execute
17998 # `config.status --recheck' to rerun these tests and create the
17999 # libtool script then.
18000 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18001 if test -f "$ltmain_in"; then
18002 test -f Makefile && make "$ltmain"
18008 ac_cpp='$CPP $CPPFLAGS'
18009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18016 # Check whether --with-tags was given.
18017 if test "${with_tags+set}" = set; then
18018 withval=$with_tags; tagnames="$withval"
18022 if test -f "$ltmain" && test -n "$tagnames"; then
18023 if test ! -f "${ofile}"; then
18024 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18025 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18028 if test -z "$LTCC"; then
18029 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18030 if test -z "$LTCC"; then
18031 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18032 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18034 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18035 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18038 if test -z "$LTCFLAGS"; then
18039 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18042 # Extract list of available tagged configurations in $ofile.
18043 # Note that this assumes the entire list is on one line.
18044 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18047 for tagname in $tagnames; do
18049 # Check whether tagname contains only valid characters
18050 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18052 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18053 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18054 { (exit 1); exit 1; }; }
18058 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18060 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18061 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18062 { (exit 1); exit 1; }; }
18065 # Update the list of available tags.
18066 if test -n "$tagname"; then
18067 echo appending configuration tag \"$tagname\" to $ofile
18071 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18072 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18073 (test "X$CXX" != "Xg++"))) ; then
18075 ac_cpp='$CXXCPP $CPPFLAGS'
18076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18083 archive_cmds_need_lc_CXX=no
18084 allow_undefined_flag_CXX=
18085 always_export_symbols_CXX=no
18086 archive_expsym_cmds_CXX=
18087 export_dynamic_flag_spec_CXX=
18088 hardcode_direct_CXX=no
18089 hardcode_libdir_flag_spec_CXX=
18090 hardcode_libdir_flag_spec_ld_CXX=
18091 hardcode_libdir_separator_CXX=
18092 hardcode_minus_L_CXX=no
18093 hardcode_shlibpath_var_CXX=unsupported
18094 hardcode_automatic_CXX=no
18096 module_expsym_cmds_CXX=
18097 link_all_deplibs_CXX=unknown
18098 old_archive_cmds_CXX=$old_archive_cmds
18099 no_undefined_flag_CXX=
18100 whole_archive_flag_spec_CXX=
18101 enable_shared_with_static_runtimes_CXX=no
18103 # Dependencies to place before and after the object being linked:
18104 predep_objects_CXX=
18105 postdep_objects_CXX=
18108 compiler_lib_search_path_CXX=
18110 # Source file extension for C++ test sources.
18113 # Object file extension for compiled C++ test sources.
18117 # Code to be used in simple compile tests
18118 lt_simple_compile_test_code="int some_variable = 0;\n"
18120 # Code to be used in simple link tests
18121 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18123 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18125 # If no C compiler was specified, use CC.
18128 # If no C compiler flags were specified, use CFLAGS.
18129 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18131 # Allow CC to be a program name with arguments.
18135 # save warnings/boilerplate of simple test code
18136 ac_outfile=conftest.$ac_objext
18137 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18138 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18139 _lt_compiler_boilerplate=`cat conftest.err`
18142 ac_outfile=conftest.$ac_objext
18143 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18144 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18145 _lt_linker_boilerplate=`cat conftest.err`
18149 # Allow CC to be a program name with arguments.
18154 lt_save_with_gnu_ld=$with_gnu_ld
18155 lt_save_path_LD=$lt_cv_path_LD
18156 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18157 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18159 $as_unset lt_cv_prog_gnu_ld
18161 if test -n "${lt_cv_path_LDCXX+set}"; then
18162 lt_cv_path_LD=$lt_cv_path_LDCXX
18164 $as_unset lt_cv_path_LD
18166 test -z "${LDCXX+set}" || LD=$LDCXX
18170 for cc_temp in $compiler""; do
18172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18178 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18181 # We don't want -fno-exception wen compiling C++ code, so set the
18182 # no_builtin_flag separately
18183 if test "$GXX" = yes; then
18184 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18186 lt_prog_compiler_no_builtin_flag_CXX=
18189 if test "$GXX" = yes; then
18190 # Set up default GNU C++ configuration
18193 # Check whether --with-gnu-ld was given.
18194 if test "${with_gnu_ld+set}" = set; then
18195 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18201 if test "$GCC" = yes; then
18202 # Check if gcc -print-prog-name=ld gives a path.
18203 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18204 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18207 # gcc leaves a trailing carriage return which upsets mingw
18208 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18210 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18213 # Accept absolute paths.
18215 re_direlt='/[^/][^/]*/\.\./'
18216 # Canonicalize the pathname of ld
18217 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18218 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18219 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18221 test -z "$LD" && LD="$ac_prog"
18224 # If it fails, then pretend we aren't using GCC.
18228 # If it is relative, then search for the first ld in PATH.
18229 with_gnu_ld=unknown
18232 elif test "$with_gnu_ld" = yes; then
18233 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18234 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18236 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18237 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18239 if test "${lt_cv_path_LD+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 if test -z "$LD"; then
18243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18244 for ac_dir in $PATH; do
18246 test -z "$ac_dir" && ac_dir=.
18247 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18248 lt_cv_path_LD="$ac_dir/$ac_prog"
18249 # Check to see if the program is GNU ld. I'd rather use --version,
18250 # but apparently some variants of GNU ld only accept -v.
18251 # Break only if it was the GNU/non-GNU ld that we prefer.
18252 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18253 *GNU* | *'with BFD'*)
18254 test "$with_gnu_ld" != no && break
18257 test "$with_gnu_ld" != yes && break
18264 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18268 LD="$lt_cv_path_LD"
18269 if test -n "$LD"; then
18270 { echo "$as_me:$LINENO: result: $LD" >&5
18271 echo "${ECHO_T}$LD" >&6; }
18273 { echo "$as_me:$LINENO: result: no" >&5
18274 echo "${ECHO_T}no" >&6; }
18276 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18277 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18278 { (exit 1); exit 1; }; }
18279 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18280 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18281 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18285 case `$LD -v 2>&1 </dev/null` in
18286 *GNU* | *'with BFD'*)
18287 lt_cv_prog_gnu_ld=yes
18290 lt_cv_prog_gnu_ld=no
18294 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18295 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18296 with_gnu_ld=$lt_cv_prog_gnu_ld
18300 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18301 # archiving commands below assume that GNU ld is being used.
18302 if test "$with_gnu_ld" = yes; then
18303 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18304 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'
18306 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18307 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18309 # If archive_cmds runs LD, not CC, wlarc should be empty
18310 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18311 # investigate it a little bit more. (MM)
18314 # ancient GNU ld didn't support --whole-archive et. al.
18315 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18316 grep 'no-whole-archive' > /dev/null; then
18317 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18319 whole_archive_flag_spec_CXX=
18325 # A generic and very simple default shared library creation
18326 # command for GNU C++ for the case where it uses the native
18327 # linker, instead of GNU ld. If possible, this setting should
18328 # overridden to take advantage of the native linker features on
18329 # the platform it is being used on.
18330 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18333 # Commands to make compiler produce verbose output that lists
18334 # what "hidden" libraries, object files and flags are used when
18335 # linking a shared library.
18336 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18344 # PORTME: fill in a description of your system's C++ link characteristics
18345 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18346 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18350 # FIXME: insert proper C++ library support
18354 if test "$host_cpu" = ia64; then
18355 # On IA64, the linker does run time linking by default, so we don't
18356 # have to do anything special.
18357 aix_use_runtimelinking=no
18358 exp_sym_flag='-Bexport'
18361 aix_use_runtimelinking=no
18363 # Test if we are trying to use run time linking or normal
18364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18365 # need to do runtime linking.
18366 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18367 for ld_flag in $LDFLAGS; do
18370 aix_use_runtimelinking=yes
18378 exp_sym_flag='-bexport'
18379 no_entry_flag='-bnoentry'
18382 # When large executables or shared objects are built, AIX ld can
18383 # have problems creating the table of contents. If linking a library
18384 # or program results in "error TOC overflow" add -mminimal-toc to
18385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18388 archive_cmds_CXX=''
18389 hardcode_direct_CXX=yes
18390 hardcode_libdir_separator_CXX=':'
18391 link_all_deplibs_CXX=yes
18393 if test "$GXX" = yes; then
18394 case $host_os in aix4.[012]|aix4.[012].*)
18395 # We only want to do this on AIX 4.2 and lower, the check
18396 # below for broken collect2 doesn't work under 4.3+
18397 collect2name=`${CC} -print-prog-name=collect2`
18398 if test -f "$collect2name" && \
18399 strings "$collect2name" | grep resolve_lib_name >/dev/null
18401 # We have reworked collect2
18402 hardcode_direct_CXX=yes
18404 # We have old collect2
18405 hardcode_direct_CXX=unsupported
18406 # It fails to find uninstalled libraries when the uninstalled
18407 # path is not listed in the libpath. Setting hardcode_minus_L
18408 # to unsupported forces relinking
18409 hardcode_minus_L_CXX=yes
18410 hardcode_libdir_flag_spec_CXX='-L$libdir'
18411 hardcode_libdir_separator_CXX=
18415 shared_flag='-shared'
18416 if test "$aix_use_runtimelinking" = yes; then
18417 shared_flag="$shared_flag "'${wl}-G'
18421 if test "$host_cpu" = ia64; then
18422 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18423 # chokes on -Wl,-G. The following line is correct:
18426 if test "$aix_use_runtimelinking" = yes; then
18427 shared_flag='${wl}-G'
18429 shared_flag='${wl}-bM:SRE'
18434 # It seems that -bexpall does not export symbols beginning with
18435 # underscore (_), so it is better to generate a list of symbols to export.
18436 always_export_symbols_CXX=yes
18437 if test "$aix_use_runtimelinking" = yes; then
18438 # Warning - without using the other runtime loading flags (-brtl),
18439 # -berok will link without error, but may produce a broken library.
18440 allow_undefined_flag_CXX='-berok'
18441 # Determine the default libpath from the value encoded in an empty executable.
18442 cat >conftest.$ac_ext <<_ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h. */
18457 rm -f conftest.$ac_objext conftest$ac_exeext
18458 if { (ac_try="$ac_link"
18459 case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_link") 2>conftest.er1
18466 grep -v '^ *+' conftest.er1 >conftest.err
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18472 { (case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_try") 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest$ac_exeext'
18482 { (case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_try") 2>&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
18492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18494 # Check for a 64-bit object if we didn't find anything.
18495 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; }
18498 echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18504 rm -f core conftest.err conftest.$ac_objext \
18505 conftest$ac_exeext conftest.$ac_ext
18506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18508 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18510 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"
18512 if test "$host_cpu" = ia64; then
18513 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18514 allow_undefined_flag_CXX="-z nodefs"
18515 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"
18517 # Determine the default libpath from the value encoded in an empty executable.
18518 cat >conftest.$ac_ext <<_ACEOF
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18533 rm -f conftest.$ac_objext conftest$ac_exeext
18534 if { (ac_try="$ac_link"
18535 case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_link") 2>conftest.er1
18542 grep -v '^ *+' conftest.er1 >conftest.err
18544 cat conftest.err >&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } &&
18547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; } &&
18557 { ac_try='test -s conftest$ac_exeext'
18558 { (case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_try") 2>&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18570 # Check for a 64-bit object if we didn't find anything.
18571 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; }
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18580 rm -f core conftest.err conftest.$ac_objext \
18581 conftest$ac_exeext conftest.$ac_ext
18582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18584 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18585 # Warning - without using the other run time loading flags,
18586 # -berok will link without error, but may produce a broken library.
18587 no_undefined_flag_CXX=' ${wl}-bernotok'
18588 allow_undefined_flag_CXX=' ${wl}-berok'
18589 # Exported symbols can be pulled into shared objects from archives
18590 whole_archive_flag_spec_CXX='$convenience'
18591 archive_cmds_need_lc_CXX=yes
18592 # This is similar to how AIX traditionally builds its shared libraries.
18593 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'
18599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18600 allow_undefined_flag_CXX=unsupported
18601 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18602 # support --undefined. This deserves some investigation. FIXME
18603 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18610 case $cc_basename in
18612 # FIXME: insert proper C++ library support
18618 cygwin* | mingw* | pw32*)
18619 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18620 # as there is no search path for DLLs.
18621 hardcode_libdir_flag_spec_CXX='-L$libdir'
18622 allow_undefined_flag_CXX=unsupported
18623 always_export_symbols_CXX=no
18624 enable_shared_with_static_runtimes_CXX=yes
18626 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18627 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'
18628 # If the export-symbols file already is a .def file (1st line
18629 # is EXPORTS), use it as is; otherwise, prepend...
18630 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18631 cp $export_symbols $output_objdir/$soname.def;
18633 echo EXPORTS > $output_objdir/$soname.def;
18634 cat $export_symbols >> $output_objdir/$soname.def;
18636 $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'
18641 darwin* | rhapsody*)
18643 rhapsody* | darwin1.[012])
18644 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18647 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18648 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18650 case ${MACOSX_DEPLOYMENT_TARGET} in
18652 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18655 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18661 archive_cmds_need_lc_CXX=no
18662 hardcode_direct_CXX=no
18663 hardcode_automatic_CXX=yes
18664 hardcode_shlibpath_var_CXX=unsupported
18665 whole_archive_flag_spec_CXX=''
18666 link_all_deplibs_CXX=yes
18668 if test "$GXX" = yes ; then
18669 lt_int_apple_cc_single_mod=no
18670 output_verbose_link_cmd='echo'
18671 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18672 lt_int_apple_cc_single_mod=yes
18674 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18675 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18677 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'
18679 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18680 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18681 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18682 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}'
18684 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}'
18686 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}'
18688 case $cc_basename in
18690 output_verbose_link_cmd='echo'
18691 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'
18692 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18693 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18694 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}'
18695 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}'
18705 case $cc_basename in
18707 # FIXME: insert proper C++ library support
18711 # Green Hills C++ Compiler
18712 # FIXME: insert proper C++ library support
18716 # FIXME: insert proper C++ library support
18722 # C++ shared libraries reported to be fairly broken before switch to ELF
18726 archive_cmds_need_lc_CXX=no
18728 freebsd* | kfreebsd*-gnu | dragonfly*)
18729 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18736 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18737 hardcode_libdir_separator_CXX=:
18738 export_dynamic_flag_spec_CXX='${wl}-E'
18739 hardcode_direct_CXX=yes
18740 hardcode_minus_L_CXX=yes # Not in the search PATH,
18741 # but as the default
18742 # location of the library.
18744 case $cc_basename in
18746 # FIXME: insert proper C++ library support
18750 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'
18751 # Commands to make compiler produce verbose output that lists
18752 # what "hidden" libraries, object files and flags are used when
18753 # linking a shared library.
18755 # There doesn't appear to be a way to prevent this compiler from
18756 # explicitly linking system object files so we need to strip them
18757 # from the output so that they don't get included in the library
18759 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'
18762 if test "$GXX" = yes; then
18763 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'
18765 # FIXME: insert proper C++ library support
18772 if test $with_gnu_ld = no; then
18773 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18774 hardcode_libdir_separator_CXX=:
18778 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18781 export_dynamic_flag_spec_CXX='${wl}-E'
18787 hardcode_direct_CXX=no
18788 hardcode_shlibpath_var_CXX=no
18791 hardcode_direct_CXX=yes
18792 hardcode_minus_L_CXX=yes # Not in the search PATH,
18793 # but as the default
18794 # location of the library.
18798 case $cc_basename in
18800 # FIXME: insert proper C++ library support
18806 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18809 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18812 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18815 # Commands to make compiler produce verbose output that lists
18816 # what "hidden" libraries, object files and flags are used when
18817 # linking a shared library.
18819 # There doesn't appear to be a way to prevent this compiler from
18820 # explicitly linking system object files so we need to strip them
18821 # from the output so that they don't get included in the library
18823 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'
18826 if test "$GXX" = yes; then
18827 if test $with_gnu_ld = no; then
18830 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18833 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18836 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'
18841 # FIXME: insert proper C++ library support
18848 hardcode_direct_CXX=no
18849 hardcode_shlibpath_var_CXX=no
18850 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18851 export_dynamic_flag_spec_CXX='${wl}-E'
18852 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18853 # Instead, shared libraries are loaded at an image base (0x10000000 by
18854 # default) and relocated if they conflict, which is a slow very memory
18855 # consuming and fragmenting process. To avoid this, we pick a random,
18856 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18857 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18858 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'
18859 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'
18862 case $cc_basename in
18865 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'
18867 # Archives containing C++ object files must be created using
18868 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18869 # necessary to make sure instantiated templates are included
18871 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18874 if test "$GXX" = yes; then
18875 if test "$with_gnu_ld" = no; then
18876 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'
18878 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'
18881 link_all_deplibs_CXX=yes
18884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18885 hardcode_libdir_separator_CXX=:
18888 case $cc_basename in
18890 # Kuck and Associates, Inc. (KAI) C++ Compiler
18892 # KCC will only create a shared library if the output file
18893 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18894 # to its proper name (with version) after linking.
18895 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'
18896 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'
18897 # Commands to make compiler produce verbose output that lists
18898 # what "hidden" libraries, object files and flags are used when
18899 # linking a shared library.
18901 # There doesn't appear to be a way to prevent this compiler from
18902 # explicitly linking system object files so we need to strip them
18903 # from the output so that they don't get included in the library
18905 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'
18907 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18908 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18910 # Archives containing C++ object files must be created using
18911 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18912 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18917 # version 8.0 and above of icpc choke on multiply defined symbols
18918 # if we add $predep_objects and $postdep_objects, however 7.1 and
18919 # earlier do not add the objects themselves.
18920 case `$CC -V 2>&1` in
18922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18923 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'
18925 *) # Version 8.0 or newer
18928 ia64*) tmp_idyn=' -i_dynamic';;
18930 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18931 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'
18934 archive_cmds_need_lc_CXX=no
18935 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18936 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18937 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18940 # Portland Group C++ compiler
18941 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18942 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'
18944 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18945 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18946 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'
18950 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18951 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'
18953 runpath_var=LD_RUN_PATH
18954 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18955 hardcode_libdir_separator_CXX=:
18957 # Commands to make compiler produce verbose output that lists
18958 # what "hidden" libraries, object files and flags are used when
18959 # linking a shared library.
18961 # There doesn't appear to be a way to prevent this compiler from
18962 # explicitly linking system object files so we need to strip them
18963 # from the output so that they don't get included in the library
18965 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'
18970 # FIXME: insert proper C++ library support
18974 # FIXME: insert proper C++ library support
18978 case $cc_basename in
18980 # FIXME: insert proper C++ library support
18984 # FIXME: insert proper C++ library support
18990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18991 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18993 hardcode_libdir_flag_spec_CXX='-R$libdir'
18994 hardcode_direct_CXX=yes
18995 hardcode_shlibpath_var_CXX=no
18997 # Workaround some broken pre-1.5 toolchains
18998 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19001 # C++ shared libraries are fairly broken
19005 hardcode_direct_CXX=yes
19006 hardcode_shlibpath_var_CXX=no
19007 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19008 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19009 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19010 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19011 export_dynamic_flag_spec_CXX='${wl}-E'
19012 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19014 output_verbose_link_cmd='echo'
19017 case $cc_basename in
19019 # Kuck and Associates, Inc. (KAI) C++ Compiler
19021 # KCC will only create a shared library if the output file
19022 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19023 # to its proper name (with version) after linking.
19024 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'
19026 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19027 hardcode_libdir_separator_CXX=:
19029 # Archives containing C++ object files must be created using
19030 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19031 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19035 # Rational C++ 2.4.1
19036 # FIXME: insert proper C++ library support
19040 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19041 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'
19043 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19044 hardcode_libdir_separator_CXX=:
19046 # Commands to make compiler produce verbose output that lists
19047 # what "hidden" libraries, object files and flags are used when
19048 # linking a shared library.
19050 # There doesn't appear to be a way to prevent this compiler from
19051 # explicitly linking system object files so we need to strip them
19052 # from the output so that they don't get included in the library
19054 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'
19057 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19058 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19059 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'
19061 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19062 hardcode_libdir_separator_CXX=:
19064 # Commands to make compiler produce verbose output that lists
19065 # what "hidden" libraries, object files and flags are used when
19066 # linking a shared library.
19067 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19070 # FIXME: insert proper C++ library support
19077 case $cc_basename in
19079 # Kuck and Associates, Inc. (KAI) C++ Compiler
19081 # KCC will only create a shared library if the output file
19082 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19083 # to its proper name (with version) after linking.
19084 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'
19086 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19087 hardcode_libdir_separator_CXX=:
19089 # Archives containing C++ object files must be created using
19090 # the KAI C++ compiler.
19091 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19094 # Rational C++ 2.4.1
19095 # FIXME: insert proper C++ library support
19099 allow_undefined_flag_CXX=' -expect_unresolved \*'
19100 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'
19101 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19102 echo "-hidden">> $lib.exp~
19103 $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~
19106 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19107 hardcode_libdir_separator_CXX=:
19109 # Commands to make compiler produce verbose output that lists
19110 # what "hidden" libraries, object files and flags are used when
19111 # linking a shared library.
19113 # There doesn't appear to be a way to prevent this compiler from
19114 # explicitly linking system object files so we need to strip them
19115 # from the output so that they don't get included in the library
19117 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'
19120 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19122 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'
19124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19125 hardcode_libdir_separator_CXX=:
19127 # Commands to make compiler produce verbose output that lists
19128 # what "hidden" libraries, object files and flags are used when
19129 # linking a shared library.
19130 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19133 # FIXME: insert proper C++ library support
19140 # FIXME: insert proper C++ library support
19144 case $cc_basename in
19147 # FIXME: insert proper C++ library support
19152 # FIXME: insert proper C++ library support
19156 # FIXME: insert proper C++ library support
19162 case $cc_basename in
19164 # Sun C++ 4.2, 5.x and Centerline C++
19165 archive_cmds_need_lc_CXX=yes
19166 no_undefined_flag_CXX=' -zdefs'
19167 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19168 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19169 $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'
19171 hardcode_libdir_flag_spec_CXX='-R$libdir'
19172 hardcode_shlibpath_var_CXX=no
19174 solaris2.[0-5] | solaris2.[0-5].*) ;;
19176 # The C++ compiler is used as linker so we must use $wl
19177 # flag to pass the commands to the underlying system
19178 # linker. We must also pass each convience library through
19179 # to the system linker between allextract/defaultextract.
19180 # The C++ compiler will combine linker options so we
19181 # cannot just pass the convience library names through
19183 # Supported since Solaris 2.6 (maybe 2.5.1?)
19184 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'
19187 link_all_deplibs_CXX=yes
19189 output_verbose_link_cmd='echo'
19191 # Archives containing C++ object files must be created using
19192 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19193 # necessary to make sure instantiated templates are included
19195 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19198 # Green Hills C++ Compiler
19199 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19201 # The C++ compiler must be used to create the archive.
19202 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19205 # GNU C++ compiler with Solaris linker
19206 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19207 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19208 if $CC --version | grep -v '^2\.7' > /dev/null; then
19209 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19210 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19211 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19213 # Commands to make compiler produce verbose output that lists
19214 # what "hidden" libraries, object files and flags are used when
19215 # linking a shared library.
19216 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19218 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19220 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19221 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19222 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19224 # Commands to make compiler produce verbose output that lists
19225 # what "hidden" libraries, object files and flags are used when
19226 # linking a shared library.
19227 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19230 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19236 no_undefined_flag_CXX='${wl}-z,text'
19237 archive_cmds_need_lc_CXX=no
19238 hardcode_shlibpath_var_CXX=no
19239 runpath_var='LD_RUN_PATH'
19241 case $cc_basename in
19243 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19244 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19247 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19248 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19252 sysv5* | sco3.2v5* | sco5v6*)
19253 # Note: We can NOT use -z defs as we might desire, because we do not
19254 # link with -lc, and that would cause any symbols used from libc to
19255 # always be unresolved, which means just about no library would
19256 # ever link correctly. If we're not using GNU ld we use -z text
19257 # though, which does catch some bad symbols but isn't as heavy-handed
19259 # For security reasons, it is highly recommended that you always
19260 # use absolute paths for naming shared libraries, and exclude the
19261 # DT_RUNPATH tag from executables and libraries. But doing so
19262 # requires that you compile everything twice, which is a pain.
19263 # So that behaviour is only enabled if SCOABSPATH is set to a
19264 # non-empty value in the environment. Most likely only useful for
19265 # creating official distributions of packages.
19266 # This is a hack until libtool officially supports absolute path
19267 # names for shared libraries.
19268 no_undefined_flag_CXX='${wl}-z,text'
19269 allow_undefined_flag_CXX='${wl}-z,nodefs'
19270 archive_cmds_need_lc_CXX=no
19271 hardcode_shlibpath_var_CXX=no
19272 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19273 hardcode_libdir_separator_CXX=':'
19274 link_all_deplibs_CXX=yes
19275 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19276 runpath_var='LD_RUN_PATH'
19278 case $cc_basename in
19280 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19281 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19284 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19285 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19290 case $cc_basename in
19292 # NonStop-UX NCC 3.20
19293 # FIXME: insert proper C++ library support
19297 # FIXME: insert proper C++ library support
19303 # FIXME: insert proper C++ library support
19307 # FIXME: insert proper C++ library support
19311 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19312 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19313 test "$ld_shlibs_CXX" = no && can_build_shared=no
19319 cat > conftest.$ac_ext <<EOF
19323 Foo (void) { a = 0; }
19329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19330 (eval $ac_compile) 2>&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; then
19334 # Parse the compiler output and extract the necessary
19335 # objects, libraries and library flags.
19337 # Sentinel used to keep track of whether or not we are before
19338 # the conftest object file.
19339 pre_test_object_deps_done=no
19341 # The `*' in the case matches for architectures that use `case' in
19342 # $output_verbose_cmd can trigger glob expansion during the loop
19343 # eval without this substitution.
19344 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19346 for p in `eval $output_verbose_link_cmd`; do
19350 # Some compilers place space between "-{L,R}" and the path.
19351 # Remove the space.
19352 if test $p = "-L" \
19353 || test $p = "-R"; then
19360 if test "$pre_test_object_deps_done" = no; then
19363 # Internal compiler library paths should come after those
19364 # provided the user. The postdeps already come after the
19365 # user supplied libs so there is no need to process them.
19366 if test -z "$compiler_lib_search_path_CXX"; then
19367 compiler_lib_search_path_CXX="${prev}${p}"
19369 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19372 # The "-l" case would never come before the object being
19373 # linked, so don't bother handling this case.
19376 if test -z "$postdeps_CXX"; then
19377 postdeps_CXX="${prev}${p}"
19379 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19385 # This assumes that the test object file only shows up
19386 # once in the compiler output.
19387 if test "$p" = "conftest.$objext"; then
19388 pre_test_object_deps_done=yes
19392 if test "$pre_test_object_deps_done" = no; then
19393 if test -z "$predep_objects_CXX"; then
19394 predep_objects_CXX="$p"
19396 predep_objects_CXX="$predep_objects_CXX $p"
19399 if test -z "$postdep_objects_CXX"; then
19400 postdep_objects_CXX="$p"
19402 postdep_objects_CXX="$postdep_objects_CXX $p"
19407 *) ;; # Ignore the rest.
19415 echo "libtool.m4: error: problem compiling CXX test program"
19418 $rm -f confest.$objext
19420 # PORTME: override above test on systems where it is broken
19423 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19424 # hack all around it, let's just trust "g++" to DTRT.
19425 predep_objects_CXX=
19426 postdep_objects_CXX=
19431 case $cc_basename in
19433 # Adding this requires a known-good setup of shared libraries for
19434 # Sun compiler versions before 5.6, else PIC objects from an old
19435 # archive will be linked into the output, leading to subtle bugs.
19436 postdeps_CXX='-lCstd -lCrun'
19443 case " $postdeps_CXX " in
19444 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19447 lt_prog_compiler_wl_CXX=
19448 lt_prog_compiler_pic_CXX=
19449 lt_prog_compiler_static_CXX=
19451 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19452 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19454 # C++ specific cases for pic, static, wl, etc.
19455 if test "$GXX" = yes; then
19456 lt_prog_compiler_wl_CXX='-Wl,'
19457 lt_prog_compiler_static_CXX='-static'
19461 # All AIX code is PIC.
19462 if test "$host_cpu" = ia64; then
19463 # AIX 5 now supports IA64 processor
19464 lt_prog_compiler_static_CXX='-Bstatic'
19468 # FIXME: we need at least 68020 code to build shared libraries, but
19469 # adding the `-m68020' flag to GCC prevents building anything better,
19471 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19473 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19474 # PIC is the default for these OSes.
19476 mingw* | os2* | pw32*)
19477 # This hack is so that the source file can tell whether it is being
19478 # built for inclusion in a dll (and should export symbols for example).
19479 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19481 darwin* | rhapsody*)
19482 # PIC is the default on this platform
19483 # Common symbols not allowed in MH_DYLIB files
19484 lt_prog_compiler_pic_CXX='-fno-common'
19487 # DJGPP does not support shared libraries at all
19488 lt_prog_compiler_pic_CXX=
19491 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19492 # Instead, we relocate shared libraries at runtime.
19495 if test -d /usr/nec; then
19496 lt_prog_compiler_pic_CXX=-Kconform_pic
19500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19501 # not for PA HP-UX.
19506 lt_prog_compiler_pic_CXX='-fPIC'
19511 lt_prog_compiler_pic_CXX='-fPIC'
19517 # All AIX code is PIC.
19518 if test "$host_cpu" = ia64; then
19519 # AIX 5 now supports IA64 processor
19520 lt_prog_compiler_static_CXX='-Bstatic'
19522 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19526 case $cc_basename in
19528 # Green Hills C++ Compiler
19529 # _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"
19534 # PIC is the default on this platform
19535 # Common symbols not allowed in MH_DYLIB files
19536 case $cc_basename in
19538 lt_prog_compiler_pic_CXX='-qnocommon'
19539 lt_prog_compiler_wl_CXX='-Wl,'
19544 case $cc_basename in
19546 lt_prog_compiler_pic_CXX='-KPIC'
19549 # Green Hills C++ Compiler
19550 lt_prog_compiler_pic_CXX='-pic'
19556 freebsd* | kfreebsd*-gnu | dragonfly*)
19557 # FreeBSD uses GNU C++
19559 hpux9* | hpux10* | hpux11*)
19560 case $cc_basename in
19562 lt_prog_compiler_wl_CXX='-Wl,'
19563 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19564 if test "$host_cpu" != ia64; then
19565 lt_prog_compiler_pic_CXX='+Z'
19569 lt_prog_compiler_wl_CXX='-Wl,'
19570 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19576 lt_prog_compiler_pic_CXX='+Z'
19585 # This is c89, which is MS Visual C++ (no shared libs)
19586 # Anyone wants to do a port?
19588 irix5* | irix6* | nonstopux*)
19589 case $cc_basename in
19591 lt_prog_compiler_wl_CXX='-Wl,'
19592 lt_prog_compiler_static_CXX='-non_shared'
19593 # CC pic flag -KPIC is the default.
19600 case $cc_basename in
19603 lt_prog_compiler_wl_CXX='--backend -Wl,'
19604 lt_prog_compiler_pic_CXX='-fPIC'
19608 lt_prog_compiler_wl_CXX='-Wl,'
19609 lt_prog_compiler_pic_CXX='-KPIC'
19610 lt_prog_compiler_static_CXX='-static'
19613 # Portland Group C++ compiler.
19614 lt_prog_compiler_wl_CXX='-Wl,'
19615 lt_prog_compiler_pic_CXX='-fpic'
19616 lt_prog_compiler_static_CXX='-Bstatic'
19620 # Make sure the PIC flag is empty. It appears that all Alpha
19621 # Linux and Compaq Tru64 Unix objects are PIC.
19622 lt_prog_compiler_pic_CXX=
19623 lt_prog_compiler_static_CXX='-non_shared'
19634 case $cc_basename in
19636 lt_prog_compiler_pic_CXX='-W c,exportall'
19644 osf3* | osf4* | osf5*)
19645 case $cc_basename in
19647 lt_prog_compiler_wl_CXX='--backend -Wl,'
19650 # Rational C++ 2.4.1
19651 lt_prog_compiler_pic_CXX='-pic'
19654 # Digital/Compaq C++
19655 lt_prog_compiler_wl_CXX='-Wl,'
19656 # Make sure the PIC flag is empty. It appears that all Alpha
19657 # Linux and Compaq Tru64 Unix objects are PIC.
19658 lt_prog_compiler_pic_CXX=
19659 lt_prog_compiler_static_CXX='-non_shared'
19668 case $cc_basename in
19670 # Sun C++ 4.2, 5.x and Centerline C++
19671 lt_prog_compiler_pic_CXX='-KPIC'
19672 lt_prog_compiler_static_CXX='-Bstatic'
19673 lt_prog_compiler_wl_CXX='-Qoption ld '
19676 # Green Hills C++ Compiler
19677 lt_prog_compiler_pic_CXX='-PIC'
19684 case $cc_basename in
19687 lt_prog_compiler_pic_CXX='-pic'
19688 lt_prog_compiler_static_CXX='-Bstatic'
19692 lt_prog_compiler_pic_CXX='-pic'
19699 case $cc_basename in
19701 # NonStop-UX NCC 3.20
19702 lt_prog_compiler_pic_CXX='-KPIC'
19708 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19709 case $cc_basename in
19711 lt_prog_compiler_wl_CXX='-Wl,'
19712 lt_prog_compiler_pic_CXX='-KPIC'
19713 lt_prog_compiler_static_CXX='-Bstatic'
19720 lt_prog_compiler_can_build_shared_CXX=no
19725 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19726 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19729 # Check to make sure the PIC flag actually works.
19731 if test -n "$lt_prog_compiler_pic_CXX"; then
19733 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19734 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19735 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19738 lt_prog_compiler_pic_works_CXX=no
19739 ac_outfile=conftest.$ac_objext
19740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19741 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19742 # Insert the option either (1) after the last *FLAGS variable, or
19743 # (2) before a word containing "conftest.", or (3) at the end.
19744 # Note that $ac_compile itself does not contain backslashes and begins
19745 # with a dollar sign (not a hyphen), so the echo should work correctly.
19746 # The option is referenced via a variable to avoid confusing sed.
19747 lt_compile=`echo "$ac_compile" | $SED \
19748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19750 -e 's:$: $lt_compiler_flag:'`
19751 (eval echo "\"\$as_me:19751: $lt_compile\"" >&5)
19752 (eval "$lt_compile" 2>conftest.err)
19754 cat conftest.err >&5
19755 echo "$as_me:19755: \$? = $ac_status" >&5
19756 if (exit $ac_status) && test -s "$ac_outfile"; then
19757 # The compiler can only warn and ignore the option if not recognized
19758 # So say no if there are warnings other than the usual output.
19759 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19761 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19762 lt_prog_compiler_pic_works_CXX=yes
19768 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19769 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19771 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19772 case $lt_prog_compiler_pic_CXX in
19774 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19777 lt_prog_compiler_pic_CXX=
19778 lt_prog_compiler_can_build_shared_CXX=no
19783 # For platforms which do not support PIC, -DPIC is meaningless:
19785 lt_prog_compiler_pic_CXX=
19788 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19793 # Check to make sure the static flag actually works.
19795 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19796 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19797 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19798 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 lt_prog_compiler_static_works_CXX=no
19802 save_LDFLAGS="$LDFLAGS"
19803 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19804 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19805 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19806 # The linker can only warn and ignore the option if not recognized
19807 # So say no if there are warnings
19808 if test -s conftest.err; then
19809 # Append any errors to the config.log.
19810 cat conftest.err 1>&5
19811 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19813 if diff conftest.exp conftest.er2 >/dev/null; then
19814 lt_prog_compiler_static_works_CXX=yes
19817 lt_prog_compiler_static_works_CXX=yes
19821 LDFLAGS="$save_LDFLAGS"
19824 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19825 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19827 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19830 lt_prog_compiler_static_CXX=
19834 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19835 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19836 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19839 lt_cv_prog_compiler_c_o_CXX=no
19840 $rm -r conftest 2>/dev/null
19844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19846 lt_compiler_flag="-o out/conftest2.$ac_objext"
19847 # Insert the option either (1) after the last *FLAGS variable, or
19848 # (2) before a word containing "conftest.", or (3) at the end.
19849 # Note that $ac_compile itself does not contain backslashes and begins
19850 # with a dollar sign (not a hyphen), so the echo should work correctly.
19851 lt_compile=`echo "$ac_compile" | $SED \
19852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19854 -e 's:$: $lt_compiler_flag:'`
19855 (eval echo "\"\$as_me:19855: $lt_compile\"" >&5)
19856 (eval "$lt_compile" 2>out/conftest.err)
19858 cat out/conftest.err >&5
19859 echo "$as_me:19859: \$? = $ac_status" >&5
19860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19862 # The compiler can only warn and ignore the option if not recognized
19863 # So say no if there are warnings
19864 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19865 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19866 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19867 lt_cv_prog_compiler_c_o_CXX=yes
19872 # SGI C++ compiler will create directory out/ii_files/ for
19873 # template instantiation
19874 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19875 $rm out/* && rmdir out
19881 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19882 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19885 hard_links="nottested"
19886 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19887 # do not overwrite the value of need_locks provided by the user
19888 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19889 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19894 ln conftest.a conftest.b 2>&5 || hard_links=no
19895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19896 { echo "$as_me:$LINENO: result: $hard_links" >&5
19897 echo "${ECHO_T}$hard_links" >&6; }
19898 if test "$hard_links" = no; then
19899 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19900 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19907 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19908 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19910 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19913 # If we're using GNU nm, then we don't want the "-C" option.
19914 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19915 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19916 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'
19918 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'
19922 export_symbols_cmds_CXX="$ltdll_cmds"
19925 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'
19928 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19932 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19933 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19934 test "$ld_shlibs_CXX" = no && can_build_shared=no
19937 # Do we need to explicitly link libc?
19939 case "x$archive_cmds_need_lc_CXX" in
19941 # Assume -lc should be added
19942 archive_cmds_need_lc_CXX=yes
19944 if test "$enable_shared" = yes && test "$GCC" = yes; then
19945 case $archive_cmds_CXX in
19947 # FIXME: we may have to deal with multi-command sequences.
19950 # Test whether the compiler implicitly links with -lc since on some
19951 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19952 # to ld, don't add -lc before -lgcc.
19953 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19954 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19959 (eval $ac_compile) 2>&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } 2>conftest.err; then
19965 libobjs=conftest.$ac_objext
19967 wl=$lt_prog_compiler_wl_CXX
19968 pic_flag=$lt_prog_compiler_pic_CXX
19974 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19975 allow_undefined_flag_CXX=
19976 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19977 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }
19982 archive_cmds_need_lc_CXX=no
19984 archive_cmds_need_lc_CXX=yes
19986 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19988 cat conftest.err 1>&5
19991 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19992 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19999 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20000 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20001 library_names_spec=
20002 libname_spec='lib$name'
20006 postuninstall_cmds=
20010 shlibpath_overrides_runpath=unknown
20012 dynamic_linker="$host_os ld.so"
20013 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20014 if test "$GCC" = yes; then
20015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20016 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20017 # if the path contains ";" then we assume it to be the separator
20018 # otherwise default to the standard path separator (i.e. ":") - it is
20019 # assumed that no part of a normal pathname contains ";" but that should
20020 # okay in the real world where ";" in dirpaths is itself problematic.
20021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20028 need_lib_prefix=unknown
20029 hardcode_into_libs=no
20031 # when you set need_version to no, make sure it does not cause -set_version
20032 # flags to be left without arguments
20033 need_version=unknown
20038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20039 shlibpath_var=LIBPATH
20041 # AIX 3 has no versioning support, so we append a major version to the name.
20042 soname_spec='${libname}${release}${shared_ext}$major'
20049 hardcode_into_libs=yes
20050 if test "$host_cpu" = ia64; then
20051 # AIX 5 supports IA64
20052 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20053 shlibpath_var=LD_LIBRARY_PATH
20055 # With GCC up to 2.95.x, collect2 would create an import file
20056 # for dependence libraries. The import file would start with
20057 # the line `#! .'. This would cause the generated library to
20058 # depend on `.', always an invalid library. This was fixed in
20059 # development snapshots of GCC prior to 3.0.
20061 aix4 | aix4.[01] | aix4.[01].*)
20062 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20064 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20067 can_build_shared=no
20071 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20072 # soname into executable. Probably we can add versioning support to
20073 # collect2, so additional links can be useful in future.
20074 if test "$aix_use_runtimelinking" = yes; then
20075 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20076 # instead of lib<name>.a to let people know that these are not
20077 # typical AIX shared libraries.
20078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20080 # We preserve .a as extension for shared libraries through AIX4.2
20081 # and later when we are not doing run time linking.
20082 library_names_spec='${libname}${release}.a $libname.a'
20083 soname_spec='${libname}${release}${shared_ext}$major'
20085 shlibpath_var=LIBPATH
20090 library_names_spec='$libname.ixlibrary $libname.a'
20091 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20092 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'
20096 library_names_spec='${libname}${shared_ext}'
20097 dynamic_linker="$host_os ld.so"
20098 shlibpath_var=LIBRARY_PATH
20104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20105 soname_spec='${libname}${release}${shared_ext}$major'
20106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20107 shlibpath_var=LD_LIBRARY_PATH
20108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20110 # the default ld.so.conf also contains /usr/contrib/lib and
20111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20112 # libtool to hard-code these into programs
20115 cygwin* | mingw* | pw32*)
20116 version_type=windows
20121 case $GCC,$host_os in
20122 yes,cygwin* | yes,mingw* | yes,pw32*)
20123 library_names_spec='$libname.dll.a'
20124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20125 postinstall_cmds='base_file=`basename \${file}`~
20126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20127 dldir=$destdir/`dirname \$dlpath`~
20128 test -d \$dldir || mkdir -p \$dldir~
20129 $install_prog $dir/$dlname \$dldir/$dlname~
20130 chmod a+x \$dldir/$dlname'
20131 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20132 dlpath=$dir/\$dldll~
20134 shlibpath_overrides_runpath=yes
20138 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20139 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20140 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20143 # MinGW DLLs use traditional 'lib' prefix
20144 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20145 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20146 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20147 # It is most probably a Windows format PATH printed by
20148 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20149 # path with ; separators, and with drive letters. We can handle the
20150 # drive letters (cygwin fileutils understands them), so leave them,
20151 # especially as we might pass files found there to a mingw objdump,
20152 # which wouldn't understand a cygwinified path. Ahh.
20153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20159 # pw32 DLLs use 'pw' prefix rather than 'lib'
20160 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20166 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20169 dynamic_linker='Win32 ld.exe'
20170 # FIXME: first we should search . and the directory the executable is in
20174 darwin* | rhapsody*)
20175 dynamic_linker="$host_os dyld"
20176 version_type=darwin
20179 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20180 soname_spec='${libname}${release}${major}$shared_ext'
20181 shlibpath_overrides_runpath=yes
20182 shlibpath_var=DYLD_LIBRARY_PATH
20183 shrext_cmds='.dylib'
20184 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20185 if test "$GCC" = yes; then
20186 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"`
20188 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20198 soname_spec='${libname}${release}${shared_ext}$major'
20199 shlibpath_var=LD_LIBRARY_PATH
20210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20211 soname_spec='${libname}${release}${shared_ext}$major'
20212 shlibpath_var=LD_LIBRARY_PATH
20213 shlibpath_overrides_runpath=no
20214 hardcode_into_libs=yes
20215 dynamic_linker='GNU ld.so'
20218 freebsd* | dragonfly*)
20219 # DragonFly does not have aout. When/if they implement a new
20220 # versioning mechanism, adjust this.
20221 if test -x /usr/bin/objformat; then
20222 objformat=`/usr/bin/objformat`
20225 freebsd[123]*) objformat=aout ;;
20226 *) objformat=elf ;;
20229 version_type=freebsd-$objformat
20230 case $version_type in
20232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20237 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20241 shlibpath_var=LD_LIBRARY_PATH
20244 shlibpath_overrides_runpath=yes
20246 freebsd3.[01]* | freebsdelf3.[01]*)
20247 shlibpath_overrides_runpath=yes
20248 hardcode_into_libs=yes
20250 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20251 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20252 shlibpath_overrides_runpath=no
20253 hardcode_into_libs=yes
20255 freebsd*) # from 4.6 on
20256 shlibpath_overrides_runpath=yes
20257 hardcode_into_libs=yes
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20267 soname_spec='${libname}${release}${shared_ext}$major'
20268 shlibpath_var=LD_LIBRARY_PATH
20269 hardcode_into_libs=yes
20272 hpux9* | hpux10* | hpux11*)
20273 # Give a soname corresponding to the major version so that dld.sl refuses to
20274 # link against other versions.
20281 hardcode_into_libs=yes
20282 dynamic_linker="$host_os dld.so"
20283 shlibpath_var=LD_LIBRARY_PATH
20284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286 soname_spec='${libname}${release}${shared_ext}$major'
20287 if test "X$HPUX_IA64_MODE" = X32; then
20288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20290 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20296 hardcode_into_libs=yes
20297 dynamic_linker="$host_os dld.sl"
20298 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20307 dynamic_linker="$host_os dld.sl"
20308 shlibpath_var=SHLIB_PATH
20309 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20311 soname_spec='${libname}${release}${shared_ext}$major'
20314 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20315 postinstall_cmds='chmod 555 $lib'
20322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20323 soname_spec='${libname}${release}${shared_ext}$major'
20324 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20325 shlibpath_var=LD_LIBRARY_PATH
20326 shlibpath_overrides_runpath=no
20327 hardcode_into_libs=yes
20330 irix5* | irix6* | nonstopux*)
20332 nonstopux*) version_type=nonstopux ;;
20334 if test "$lt_cv_prog_gnu_ld" = yes; then
20342 soname_spec='${libname}${release}${shared_ext}$major'
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20345 irix5* | nonstopux*)
20346 libsuff= shlibsuff=
20349 case $LD in # libtool.m4 will add one of these switches to LD
20350 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20351 libsuff= shlibsuff= libmagic=32-bit;;
20352 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20353 libsuff=32 shlibsuff=N32 libmagic=N32;;
20354 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20355 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20356 *) libsuff= shlibsuff= libmagic=never-match;;
20360 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20361 shlibpath_overrides_runpath=no
20362 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20363 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20364 hardcode_into_libs=yes
20367 # No shared lib support for Linux oldld, aout, or coff.
20368 linux*oldld* | linux*aout* | linux*coff*)
20372 # This must be Linux ELF.
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378 soname_spec='${libname}${release}${shared_ext}$major'
20379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20380 shlibpath_var=LD_LIBRARY_PATH
20381 shlibpath_overrides_runpath=no
20382 # This implies no fast_install, which is unacceptable.
20383 # Some rework will be needed to allow for fast_install
20384 # before this can be enabled.
20385 hardcode_into_libs=yes
20387 # Append ld.so.conf contents to the search path
20388 if test -f /etc/ld.so.conf; then
20389 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' ' '`
20390 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20393 # We used to test for /lib/ld.so.1 and disable shared libraries on
20394 # powerpc, because MkLinux only supported shared libraries with the
20395 # GNU dynamic linker. Since this was broken with cross compilers,
20396 # most powerpc-linux boxes support dynamic linking these days and
20397 # people can always --disable-shared, the test was removed, and we
20398 # assume the GNU/Linux dynamic linker is in use.
20399 dynamic_linker='GNU/Linux ld.so'
20406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20407 soname_spec='${libname}${release}${shared_ext}$major'
20408 shlibpath_var=LD_LIBRARY_PATH
20409 shlibpath_overrides_runpath=no
20410 hardcode_into_libs=yes
20411 dynamic_linker='GNU ld.so'
20418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20421 dynamic_linker='NetBSD (a.out) ld.so'
20423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20424 soname_spec='${libname}${release}${shared_ext}$major'
20425 dynamic_linker='NetBSD ld.elf_so'
20427 shlibpath_var=LD_LIBRARY_PATH
20428 shlibpath_overrides_runpath=yes
20429 hardcode_into_libs=yes
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20435 shlibpath_var=LD_LIBRARY_PATH
20436 shlibpath_overrides_runpath=yes
20443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20444 soname_spec='${libname}${release}${shared_ext}$major'
20445 shlibpath_var=LD_LIBRARY_PATH
20446 shlibpath_overrides_runpath=yes
20451 sys_lib_dlsearch_path_spec="/usr/lib"
20453 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20455 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20456 *) need_version=no ;;
20458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20460 shlibpath_var=LD_LIBRARY_PATH
20461 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20463 openbsd2.[89] | openbsd2.[89].*)
20464 shlibpath_overrides_runpath=no
20467 shlibpath_overrides_runpath=yes
20471 shlibpath_overrides_runpath=yes
20476 libname_spec='$name'
20479 library_names_spec='$libname${shared_ext} $libname.a'
20480 dynamic_linker='OS/2 ld.exe'
20481 shlibpath_var=LIBPATH
20484 osf3* | osf4* | osf5*)
20488 soname_spec='${libname}${release}${shared_ext}$major'
20489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20490 shlibpath_var=LD_LIBRARY_PATH
20491 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20492 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20500 soname_spec='${libname}${release}${shared_ext}$major'
20501 shlibpath_var=LD_LIBRARY_PATH
20502 shlibpath_overrides_runpath=yes
20503 hardcode_into_libs=yes
20504 # ldd complains unless libraries are executable
20505 postinstall_cmds='chmod +x $lib'
20510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20511 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20512 shlibpath_var=LD_LIBRARY_PATH
20513 shlibpath_overrides_runpath=yes
20514 if test "$with_gnu_ld" = yes; then
20522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20523 soname_spec='${libname}${release}${shared_ext}$major'
20524 shlibpath_var=LD_LIBRARY_PATH
20525 case $host_vendor in
20527 shlibpath_overrides_runpath=no
20529 export_dynamic_flag_spec='${wl}-Blargedynsym'
20530 runpath_var=LD_RUN_PATH
20538 shlibpath_overrides_runpath=no
20539 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20545 if test -d /usr/nec ;then
20547 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20548 soname_spec='$libname${shared_ext}.$major'
20549 shlibpath_var=LD_LIBRARY_PATH
20553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20554 version_type=freebsd-elf
20557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20558 soname_spec='${libname}${release}${shared_ext}$major'
20559 shlibpath_var=LD_LIBRARY_PATH
20560 hardcode_into_libs=yes
20561 if test "$with_gnu_ld" = yes; then
20562 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20563 shlibpath_overrides_runpath=no
20565 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20566 shlibpath_overrides_runpath=yes
20569 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20573 sys_lib_dlsearch_path_spec='/usr/lib'
20578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579 soname_spec='${libname}${release}${shared_ext}$major'
20580 shlibpath_var=LD_LIBRARY_PATH
20587 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20588 echo "${ECHO_T}$dynamic_linker" >&6; }
20589 test "$dynamic_linker" = no && can_build_shared=no
20591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20592 if test "$GCC" = yes; then
20593 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20596 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20597 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20598 hardcode_action_CXX=
20599 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20600 test -n "$runpath_var_CXX" || \
20601 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20603 # We can hardcode non-existant directories.
20604 if test "$hardcode_direct_CXX" != no &&
20605 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20606 # have to relink, otherwise we might link with an installed library
20607 # when we should be linking with a yet-to-be-installed one
20608 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20609 test "$hardcode_minus_L_CXX" != no; then
20610 # Linking always hardcodes the temporary library directory.
20611 hardcode_action_CXX=relink
20613 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20614 hardcode_action_CXX=immediate
20617 # We cannot hardcode anything, or else we can only hardcode existing
20619 hardcode_action_CXX=unsupported
20621 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20622 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20624 if test "$hardcode_action_CXX" = relink; then
20625 # Fast installation is not supported
20626 enable_fast_install=no
20627 elif test "$shlibpath_overrides_runpath" = yes ||
20628 test "$enable_shared" = no; then
20629 # Fast installation is not necessary
20630 enable_fast_install=needless
20634 # The else clause should only fire when bootstrapping the
20635 # libtool distribution, otherwise you forgot to ship ltmain.sh
20636 # with your package, and you will get complaints that there are
20637 # no rules to generate ltmain.sh.
20638 if test -f "$ltmain"; then
20639 # See if we are running on zsh, and set the options which allow our commands through
20640 # without removal of \ escapes.
20641 if test -n "${ZSH_VERSION+set}" ; then
20642 setopt NO_GLOB_SUBST
20644 # Now quote all the things that may contain metacharacters while being
20645 # careful not to overquote the AC_SUBSTed values. We take copies of the
20646 # variables and quote the copies for generation of the libtool script.
20647 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20649 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20650 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20651 deplibs_check_method reload_flag reload_cmds need_locks \
20652 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20653 lt_cv_sys_global_symbol_to_c_name_address \
20654 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20655 old_postinstall_cmds old_postuninstall_cmds \
20659 lt_prog_compiler_wl_CXX \
20660 lt_prog_compiler_pic_CXX \
20661 lt_prog_compiler_static_CXX \
20662 lt_prog_compiler_no_builtin_flag_CXX \
20663 export_dynamic_flag_spec_CXX \
20664 thread_safe_flag_spec_CXX \
20665 whole_archive_flag_spec_CXX \
20666 enable_shared_with_static_runtimes_CXX \
20667 old_archive_cmds_CXX \
20668 old_archive_from_new_cmds_CXX \
20669 predep_objects_CXX \
20670 postdep_objects_CXX \
20673 compiler_lib_search_path_CXX \
20675 archive_expsym_cmds_CXX \
20676 postinstall_cmds_CXX \
20677 postuninstall_cmds_CXX \
20678 old_archive_from_expsyms_cmds_CXX \
20679 allow_undefined_flag_CXX \
20680 no_undefined_flag_CXX \
20681 export_symbols_cmds_CXX \
20682 hardcode_libdir_flag_spec_CXX \
20683 hardcode_libdir_flag_spec_ld_CXX \
20684 hardcode_libdir_separator_CXX \
20685 hardcode_automatic_CXX \
20687 module_expsym_cmds_CXX \
20688 lt_cv_prog_compiler_c_o_CXX \
20689 exclude_expsyms_CXX \
20690 include_expsyms_CXX; do
20693 old_archive_cmds_CXX | \
20694 old_archive_from_new_cmds_CXX | \
20695 archive_cmds_CXX | \
20696 archive_expsym_cmds_CXX | \
20697 module_cmds_CXX | \
20698 module_expsym_cmds_CXX | \
20699 old_archive_from_expsyms_cmds_CXX | \
20700 export_symbols_cmds_CXX | \
20701 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20702 postinstall_cmds | postuninstall_cmds | \
20703 old_postinstall_cmds | old_postuninstall_cmds | \
20704 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20705 # Double-quote double-evaled strings.
20706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20709 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20715 *'\$0 --fallback-echo"')
20716 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20722 cat <<__EOF__ >> "$cfgfile"
20723 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20725 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20727 # Shell to use when invoking shell scripts.
20730 # Whether or not to build shared libraries.
20731 build_libtool_libs=$enable_shared
20733 # Whether or not to build static libraries.
20734 build_old_libs=$enable_static
20736 # Whether or not to add -lc for building shared libraries.
20737 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20739 # Whether or not to disallow shared libs when runtime libs are static
20740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20742 # Whether or not to optimize for fast installation.
20743 fast_install=$enable_fast_install
20746 host_alias=$host_alias
20750 # The build system.
20751 build_alias=$build_alias
20755 # An echo program that does not interpret backslashes.
20760 AR_FLAGS=$lt_AR_FLAGS
20765 # LTCC compiler flags.
20766 LTCFLAGS=$lt_LTCFLAGS
20768 # A language-specific compiler.
20769 CC=$lt_compiler_CXX
20771 # Is the compiler the GNU C compiler?
20777 # The linker used to build libraries.
20780 # Whether we need hard or soft links.
20783 # A BSD-compatible nm program.
20786 # A symbol stripping program
20789 # Used to examine libraries when file_magic_cmd begins "file"
20790 MAGIC_CMD=$MAGIC_CMD
20792 # Used on cygwin: DLL creation program.
20795 # Used on cygwin: object dumper.
20798 # Used on cygwin: assembler.
20801 # The name of the directory that contains temporary libtool files.
20804 # How to create reloadable object files.
20805 reload_flag=$lt_reload_flag
20806 reload_cmds=$lt_reload_cmds
20808 # How to pass a linker flag through the compiler.
20809 wl=$lt_lt_prog_compiler_wl_CXX
20811 # Object file suffix (normally "o").
20812 objext="$ac_objext"
20814 # Old archive suffix (normally "a").
20817 # Shared library suffix (normally ".so").
20818 shrext_cmds='$shrext_cmds'
20820 # Executable file suffix (normally "").
20823 # Additional compiler flags for building library objects.
20824 pic_flag=$lt_lt_prog_compiler_pic_CXX
20827 # What is the maximum length of a command?
20828 max_cmd_len=$lt_cv_sys_max_cmd_len
20830 # Does compiler simultaneously support -c and -o options?
20831 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20833 # Must we lock files when doing compilation?
20834 need_locks=$lt_need_locks
20836 # Do we need the lib prefix for modules?
20837 need_lib_prefix=$need_lib_prefix
20839 # Do we need a version for libraries?
20840 need_version=$need_version
20842 # Whether dlopen is supported.
20843 dlopen_support=$enable_dlopen
20845 # Whether dlopen of programs is supported.
20846 dlopen_self=$enable_dlopen_self
20848 # Whether dlopen of statically linked programs is supported.
20849 dlopen_self_static=$enable_dlopen_self_static
20851 # Compiler flag to prevent dynamic linking.
20852 link_static_flag=$lt_lt_prog_compiler_static_CXX
20854 # Compiler flag to turn off builtin functions.
20855 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20857 # Compiler flag to allow reflexive dlopens.
20858 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20860 # Compiler flag to generate shared objects directly from archives.
20861 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20863 # Compiler flag to generate thread-safe objects.
20864 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20866 # Library versioning type.
20867 version_type=$version_type
20869 # Format of library name prefix.
20870 libname_spec=$lt_libname_spec
20872 # List of archive names. First name is the real one, the rest are links.
20873 # The last name is the one that the linker finds with -lNAME.
20874 library_names_spec=$lt_library_names_spec
20876 # The coded name of the library, if different from the real name.
20877 soname_spec=$lt_soname_spec
20879 # Commands used to build and install an old-style archive.
20881 old_archive_cmds=$lt_old_archive_cmds_CXX
20882 old_postinstall_cmds=$lt_old_postinstall_cmds
20883 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20885 # Create an old-style archive from a shared archive.
20886 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20888 # Create a temporary old-style archive to link instead of a shared archive.
20889 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20891 # Commands used to build and install a shared archive.
20892 archive_cmds=$lt_archive_cmds_CXX
20893 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20894 postinstall_cmds=$lt_postinstall_cmds
20895 postuninstall_cmds=$lt_postuninstall_cmds
20897 # Commands used to build a loadable module (assumed same as above if empty)
20898 module_cmds=$lt_module_cmds_CXX
20899 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20901 # Commands to strip libraries.
20902 old_striplib=$lt_old_striplib
20903 striplib=$lt_striplib
20905 # Dependencies to place before the objects being linked to create a
20907 predep_objects=$lt_predep_objects_CXX
20909 # Dependencies to place after the objects being linked to create a
20911 postdep_objects=$lt_postdep_objects_CXX
20913 # Dependencies to place before the objects being linked to create a
20915 predeps=$lt_predeps_CXX
20917 # Dependencies to place after the objects being linked to create a
20919 postdeps=$lt_postdeps_CXX
20921 # The library search path used internally by the compiler when linking
20922 # a shared library.
20923 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20925 # Method to check whether dependent libraries are shared objects.
20926 deplibs_check_method=$lt_deplibs_check_method
20928 # Command to use when deplibs_check_method == file_magic.
20929 file_magic_cmd=$lt_file_magic_cmd
20931 # Flag that allows shared libraries with undefined symbols to be built.
20932 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20934 # Flag that forces no undefined symbols.
20935 no_undefined_flag=$lt_no_undefined_flag_CXX
20937 # Commands used to finish a libtool library installation in a directory.
20938 finish_cmds=$lt_finish_cmds
20940 # Same as above, but a single script fragment to be evaled but not shown.
20941 finish_eval=$lt_finish_eval
20943 # Take the output of nm and produce a listing of raw symbols and C names.
20944 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20946 # Transform the output of nm in a proper C declaration
20947 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20949 # Transform the output of nm in a C name address pair
20950 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20952 # This is the shared library runtime path variable.
20953 runpath_var=$runpath_var
20955 # This is the shared library path variable.
20956 shlibpath_var=$shlibpath_var
20958 # Is shlibpath searched before the hard-coded library search path?
20959 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20961 # How to hardcode a shared library path into an executable.
20962 hardcode_action=$hardcode_action_CXX
20964 # Whether we should hardcode library paths into libraries.
20965 hardcode_into_libs=$hardcode_into_libs
20967 # Flag to hardcode \$libdir into a binary during linking.
20968 # This must work even if \$libdir does not exist.
20969 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20971 # If ld is used when linking, flag to hardcode \$libdir into
20972 # a binary during linking. This must work even if \$libdir does
20974 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20976 # Whether we need a single -rpath flag with a separated argument.
20977 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20979 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20980 # resulting binary.
20981 hardcode_direct=$hardcode_direct_CXX
20983 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20984 # resulting binary.
20985 hardcode_minus_L=$hardcode_minus_L_CXX
20987 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20988 # the resulting binary.
20989 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20991 # Set to yes if building a shared library automatically hardcodes DIR into the library
20992 # and all subsequent libraries and executables linked against it.
20993 hardcode_automatic=$hardcode_automatic_CXX
20995 # Variables whose values should be saved in libtool wrapper scripts and
20996 # restored at relink time.
20997 variables_saved_for_relink="$variables_saved_for_relink"
20999 # Whether libtool must link a program against all its dependency libraries.
21000 link_all_deplibs=$link_all_deplibs_CXX
21002 # Compile-time system search path for libraries
21003 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21005 # Run-time system search path for libraries
21006 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21008 # Fix the shell variable \$srcfile for the compiler.
21009 fix_srcfile_path="$fix_srcfile_path_CXX"
21011 # Set to yes if exported symbols are required.
21012 always_export_symbols=$always_export_symbols_CXX
21014 # The commands to list exported symbols.
21015 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21017 # The commands to extract the exported symbol list from a shared archive.
21018 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21020 # Symbols that should not be listed in the preloaded symbols.
21021 exclude_expsyms=$lt_exclude_expsyms_CXX
21023 # Symbols that must always be exported.
21024 include_expsyms=$lt_include_expsyms_CXX
21026 # ### END LIBTOOL TAG CONFIG: $tagname
21032 # If there is no Makefile yet, we rely on a make rule to execute
21033 # `config.status --recheck' to rerun these tests and create the
21034 # libtool script then.
21035 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21036 if test -f "$ltmain_in"; then
21037 test -f Makefile && make "$ltmain"
21043 ac_cpp='$CPP $CPPFLAGS'
21044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21052 with_gnu_ldcxx=$with_gnu_ld
21053 with_gnu_ld=$lt_save_with_gnu_ld
21054 lt_cv_path_LDCXX=$lt_cv_path_LD
21055 lt_cv_path_LD=$lt_save_path_LD
21056 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21057 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21065 if test -n "$F77" && test "X$F77" != "Xno"; then
21068 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21069 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21073 archive_cmds_need_lc_F77=no
21074 allow_undefined_flag_F77=
21075 always_export_symbols_F77=no
21076 archive_expsym_cmds_F77=
21077 export_dynamic_flag_spec_F77=
21078 hardcode_direct_F77=no
21079 hardcode_libdir_flag_spec_F77=
21080 hardcode_libdir_flag_spec_ld_F77=
21081 hardcode_libdir_separator_F77=
21082 hardcode_minus_L_F77=no
21083 hardcode_automatic_F77=no
21085 module_expsym_cmds_F77=
21086 link_all_deplibs_F77=unknown
21087 old_archive_cmds_F77=$old_archive_cmds
21088 no_undefined_flag_F77=
21089 whole_archive_flag_spec_F77=
21090 enable_shared_with_static_runtimes_F77=no
21092 # Source file extension for f77 test sources.
21095 # Object file extension for compiled f77 test sources.
21099 # Code to be used in simple compile tests
21100 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21102 # Code to be used in simple link tests
21103 lt_simple_link_test_code=" program t\n end\n"
21105 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21107 # If no C compiler was specified, use CC.
21110 # If no C compiler flags were specified, use CFLAGS.
21111 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21113 # Allow CC to be a program name with arguments.
21117 # save warnings/boilerplate of simple test code
21118 ac_outfile=conftest.$ac_objext
21119 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21120 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21121 _lt_compiler_boilerplate=`cat conftest.err`
21124 ac_outfile=conftest.$ac_objext
21125 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21126 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21127 _lt_linker_boilerplate=`cat conftest.err`
21131 # Allow CC to be a program name with arguments.
21136 for cc_temp in $compiler""; do
21138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21144 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21147 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21148 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21149 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21150 echo "${ECHO_T}$can_build_shared" >&6; }
21152 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21153 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21154 test "$can_build_shared" = "no" && enable_shared=no
21156 # On AIX, shared libraries and static libraries use the same namespace, and
21157 # are all built from PIC.
21160 test "$enable_shared" = yes && enable_static=no
21161 if test -n "$RANLIB"; then
21162 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21163 postinstall_cmds='$RANLIB $lib'
21167 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21168 test "$enable_shared" = yes && enable_static=no
21172 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21173 echo "${ECHO_T}$enable_shared" >&6; }
21175 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21176 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21177 # Make sure either enable_shared or enable_static is yes.
21178 test "$enable_shared" = yes || enable_static=yes
21179 { echo "$as_me:$LINENO: result: $enable_static" >&5
21180 echo "${ECHO_T}$enable_static" >&6; }
21185 lt_prog_compiler_wl_F77=
21186 lt_prog_compiler_pic_F77=
21187 lt_prog_compiler_static_F77=
21189 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21190 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21192 if test "$GCC" = yes; then
21193 lt_prog_compiler_wl_F77='-Wl,'
21194 lt_prog_compiler_static_F77='-static'
21198 # All AIX code is PIC.
21199 if test "$host_cpu" = ia64; then
21200 # AIX 5 now supports IA64 processor
21201 lt_prog_compiler_static_F77='-Bstatic'
21206 # FIXME: we need at least 68020 code to build shared libraries, but
21207 # adding the `-m68020' flag to GCC prevents building anything better,
21209 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21212 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21213 # PIC is the default for these OSes.
21216 mingw* | pw32* | os2*)
21217 # This hack is so that the source file can tell whether it is being
21218 # built for inclusion in a dll (and should export symbols for example).
21219 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21222 darwin* | rhapsody*)
21223 # PIC is the default on this platform
21224 # Common symbols not allowed in MH_DYLIB files
21225 lt_prog_compiler_pic_F77='-fno-common'
21229 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21230 # Instead, we relocate shared libraries at runtime.
21234 # Just because we use GCC doesn't mean we suddenly get shared libraries
21235 # on systems that don't support them.
21236 lt_prog_compiler_can_build_shared_F77=no
21241 if test -d /usr/nec; then
21242 lt_prog_compiler_pic_F77=-Kconform_pic
21247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21248 # not for PA HP-UX.
21254 lt_prog_compiler_pic_F77='-fPIC'
21260 lt_prog_compiler_pic_F77='-fPIC'
21264 # PORTME Check for flag to pass linker flags through the system compiler.
21267 lt_prog_compiler_wl_F77='-Wl,'
21268 if test "$host_cpu" = ia64; then
21269 # AIX 5 now supports IA64 processor
21270 lt_prog_compiler_static_F77='-Bstatic'
21272 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21276 # PIC is the default on this platform
21277 # Common symbols not allowed in MH_DYLIB files
21278 case $cc_basename in
21280 lt_prog_compiler_pic_F77='-qnocommon'
21281 lt_prog_compiler_wl_F77='-Wl,'
21286 mingw* | pw32* | os2*)
21287 # This hack is so that the source file can tell whether it is being
21288 # built for inclusion in a dll (and should export symbols for example).
21289 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21292 hpux9* | hpux10* | hpux11*)
21293 lt_prog_compiler_wl_F77='-Wl,'
21294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21295 # not for PA HP-UX.
21301 lt_prog_compiler_pic_F77='+Z'
21304 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21305 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21308 irix5* | irix6* | nonstopux*)
21309 lt_prog_compiler_wl_F77='-Wl,'
21310 # PIC (with -KPIC) is the default.
21311 lt_prog_compiler_static_F77='-non_shared'
21315 lt_prog_compiler_pic_F77='-KPIC'
21316 lt_prog_compiler_static_F77='-Bstatic'
21320 case $cc_basename in
21322 lt_prog_compiler_wl_F77='-Wl,'
21323 lt_prog_compiler_pic_F77='-KPIC'
21324 lt_prog_compiler_static_F77='-static'
21326 pgcc* | pgf77* | pgf90* | pgf95*)
21327 # Portland Group compilers (*not* the Pentium gcc compiler,
21328 # which looks to be a dead project)
21329 lt_prog_compiler_wl_F77='-Wl,'
21330 lt_prog_compiler_pic_F77='-fpic'
21331 lt_prog_compiler_static_F77='-Bstatic'
21334 lt_prog_compiler_wl_F77='-Wl,'
21335 # All Alpha code is PIC.
21336 lt_prog_compiler_static_F77='-non_shared'
21341 osf3* | osf4* | osf5*)
21342 lt_prog_compiler_wl_F77='-Wl,'
21343 # All OSF/1 code is PIC.
21344 lt_prog_compiler_static_F77='-non_shared'
21348 lt_prog_compiler_pic_F77='-KPIC'
21349 lt_prog_compiler_static_F77='-Bstatic'
21350 case $cc_basename in
21351 f77* | f90* | f95*)
21352 lt_prog_compiler_wl_F77='-Qoption ld ';;
21354 lt_prog_compiler_wl_F77='-Wl,';;
21359 lt_prog_compiler_wl_F77='-Qoption ld '
21360 lt_prog_compiler_pic_F77='-PIC'
21361 lt_prog_compiler_static_F77='-Bstatic'
21364 sysv4 | sysv4.2uw2* | sysv4.3*)
21365 lt_prog_compiler_wl_F77='-Wl,'
21366 lt_prog_compiler_pic_F77='-KPIC'
21367 lt_prog_compiler_static_F77='-Bstatic'
21371 if test -d /usr/nec ;then
21372 lt_prog_compiler_pic_F77='-Kconform_pic'
21373 lt_prog_compiler_static_F77='-Bstatic'
21377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21378 lt_prog_compiler_wl_F77='-Wl,'
21379 lt_prog_compiler_pic_F77='-KPIC'
21380 lt_prog_compiler_static_F77='-Bstatic'
21384 lt_prog_compiler_wl_F77='-Wl,'
21385 lt_prog_compiler_can_build_shared_F77=no
21389 lt_prog_compiler_pic_F77='-pic'
21390 lt_prog_compiler_static_F77='-Bstatic'
21394 lt_prog_compiler_can_build_shared_F77=no
21399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21400 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21403 # Check to make sure the PIC flag actually works.
21405 if test -n "$lt_prog_compiler_pic_F77"; then
21407 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21408 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21409 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21412 lt_prog_compiler_pic_works_F77=no
21413 ac_outfile=conftest.$ac_objext
21414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21415 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21416 # Insert the option either (1) after the last *FLAGS variable, or
21417 # (2) before a word containing "conftest.", or (3) at the end.
21418 # Note that $ac_compile itself does not contain backslashes and begins
21419 # with a dollar sign (not a hyphen), so the echo should work correctly.
21420 # The option is referenced via a variable to avoid confusing sed.
21421 lt_compile=`echo "$ac_compile" | $SED \
21422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21424 -e 's:$: $lt_compiler_flag:'`
21425 (eval echo "\"\$as_me:21425: $lt_compile\"" >&5)
21426 (eval "$lt_compile" 2>conftest.err)
21428 cat conftest.err >&5
21429 echo "$as_me:21429: \$? = $ac_status" >&5
21430 if (exit $ac_status) && test -s "$ac_outfile"; then
21431 # The compiler can only warn and ignore the option if not recognized
21432 # So say no if there are warnings other than the usual output.
21433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21436 lt_prog_compiler_pic_works_F77=yes
21442 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21443 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21445 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21446 case $lt_prog_compiler_pic_F77 in
21448 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21451 lt_prog_compiler_pic_F77=
21452 lt_prog_compiler_can_build_shared_F77=no
21457 # For platforms which do not support PIC, -DPIC is meaningless:
21459 lt_prog_compiler_pic_F77=
21462 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21467 # Check to make sure the static flag actually works.
21469 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21470 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21471 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21472 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21475 lt_prog_compiler_static_works_F77=no
21476 save_LDFLAGS="$LDFLAGS"
21477 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21478 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21480 # The linker can only warn and ignore the option if not recognized
21481 # So say no if there are warnings
21482 if test -s conftest.err; then
21483 # Append any errors to the config.log.
21484 cat conftest.err 1>&5
21485 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21487 if diff conftest.exp conftest.er2 >/dev/null; then
21488 lt_prog_compiler_static_works_F77=yes
21491 lt_prog_compiler_static_works_F77=yes
21495 LDFLAGS="$save_LDFLAGS"
21498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21499 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21501 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21504 lt_prog_compiler_static_F77=
21508 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21509 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21510 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21513 lt_cv_prog_compiler_c_o_F77=no
21514 $rm -r conftest 2>/dev/null
21518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21520 lt_compiler_flag="-o out/conftest2.$ac_objext"
21521 # Insert the option either (1) after the last *FLAGS variable, or
21522 # (2) before a word containing "conftest.", or (3) at the end.
21523 # Note that $ac_compile itself does not contain backslashes and begins
21524 # with a dollar sign (not a hyphen), so the echo should work correctly.
21525 lt_compile=`echo "$ac_compile" | $SED \
21526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21528 -e 's:$: $lt_compiler_flag:'`
21529 (eval echo "\"\$as_me:21529: $lt_compile\"" >&5)
21530 (eval "$lt_compile" 2>out/conftest.err)
21532 cat out/conftest.err >&5
21533 echo "$as_me:21533: \$? = $ac_status" >&5
21534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21536 # The compiler can only warn and ignore the option if not recognized
21537 # So say no if there are warnings
21538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21541 lt_cv_prog_compiler_c_o_F77=yes
21546 # SGI C++ compiler will create directory out/ii_files/ for
21547 # template instantiation
21548 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21549 $rm out/* && rmdir out
21555 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21556 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21559 hard_links="nottested"
21560 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21561 # do not overwrite the value of need_locks provided by the user
21562 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21563 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21568 ln conftest.a conftest.b 2>&5 || hard_links=no
21569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21570 { echo "$as_me:$LINENO: result: $hard_links" >&5
21571 echo "${ECHO_T}$hard_links" >&6; }
21572 if test "$hard_links" = no; then
21573 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21574 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21581 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21582 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21585 allow_undefined_flag_F77=
21586 enable_shared_with_static_runtimes_F77=no
21588 archive_expsym_cmds_F77=
21589 old_archive_From_new_cmds_F77=
21590 old_archive_from_expsyms_cmds_F77=
21591 export_dynamic_flag_spec_F77=
21592 whole_archive_flag_spec_F77=
21593 thread_safe_flag_spec_F77=
21594 hardcode_libdir_flag_spec_F77=
21595 hardcode_libdir_flag_spec_ld_F77=
21596 hardcode_libdir_separator_F77=
21597 hardcode_direct_F77=no
21598 hardcode_minus_L_F77=no
21599 hardcode_shlibpath_var_F77=unsupported
21600 link_all_deplibs_F77=unknown
21601 hardcode_automatic_F77=no
21603 module_expsym_cmds_F77=
21604 always_export_symbols_F77=no
21605 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21606 # include_expsyms should be a list of space-separated symbols to be *always*
21607 # included in the symbol list
21608 include_expsyms_F77=
21609 # exclude_expsyms can be an extended regexp of symbols to exclude
21610 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21611 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21612 # as well as any symbol that contains `d'.
21613 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21614 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21615 # platforms (ab)use it in PIC code, but their linkers get confused if
21616 # the symbol is explicitly referenced. Since portable code cannot
21617 # rely on this symbol name, it's probably fine to never include it in
21618 # preloaded symbol tables.
21619 extract_expsyms_cmds=
21620 # Just being paranoid about ensuring that cc_basename is set.
21621 for cc_temp in $compiler""; do
21623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21629 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21632 cygwin* | mingw* | pw32*)
21633 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21634 # When not using gcc, we currently assume that we are using
21635 # Microsoft Visual C++.
21636 if test "$GCC" != yes; then
21641 # we just hope/assume this is gcc and not c89 (= MSVC++)
21650 if test "$with_gnu_ld" = yes; then
21651 # If archive_cmds runs LD, not CC, wlarc should be empty
21654 # Set some defaults for GNU ld with shared library support. These
21655 # are reset later if shared libraries are not supported. Putting them
21656 # here allows them to be overridden if necessary.
21657 runpath_var=LD_RUN_PATH
21658 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21659 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21660 # ancient GNU ld didn't support --whole-archive et. al.
21661 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21662 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21664 whole_archive_flag_spec_F77=
21666 supports_anon_versioning=no
21667 case `$LD -v 2>/dev/null` in
21668 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21669 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21670 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21671 *\ 2.11.*) ;; # other 2.11 versions
21672 *) supports_anon_versioning=yes ;;
21675 # See if GNU ld supports shared libraries.
21677 aix3* | aix4* | aix5*)
21678 # On AIX/PPC, the GNU linker is very broken
21679 if test "$host_cpu" != ia64; then
21683 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21684 *** to be unable to reliably create shared libraries on AIX.
21685 *** Therefore, libtool is disabling shared libraries support. If you
21686 *** really care for shared libraries, you may want to modify your PATH
21687 *** so that a non-GNU linker is found, and then restart.
21694 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)'
21695 hardcode_libdir_flag_spec_F77='-L$libdir'
21696 hardcode_minus_L_F77=yes
21698 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21699 # that the semantics of dynamic libraries on AmigaOS, at least up
21700 # to version 4, is to share data among multiple programs linked
21701 # with the same dynamic library. Since this doesn't match the
21702 # behavior of shared libraries on other platforms, we can't use
21708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21709 allow_undefined_flag_F77=unsupported
21710 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21711 # support --undefined. This deserves some investigation. FIXME
21712 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21718 cygwin* | mingw* | pw32*)
21719 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21720 # as there is no search path for DLLs.
21721 hardcode_libdir_flag_spec_F77='-L$libdir'
21722 allow_undefined_flag_F77=unsupported
21723 always_export_symbols_F77=no
21724 enable_shared_with_static_runtimes_F77=yes
21725 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21727 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21728 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21729 # If the export-symbols file already is a .def file (1st line
21730 # is EXPORTS), use it as is; otherwise, prepend...
21731 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21732 cp $export_symbols $output_objdir/$soname.def;
21734 echo EXPORTS > $output_objdir/$soname.def;
21735 cat $export_symbols >> $output_objdir/$soname.def;
21737 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21744 hardcode_direct_F77=no
21745 hardcode_shlibpath_var_F77=no
21746 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21747 export_dynamic_flag_spec_F77='${wl}-E'
21748 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21749 # Instead, shared libraries are loaded at an image base (0x10000000 by
21750 # default) and relocated if they conflict, which is a slow very memory
21751 # consuming and fragmenting process. To avoid this, we pick a random,
21752 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21753 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21754 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'
21755 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'
21759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21761 case $cc_basename,$host_cpu in
21762 pgcc*) # Portland Group C compiler
21763 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'
21764 tmp_addflag=' $pic_flag'
21766 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21767 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'
21768 tmp_addflag=' $pic_flag -Mnomain' ;;
21769 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21770 tmp_addflag=' -i_dynamic' ;;
21771 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21772 tmp_addflag=' -i_dynamic -nofor_main' ;;
21773 ifc* | ifort*) # Intel Fortran compiler
21774 tmp_addflag=' -nofor_main' ;;
21776 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21778 if test $supports_anon_versioning = yes; then
21779 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21781 $echo "local: *; };" >> $output_objdir/$libname.ver~
21782 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21791 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21794 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21795 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21800 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21804 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21805 *** create shared libraries on Solaris systems. Therefore, libtool
21806 *** is disabling shared libraries support. We urge you to upgrade GNU
21807 *** binutils to release 2.9.1 or newer. Another option is to modify
21808 *** your PATH or compiler configuration so that the native linker is
21809 *** used, and then restart.
21812 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21813 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21814 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21821 case `$LD -v 2>&1` in
21822 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21826 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21827 *** reliably create shared libraries on SCO systems. Therefore, libtool
21828 *** is disabling shared libraries support. We urge you to upgrade GNU
21829 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21830 *** your PATH or compiler configuration so that the native linker is
21831 *** used, and then restart.
21836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21837 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21838 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21839 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21848 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21850 hardcode_direct_F77=yes
21851 hardcode_shlibpath_var_F77=no
21855 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21856 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21857 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21864 if test "$ld_shlibs_F77" = no; then
21866 hardcode_libdir_flag_spec_F77=
21867 export_dynamic_flag_spec_F77=
21868 whole_archive_flag_spec_F77=
21871 # PORTME fill in a description of your system's linker (not GNU ld)
21874 allow_undefined_flag_F77=unsupported
21875 always_export_symbols_F77=yes
21876 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'
21877 # Note: this linker hardcodes the directories in LIBPATH if there
21878 # are no directories specified by -L.
21879 hardcode_minus_L_F77=yes
21880 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21881 # Neither direct hardcoding nor static linking is supported with a
21883 hardcode_direct_F77=unsupported
21888 if test "$host_cpu" = ia64; then
21889 # On IA64, the linker does run time linking by default, so we don't
21890 # have to do anything special.
21891 aix_use_runtimelinking=no
21892 exp_sym_flag='-Bexport'
21895 # If we're using GNU nm, then we don't want the "-C" option.
21896 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21897 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21898 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'
21900 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'
21902 aix_use_runtimelinking=no
21904 # Test if we are trying to use run time linking or normal
21905 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21906 # need to do runtime linking.
21907 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21908 for ld_flag in $LDFLAGS; do
21909 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21910 aix_use_runtimelinking=yes
21917 exp_sym_flag='-bexport'
21918 no_entry_flag='-bnoentry'
21921 # When large executables or shared objects are built, AIX ld can
21922 # have problems creating the table of contents. If linking a library
21923 # or program results in "error TOC overflow" add -mminimal-toc to
21924 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21925 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21927 archive_cmds_F77=''
21928 hardcode_direct_F77=yes
21929 hardcode_libdir_separator_F77=':'
21930 link_all_deplibs_F77=yes
21932 if test "$GCC" = yes; then
21933 case $host_os in aix4.[012]|aix4.[012].*)
21934 # We only want to do this on AIX 4.2 and lower, the check
21935 # below for broken collect2 doesn't work under 4.3+
21936 collect2name=`${CC} -print-prog-name=collect2`
21937 if test -f "$collect2name" && \
21938 strings "$collect2name" | grep resolve_lib_name >/dev/null
21940 # We have reworked collect2
21941 hardcode_direct_F77=yes
21943 # We have old collect2
21944 hardcode_direct_F77=unsupported
21945 # It fails to find uninstalled libraries when the uninstalled
21946 # path is not listed in the libpath. Setting hardcode_minus_L
21947 # to unsupported forces relinking
21948 hardcode_minus_L_F77=yes
21949 hardcode_libdir_flag_spec_F77='-L$libdir'
21950 hardcode_libdir_separator_F77=
21954 shared_flag='-shared'
21955 if test "$aix_use_runtimelinking" = yes; then
21956 shared_flag="$shared_flag "'${wl}-G'
21960 if test "$host_cpu" = ia64; then
21961 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21962 # chokes on -Wl,-G. The following line is correct:
21965 if test "$aix_use_runtimelinking" = yes; then
21966 shared_flag='${wl}-G'
21968 shared_flag='${wl}-bM:SRE'
21973 # It seems that -bexpall does not export symbols beginning with
21974 # underscore (_), so it is better to generate a list of symbols to export.
21975 always_export_symbols_F77=yes
21976 if test "$aix_use_runtimelinking" = yes; then
21977 # Warning - without using the other runtime loading flags (-brtl),
21978 # -berok will link without error, but may produce a broken library.
21979 allow_undefined_flag_F77='-berok'
21980 # Determine the default libpath from the value encoded in an empty executable.
21981 cat >conftest.$ac_ext <<_ACEOF
21986 rm -f conftest.$ac_objext conftest$ac_exeext
21987 if { (ac_try="$ac_link"
21988 case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_link") 2>conftest.er1
21995 grep -v '^ *+' conftest.er1 >conftest.err
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } &&
22000 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22001 { (case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_try") 2>&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; } &&
22010 { ac_try='test -s conftest$ac_exeext'
22011 { (case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016 (eval "$ac_try") 2>&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22023 # Check for a 64-bit object if we didn't find anything.
22024 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; }
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22033 rm -f core conftest.err conftest.$ac_objext \
22034 conftest$ac_exeext conftest.$ac_ext
22035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22037 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22038 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"
22040 if test "$host_cpu" = ia64; then
22041 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22042 allow_undefined_flag_F77="-z nodefs"
22043 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"
22045 # Determine the default libpath from the value encoded in an empty executable.
22046 cat >conftest.$ac_ext <<_ACEOF
22051 rm -f conftest.$ac_objext conftest$ac_exeext
22052 if { (ac_try="$ac_link"
22053 case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_link") 2>conftest.er1
22060 grep -v '^ *+' conftest.er1 >conftest.err
22062 cat conftest.err >&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } &&
22065 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22066 { (case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_try") 2>&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; } &&
22075 { ac_try='test -s conftest$ac_exeext'
22076 { (case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_try") 2>&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; }; then
22086 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22088 # Check for a 64-bit object if we didn't find anything.
22089 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; }
22092 echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22098 rm -f core conftest.err conftest.$ac_objext \
22099 conftest$ac_exeext conftest.$ac_ext
22100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22102 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22103 # Warning - without using the other run time loading flags,
22104 # -berok will link without error, but may produce a broken library.
22105 no_undefined_flag_F77=' ${wl}-bernotok'
22106 allow_undefined_flag_F77=' ${wl}-berok'
22107 # Exported symbols can be pulled into shared objects from archives
22108 whole_archive_flag_spec_F77='$convenience'
22109 archive_cmds_need_lc_F77=yes
22110 # This is similar to how AIX traditionally builds its shared libraries.
22111 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'
22117 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)'
22118 hardcode_libdir_flag_spec_F77='-L$libdir'
22119 hardcode_minus_L_F77=yes
22120 # see comment about different semantics on the GNU ld section
22125 export_dynamic_flag_spec_F77=-rdynamic
22128 cygwin* | mingw* | pw32*)
22129 # When not using gcc, we currently assume that we are using
22130 # Microsoft Visual C++.
22131 # hardcode_libdir_flag_spec is actually meaningless, as there is
22132 # no search path for DLLs.
22133 hardcode_libdir_flag_spec_F77=' '
22134 allow_undefined_flag_F77=unsupported
22135 # Tell ltmain to make .lib files, not .a files.
22137 # Tell ltmain to make .dll files, not .so files.
22139 # FIXME: Setting linknames here is a bad hack.
22140 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22141 # The linker will automatically build a .lib file if we build a DLL.
22142 old_archive_From_new_cmds_F77='true'
22143 # FIXME: Should let the user specify the lib program.
22144 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22145 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22146 enable_shared_with_static_runtimes_F77=yes
22149 darwin* | rhapsody*)
22151 rhapsody* | darwin1.[012])
22152 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22155 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22156 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22158 case ${MACOSX_DEPLOYMENT_TARGET} in
22160 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22163 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22169 archive_cmds_need_lc_F77=no
22170 hardcode_direct_F77=no
22171 hardcode_automatic_F77=yes
22172 hardcode_shlibpath_var_F77=unsupported
22173 whole_archive_flag_spec_F77=''
22174 link_all_deplibs_F77=yes
22175 if test "$GCC" = yes ; then
22176 output_verbose_link_cmd='echo'
22177 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22178 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22179 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22180 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}'
22181 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}'
22183 case $cc_basename in
22185 output_verbose_link_cmd='echo'
22186 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22187 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22188 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22189 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}'
22190 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}'
22200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22201 hardcode_libdir_flag_spec_F77='-L$libdir'
22202 hardcode_shlibpath_var_F77=no
22209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22210 # support. Future versions do this automatically, but an explicit c++rt0.o
22211 # does not break anything, and helps significantly (at the cost of a little
22214 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22215 hardcode_libdir_flag_spec_F77='-R$libdir'
22216 hardcode_direct_F77=yes
22217 hardcode_shlibpath_var_F77=no
22220 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22222 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22223 hardcode_direct_F77=yes
22224 hardcode_minus_L_F77=yes
22225 hardcode_shlibpath_var_F77=no
22228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22229 freebsd* | kfreebsd*-gnu | dragonfly*)
22230 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22231 hardcode_libdir_flag_spec_F77='-R$libdir'
22232 hardcode_direct_F77=yes
22233 hardcode_shlibpath_var_F77=no
22237 if test "$GCC" = yes; then
22238 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'
22240 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'
22242 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22243 hardcode_libdir_separator_F77=:
22244 hardcode_direct_F77=yes
22246 # hardcode_minus_L: Not really in the search PATH,
22247 # but as the default location of the library.
22248 hardcode_minus_L_F77=yes
22249 export_dynamic_flag_spec_F77='${wl}-E'
22253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22254 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22256 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22258 if test "$with_gnu_ld" = no; then
22259 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22260 hardcode_libdir_separator_F77=:
22262 hardcode_direct_F77=yes
22263 export_dynamic_flag_spec_F77='${wl}-E'
22265 # hardcode_minus_L: Not really in the search PATH,
22266 # but as the default location of the library.
22267 hardcode_minus_L_F77=yes
22272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22275 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22278 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22281 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22287 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22290 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22293 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22297 if test "$with_gnu_ld" = no; then
22298 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22299 hardcode_libdir_separator_F77=:
22303 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22304 hardcode_direct_F77=no
22305 hardcode_shlibpath_var_F77=no
22308 hardcode_direct_F77=yes
22309 export_dynamic_flag_spec_F77='${wl}-E'
22311 # hardcode_minus_L: Not really in the search PATH,
22312 # but as the default location of the library.
22313 hardcode_minus_L_F77=yes
22319 irix5* | irix6* | nonstopux*)
22320 if test "$GCC" = yes; then
22321 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'
22323 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'
22324 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22326 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22327 hardcode_libdir_separator_F77=:
22328 link_all_deplibs_F77=yes
22332 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22333 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22335 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22337 hardcode_libdir_flag_spec_F77='-R$libdir'
22338 hardcode_direct_F77=yes
22339 hardcode_shlibpath_var_F77=no
22343 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22344 hardcode_direct_F77=yes
22345 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22346 hardcode_libdir_separator_F77=:
22347 hardcode_shlibpath_var_F77=no
22351 hardcode_direct_F77=yes
22352 hardcode_shlibpath_var_F77=no
22353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22354 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22355 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22356 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22357 export_dynamic_flag_spec_F77='${wl}-E'
22360 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22361 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22362 hardcode_libdir_flag_spec_F77='-R$libdir'
22365 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22366 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22373 hardcode_libdir_flag_spec_F77='-L$libdir'
22374 hardcode_minus_L_F77=yes
22375 allow_undefined_flag_F77=unsupported
22376 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'
22377 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22381 if test "$GCC" = yes; then
22382 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22383 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'
22385 allow_undefined_flag_F77=' -expect_unresolved \*'
22386 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'
22388 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22389 hardcode_libdir_separator_F77=:
22392 osf4* | osf5*) # as osf3* with the addition of -msym flag
22393 if test "$GCC" = yes; then
22394 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22395 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'
22396 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22398 allow_undefined_flag_F77=' -expect_unresolved \*'
22399 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'
22400 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~
22401 $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'
22403 # Both c and cxx compiler support -rpath directly
22404 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22406 hardcode_libdir_separator_F77=:
22410 no_undefined_flag_F77=' -z text'
22411 if test "$GCC" = yes; then
22413 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22414 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22415 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22418 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22419 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22422 hardcode_libdir_flag_spec_F77='-R$libdir'
22423 hardcode_shlibpath_var_F77=no
22425 solaris2.[0-5] | solaris2.[0-5].*) ;;
22427 # The compiler driver will combine linker options so we
22428 # cannot just pass the convience library names through
22429 # without $wl, iff we do not link with $LD.
22430 # Luckily, gcc supports the same syntax we need for Sun Studio.
22431 # Supported since Solaris 2.6 (maybe 2.5.1?)
22434 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22436 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' ;;
22439 link_all_deplibs_F77=yes
22443 if test "x$host_vendor" = xsequent; then
22444 # Use $CC to link under sequent, because it throws in some extra .o
22445 # files that make .init and .fini sections work.
22446 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22448 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22450 hardcode_libdir_flag_spec_F77='-L$libdir'
22451 hardcode_direct_F77=yes
22452 hardcode_minus_L_F77=yes
22453 hardcode_shlibpath_var_F77=no
22457 case $host_vendor in
22459 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22460 hardcode_direct_F77=yes # is this really true???
22463 ## LD is ld it makes a PLAMLIB
22464 ## CC just makes a GrossModule.
22465 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22466 reload_cmds_F77='$CC -r -o $output$reload_objs'
22467 hardcode_direct_F77=no
22470 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22471 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22474 runpath_var='LD_RUN_PATH'
22475 hardcode_shlibpath_var_F77=no
22479 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22480 hardcode_shlibpath_var_F77=no
22481 export_dynamic_flag_spec_F77='-Bexport'
22485 if test -d /usr/nec; then
22486 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22487 hardcode_shlibpath_var_F77=no
22488 runpath_var=LD_RUN_PATH
22489 hardcode_runpath_var=yes
22494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22495 no_undefined_flag_F77='${wl}-z,text'
22496 archive_cmds_need_lc_F77=no
22497 hardcode_shlibpath_var_F77=no
22498 runpath_var='LD_RUN_PATH'
22500 if test "$GCC" = yes; then
22501 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22502 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22504 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22505 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22509 sysv5* | sco3.2v5* | sco5v6*)
22510 # Note: We can NOT use -z defs as we might desire, because we do not
22511 # link with -lc, and that would cause any symbols used from libc to
22512 # always be unresolved, which means just about no library would
22513 # ever link correctly. If we're not using GNU ld we use -z text
22514 # though, which does catch some bad symbols but isn't as heavy-handed
22516 no_undefined_flag_F77='${wl}-z,text'
22517 allow_undefined_flag_F77='${wl}-z,nodefs'
22518 archive_cmds_need_lc_F77=no
22519 hardcode_shlibpath_var_F77=no
22520 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22521 hardcode_libdir_separator_F77=':'
22522 link_all_deplibs_F77=yes
22523 export_dynamic_flag_spec_F77='${wl}-Bexport'
22524 runpath_var='LD_RUN_PATH'
22526 if test "$GCC" = yes; then
22527 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22528 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22530 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22531 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22537 hardcode_libdir_flag_spec_F77='-L$libdir'
22538 hardcode_shlibpath_var_F77=no
22547 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22548 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22549 test "$ld_shlibs_F77" = no && can_build_shared=no
22552 # Do we need to explicitly link libc?
22554 case "x$archive_cmds_need_lc_F77" in
22556 # Assume -lc should be added
22557 archive_cmds_need_lc_F77=yes
22559 if test "$enable_shared" = yes && test "$GCC" = yes; then
22560 case $archive_cmds_F77 in
22562 # FIXME: we may have to deal with multi-command sequences.
22565 # Test whether the compiler implicitly links with -lc since on some
22566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22567 # to ld, don't add -lc before -lgcc.
22568 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22569 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22574 (eval $ac_compile) 2>&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } 2>conftest.err; then
22580 libobjs=conftest.$ac_objext
22582 wl=$lt_prog_compiler_wl_F77
22583 pic_flag=$lt_prog_compiler_pic_F77
22589 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22590 allow_undefined_flag_F77=
22591 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22592 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }
22597 archive_cmds_need_lc_F77=no
22599 archive_cmds_need_lc_F77=yes
22601 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22603 cat conftest.err 1>&5
22606 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22607 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22614 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22615 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22616 library_names_spec=
22617 libname_spec='lib$name'
22621 postuninstall_cmds=
22625 shlibpath_overrides_runpath=unknown
22627 dynamic_linker="$host_os ld.so"
22628 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22629 if test "$GCC" = yes; then
22630 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22631 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22632 # if the path contains ";" then we assume it to be the separator
22633 # otherwise default to the standard path separator (i.e. ":") - it is
22634 # assumed that no part of a normal pathname contains ";" but that should
22635 # okay in the real world where ";" in dirpaths is itself problematic.
22636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22643 need_lib_prefix=unknown
22644 hardcode_into_libs=no
22646 # when you set need_version to no, make sure it does not cause -set_version
22647 # flags to be left without arguments
22648 need_version=unknown
22653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22654 shlibpath_var=LIBPATH
22656 # AIX 3 has no versioning support, so we append a major version to the name.
22657 soname_spec='${libname}${release}${shared_ext}$major'
22664 hardcode_into_libs=yes
22665 if test "$host_cpu" = ia64; then
22666 # AIX 5 supports IA64
22667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22668 shlibpath_var=LD_LIBRARY_PATH
22670 # With GCC up to 2.95.x, collect2 would create an import file
22671 # for dependence libraries. The import file would start with
22672 # the line `#! .'. This would cause the generated library to
22673 # depend on `.', always an invalid library. This was fixed in
22674 # development snapshots of GCC prior to 3.0.
22676 aix4 | aix4.[01] | aix4.[01].*)
22677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22679 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22682 can_build_shared=no
22686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22687 # soname into executable. Probably we can add versioning support to
22688 # collect2, so additional links can be useful in future.
22689 if test "$aix_use_runtimelinking" = yes; then
22690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22691 # instead of lib<name>.a to let people know that these are not
22692 # typical AIX shared libraries.
22693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22695 # We preserve .a as extension for shared libraries through AIX4.2
22696 # and later when we are not doing run time linking.
22697 library_names_spec='${libname}${release}.a $libname.a'
22698 soname_spec='${libname}${release}${shared_ext}$major'
22700 shlibpath_var=LIBPATH
22705 library_names_spec='$libname.ixlibrary $libname.a'
22706 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22707 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'
22711 library_names_spec='${libname}${shared_ext}'
22712 dynamic_linker="$host_os ld.so"
22713 shlibpath_var=LIBRARY_PATH
22719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22720 soname_spec='${libname}${release}${shared_ext}$major'
22721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22722 shlibpath_var=LD_LIBRARY_PATH
22723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22725 # the default ld.so.conf also contains /usr/contrib/lib and
22726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22727 # libtool to hard-code these into programs
22730 cygwin* | mingw* | pw32*)
22731 version_type=windows
22736 case $GCC,$host_os in
22737 yes,cygwin* | yes,mingw* | yes,pw32*)
22738 library_names_spec='$libname.dll.a'
22739 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22740 postinstall_cmds='base_file=`basename \${file}`~
22741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22742 dldir=$destdir/`dirname \$dlpath`~
22743 test -d \$dldir || mkdir -p \$dldir~
22744 $install_prog $dir/$dlname \$dldir/$dlname~
22745 chmod a+x \$dldir/$dlname'
22746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22747 dlpath=$dir/\$dldll~
22749 shlibpath_overrides_runpath=yes
22753 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22754 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22755 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22758 # MinGW DLLs use traditional 'lib' prefix
22759 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22761 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22762 # It is most probably a Windows format PATH printed by
22763 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22764 # path with ; separators, and with drive letters. We can handle the
22765 # drive letters (cygwin fileutils understands them), so leave them,
22766 # especially as we might pass files found there to a mingw objdump,
22767 # which wouldn't understand a cygwinified path. Ahh.
22768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22774 # pw32 DLLs use 'pw' prefix rather than 'lib'
22775 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22781 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22784 dynamic_linker='Win32 ld.exe'
22785 # FIXME: first we should search . and the directory the executable is in
22789 darwin* | rhapsody*)
22790 dynamic_linker="$host_os dyld"
22791 version_type=darwin
22794 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22795 soname_spec='${libname}${release}${major}$shared_ext'
22796 shlibpath_overrides_runpath=yes
22797 shlibpath_var=DYLD_LIBRARY_PATH
22798 shrext_cmds='.dylib'
22799 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22800 if test "$GCC" = yes; then
22801 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"`
22803 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22805 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22813 soname_spec='${libname}${release}${shared_ext}$major'
22814 shlibpath_var=LD_LIBRARY_PATH
22825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22826 soname_spec='${libname}${release}${shared_ext}$major'
22827 shlibpath_var=LD_LIBRARY_PATH
22828 shlibpath_overrides_runpath=no
22829 hardcode_into_libs=yes
22830 dynamic_linker='GNU ld.so'
22833 freebsd* | dragonfly*)
22834 # DragonFly does not have aout. When/if they implement a new
22835 # versioning mechanism, adjust this.
22836 if test -x /usr/bin/objformat; then
22837 objformat=`/usr/bin/objformat`
22840 freebsd[123]*) objformat=aout ;;
22841 *) objformat=elf ;;
22844 version_type=freebsd-$objformat
22845 case $version_type in
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22856 shlibpath_var=LD_LIBRARY_PATH
22859 shlibpath_overrides_runpath=yes
22861 freebsd3.[01]* | freebsdelf3.[01]*)
22862 shlibpath_overrides_runpath=yes
22863 hardcode_into_libs=yes
22865 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22866 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22867 shlibpath_overrides_runpath=no
22868 hardcode_into_libs=yes
22870 freebsd*) # from 4.6 on
22871 shlibpath_overrides_runpath=yes
22872 hardcode_into_libs=yes
22881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22882 soname_spec='${libname}${release}${shared_ext}$major'
22883 shlibpath_var=LD_LIBRARY_PATH
22884 hardcode_into_libs=yes
22887 hpux9* | hpux10* | hpux11*)
22888 # Give a soname corresponding to the major version so that dld.sl refuses to
22889 # link against other versions.
22896 hardcode_into_libs=yes
22897 dynamic_linker="$host_os dld.so"
22898 shlibpath_var=LD_LIBRARY_PATH
22899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22901 soname_spec='${libname}${release}${shared_ext}$major'
22902 if test "X$HPUX_IA64_MODE" = X32; then
22903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22911 hardcode_into_libs=yes
22912 dynamic_linker="$host_os dld.sl"
22913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916 soname_spec='${libname}${release}${shared_ext}$major'
22917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22922 dynamic_linker="$host_os dld.sl"
22923 shlibpath_var=SHLIB_PATH
22924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22926 soname_spec='${libname}${release}${shared_ext}$major'
22929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22930 postinstall_cmds='chmod 555 $lib'
22937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22938 soname_spec='${libname}${release}${shared_ext}$major'
22939 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22940 shlibpath_var=LD_LIBRARY_PATH
22941 shlibpath_overrides_runpath=no
22942 hardcode_into_libs=yes
22945 irix5* | irix6* | nonstopux*)
22947 nonstopux*) version_type=nonstopux ;;
22949 if test "$lt_cv_prog_gnu_ld" = yes; then
22957 soname_spec='${libname}${release}${shared_ext}$major'
22958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22960 irix5* | nonstopux*)
22961 libsuff= shlibsuff=
22964 case $LD in # libtool.m4 will add one of these switches to LD
22965 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22966 libsuff= shlibsuff= libmagic=32-bit;;
22967 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22968 libsuff=32 shlibsuff=N32 libmagic=N32;;
22969 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22970 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22971 *) libsuff= shlibsuff= libmagic=never-match;;
22975 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22976 shlibpath_overrides_runpath=no
22977 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22978 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22979 hardcode_into_libs=yes
22982 # No shared lib support for Linux oldld, aout, or coff.
22983 linux*oldld* | linux*aout* | linux*coff*)
22987 # This must be Linux ELF.
22992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22993 soname_spec='${libname}${release}${shared_ext}$major'
22994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22995 shlibpath_var=LD_LIBRARY_PATH
22996 shlibpath_overrides_runpath=no
22997 # This implies no fast_install, which is unacceptable.
22998 # Some rework will be needed to allow for fast_install
22999 # before this can be enabled.
23000 hardcode_into_libs=yes
23002 # Append ld.so.conf contents to the search path
23003 if test -f /etc/ld.so.conf; then
23004 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' ' '`
23005 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23008 # We used to test for /lib/ld.so.1 and disable shared libraries on
23009 # powerpc, because MkLinux only supported shared libraries with the
23010 # GNU dynamic linker. Since this was broken with cross compilers,
23011 # most powerpc-linux boxes support dynamic linking these days and
23012 # people can always --disable-shared, the test was removed, and we
23013 # assume the GNU/Linux dynamic linker is in use.
23014 dynamic_linker='GNU/Linux ld.so'
23021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23022 soname_spec='${libname}${release}${shared_ext}$major'
23023 shlibpath_var=LD_LIBRARY_PATH
23024 shlibpath_overrides_runpath=no
23025 hardcode_into_libs=yes
23026 dynamic_linker='GNU ld.so'
23033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23036 dynamic_linker='NetBSD (a.out) ld.so'
23038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23039 soname_spec='${libname}${release}${shared_ext}$major'
23040 dynamic_linker='NetBSD ld.elf_so'
23042 shlibpath_var=LD_LIBRARY_PATH
23043 shlibpath_overrides_runpath=yes
23044 hardcode_into_libs=yes
23049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23050 shlibpath_var=LD_LIBRARY_PATH
23051 shlibpath_overrides_runpath=yes
23058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23059 soname_spec='${libname}${release}${shared_ext}$major'
23060 shlibpath_var=LD_LIBRARY_PATH
23061 shlibpath_overrides_runpath=yes
23066 sys_lib_dlsearch_path_spec="/usr/lib"
23068 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23070 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23071 *) need_version=no ;;
23073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23075 shlibpath_var=LD_LIBRARY_PATH
23076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23078 openbsd2.[89] | openbsd2.[89].*)
23079 shlibpath_overrides_runpath=no
23082 shlibpath_overrides_runpath=yes
23086 shlibpath_overrides_runpath=yes
23091 libname_spec='$name'
23094 library_names_spec='$libname${shared_ext} $libname.a'
23095 dynamic_linker='OS/2 ld.exe'
23096 shlibpath_var=LIBPATH
23099 osf3* | osf4* | osf5*)
23103 soname_spec='${libname}${release}${shared_ext}$major'
23104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23105 shlibpath_var=LD_LIBRARY_PATH
23106 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23107 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23115 soname_spec='${libname}${release}${shared_ext}$major'
23116 shlibpath_var=LD_LIBRARY_PATH
23117 shlibpath_overrides_runpath=yes
23118 hardcode_into_libs=yes
23119 # ldd complains unless libraries are executable
23120 postinstall_cmds='chmod +x $lib'
23125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23126 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23127 shlibpath_var=LD_LIBRARY_PATH
23128 shlibpath_overrides_runpath=yes
23129 if test "$with_gnu_ld" = yes; then
23137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23138 soname_spec='${libname}${release}${shared_ext}$major'
23139 shlibpath_var=LD_LIBRARY_PATH
23140 case $host_vendor in
23142 shlibpath_overrides_runpath=no
23144 export_dynamic_flag_spec='${wl}-Blargedynsym'
23145 runpath_var=LD_RUN_PATH
23153 shlibpath_overrides_runpath=no
23154 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23160 if test -d /usr/nec ;then
23162 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23163 soname_spec='$libname${shared_ext}.$major'
23164 shlibpath_var=LD_LIBRARY_PATH
23168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23169 version_type=freebsd-elf
23172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23173 soname_spec='${libname}${release}${shared_ext}$major'
23174 shlibpath_var=LD_LIBRARY_PATH
23175 hardcode_into_libs=yes
23176 if test "$with_gnu_ld" = yes; then
23177 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23178 shlibpath_overrides_runpath=no
23180 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23181 shlibpath_overrides_runpath=yes
23184 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23188 sys_lib_dlsearch_path_spec='/usr/lib'
23193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23194 soname_spec='${libname}${release}${shared_ext}$major'
23195 shlibpath_var=LD_LIBRARY_PATH
23202 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23203 echo "${ECHO_T}$dynamic_linker" >&6; }
23204 test "$dynamic_linker" = no && can_build_shared=no
23206 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23207 if test "$GCC" = yes; then
23208 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23211 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23212 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23213 hardcode_action_F77=
23214 if test -n "$hardcode_libdir_flag_spec_F77" || \
23215 test -n "$runpath_var_F77" || \
23216 test "X$hardcode_automatic_F77" = "Xyes" ; then
23218 # We can hardcode non-existant directories.
23219 if test "$hardcode_direct_F77" != no &&
23220 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23221 # have to relink, otherwise we might link with an installed library
23222 # when we should be linking with a yet-to-be-installed one
23223 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23224 test "$hardcode_minus_L_F77" != no; then
23225 # Linking always hardcodes the temporary library directory.
23226 hardcode_action_F77=relink
23228 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23229 hardcode_action_F77=immediate
23232 # We cannot hardcode anything, or else we can only hardcode existing
23234 hardcode_action_F77=unsupported
23236 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23237 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23239 if test "$hardcode_action_F77" = relink; then
23240 # Fast installation is not supported
23241 enable_fast_install=no
23242 elif test "$shlibpath_overrides_runpath" = yes ||
23243 test "$enable_shared" = no; then
23244 # Fast installation is not necessary
23245 enable_fast_install=needless
23249 # The else clause should only fire when bootstrapping the
23250 # libtool distribution, otherwise you forgot to ship ltmain.sh
23251 # with your package, and you will get complaints that there are
23252 # no rules to generate ltmain.sh.
23253 if test -f "$ltmain"; then
23254 # See if we are running on zsh, and set the options which allow our commands through
23255 # without removal of \ escapes.
23256 if test -n "${ZSH_VERSION+set}" ; then
23257 setopt NO_GLOB_SUBST
23259 # Now quote all the things that may contain metacharacters while being
23260 # careful not to overquote the AC_SUBSTed values. We take copies of the
23261 # variables and quote the copies for generation of the libtool script.
23262 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23264 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23265 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23266 deplibs_check_method reload_flag reload_cmds need_locks \
23267 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23268 lt_cv_sys_global_symbol_to_c_name_address \
23269 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23270 old_postinstall_cmds old_postuninstall_cmds \
23274 lt_prog_compiler_wl_F77 \
23275 lt_prog_compiler_pic_F77 \
23276 lt_prog_compiler_static_F77 \
23277 lt_prog_compiler_no_builtin_flag_F77 \
23278 export_dynamic_flag_spec_F77 \
23279 thread_safe_flag_spec_F77 \
23280 whole_archive_flag_spec_F77 \
23281 enable_shared_with_static_runtimes_F77 \
23282 old_archive_cmds_F77 \
23283 old_archive_from_new_cmds_F77 \
23284 predep_objects_F77 \
23285 postdep_objects_F77 \
23288 compiler_lib_search_path_F77 \
23290 archive_expsym_cmds_F77 \
23291 postinstall_cmds_F77 \
23292 postuninstall_cmds_F77 \
23293 old_archive_from_expsyms_cmds_F77 \
23294 allow_undefined_flag_F77 \
23295 no_undefined_flag_F77 \
23296 export_symbols_cmds_F77 \
23297 hardcode_libdir_flag_spec_F77 \
23298 hardcode_libdir_flag_spec_ld_F77 \
23299 hardcode_libdir_separator_F77 \
23300 hardcode_automatic_F77 \
23302 module_expsym_cmds_F77 \
23303 lt_cv_prog_compiler_c_o_F77 \
23304 exclude_expsyms_F77 \
23305 include_expsyms_F77; do
23308 old_archive_cmds_F77 | \
23309 old_archive_from_new_cmds_F77 | \
23310 archive_cmds_F77 | \
23311 archive_expsym_cmds_F77 | \
23312 module_cmds_F77 | \
23313 module_expsym_cmds_F77 | \
23314 old_archive_from_expsyms_cmds_F77 | \
23315 export_symbols_cmds_F77 | \
23316 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23317 postinstall_cmds | postuninstall_cmds | \
23318 old_postinstall_cmds | old_postuninstall_cmds | \
23319 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23320 # Double-quote double-evaled strings.
23321 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23324 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23330 *'\$0 --fallback-echo"')
23331 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23337 cat <<__EOF__ >> "$cfgfile"
23338 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23340 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23342 # Shell to use when invoking shell scripts.
23345 # Whether or not to build shared libraries.
23346 build_libtool_libs=$enable_shared
23348 # Whether or not to build static libraries.
23349 build_old_libs=$enable_static
23351 # Whether or not to add -lc for building shared libraries.
23352 build_libtool_need_lc=$archive_cmds_need_lc_F77
23354 # Whether or not to disallow shared libs when runtime libs are static
23355 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23357 # Whether or not to optimize for fast installation.
23358 fast_install=$enable_fast_install
23361 host_alias=$host_alias
23365 # The build system.
23366 build_alias=$build_alias
23370 # An echo program that does not interpret backslashes.
23375 AR_FLAGS=$lt_AR_FLAGS
23380 # LTCC compiler flags.
23381 LTCFLAGS=$lt_LTCFLAGS
23383 # A language-specific compiler.
23384 CC=$lt_compiler_F77
23386 # Is the compiler the GNU C compiler?
23392 # The linker used to build libraries.
23395 # Whether we need hard or soft links.
23398 # A BSD-compatible nm program.
23401 # A symbol stripping program
23404 # Used to examine libraries when file_magic_cmd begins "file"
23405 MAGIC_CMD=$MAGIC_CMD
23407 # Used on cygwin: DLL creation program.
23410 # Used on cygwin: object dumper.
23413 # Used on cygwin: assembler.
23416 # The name of the directory that contains temporary libtool files.
23419 # How to create reloadable object files.
23420 reload_flag=$lt_reload_flag
23421 reload_cmds=$lt_reload_cmds
23423 # How to pass a linker flag through the compiler.
23424 wl=$lt_lt_prog_compiler_wl_F77
23426 # Object file suffix (normally "o").
23427 objext="$ac_objext"
23429 # Old archive suffix (normally "a").
23432 # Shared library suffix (normally ".so").
23433 shrext_cmds='$shrext_cmds'
23435 # Executable file suffix (normally "").
23438 # Additional compiler flags for building library objects.
23439 pic_flag=$lt_lt_prog_compiler_pic_F77
23442 # What is the maximum length of a command?
23443 max_cmd_len=$lt_cv_sys_max_cmd_len
23445 # Does compiler simultaneously support -c and -o options?
23446 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23448 # Must we lock files when doing compilation?
23449 need_locks=$lt_need_locks
23451 # Do we need the lib prefix for modules?
23452 need_lib_prefix=$need_lib_prefix
23454 # Do we need a version for libraries?
23455 need_version=$need_version
23457 # Whether dlopen is supported.
23458 dlopen_support=$enable_dlopen
23460 # Whether dlopen of programs is supported.
23461 dlopen_self=$enable_dlopen_self
23463 # Whether dlopen of statically linked programs is supported.
23464 dlopen_self_static=$enable_dlopen_self_static
23466 # Compiler flag to prevent dynamic linking.
23467 link_static_flag=$lt_lt_prog_compiler_static_F77
23469 # Compiler flag to turn off builtin functions.
23470 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23472 # Compiler flag to allow reflexive dlopens.
23473 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23475 # Compiler flag to generate shared objects directly from archives.
23476 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23478 # Compiler flag to generate thread-safe objects.
23479 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23481 # Library versioning type.
23482 version_type=$version_type
23484 # Format of library name prefix.
23485 libname_spec=$lt_libname_spec
23487 # List of archive names. First name is the real one, the rest are links.
23488 # The last name is the one that the linker finds with -lNAME.
23489 library_names_spec=$lt_library_names_spec
23491 # The coded name of the library, if different from the real name.
23492 soname_spec=$lt_soname_spec
23494 # Commands used to build and install an old-style archive.
23496 old_archive_cmds=$lt_old_archive_cmds_F77
23497 old_postinstall_cmds=$lt_old_postinstall_cmds
23498 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23500 # Create an old-style archive from a shared archive.
23501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23503 # Create a temporary old-style archive to link instead of a shared archive.
23504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23506 # Commands used to build and install a shared archive.
23507 archive_cmds=$lt_archive_cmds_F77
23508 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23509 postinstall_cmds=$lt_postinstall_cmds
23510 postuninstall_cmds=$lt_postuninstall_cmds
23512 # Commands used to build a loadable module (assumed same as above if empty)
23513 module_cmds=$lt_module_cmds_F77
23514 module_expsym_cmds=$lt_module_expsym_cmds_F77
23516 # Commands to strip libraries.
23517 old_striplib=$lt_old_striplib
23518 striplib=$lt_striplib
23520 # Dependencies to place before the objects being linked to create a
23522 predep_objects=$lt_predep_objects_F77
23524 # Dependencies to place after the objects being linked to create a
23526 postdep_objects=$lt_postdep_objects_F77
23528 # Dependencies to place before the objects being linked to create a
23530 predeps=$lt_predeps_F77
23532 # Dependencies to place after the objects being linked to create a
23534 postdeps=$lt_postdeps_F77
23536 # The library search path used internally by the compiler when linking
23537 # a shared library.
23538 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23540 # Method to check whether dependent libraries are shared objects.
23541 deplibs_check_method=$lt_deplibs_check_method
23543 # Command to use when deplibs_check_method == file_magic.
23544 file_magic_cmd=$lt_file_magic_cmd
23546 # Flag that allows shared libraries with undefined symbols to be built.
23547 allow_undefined_flag=$lt_allow_undefined_flag_F77
23549 # Flag that forces no undefined symbols.
23550 no_undefined_flag=$lt_no_undefined_flag_F77
23552 # Commands used to finish a libtool library installation in a directory.
23553 finish_cmds=$lt_finish_cmds
23555 # Same as above, but a single script fragment to be evaled but not shown.
23556 finish_eval=$lt_finish_eval
23558 # Take the output of nm and produce a listing of raw symbols and C names.
23559 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23561 # Transform the output of nm in a proper C declaration
23562 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23564 # Transform the output of nm in a C name address pair
23565 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23567 # This is the shared library runtime path variable.
23568 runpath_var=$runpath_var
23570 # This is the shared library path variable.
23571 shlibpath_var=$shlibpath_var
23573 # Is shlibpath searched before the hard-coded library search path?
23574 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23576 # How to hardcode a shared library path into an executable.
23577 hardcode_action=$hardcode_action_F77
23579 # Whether we should hardcode library paths into libraries.
23580 hardcode_into_libs=$hardcode_into_libs
23582 # Flag to hardcode \$libdir into a binary during linking.
23583 # This must work even if \$libdir does not exist.
23584 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23586 # If ld is used when linking, flag to hardcode \$libdir into
23587 # a binary during linking. This must work even if \$libdir does
23589 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23591 # Whether we need a single -rpath flag with a separated argument.
23592 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23594 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23595 # resulting binary.
23596 hardcode_direct=$hardcode_direct_F77
23598 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23599 # resulting binary.
23600 hardcode_minus_L=$hardcode_minus_L_F77
23602 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23603 # the resulting binary.
23604 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23606 # Set to yes if building a shared library automatically hardcodes DIR into the library
23607 # and all subsequent libraries and executables linked against it.
23608 hardcode_automatic=$hardcode_automatic_F77
23610 # Variables whose values should be saved in libtool wrapper scripts and
23611 # restored at relink time.
23612 variables_saved_for_relink="$variables_saved_for_relink"
23614 # Whether libtool must link a program against all its dependency libraries.
23615 link_all_deplibs=$link_all_deplibs_F77
23617 # Compile-time system search path for libraries
23618 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23620 # Run-time system search path for libraries
23621 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23623 # Fix the shell variable \$srcfile for the compiler.
23624 fix_srcfile_path="$fix_srcfile_path_F77"
23626 # Set to yes if exported symbols are required.
23627 always_export_symbols=$always_export_symbols_F77
23629 # The commands to list exported symbols.
23630 export_symbols_cmds=$lt_export_symbols_cmds_F77
23632 # The commands to extract the exported symbol list from a shared archive.
23633 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23635 # Symbols that should not be listed in the preloaded symbols.
23636 exclude_expsyms=$lt_exclude_expsyms_F77
23638 # Symbols that must always be exported.
23639 include_expsyms=$lt_include_expsyms_F77
23641 # ### END LIBTOOL TAG CONFIG: $tagname
23647 # If there is no Makefile yet, we rely on a make rule to execute
23648 # `config.status --recheck' to rerun these tests and create the
23649 # libtool script then.
23650 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23651 if test -f "$ltmain_in"; then
23652 test -f Makefile && make "$ltmain"
23658 ac_cpp='$CPP $CPPFLAGS'
23659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23671 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23673 ac_cpp='$CPP $CPPFLAGS'
23674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23679 # Source file extension for Java test sources.
23682 # Object file extension for compiled Java test sources.
23686 # Code to be used in simple compile tests
23687 lt_simple_compile_test_code="class foo {}\n"
23689 # Code to be used in simple link tests
23690 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23692 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23694 # If no C compiler was specified, use CC.
23697 # If no C compiler flags were specified, use CFLAGS.
23698 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23700 # Allow CC to be a program name with arguments.
23704 # save warnings/boilerplate of simple test code
23705 ac_outfile=conftest.$ac_objext
23706 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23707 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23708 _lt_compiler_boilerplate=`cat conftest.err`
23711 ac_outfile=conftest.$ac_objext
23712 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23713 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23714 _lt_linker_boilerplate=`cat conftest.err`
23718 # Allow CC to be a program name with arguments.
23723 for cc_temp in $compiler""; do
23725 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23726 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23731 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23734 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23735 archive_cmds_need_lc_GCJ=no
23737 old_archive_cmds_GCJ=$old_archive_cmds
23740 lt_prog_compiler_no_builtin_flag_GCJ=
23742 if test "$GCC" = yes; then
23743 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23746 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23747 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23748 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
23751 lt_cv_prog_compiler_rtti_exceptions=no
23752 ac_outfile=conftest.$ac_objext
23753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23754 lt_compiler_flag="-fno-rtti -fno-exceptions"
23755 # Insert the option either (1) after the last *FLAGS variable, or
23756 # (2) before a word containing "conftest.", or (3) at the end.
23757 # Note that $ac_compile itself does not contain backslashes and begins
23758 # with a dollar sign (not a hyphen), so the echo should work correctly.
23759 # The option is referenced via a variable to avoid confusing sed.
23760 lt_compile=`echo "$ac_compile" | $SED \
23761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23763 -e 's:$: $lt_compiler_flag:'`
23764 (eval echo "\"\$as_me:23764: $lt_compile\"" >&5)
23765 (eval "$lt_compile" 2>conftest.err)
23767 cat conftest.err >&5
23768 echo "$as_me:23768: \$? = $ac_status" >&5
23769 if (exit $ac_status) && test -s "$ac_outfile"; then
23770 # The compiler can only warn and ignore the option if not recognized
23771 # So say no if there are warnings other than the usual output.
23772 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23775 lt_cv_prog_compiler_rtti_exceptions=yes
23781 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23782 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23784 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23785 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23792 lt_prog_compiler_wl_GCJ=
23793 lt_prog_compiler_pic_GCJ=
23794 lt_prog_compiler_static_GCJ=
23796 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23797 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23799 if test "$GCC" = yes; then
23800 lt_prog_compiler_wl_GCJ='-Wl,'
23801 lt_prog_compiler_static_GCJ='-static'
23805 # All AIX code is PIC.
23806 if test "$host_cpu" = ia64; then
23807 # AIX 5 now supports IA64 processor
23808 lt_prog_compiler_static_GCJ='-Bstatic'
23813 # FIXME: we need at least 68020 code to build shared libraries, but
23814 # adding the `-m68020' flag to GCC prevents building anything better,
23816 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23819 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23820 # PIC is the default for these OSes.
23823 mingw* | pw32* | os2*)
23824 # This hack is so that the source file can tell whether it is being
23825 # built for inclusion in a dll (and should export symbols for example).
23826 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23829 darwin* | rhapsody*)
23830 # PIC is the default on this platform
23831 # Common symbols not allowed in MH_DYLIB files
23832 lt_prog_compiler_pic_GCJ='-fno-common'
23836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23837 # Instead, we relocate shared libraries at runtime.
23841 # Just because we use GCC doesn't mean we suddenly get shared libraries
23842 # on systems that don't support them.
23843 lt_prog_compiler_can_build_shared_GCJ=no
23848 if test -d /usr/nec; then
23849 lt_prog_compiler_pic_GCJ=-Kconform_pic
23854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23855 # not for PA HP-UX.
23861 lt_prog_compiler_pic_GCJ='-fPIC'
23867 lt_prog_compiler_pic_GCJ='-fPIC'
23871 # PORTME Check for flag to pass linker flags through the system compiler.
23874 lt_prog_compiler_wl_GCJ='-Wl,'
23875 if test "$host_cpu" = ia64; then
23876 # AIX 5 now supports IA64 processor
23877 lt_prog_compiler_static_GCJ='-Bstatic'
23879 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23883 # PIC is the default on this platform
23884 # Common symbols not allowed in MH_DYLIB files
23885 case $cc_basename in
23887 lt_prog_compiler_pic_GCJ='-qnocommon'
23888 lt_prog_compiler_wl_GCJ='-Wl,'
23893 mingw* | pw32* | os2*)
23894 # This hack is so that the source file can tell whether it is being
23895 # built for inclusion in a dll (and should export symbols for example).
23896 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23899 hpux9* | hpux10* | hpux11*)
23900 lt_prog_compiler_wl_GCJ='-Wl,'
23901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23902 # not for PA HP-UX.
23908 lt_prog_compiler_pic_GCJ='+Z'
23911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23912 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23915 irix5* | irix6* | nonstopux*)
23916 lt_prog_compiler_wl_GCJ='-Wl,'
23917 # PIC (with -KPIC) is the default.
23918 lt_prog_compiler_static_GCJ='-non_shared'
23922 lt_prog_compiler_pic_GCJ='-KPIC'
23923 lt_prog_compiler_static_GCJ='-Bstatic'
23927 case $cc_basename in
23929 lt_prog_compiler_wl_GCJ='-Wl,'
23930 lt_prog_compiler_pic_GCJ='-KPIC'
23931 lt_prog_compiler_static_GCJ='-static'
23933 pgcc* | pgf77* | pgf90* | pgf95*)
23934 # Portland Group compilers (*not* the Pentium gcc compiler,
23935 # which looks to be a dead project)
23936 lt_prog_compiler_wl_GCJ='-Wl,'
23937 lt_prog_compiler_pic_GCJ='-fpic'
23938 lt_prog_compiler_static_GCJ='-Bstatic'
23941 lt_prog_compiler_wl_GCJ='-Wl,'
23942 # All Alpha code is PIC.
23943 lt_prog_compiler_static_GCJ='-non_shared'
23948 osf3* | osf4* | osf5*)
23949 lt_prog_compiler_wl_GCJ='-Wl,'
23950 # All OSF/1 code is PIC.
23951 lt_prog_compiler_static_GCJ='-non_shared'
23955 lt_prog_compiler_pic_GCJ='-KPIC'
23956 lt_prog_compiler_static_GCJ='-Bstatic'
23957 case $cc_basename in
23958 f77* | f90* | f95*)
23959 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23961 lt_prog_compiler_wl_GCJ='-Wl,';;
23966 lt_prog_compiler_wl_GCJ='-Qoption ld '
23967 lt_prog_compiler_pic_GCJ='-PIC'
23968 lt_prog_compiler_static_GCJ='-Bstatic'
23971 sysv4 | sysv4.2uw2* | sysv4.3*)
23972 lt_prog_compiler_wl_GCJ='-Wl,'
23973 lt_prog_compiler_pic_GCJ='-KPIC'
23974 lt_prog_compiler_static_GCJ='-Bstatic'
23978 if test -d /usr/nec ;then
23979 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23980 lt_prog_compiler_static_GCJ='-Bstatic'
23984 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23985 lt_prog_compiler_wl_GCJ='-Wl,'
23986 lt_prog_compiler_pic_GCJ='-KPIC'
23987 lt_prog_compiler_static_GCJ='-Bstatic'
23991 lt_prog_compiler_wl_GCJ='-Wl,'
23992 lt_prog_compiler_can_build_shared_GCJ=no
23996 lt_prog_compiler_pic_GCJ='-pic'
23997 lt_prog_compiler_static_GCJ='-Bstatic'
24001 lt_prog_compiler_can_build_shared_GCJ=no
24006 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24007 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24010 # Check to make sure the PIC flag actually works.
24012 if test -n "$lt_prog_compiler_pic_GCJ"; then
24014 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24015 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24016 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24017 echo $ECHO_N "(cached) $ECHO_C" >&6
24019 lt_prog_compiler_pic_works_GCJ=no
24020 ac_outfile=conftest.$ac_objext
24021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24022 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24023 # Insert the option either (1) after the last *FLAGS variable, or
24024 # (2) before a word containing "conftest.", or (3) at the end.
24025 # Note that $ac_compile itself does not contain backslashes and begins
24026 # with a dollar sign (not a hyphen), so the echo should work correctly.
24027 # The option is referenced via a variable to avoid confusing sed.
24028 lt_compile=`echo "$ac_compile" | $SED \
24029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24031 -e 's:$: $lt_compiler_flag:'`
24032 (eval echo "\"\$as_me:24032: $lt_compile\"" >&5)
24033 (eval "$lt_compile" 2>conftest.err)
24035 cat conftest.err >&5
24036 echo "$as_me:24036: \$? = $ac_status" >&5
24037 if (exit $ac_status) && test -s "$ac_outfile"; then
24038 # The compiler can only warn and ignore the option if not recognized
24039 # So say no if there are warnings other than the usual output.
24040 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24043 lt_prog_compiler_pic_works_GCJ=yes
24049 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24050 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24052 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24053 case $lt_prog_compiler_pic_GCJ in
24055 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24058 lt_prog_compiler_pic_GCJ=
24059 lt_prog_compiler_can_build_shared_GCJ=no
24064 # For platforms which do not support PIC, -DPIC is meaningless:
24066 lt_prog_compiler_pic_GCJ=
24069 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24074 # Check to make sure the static flag actually works.
24076 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24077 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24078 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24079 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24082 lt_prog_compiler_static_works_GCJ=no
24083 save_LDFLAGS="$LDFLAGS"
24084 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24085 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24086 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24087 # The linker can only warn and ignore the option if not recognized
24088 # So say no if there are warnings
24089 if test -s conftest.err; then
24090 # Append any errors to the config.log.
24091 cat conftest.err 1>&5
24092 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24094 if diff conftest.exp conftest.er2 >/dev/null; then
24095 lt_prog_compiler_static_works_GCJ=yes
24098 lt_prog_compiler_static_works_GCJ=yes
24102 LDFLAGS="$save_LDFLAGS"
24105 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24106 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24108 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24111 lt_prog_compiler_static_GCJ=
24115 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24116 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24117 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24118 echo $ECHO_N "(cached) $ECHO_C" >&6
24120 lt_cv_prog_compiler_c_o_GCJ=no
24121 $rm -r conftest 2>/dev/null
24125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24127 lt_compiler_flag="-o out/conftest2.$ac_objext"
24128 # Insert the option either (1) after the last *FLAGS variable, or
24129 # (2) before a word containing "conftest.", or (3) at the end.
24130 # Note that $ac_compile itself does not contain backslashes and begins
24131 # with a dollar sign (not a hyphen), so the echo should work correctly.
24132 lt_compile=`echo "$ac_compile" | $SED \
24133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24135 -e 's:$: $lt_compiler_flag:'`
24136 (eval echo "\"\$as_me:24136: $lt_compile\"" >&5)
24137 (eval "$lt_compile" 2>out/conftest.err)
24139 cat out/conftest.err >&5
24140 echo "$as_me:24140: \$? = $ac_status" >&5
24141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24143 # The compiler can only warn and ignore the option if not recognized
24144 # So say no if there are warnings
24145 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24146 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24147 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24148 lt_cv_prog_compiler_c_o_GCJ=yes
24153 # SGI C++ compiler will create directory out/ii_files/ for
24154 # template instantiation
24155 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24156 $rm out/* && rmdir out
24162 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24163 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24166 hard_links="nottested"
24167 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24168 # do not overwrite the value of need_locks provided by the user
24169 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24170 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24173 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24175 ln conftest.a conftest.b 2>&5 || hard_links=no
24176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24177 { echo "$as_me:$LINENO: result: $hard_links" >&5
24178 echo "${ECHO_T}$hard_links" >&6; }
24179 if test "$hard_links" = no; then
24180 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24181 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24188 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24189 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24192 allow_undefined_flag_GCJ=
24193 enable_shared_with_static_runtimes_GCJ=no
24195 archive_expsym_cmds_GCJ=
24196 old_archive_From_new_cmds_GCJ=
24197 old_archive_from_expsyms_cmds_GCJ=
24198 export_dynamic_flag_spec_GCJ=
24199 whole_archive_flag_spec_GCJ=
24200 thread_safe_flag_spec_GCJ=
24201 hardcode_libdir_flag_spec_GCJ=
24202 hardcode_libdir_flag_spec_ld_GCJ=
24203 hardcode_libdir_separator_GCJ=
24204 hardcode_direct_GCJ=no
24205 hardcode_minus_L_GCJ=no
24206 hardcode_shlibpath_var_GCJ=unsupported
24207 link_all_deplibs_GCJ=unknown
24208 hardcode_automatic_GCJ=no
24210 module_expsym_cmds_GCJ=
24211 always_export_symbols_GCJ=no
24212 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24213 # include_expsyms should be a list of space-separated symbols to be *always*
24214 # included in the symbol list
24215 include_expsyms_GCJ=
24216 # exclude_expsyms can be an extended regexp of symbols to exclude
24217 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24218 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24219 # as well as any symbol that contains `d'.
24220 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24221 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24222 # platforms (ab)use it in PIC code, but their linkers get confused if
24223 # the symbol is explicitly referenced. Since portable code cannot
24224 # rely on this symbol name, it's probably fine to never include it in
24225 # preloaded symbol tables.
24226 extract_expsyms_cmds=
24227 # Just being paranoid about ensuring that cc_basename is set.
24228 for cc_temp in $compiler""; do
24230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24236 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24239 cygwin* | mingw* | pw32*)
24240 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24241 # When not using gcc, we currently assume that we are using
24242 # Microsoft Visual C++.
24243 if test "$GCC" != yes; then
24248 # we just hope/assume this is gcc and not c89 (= MSVC++)
24257 if test "$with_gnu_ld" = yes; then
24258 # If archive_cmds runs LD, not CC, wlarc should be empty
24261 # Set some defaults for GNU ld with shared library support. These
24262 # are reset later if shared libraries are not supported. Putting them
24263 # here allows them to be overridden if necessary.
24264 runpath_var=LD_RUN_PATH
24265 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24266 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24267 # ancient GNU ld didn't support --whole-archive et. al.
24268 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24269 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24271 whole_archive_flag_spec_GCJ=
24273 supports_anon_versioning=no
24274 case `$LD -v 2>/dev/null` in
24275 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24276 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24277 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24278 *\ 2.11.*) ;; # other 2.11 versions
24279 *) supports_anon_versioning=yes ;;
24282 # See if GNU ld supports shared libraries.
24284 aix3* | aix4* | aix5*)
24285 # On AIX/PPC, the GNU linker is very broken
24286 if test "$host_cpu" != ia64; then
24290 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24291 *** to be unable to reliably create shared libraries on AIX.
24292 *** Therefore, libtool is disabling shared libraries support. If you
24293 *** really care for shared libraries, you may want to modify your PATH
24294 *** so that a non-GNU linker is found, and then restart.
24301 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)'
24302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24303 hardcode_minus_L_GCJ=yes
24305 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24306 # that the semantics of dynamic libraries on AmigaOS, at least up
24307 # to version 4, is to share data among multiple programs linked
24308 # with the same dynamic library. Since this doesn't match the
24309 # behavior of shared libraries on other platforms, we can't use
24315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24316 allow_undefined_flag_GCJ=unsupported
24317 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24318 # support --undefined. This deserves some investigation. FIXME
24319 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24325 cygwin* | mingw* | pw32*)
24326 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24327 # as there is no search path for DLLs.
24328 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24329 allow_undefined_flag_GCJ=unsupported
24330 always_export_symbols_GCJ=no
24331 enable_shared_with_static_runtimes_GCJ=yes
24332 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24334 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24335 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24336 # If the export-symbols file already is a .def file (1st line
24337 # is EXPORTS), use it as is; otherwise, prepend...
24338 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24339 cp $export_symbols $output_objdir/$soname.def;
24341 echo EXPORTS > $output_objdir/$soname.def;
24342 cat $export_symbols >> $output_objdir/$soname.def;
24344 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24351 hardcode_direct_GCJ=no
24352 hardcode_shlibpath_var_GCJ=no
24353 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24354 export_dynamic_flag_spec_GCJ='${wl}-E'
24355 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24356 # Instead, shared libraries are loaded at an image base (0x10000000 by
24357 # default) and relocated if they conflict, which is a slow very memory
24358 # consuming and fragmenting process. To avoid this, we pick a random,
24359 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24360 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24361 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'
24362 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'
24366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24368 case $cc_basename,$host_cpu in
24369 pgcc*) # Portland Group C compiler
24370 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'
24371 tmp_addflag=' $pic_flag'
24373 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24374 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'
24375 tmp_addflag=' $pic_flag -Mnomain' ;;
24376 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24377 tmp_addflag=' -i_dynamic' ;;
24378 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24379 tmp_addflag=' -i_dynamic -nofor_main' ;;
24380 ifc* | ifort*) # Intel Fortran compiler
24381 tmp_addflag=' -nofor_main' ;;
24383 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24385 if test $supports_anon_versioning = yes; then
24386 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24388 $echo "local: *; };" >> $output_objdir/$libname.ver~
24389 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24398 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24401 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24402 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24407 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24411 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24412 *** create shared libraries on Solaris systems. Therefore, libtool
24413 *** is disabling shared libraries support. We urge you to upgrade GNU
24414 *** binutils to release 2.9.1 or newer. Another option is to modify
24415 *** your PATH or compiler configuration so that the native linker is
24416 *** used, and then restart.
24419 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24420 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24421 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24428 case `$LD -v 2>&1` in
24429 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24433 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24434 *** reliably create shared libraries on SCO systems. Therefore, libtool
24435 *** is disabling shared libraries support. We urge you to upgrade GNU
24436 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24437 *** your PATH or compiler configuration so that the native linker is
24438 *** used, and then restart.
24443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24444 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24445 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24446 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24455 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24457 hardcode_direct_GCJ=yes
24458 hardcode_shlibpath_var_GCJ=no
24462 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24463 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24464 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24471 if test "$ld_shlibs_GCJ" = no; then
24473 hardcode_libdir_flag_spec_GCJ=
24474 export_dynamic_flag_spec_GCJ=
24475 whole_archive_flag_spec_GCJ=
24478 # PORTME fill in a description of your system's linker (not GNU ld)
24481 allow_undefined_flag_GCJ=unsupported
24482 always_export_symbols_GCJ=yes
24483 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'
24484 # Note: this linker hardcodes the directories in LIBPATH if there
24485 # are no directories specified by -L.
24486 hardcode_minus_L_GCJ=yes
24487 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24488 # Neither direct hardcoding nor static linking is supported with a
24490 hardcode_direct_GCJ=unsupported
24495 if test "$host_cpu" = ia64; then
24496 # On IA64, the linker does run time linking by default, so we don't
24497 # have to do anything special.
24498 aix_use_runtimelinking=no
24499 exp_sym_flag='-Bexport'
24502 # If we're using GNU nm, then we don't want the "-C" option.
24503 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24504 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24505 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'
24507 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'
24509 aix_use_runtimelinking=no
24511 # Test if we are trying to use run time linking or normal
24512 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24513 # need to do runtime linking.
24514 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24515 for ld_flag in $LDFLAGS; do
24516 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24517 aix_use_runtimelinking=yes
24524 exp_sym_flag='-bexport'
24525 no_entry_flag='-bnoentry'
24528 # When large executables or shared objects are built, AIX ld can
24529 # have problems creating the table of contents. If linking a library
24530 # or program results in "error TOC overflow" add -mminimal-toc to
24531 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24532 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24534 archive_cmds_GCJ=''
24535 hardcode_direct_GCJ=yes
24536 hardcode_libdir_separator_GCJ=':'
24537 link_all_deplibs_GCJ=yes
24539 if test "$GCC" = yes; then
24540 case $host_os in aix4.[012]|aix4.[012].*)
24541 # We only want to do this on AIX 4.2 and lower, the check
24542 # below for broken collect2 doesn't work under 4.3+
24543 collect2name=`${CC} -print-prog-name=collect2`
24544 if test -f "$collect2name" && \
24545 strings "$collect2name" | grep resolve_lib_name >/dev/null
24547 # We have reworked collect2
24548 hardcode_direct_GCJ=yes
24550 # We have old collect2
24551 hardcode_direct_GCJ=unsupported
24552 # It fails to find uninstalled libraries when the uninstalled
24553 # path is not listed in the libpath. Setting hardcode_minus_L
24554 # to unsupported forces relinking
24555 hardcode_minus_L_GCJ=yes
24556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24557 hardcode_libdir_separator_GCJ=
24561 shared_flag='-shared'
24562 if test "$aix_use_runtimelinking" = yes; then
24563 shared_flag="$shared_flag "'${wl}-G'
24567 if test "$host_cpu" = ia64; then
24568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24569 # chokes on -Wl,-G. The following line is correct:
24572 if test "$aix_use_runtimelinking" = yes; then
24573 shared_flag='${wl}-G'
24575 shared_flag='${wl}-bM:SRE'
24580 # It seems that -bexpall does not export symbols beginning with
24581 # underscore (_), so it is better to generate a list of symbols to export.
24582 always_export_symbols_GCJ=yes
24583 if test "$aix_use_runtimelinking" = yes; then
24584 # Warning - without using the other runtime loading flags (-brtl),
24585 # -berok will link without error, but may produce a broken library.
24586 allow_undefined_flag_GCJ='-berok'
24587 # Determine the default libpath from the value encoded in an empty executable.
24588 cat >conftest.$ac_ext <<_ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h. */
24603 rm -f conftest.$ac_objext conftest$ac_exeext
24604 if { (ac_try="$ac_link"
24605 case "(($ac_try" in
24606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607 *) ac_try_echo=$ac_try;;
24609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24610 (eval "$ac_link") 2>conftest.er1
24612 grep -v '^ *+' conftest.er1 >conftest.err
24614 cat conftest.err >&5
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); } &&
24617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24618 { (case "(($ac_try" in
24619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620 *) ac_try_echo=$ac_try;;
24622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623 (eval "$ac_try") 2>&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; } &&
24627 { ac_try='test -s conftest$ac_exeext'
24628 { (case "(($ac_try" in
24629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630 *) ac_try_echo=$ac_try;;
24632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24633 (eval "$ac_try") 2>&5
24635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); }; }; then
24638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24640 # Check for a 64-bit object if we didn't find anything.
24641 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; }
24644 echo "$as_me: failed program was:" >&5
24645 sed 's/^/| /' conftest.$ac_ext >&5
24650 rm -f core conftest.err conftest.$ac_objext \
24651 conftest$ac_exeext conftest.$ac_ext
24652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24654 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24655 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"
24657 if test "$host_cpu" = ia64; then
24658 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24659 allow_undefined_flag_GCJ="-z nodefs"
24660 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"
24662 # Determine the default libpath from the value encoded in an empty executable.
24663 cat >conftest.$ac_ext <<_ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24678 rm -f conftest.$ac_objext conftest$ac_exeext
24679 if { (ac_try="$ac_link"
24680 case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685 (eval "$ac_link") 2>conftest.er1
24687 grep -v '^ *+' conftest.er1 >conftest.err
24689 cat conftest.err >&5
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); } &&
24692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24693 { (case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_try") 2>&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; } &&
24702 { ac_try='test -s conftest$ac_exeext'
24703 { (case "(($ac_try" in
24704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24705 *) ac_try_echo=$ac_try;;
24707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24708 (eval "$ac_try") 2>&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); }; }; then
24713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24715 # Check for a 64-bit object if we didn't find anything.
24716 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; }
24719 echo "$as_me: failed program was:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24725 rm -f core conftest.err conftest.$ac_objext \
24726 conftest$ac_exeext conftest.$ac_ext
24727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24729 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24730 # Warning - without using the other run time loading flags,
24731 # -berok will link without error, but may produce a broken library.
24732 no_undefined_flag_GCJ=' ${wl}-bernotok'
24733 allow_undefined_flag_GCJ=' ${wl}-berok'
24734 # Exported symbols can be pulled into shared objects from archives
24735 whole_archive_flag_spec_GCJ='$convenience'
24736 archive_cmds_need_lc_GCJ=yes
24737 # This is similar to how AIX traditionally builds its shared libraries.
24738 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'
24744 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)'
24745 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24746 hardcode_minus_L_GCJ=yes
24747 # see comment about different semantics on the GNU ld section
24752 export_dynamic_flag_spec_GCJ=-rdynamic
24755 cygwin* | mingw* | pw32*)
24756 # When not using gcc, we currently assume that we are using
24757 # Microsoft Visual C++.
24758 # hardcode_libdir_flag_spec is actually meaningless, as there is
24759 # no search path for DLLs.
24760 hardcode_libdir_flag_spec_GCJ=' '
24761 allow_undefined_flag_GCJ=unsupported
24762 # Tell ltmain to make .lib files, not .a files.
24764 # Tell ltmain to make .dll files, not .so files.
24766 # FIXME: Setting linknames here is a bad hack.
24767 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24768 # The linker will automatically build a .lib file if we build a DLL.
24769 old_archive_From_new_cmds_GCJ='true'
24770 # FIXME: Should let the user specify the lib program.
24771 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24772 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24773 enable_shared_with_static_runtimes_GCJ=yes
24776 darwin* | rhapsody*)
24778 rhapsody* | darwin1.[012])
24779 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24782 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24783 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24785 case ${MACOSX_DEPLOYMENT_TARGET} in
24787 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24790 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24796 archive_cmds_need_lc_GCJ=no
24797 hardcode_direct_GCJ=no
24798 hardcode_automatic_GCJ=yes
24799 hardcode_shlibpath_var_GCJ=unsupported
24800 whole_archive_flag_spec_GCJ=''
24801 link_all_deplibs_GCJ=yes
24802 if test "$GCC" = yes ; then
24803 output_verbose_link_cmd='echo'
24804 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24805 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24806 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24807 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}'
24808 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}'
24810 case $cc_basename in
24812 output_verbose_link_cmd='echo'
24813 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24814 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24815 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24816 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}'
24817 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}'
24827 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24829 hardcode_shlibpath_var_GCJ=no
24836 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24837 # support. Future versions do this automatically, but an explicit c++rt0.o
24838 # does not break anything, and helps significantly (at the cost of a little
24841 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24842 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24843 hardcode_direct_GCJ=yes
24844 hardcode_shlibpath_var_GCJ=no
24847 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24849 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24850 hardcode_direct_GCJ=yes
24851 hardcode_minus_L_GCJ=yes
24852 hardcode_shlibpath_var_GCJ=no
24855 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24856 freebsd* | kfreebsd*-gnu | dragonfly*)
24857 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24858 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24859 hardcode_direct_GCJ=yes
24860 hardcode_shlibpath_var_GCJ=no
24864 if test "$GCC" = yes; then
24865 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'
24867 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'
24869 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24870 hardcode_libdir_separator_GCJ=:
24871 hardcode_direct_GCJ=yes
24873 # hardcode_minus_L: Not really in the search PATH,
24874 # but as the default location of the library.
24875 hardcode_minus_L_GCJ=yes
24876 export_dynamic_flag_spec_GCJ='${wl}-E'
24880 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24881 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24883 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24885 if test "$with_gnu_ld" = no; then
24886 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24887 hardcode_libdir_separator_GCJ=:
24889 hardcode_direct_GCJ=yes
24890 export_dynamic_flag_spec_GCJ='${wl}-E'
24892 # hardcode_minus_L: Not really in the search PATH,
24893 # but as the default location of the library.
24894 hardcode_minus_L_GCJ=yes
24899 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24902 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24905 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24908 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24914 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24917 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24920 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24924 if test "$with_gnu_ld" = no; then
24925 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24926 hardcode_libdir_separator_GCJ=:
24930 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24931 hardcode_direct_GCJ=no
24932 hardcode_shlibpath_var_GCJ=no
24935 hardcode_direct_GCJ=yes
24936 export_dynamic_flag_spec_GCJ='${wl}-E'
24938 # hardcode_minus_L: Not really in the search PATH,
24939 # but as the default location of the library.
24940 hardcode_minus_L_GCJ=yes
24946 irix5* | irix6* | nonstopux*)
24947 if test "$GCC" = yes; then
24948 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'
24950 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'
24951 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24953 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24954 hardcode_libdir_separator_GCJ=:
24955 link_all_deplibs_GCJ=yes
24959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24960 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24962 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24964 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24965 hardcode_direct_GCJ=yes
24966 hardcode_shlibpath_var_GCJ=no
24970 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24971 hardcode_direct_GCJ=yes
24972 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24973 hardcode_libdir_separator_GCJ=:
24974 hardcode_shlibpath_var_GCJ=no
24978 hardcode_direct_GCJ=yes
24979 hardcode_shlibpath_var_GCJ=no
24980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24981 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24982 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24983 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24984 export_dynamic_flag_spec_GCJ='${wl}-E'
24987 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24988 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24989 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24992 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24993 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25000 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25001 hardcode_minus_L_GCJ=yes
25002 allow_undefined_flag_GCJ=unsupported
25003 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'
25004 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25008 if test "$GCC" = yes; then
25009 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25010 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'
25012 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25013 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'
25015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25016 hardcode_libdir_separator_GCJ=:
25019 osf4* | osf5*) # as osf3* with the addition of -msym flag
25020 if test "$GCC" = yes; then
25021 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25022 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'
25023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25025 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25026 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'
25027 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~
25028 $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'
25030 # Both c and cxx compiler support -rpath directly
25031 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25033 hardcode_libdir_separator_GCJ=:
25037 no_undefined_flag_GCJ=' -z text'
25038 if test "$GCC" = yes; then
25040 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25041 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25042 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25045 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25046 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25047 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25049 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25050 hardcode_shlibpath_var_GCJ=no
25052 solaris2.[0-5] | solaris2.[0-5].*) ;;
25054 # The compiler driver will combine linker options so we
25055 # cannot just pass the convience library names through
25056 # without $wl, iff we do not link with $LD.
25057 # Luckily, gcc supports the same syntax we need for Sun Studio.
25058 # Supported since Solaris 2.6 (maybe 2.5.1?)
25061 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25063 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' ;;
25066 link_all_deplibs_GCJ=yes
25070 if test "x$host_vendor" = xsequent; then
25071 # Use $CC to link under sequent, because it throws in some extra .o
25072 # files that make .init and .fini sections work.
25073 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25075 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25078 hardcode_direct_GCJ=yes
25079 hardcode_minus_L_GCJ=yes
25080 hardcode_shlibpath_var_GCJ=no
25084 case $host_vendor in
25086 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25087 hardcode_direct_GCJ=yes # is this really true???
25090 ## LD is ld it makes a PLAMLIB
25091 ## CC just makes a GrossModule.
25092 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25093 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25094 hardcode_direct_GCJ=no
25097 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25098 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25101 runpath_var='LD_RUN_PATH'
25102 hardcode_shlibpath_var_GCJ=no
25106 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25107 hardcode_shlibpath_var_GCJ=no
25108 export_dynamic_flag_spec_GCJ='-Bexport'
25112 if test -d /usr/nec; then
25113 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25114 hardcode_shlibpath_var_GCJ=no
25115 runpath_var=LD_RUN_PATH
25116 hardcode_runpath_var=yes
25121 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25122 no_undefined_flag_GCJ='${wl}-z,text'
25123 archive_cmds_need_lc_GCJ=no
25124 hardcode_shlibpath_var_GCJ=no
25125 runpath_var='LD_RUN_PATH'
25127 if test "$GCC" = yes; then
25128 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25129 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25131 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25132 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25136 sysv5* | sco3.2v5* | sco5v6*)
25137 # Note: We can NOT use -z defs as we might desire, because we do not
25138 # link with -lc, and that would cause any symbols used from libc to
25139 # always be unresolved, which means just about no library would
25140 # ever link correctly. If we're not using GNU ld we use -z text
25141 # though, which does catch some bad symbols but isn't as heavy-handed
25143 no_undefined_flag_GCJ='${wl}-z,text'
25144 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25145 archive_cmds_need_lc_GCJ=no
25146 hardcode_shlibpath_var_GCJ=no
25147 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25148 hardcode_libdir_separator_GCJ=':'
25149 link_all_deplibs_GCJ=yes
25150 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25151 runpath_var='LD_RUN_PATH'
25153 if test "$GCC" = yes; then
25154 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25155 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25157 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25158 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25163 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25164 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25165 hardcode_shlibpath_var_GCJ=no
25174 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25175 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25176 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25179 # Do we need to explicitly link libc?
25181 case "x$archive_cmds_need_lc_GCJ" in
25183 # Assume -lc should be added
25184 archive_cmds_need_lc_GCJ=yes
25186 if test "$enable_shared" = yes && test "$GCC" = yes; then
25187 case $archive_cmds_GCJ in
25189 # FIXME: we may have to deal with multi-command sequences.
25192 # Test whether the compiler implicitly links with -lc since on some
25193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25194 # to ld, don't add -lc before -lgcc.
25195 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25196 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25201 (eval $ac_compile) 2>&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); } 2>conftest.err; then
25207 libobjs=conftest.$ac_objext
25209 wl=$lt_prog_compiler_wl_GCJ
25210 pic_flag=$lt_prog_compiler_pic_GCJ
25216 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25217 allow_undefined_flag_GCJ=
25218 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25219 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }
25224 archive_cmds_need_lc_GCJ=no
25226 archive_cmds_need_lc_GCJ=yes
25228 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25230 cat conftest.err 1>&5
25233 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25234 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25241 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25242 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25243 library_names_spec=
25244 libname_spec='lib$name'
25248 postuninstall_cmds=
25252 shlibpath_overrides_runpath=unknown
25254 dynamic_linker="$host_os ld.so"
25255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25256 if test "$GCC" = yes; then
25257 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25258 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25259 # if the path contains ";" then we assume it to be the separator
25260 # otherwise default to the standard path separator (i.e. ":") - it is
25261 # assumed that no part of a normal pathname contains ";" but that should
25262 # okay in the real world where ";" in dirpaths is itself problematic.
25263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25268 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25270 need_lib_prefix=unknown
25271 hardcode_into_libs=no
25273 # when you set need_version to no, make sure it does not cause -set_version
25274 # flags to be left without arguments
25275 need_version=unknown
25280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25281 shlibpath_var=LIBPATH
25283 # AIX 3 has no versioning support, so we append a major version to the name.
25284 soname_spec='${libname}${release}${shared_ext}$major'
25291 hardcode_into_libs=yes
25292 if test "$host_cpu" = ia64; then
25293 # AIX 5 supports IA64
25294 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25295 shlibpath_var=LD_LIBRARY_PATH
25297 # With GCC up to 2.95.x, collect2 would create an import file
25298 # for dependence libraries. The import file would start with
25299 # the line `#! .'. This would cause the generated library to
25300 # depend on `.', always an invalid library. This was fixed in
25301 # development snapshots of GCC prior to 3.0.
25303 aix4 | aix4.[01] | aix4.[01].*)
25304 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25306 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25309 can_build_shared=no
25313 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25314 # soname into executable. Probably we can add versioning support to
25315 # collect2, so additional links can be useful in future.
25316 if test "$aix_use_runtimelinking" = yes; then
25317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25318 # instead of lib<name>.a to let people know that these are not
25319 # typical AIX shared libraries.
25320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25322 # We preserve .a as extension for shared libraries through AIX4.2
25323 # and later when we are not doing run time linking.
25324 library_names_spec='${libname}${release}.a $libname.a'
25325 soname_spec='${libname}${release}${shared_ext}$major'
25327 shlibpath_var=LIBPATH
25332 library_names_spec='$libname.ixlibrary $libname.a'
25333 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25334 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'
25338 library_names_spec='${libname}${shared_ext}'
25339 dynamic_linker="$host_os ld.so"
25340 shlibpath_var=LIBRARY_PATH
25346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25347 soname_spec='${libname}${release}${shared_ext}$major'
25348 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25349 shlibpath_var=LD_LIBRARY_PATH
25350 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25351 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25352 # the default ld.so.conf also contains /usr/contrib/lib and
25353 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25354 # libtool to hard-code these into programs
25357 cygwin* | mingw* | pw32*)
25358 version_type=windows
25363 case $GCC,$host_os in
25364 yes,cygwin* | yes,mingw* | yes,pw32*)
25365 library_names_spec='$libname.dll.a'
25366 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25367 postinstall_cmds='base_file=`basename \${file}`~
25368 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25369 dldir=$destdir/`dirname \$dlpath`~
25370 test -d \$dldir || mkdir -p \$dldir~
25371 $install_prog $dir/$dlname \$dldir/$dlname~
25372 chmod a+x \$dldir/$dlname'
25373 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25374 dlpath=$dir/\$dldll~
25376 shlibpath_overrides_runpath=yes
25380 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25381 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25382 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25385 # MinGW DLLs use traditional 'lib' prefix
25386 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25387 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25388 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25389 # It is most probably a Windows format PATH printed by
25390 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25391 # path with ; separators, and with drive letters. We can handle the
25392 # drive letters (cygwin fileutils understands them), so leave them,
25393 # especially as we might pass files found there to a mingw objdump,
25394 # which wouldn't understand a cygwinified path. Ahh.
25395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25397 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25401 # pw32 DLLs use 'pw' prefix rather than 'lib'
25402 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25408 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25411 dynamic_linker='Win32 ld.exe'
25412 # FIXME: first we should search . and the directory the executable is in
25416 darwin* | rhapsody*)
25417 dynamic_linker="$host_os dyld"
25418 version_type=darwin
25421 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25422 soname_spec='${libname}${release}${major}$shared_ext'
25423 shlibpath_overrides_runpath=yes
25424 shlibpath_var=DYLD_LIBRARY_PATH
25425 shrext_cmds='.dylib'
25426 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25427 if test "$GCC" = yes; then
25428 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"`
25430 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25432 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25440 soname_spec='${libname}${release}${shared_ext}$major'
25441 shlibpath_var=LD_LIBRARY_PATH
25452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25453 soname_spec='${libname}${release}${shared_ext}$major'
25454 shlibpath_var=LD_LIBRARY_PATH
25455 shlibpath_overrides_runpath=no
25456 hardcode_into_libs=yes
25457 dynamic_linker='GNU ld.so'
25460 freebsd* | dragonfly*)
25461 # DragonFly does not have aout. When/if they implement a new
25462 # versioning mechanism, adjust this.
25463 if test -x /usr/bin/objformat; then
25464 objformat=`/usr/bin/objformat`
25467 freebsd[123]*) objformat=aout ;;
25468 *) objformat=elf ;;
25471 version_type=freebsd-$objformat
25472 case $version_type in
25474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25483 shlibpath_var=LD_LIBRARY_PATH
25486 shlibpath_overrides_runpath=yes
25488 freebsd3.[01]* | freebsdelf3.[01]*)
25489 shlibpath_overrides_runpath=yes
25490 hardcode_into_libs=yes
25492 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25493 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25494 shlibpath_overrides_runpath=no
25495 hardcode_into_libs=yes
25497 freebsd*) # from 4.6 on
25498 shlibpath_overrides_runpath=yes
25499 hardcode_into_libs=yes
25508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25509 soname_spec='${libname}${release}${shared_ext}$major'
25510 shlibpath_var=LD_LIBRARY_PATH
25511 hardcode_into_libs=yes
25514 hpux9* | hpux10* | hpux11*)
25515 # Give a soname corresponding to the major version so that dld.sl refuses to
25516 # link against other versions.
25523 hardcode_into_libs=yes
25524 dynamic_linker="$host_os dld.so"
25525 shlibpath_var=LD_LIBRARY_PATH
25526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25528 soname_spec='${libname}${release}${shared_ext}$major'
25529 if test "X$HPUX_IA64_MODE" = X32; then
25530 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25532 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25534 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25538 hardcode_into_libs=yes
25539 dynamic_linker="$host_os dld.sl"
25540 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25541 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25543 soname_spec='${libname}${release}${shared_ext}$major'
25544 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25549 dynamic_linker="$host_os dld.sl"
25550 shlibpath_var=SHLIB_PATH
25551 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25553 soname_spec='${libname}${release}${shared_ext}$major'
25556 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25557 postinstall_cmds='chmod 555 $lib'
25564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25565 soname_spec='${libname}${release}${shared_ext}$major'
25566 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25567 shlibpath_var=LD_LIBRARY_PATH
25568 shlibpath_overrides_runpath=no
25569 hardcode_into_libs=yes
25572 irix5* | irix6* | nonstopux*)
25574 nonstopux*) version_type=nonstopux ;;
25576 if test "$lt_cv_prog_gnu_ld" = yes; then
25584 soname_spec='${libname}${release}${shared_ext}$major'
25585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25587 irix5* | nonstopux*)
25588 libsuff= shlibsuff=
25591 case $LD in # libtool.m4 will add one of these switches to LD
25592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25593 libsuff= shlibsuff= libmagic=32-bit;;
25594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25595 libsuff=32 shlibsuff=N32 libmagic=N32;;
25596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25598 *) libsuff= shlibsuff= libmagic=never-match;;
25602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25603 shlibpath_overrides_runpath=no
25604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25606 hardcode_into_libs=yes
25609 # No shared lib support for Linux oldld, aout, or coff.
25610 linux*oldld* | linux*aout* | linux*coff*)
25614 # This must be Linux ELF.
25619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25620 soname_spec='${libname}${release}${shared_ext}$major'
25621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25622 shlibpath_var=LD_LIBRARY_PATH
25623 shlibpath_overrides_runpath=no
25624 # This implies no fast_install, which is unacceptable.
25625 # Some rework will be needed to allow for fast_install
25626 # before this can be enabled.
25627 hardcode_into_libs=yes
25629 # Append ld.so.conf contents to the search path
25630 if test -f /etc/ld.so.conf; then
25631 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' ' '`
25632 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25635 # We used to test for /lib/ld.so.1 and disable shared libraries on
25636 # powerpc, because MkLinux only supported shared libraries with the
25637 # GNU dynamic linker. Since this was broken with cross compilers,
25638 # most powerpc-linux boxes support dynamic linking these days and
25639 # people can always --disable-shared, the test was removed, and we
25640 # assume the GNU/Linux dynamic linker is in use.
25641 dynamic_linker='GNU/Linux ld.so'
25648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25649 soname_spec='${libname}${release}${shared_ext}$major'
25650 shlibpath_var=LD_LIBRARY_PATH
25651 shlibpath_overrides_runpath=no
25652 hardcode_into_libs=yes
25653 dynamic_linker='GNU ld.so'
25660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25663 dynamic_linker='NetBSD (a.out) ld.so'
25665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25666 soname_spec='${libname}${release}${shared_ext}$major'
25667 dynamic_linker='NetBSD ld.elf_so'
25669 shlibpath_var=LD_LIBRARY_PATH
25670 shlibpath_overrides_runpath=yes
25671 hardcode_into_libs=yes
25676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25677 shlibpath_var=LD_LIBRARY_PATH
25678 shlibpath_overrides_runpath=yes
25685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25686 soname_spec='${libname}${release}${shared_ext}$major'
25687 shlibpath_var=LD_LIBRARY_PATH
25688 shlibpath_overrides_runpath=yes
25693 sys_lib_dlsearch_path_spec="/usr/lib"
25695 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25697 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25698 *) need_version=no ;;
25700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25702 shlibpath_var=LD_LIBRARY_PATH
25703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25705 openbsd2.[89] | openbsd2.[89].*)
25706 shlibpath_overrides_runpath=no
25709 shlibpath_overrides_runpath=yes
25713 shlibpath_overrides_runpath=yes
25718 libname_spec='$name'
25721 library_names_spec='$libname${shared_ext} $libname.a'
25722 dynamic_linker='OS/2 ld.exe'
25723 shlibpath_var=LIBPATH
25726 osf3* | osf4* | osf5*)
25730 soname_spec='${libname}${release}${shared_ext}$major'
25731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25732 shlibpath_var=LD_LIBRARY_PATH
25733 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25734 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25742 soname_spec='${libname}${release}${shared_ext}$major'
25743 shlibpath_var=LD_LIBRARY_PATH
25744 shlibpath_overrides_runpath=yes
25745 hardcode_into_libs=yes
25746 # ldd complains unless libraries are executable
25747 postinstall_cmds='chmod +x $lib'
25752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25753 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25754 shlibpath_var=LD_LIBRARY_PATH
25755 shlibpath_overrides_runpath=yes
25756 if test "$with_gnu_ld" = yes; then
25764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25765 soname_spec='${libname}${release}${shared_ext}$major'
25766 shlibpath_var=LD_LIBRARY_PATH
25767 case $host_vendor in
25769 shlibpath_overrides_runpath=no
25771 export_dynamic_flag_spec='${wl}-Blargedynsym'
25772 runpath_var=LD_RUN_PATH
25780 shlibpath_overrides_runpath=no
25781 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25787 if test -d /usr/nec ;then
25789 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25790 soname_spec='$libname${shared_ext}.$major'
25791 shlibpath_var=LD_LIBRARY_PATH
25795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25796 version_type=freebsd-elf
25799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25800 soname_spec='${libname}${release}${shared_ext}$major'
25801 shlibpath_var=LD_LIBRARY_PATH
25802 hardcode_into_libs=yes
25803 if test "$with_gnu_ld" = yes; then
25804 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25805 shlibpath_overrides_runpath=no
25807 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25808 shlibpath_overrides_runpath=yes
25811 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25815 sys_lib_dlsearch_path_spec='/usr/lib'
25820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25821 soname_spec='${libname}${release}${shared_ext}$major'
25822 shlibpath_var=LD_LIBRARY_PATH
25829 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25830 echo "${ECHO_T}$dynamic_linker" >&6; }
25831 test "$dynamic_linker" = no && can_build_shared=no
25833 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25834 if test "$GCC" = yes; then
25835 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25838 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25839 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25840 hardcode_action_GCJ=
25841 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25842 test -n "$runpath_var_GCJ" || \
25843 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25845 # We can hardcode non-existant directories.
25846 if test "$hardcode_direct_GCJ" != no &&
25847 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25848 # have to relink, otherwise we might link with an installed library
25849 # when we should be linking with a yet-to-be-installed one
25850 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25851 test "$hardcode_minus_L_GCJ" != no; then
25852 # Linking always hardcodes the temporary library directory.
25853 hardcode_action_GCJ=relink
25855 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25856 hardcode_action_GCJ=immediate
25859 # We cannot hardcode anything, or else we can only hardcode existing
25861 hardcode_action_GCJ=unsupported
25863 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25864 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25866 if test "$hardcode_action_GCJ" = relink; then
25867 # Fast installation is not supported
25868 enable_fast_install=no
25869 elif test "$shlibpath_overrides_runpath" = yes ||
25870 test "$enable_shared" = no; then
25871 # Fast installation is not necessary
25872 enable_fast_install=needless
25876 # The else clause should only fire when bootstrapping the
25877 # libtool distribution, otherwise you forgot to ship ltmain.sh
25878 # with your package, and you will get complaints that there are
25879 # no rules to generate ltmain.sh.
25880 if test -f "$ltmain"; then
25881 # See if we are running on zsh, and set the options which allow our commands through
25882 # without removal of \ escapes.
25883 if test -n "${ZSH_VERSION+set}" ; then
25884 setopt NO_GLOB_SUBST
25886 # Now quote all the things that may contain metacharacters while being
25887 # careful not to overquote the AC_SUBSTed values. We take copies of the
25888 # variables and quote the copies for generation of the libtool script.
25889 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25891 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25892 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25893 deplibs_check_method reload_flag reload_cmds need_locks \
25894 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25895 lt_cv_sys_global_symbol_to_c_name_address \
25896 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25897 old_postinstall_cmds old_postuninstall_cmds \
25901 lt_prog_compiler_wl_GCJ \
25902 lt_prog_compiler_pic_GCJ \
25903 lt_prog_compiler_static_GCJ \
25904 lt_prog_compiler_no_builtin_flag_GCJ \
25905 export_dynamic_flag_spec_GCJ \
25906 thread_safe_flag_spec_GCJ \
25907 whole_archive_flag_spec_GCJ \
25908 enable_shared_with_static_runtimes_GCJ \
25909 old_archive_cmds_GCJ \
25910 old_archive_from_new_cmds_GCJ \
25911 predep_objects_GCJ \
25912 postdep_objects_GCJ \
25915 compiler_lib_search_path_GCJ \
25917 archive_expsym_cmds_GCJ \
25918 postinstall_cmds_GCJ \
25919 postuninstall_cmds_GCJ \
25920 old_archive_from_expsyms_cmds_GCJ \
25921 allow_undefined_flag_GCJ \
25922 no_undefined_flag_GCJ \
25923 export_symbols_cmds_GCJ \
25924 hardcode_libdir_flag_spec_GCJ \
25925 hardcode_libdir_flag_spec_ld_GCJ \
25926 hardcode_libdir_separator_GCJ \
25927 hardcode_automatic_GCJ \
25929 module_expsym_cmds_GCJ \
25930 lt_cv_prog_compiler_c_o_GCJ \
25931 exclude_expsyms_GCJ \
25932 include_expsyms_GCJ; do
25935 old_archive_cmds_GCJ | \
25936 old_archive_from_new_cmds_GCJ | \
25937 archive_cmds_GCJ | \
25938 archive_expsym_cmds_GCJ | \
25939 module_cmds_GCJ | \
25940 module_expsym_cmds_GCJ | \
25941 old_archive_from_expsyms_cmds_GCJ | \
25942 export_symbols_cmds_GCJ | \
25943 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25944 postinstall_cmds | postuninstall_cmds | \
25945 old_postinstall_cmds | old_postuninstall_cmds | \
25946 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25947 # Double-quote double-evaled strings.
25948 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25951 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25957 *'\$0 --fallback-echo"')
25958 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25964 cat <<__EOF__ >> "$cfgfile"
25965 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25967 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25969 # Shell to use when invoking shell scripts.
25972 # Whether or not to build shared libraries.
25973 build_libtool_libs=$enable_shared
25975 # Whether or not to build static libraries.
25976 build_old_libs=$enable_static
25978 # Whether or not to add -lc for building shared libraries.
25979 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25981 # Whether or not to disallow shared libs when runtime libs are static
25982 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25984 # Whether or not to optimize for fast installation.
25985 fast_install=$enable_fast_install
25988 host_alias=$host_alias
25992 # The build system.
25993 build_alias=$build_alias
25997 # An echo program that does not interpret backslashes.
26002 AR_FLAGS=$lt_AR_FLAGS
26007 # LTCC compiler flags.
26008 LTCFLAGS=$lt_LTCFLAGS
26010 # A language-specific compiler.
26011 CC=$lt_compiler_GCJ
26013 # Is the compiler the GNU C compiler?
26019 # The linker used to build libraries.
26022 # Whether we need hard or soft links.
26025 # A BSD-compatible nm program.
26028 # A symbol stripping program
26031 # Used to examine libraries when file_magic_cmd begins "file"
26032 MAGIC_CMD=$MAGIC_CMD
26034 # Used on cygwin: DLL creation program.
26037 # Used on cygwin: object dumper.
26040 # Used on cygwin: assembler.
26043 # The name of the directory that contains temporary libtool files.
26046 # How to create reloadable object files.
26047 reload_flag=$lt_reload_flag
26048 reload_cmds=$lt_reload_cmds
26050 # How to pass a linker flag through the compiler.
26051 wl=$lt_lt_prog_compiler_wl_GCJ
26053 # Object file suffix (normally "o").
26054 objext="$ac_objext"
26056 # Old archive suffix (normally "a").
26059 # Shared library suffix (normally ".so").
26060 shrext_cmds='$shrext_cmds'
26062 # Executable file suffix (normally "").
26065 # Additional compiler flags for building library objects.
26066 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26069 # What is the maximum length of a command?
26070 max_cmd_len=$lt_cv_sys_max_cmd_len
26072 # Does compiler simultaneously support -c and -o options?
26073 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26075 # Must we lock files when doing compilation?
26076 need_locks=$lt_need_locks
26078 # Do we need the lib prefix for modules?
26079 need_lib_prefix=$need_lib_prefix
26081 # Do we need a version for libraries?
26082 need_version=$need_version
26084 # Whether dlopen is supported.
26085 dlopen_support=$enable_dlopen
26087 # Whether dlopen of programs is supported.
26088 dlopen_self=$enable_dlopen_self
26090 # Whether dlopen of statically linked programs is supported.
26091 dlopen_self_static=$enable_dlopen_self_static
26093 # Compiler flag to prevent dynamic linking.
26094 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26096 # Compiler flag to turn off builtin functions.
26097 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26099 # Compiler flag to allow reflexive dlopens.
26100 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26102 # Compiler flag to generate shared objects directly from archives.
26103 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26105 # Compiler flag to generate thread-safe objects.
26106 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26108 # Library versioning type.
26109 version_type=$version_type
26111 # Format of library name prefix.
26112 libname_spec=$lt_libname_spec
26114 # List of archive names. First name is the real one, the rest are links.
26115 # The last name is the one that the linker finds with -lNAME.
26116 library_names_spec=$lt_library_names_spec
26118 # The coded name of the library, if different from the real name.
26119 soname_spec=$lt_soname_spec
26121 # Commands used to build and install an old-style archive.
26123 old_archive_cmds=$lt_old_archive_cmds_GCJ
26124 old_postinstall_cmds=$lt_old_postinstall_cmds
26125 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26127 # Create an old-style archive from a shared archive.
26128 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26130 # Create a temporary old-style archive to link instead of a shared archive.
26131 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26133 # Commands used to build and install a shared archive.
26134 archive_cmds=$lt_archive_cmds_GCJ
26135 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26136 postinstall_cmds=$lt_postinstall_cmds
26137 postuninstall_cmds=$lt_postuninstall_cmds
26139 # Commands used to build a loadable module (assumed same as above if empty)
26140 module_cmds=$lt_module_cmds_GCJ
26141 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26143 # Commands to strip libraries.
26144 old_striplib=$lt_old_striplib
26145 striplib=$lt_striplib
26147 # Dependencies to place before the objects being linked to create a
26149 predep_objects=$lt_predep_objects_GCJ
26151 # Dependencies to place after the objects being linked to create a
26153 postdep_objects=$lt_postdep_objects_GCJ
26155 # Dependencies to place before the objects being linked to create a
26157 predeps=$lt_predeps_GCJ
26159 # Dependencies to place after the objects being linked to create a
26161 postdeps=$lt_postdeps_GCJ
26163 # The library search path used internally by the compiler when linking
26164 # a shared library.
26165 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26167 # Method to check whether dependent libraries are shared objects.
26168 deplibs_check_method=$lt_deplibs_check_method
26170 # Command to use when deplibs_check_method == file_magic.
26171 file_magic_cmd=$lt_file_magic_cmd
26173 # Flag that allows shared libraries with undefined symbols to be built.
26174 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26176 # Flag that forces no undefined symbols.
26177 no_undefined_flag=$lt_no_undefined_flag_GCJ
26179 # Commands used to finish a libtool library installation in a directory.
26180 finish_cmds=$lt_finish_cmds
26182 # Same as above, but a single script fragment to be evaled but not shown.
26183 finish_eval=$lt_finish_eval
26185 # Take the output of nm and produce a listing of raw symbols and C names.
26186 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26188 # Transform the output of nm in a proper C declaration
26189 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26191 # Transform the output of nm in a C name address pair
26192 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26194 # This is the shared library runtime path variable.
26195 runpath_var=$runpath_var
26197 # This is the shared library path variable.
26198 shlibpath_var=$shlibpath_var
26200 # Is shlibpath searched before the hard-coded library search path?
26201 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26203 # How to hardcode a shared library path into an executable.
26204 hardcode_action=$hardcode_action_GCJ
26206 # Whether we should hardcode library paths into libraries.
26207 hardcode_into_libs=$hardcode_into_libs
26209 # Flag to hardcode \$libdir into a binary during linking.
26210 # This must work even if \$libdir does not exist.
26211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26213 # If ld is used when linking, flag to hardcode \$libdir into
26214 # a binary during linking. This must work even if \$libdir does
26216 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26218 # Whether we need a single -rpath flag with a separated argument.
26219 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26221 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26222 # resulting binary.
26223 hardcode_direct=$hardcode_direct_GCJ
26225 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26226 # resulting binary.
26227 hardcode_minus_L=$hardcode_minus_L_GCJ
26229 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26230 # the resulting binary.
26231 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26233 # Set to yes if building a shared library automatically hardcodes DIR into the library
26234 # and all subsequent libraries and executables linked against it.
26235 hardcode_automatic=$hardcode_automatic_GCJ
26237 # Variables whose values should be saved in libtool wrapper scripts and
26238 # restored at relink time.
26239 variables_saved_for_relink="$variables_saved_for_relink"
26241 # Whether libtool must link a program against all its dependency libraries.
26242 link_all_deplibs=$link_all_deplibs_GCJ
26244 # Compile-time system search path for libraries
26245 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26247 # Run-time system search path for libraries
26248 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26250 # Fix the shell variable \$srcfile for the compiler.
26251 fix_srcfile_path="$fix_srcfile_path_GCJ"
26253 # Set to yes if exported symbols are required.
26254 always_export_symbols=$always_export_symbols_GCJ
26256 # The commands to list exported symbols.
26257 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26259 # The commands to extract the exported symbol list from a shared archive.
26260 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26262 # Symbols that should not be listed in the preloaded symbols.
26263 exclude_expsyms=$lt_exclude_expsyms_GCJ
26265 # Symbols that must always be exported.
26266 include_expsyms=$lt_include_expsyms_GCJ
26268 # ### END LIBTOOL TAG CONFIG: $tagname
26274 # If there is no Makefile yet, we rely on a make rule to execute
26275 # `config.status --recheck' to rerun these tests and create the
26276 # libtool script then.
26277 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26278 if test -f "$ltmain_in"; then
26279 test -f Makefile && make "$ltmain"
26285 ac_cpp='$CPP $CPPFLAGS'
26286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26299 ac_cpp='$CPP $CPPFLAGS'
26300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26305 # Source file extension for RC test sources.
26308 # Object file extension for compiled RC test sources.
26312 # Code to be used in simple compile tests
26313 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26315 # Code to be used in simple link tests
26316 lt_simple_link_test_code="$lt_simple_compile_test_code"
26318 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26320 # If no C compiler was specified, use CC.
26323 # If no C compiler flags were specified, use CFLAGS.
26324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26326 # Allow CC to be a program name with arguments.
26330 # save warnings/boilerplate of simple test code
26331 ac_outfile=conftest.$ac_objext
26332 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26334 _lt_compiler_boilerplate=`cat conftest.err`
26337 ac_outfile=conftest.$ac_objext
26338 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26340 _lt_linker_boilerplate=`cat conftest.err`
26344 # Allow CC to be a program name with arguments.
26349 for cc_temp in $compiler""; do
26351 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26352 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26357 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26359 lt_cv_prog_compiler_c_o_RC=yes
26361 # The else clause should only fire when bootstrapping the
26362 # libtool distribution, otherwise you forgot to ship ltmain.sh
26363 # with your package, and you will get complaints that there are
26364 # no rules to generate ltmain.sh.
26365 if test -f "$ltmain"; then
26366 # See if we are running on zsh, and set the options which allow our commands through
26367 # without removal of \ escapes.
26368 if test -n "${ZSH_VERSION+set}" ; then
26369 setopt NO_GLOB_SUBST
26371 # Now quote all the things that may contain metacharacters while being
26372 # careful not to overquote the AC_SUBSTed values. We take copies of the
26373 # variables and quote the copies for generation of the libtool script.
26374 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26376 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26377 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26378 deplibs_check_method reload_flag reload_cmds need_locks \
26379 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26380 lt_cv_sys_global_symbol_to_c_name_address \
26381 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26382 old_postinstall_cmds old_postuninstall_cmds \
26386 lt_prog_compiler_wl_RC \
26387 lt_prog_compiler_pic_RC \
26388 lt_prog_compiler_static_RC \
26389 lt_prog_compiler_no_builtin_flag_RC \
26390 export_dynamic_flag_spec_RC \
26391 thread_safe_flag_spec_RC \
26392 whole_archive_flag_spec_RC \
26393 enable_shared_with_static_runtimes_RC \
26394 old_archive_cmds_RC \
26395 old_archive_from_new_cmds_RC \
26396 predep_objects_RC \
26397 postdep_objects_RC \
26400 compiler_lib_search_path_RC \
26402 archive_expsym_cmds_RC \
26403 postinstall_cmds_RC \
26404 postuninstall_cmds_RC \
26405 old_archive_from_expsyms_cmds_RC \
26406 allow_undefined_flag_RC \
26407 no_undefined_flag_RC \
26408 export_symbols_cmds_RC \
26409 hardcode_libdir_flag_spec_RC \
26410 hardcode_libdir_flag_spec_ld_RC \
26411 hardcode_libdir_separator_RC \
26412 hardcode_automatic_RC \
26414 module_expsym_cmds_RC \
26415 lt_cv_prog_compiler_c_o_RC \
26416 exclude_expsyms_RC \
26417 include_expsyms_RC; do
26420 old_archive_cmds_RC | \
26421 old_archive_from_new_cmds_RC | \
26422 archive_cmds_RC | \
26423 archive_expsym_cmds_RC | \
26425 module_expsym_cmds_RC | \
26426 old_archive_from_expsyms_cmds_RC | \
26427 export_symbols_cmds_RC | \
26428 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26429 postinstall_cmds | postuninstall_cmds | \
26430 old_postinstall_cmds | old_postuninstall_cmds | \
26431 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26432 # Double-quote double-evaled strings.
26433 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26436 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26442 *'\$0 --fallback-echo"')
26443 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26449 cat <<__EOF__ >> "$cfgfile"
26450 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26452 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26454 # Shell to use when invoking shell scripts.
26457 # Whether or not to build shared libraries.
26458 build_libtool_libs=$enable_shared
26460 # Whether or not to build static libraries.
26461 build_old_libs=$enable_static
26463 # Whether or not to add -lc for building shared libraries.
26464 build_libtool_need_lc=$archive_cmds_need_lc_RC
26466 # Whether or not to disallow shared libs when runtime libs are static
26467 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26469 # Whether or not to optimize for fast installation.
26470 fast_install=$enable_fast_install
26473 host_alias=$host_alias
26477 # The build system.
26478 build_alias=$build_alias
26482 # An echo program that does not interpret backslashes.
26487 AR_FLAGS=$lt_AR_FLAGS
26492 # LTCC compiler flags.
26493 LTCFLAGS=$lt_LTCFLAGS
26495 # A language-specific compiler.
26498 # Is the compiler the GNU C compiler?
26504 # The linker used to build libraries.
26507 # Whether we need hard or soft links.
26510 # A BSD-compatible nm program.
26513 # A symbol stripping program
26516 # Used to examine libraries when file_magic_cmd begins "file"
26517 MAGIC_CMD=$MAGIC_CMD
26519 # Used on cygwin: DLL creation program.
26522 # Used on cygwin: object dumper.
26525 # Used on cygwin: assembler.
26528 # The name of the directory that contains temporary libtool files.
26531 # How to create reloadable object files.
26532 reload_flag=$lt_reload_flag
26533 reload_cmds=$lt_reload_cmds
26535 # How to pass a linker flag through the compiler.
26536 wl=$lt_lt_prog_compiler_wl_RC
26538 # Object file suffix (normally "o").
26539 objext="$ac_objext"
26541 # Old archive suffix (normally "a").
26544 # Shared library suffix (normally ".so").
26545 shrext_cmds='$shrext_cmds'
26547 # Executable file suffix (normally "").
26550 # Additional compiler flags for building library objects.
26551 pic_flag=$lt_lt_prog_compiler_pic_RC
26554 # What is the maximum length of a command?
26555 max_cmd_len=$lt_cv_sys_max_cmd_len
26557 # Does compiler simultaneously support -c and -o options?
26558 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26560 # Must we lock files when doing compilation?
26561 need_locks=$lt_need_locks
26563 # Do we need the lib prefix for modules?
26564 need_lib_prefix=$need_lib_prefix
26566 # Do we need a version for libraries?
26567 need_version=$need_version
26569 # Whether dlopen is supported.
26570 dlopen_support=$enable_dlopen
26572 # Whether dlopen of programs is supported.
26573 dlopen_self=$enable_dlopen_self
26575 # Whether dlopen of statically linked programs is supported.
26576 dlopen_self_static=$enable_dlopen_self_static
26578 # Compiler flag to prevent dynamic linking.
26579 link_static_flag=$lt_lt_prog_compiler_static_RC
26581 # Compiler flag to turn off builtin functions.
26582 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26584 # Compiler flag to allow reflexive dlopens.
26585 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26587 # Compiler flag to generate shared objects directly from archives.
26588 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26590 # Compiler flag to generate thread-safe objects.
26591 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26593 # Library versioning type.
26594 version_type=$version_type
26596 # Format of library name prefix.
26597 libname_spec=$lt_libname_spec
26599 # List of archive names. First name is the real one, the rest are links.
26600 # The last name is the one that the linker finds with -lNAME.
26601 library_names_spec=$lt_library_names_spec
26603 # The coded name of the library, if different from the real name.
26604 soname_spec=$lt_soname_spec
26606 # Commands used to build and install an old-style archive.
26608 old_archive_cmds=$lt_old_archive_cmds_RC
26609 old_postinstall_cmds=$lt_old_postinstall_cmds
26610 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26612 # Create an old-style archive from a shared archive.
26613 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26615 # Create a temporary old-style archive to link instead of a shared archive.
26616 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26618 # Commands used to build and install a shared archive.
26619 archive_cmds=$lt_archive_cmds_RC
26620 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26621 postinstall_cmds=$lt_postinstall_cmds
26622 postuninstall_cmds=$lt_postuninstall_cmds
26624 # Commands used to build a loadable module (assumed same as above if empty)
26625 module_cmds=$lt_module_cmds_RC
26626 module_expsym_cmds=$lt_module_expsym_cmds_RC
26628 # Commands to strip libraries.
26629 old_striplib=$lt_old_striplib
26630 striplib=$lt_striplib
26632 # Dependencies to place before the objects being linked to create a
26634 predep_objects=$lt_predep_objects_RC
26636 # Dependencies to place after the objects being linked to create a
26638 postdep_objects=$lt_postdep_objects_RC
26640 # Dependencies to place before the objects being linked to create a
26642 predeps=$lt_predeps_RC
26644 # Dependencies to place after the objects being linked to create a
26646 postdeps=$lt_postdeps_RC
26648 # The library search path used internally by the compiler when linking
26649 # a shared library.
26650 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26652 # Method to check whether dependent libraries are shared objects.
26653 deplibs_check_method=$lt_deplibs_check_method
26655 # Command to use when deplibs_check_method == file_magic.
26656 file_magic_cmd=$lt_file_magic_cmd
26658 # Flag that allows shared libraries with undefined symbols to be built.
26659 allow_undefined_flag=$lt_allow_undefined_flag_RC
26661 # Flag that forces no undefined symbols.
26662 no_undefined_flag=$lt_no_undefined_flag_RC
26664 # Commands used to finish a libtool library installation in a directory.
26665 finish_cmds=$lt_finish_cmds
26667 # Same as above, but a single script fragment to be evaled but not shown.
26668 finish_eval=$lt_finish_eval
26670 # Take the output of nm and produce a listing of raw symbols and C names.
26671 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26673 # Transform the output of nm in a proper C declaration
26674 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26676 # Transform the output of nm in a C name address pair
26677 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26679 # This is the shared library runtime path variable.
26680 runpath_var=$runpath_var
26682 # This is the shared library path variable.
26683 shlibpath_var=$shlibpath_var
26685 # Is shlibpath searched before the hard-coded library search path?
26686 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26688 # How to hardcode a shared library path into an executable.
26689 hardcode_action=$hardcode_action_RC
26691 # Whether we should hardcode library paths into libraries.
26692 hardcode_into_libs=$hardcode_into_libs
26694 # Flag to hardcode \$libdir into a binary during linking.
26695 # This must work even if \$libdir does not exist.
26696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26698 # If ld is used when linking, flag to hardcode \$libdir into
26699 # a binary during linking. This must work even if \$libdir does
26701 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26703 # Whether we need a single -rpath flag with a separated argument.
26704 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26706 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26707 # resulting binary.
26708 hardcode_direct=$hardcode_direct_RC
26710 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26711 # resulting binary.
26712 hardcode_minus_L=$hardcode_minus_L_RC
26714 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26715 # the resulting binary.
26716 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26718 # Set to yes if building a shared library automatically hardcodes DIR into the library
26719 # and all subsequent libraries and executables linked against it.
26720 hardcode_automatic=$hardcode_automatic_RC
26722 # Variables whose values should be saved in libtool wrapper scripts and
26723 # restored at relink time.
26724 variables_saved_for_relink="$variables_saved_for_relink"
26726 # Whether libtool must link a program against all its dependency libraries.
26727 link_all_deplibs=$link_all_deplibs_RC
26729 # Compile-time system search path for libraries
26730 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26732 # Run-time system search path for libraries
26733 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26735 # Fix the shell variable \$srcfile for the compiler.
26736 fix_srcfile_path="$fix_srcfile_path_RC"
26738 # Set to yes if exported symbols are required.
26739 always_export_symbols=$always_export_symbols_RC
26741 # The commands to list exported symbols.
26742 export_symbols_cmds=$lt_export_symbols_cmds_RC
26744 # The commands to extract the exported symbol list from a shared archive.
26745 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26747 # Symbols that should not be listed in the preloaded symbols.
26748 exclude_expsyms=$lt_exclude_expsyms_RC
26750 # Symbols that must always be exported.
26751 include_expsyms=$lt_include_expsyms_RC
26753 # ### END LIBTOOL TAG CONFIG: $tagname
26759 # If there is no Makefile yet, we rely on a make rule to execute
26760 # `config.status --recheck' to rerun these tests and create the
26761 # libtool script then.
26762 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26763 if test -f "$ltmain_in"; then
26764 test -f Makefile && make "$ltmain"
26770 ac_cpp='$CPP $CPPFLAGS'
26771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26780 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26781 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26782 { (exit 1); exit 1; }; }
26786 # Append the new tag name to the list of available tags.
26787 if test -n "$tagname" ; then
26788 available_tags="$available_tags $tagname"
26794 # Now substitute the updated list of available tags.
26795 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26796 mv "${ofile}T" "$ofile"
26800 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26801 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26802 { (exit 1); exit 1; }; }
26808 # This can be used to rebuild libtool when needed
26809 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26811 # Always use our own libtool.
26812 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26814 # Prevent multiple expansion
26836 if test "$lt_cv_dlopen_self" = "yes" ; then
26838 cat >>confdefs.h <<\_ACEOF
26839 #define CAN_DLOPEN_SELF 1
26845 if test "$WITH_LLVMGCCDIR" = "default" ; then
26846 LLVMGCC="llvm-gcc${EXEEXT}"
26847 LLVMGXX="llvm-g++${EXEEXT}"
26848 LLVMGCCCOMMAND="$LLVMGCC"
26849 LLVMGXXCOMMAND="$LLVMGXX"
26850 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26852 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26854 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26855 set dummy $LLVMGCC; ac_word=$2
26856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26858 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26859 echo $ECHO_N "(cached) $ECHO_C" >&6
26863 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26867 for as_dir in $PATH
26870 test -z "$as_dir" && as_dir=.
26871 for ac_exec_ext in '' $ac_executable_extensions; do
26872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26873 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26884 LLVMGCC=$ac_cv_path_LLVMGCC
26885 if test -n "$LLVMGCC"; then
26886 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26887 echo "${ECHO_T}$LLVMGCC" >&6; }
26889 { echo "$as_me:$LINENO: result: no" >&5
26890 echo "${ECHO_T}no" >&6; }
26894 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26895 set dummy $LLVMGXX; ac_word=$2
26896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26898 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26899 echo $ECHO_N "(cached) $ECHO_C" >&6
26903 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26907 for as_dir in $PATH
26910 test -z "$as_dir" && as_dir=.
26911 for ac_exec_ext in '' $ac_executable_extensions; do
26912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26913 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26924 LLVMGXX=$ac_cv_path_LLVMGXX
26925 if test -n "$LLVMGXX"; then
26926 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26927 echo "${ECHO_T}$LLVMGXX" >&6; }
26929 { echo "$as_me:$LINENO: result: no" >&5
26930 echo "${ECHO_T}no" >&6; }
26935 if test -z "$LLVMGCC"; then
26936 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26937 LLVMGCCCOMMAND="$LLVMGCC"
26939 if test -z "$LLVMGXX"; then
26940 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26941 LLVMGXXCOMMAND="$LLVMGXX"
26948 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26950 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26955 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26956 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26969 if test "$GCC" != "yes" && test "$ICC" != "yes"
26971 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26972 echo "$as_me: error: gcc|icc required but not found" >&2;}
26973 { (exit 1); exit 1; }; }
26976 if test "$GXX" != "yes" && test "$IXX" != "yes"
26978 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26979 echo "$as_me: error: g++|icc required but not found" >&2;}
26980 { (exit 1); exit 1; }; }
26983 if test "$GCC" = "yes"
26985 cat >conftest.$ac_ext <<_ACEOF
26986 #if !defined(__GNUC__) || __GNUC__ < 3
26987 #error Unsupported GCC version
26991 rm -f conftest.$ac_objext
26992 if { (ac_try="$ac_compile"
26993 case "(($ac_try" in
26994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26995 *) ac_try_echo=$ac_try;;
26997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26998 (eval "$ac_compile") 2>conftest.er1
27000 grep -v '^ *+' conftest.er1 >conftest.err
27002 cat conftest.err >&5
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); } &&
27005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27006 { (case "(($ac_try" in
27007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27008 *) ac_try_echo=$ac_try;;
27010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27011 (eval "$ac_try") 2>&5
27013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); }; } &&
27015 { ac_try='test -s conftest.$ac_objext'
27016 { (case "(($ac_try" in
27017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018 *) ac_try_echo=$ac_try;;
27020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27021 (eval "$ac_try") 2>&5
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); }; }; then
27027 echo "$as_me: failed program was:" >&5
27028 sed 's/^/| /' conftest.$ac_ext >&5
27030 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27031 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27032 { (exit 1); exit 1; }; }
27035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27038 if test -z "$llvm_cv_gnu_make_command"
27040 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27041 echo "$as_me: error: GNU Make required but not found" >&2;}
27042 { (exit 1); exit 1; }; }
27045 { echo "$as_me:$LINENO: result: ok" >&5
27046 echo "${ECHO_T}ok" >&6; }
27050 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27051 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27052 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27053 echo $ECHO_N "(cached) $ECHO_C" >&6
27055 ac_check_lib_save_LIBS=$LIBS
27057 cat >conftest.$ac_ext <<_ACEOF
27060 cat confdefs.h >>conftest.$ac_ext
27061 cat >>conftest.$ac_ext <<_ACEOF
27062 /* end confdefs.h. */
27064 /* Override any GCC internal prototype to avoid an error.
27065 Use char because int might match the return type of a GCC
27066 builtin and then its argument prototype would still apply. */
27074 return elf_begin ();
27079 rm -f conftest.$ac_objext conftest$ac_exeext
27080 if { (ac_try="$ac_link"
27081 case "(($ac_try" in
27082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27083 *) ac_try_echo=$ac_try;;
27085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27086 (eval "$ac_link") 2>conftest.er1
27088 grep -v '^ *+' conftest.er1 >conftest.err
27090 cat conftest.err >&5
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); } &&
27093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27094 { (case "(($ac_try" in
27095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27096 *) ac_try_echo=$ac_try;;
27098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27099 (eval "$ac_try") 2>&5
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); }; } &&
27103 { ac_try='test -s conftest$ac_exeext'
27104 { (case "(($ac_try" in
27105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106 *) ac_try_echo=$ac_try;;
27108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27109 (eval "$ac_try") 2>&5
27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); }; }; then
27113 ac_cv_lib_elf_elf_begin=yes
27115 echo "$as_me: failed program was:" >&5
27116 sed 's/^/| /' conftest.$ac_ext >&5
27118 ac_cv_lib_elf_elf_begin=no
27121 rm -f core conftest.err conftest.$ac_objext \
27122 conftest$ac_exeext conftest.$ac_ext
27123 LIBS=$ac_check_lib_save_LIBS
27125 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27126 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27127 if test $ac_cv_lib_elf_elf_begin = yes; then
27128 cat >>confdefs.h <<_ACEOF
27129 #define HAVE_LIBELF 1
27137 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27138 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27139 if test "${ac_cv_lib_m_sin+set}" = set; then
27140 echo $ECHO_N "(cached) $ECHO_C" >&6
27142 ac_check_lib_save_LIBS=$LIBS
27144 cat >conftest.$ac_ext <<_ACEOF
27147 cat confdefs.h >>conftest.$ac_ext
27148 cat >>conftest.$ac_ext <<_ACEOF
27149 /* end confdefs.h. */
27151 /* Override any GCC internal prototype to avoid an error.
27152 Use char because int might match the return type of a GCC
27153 builtin and then its argument prototype would still apply. */
27166 rm -f conftest.$ac_objext conftest$ac_exeext
27167 if { (ac_try="$ac_link"
27168 case "(($ac_try" in
27169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27170 *) ac_try_echo=$ac_try;;
27172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27173 (eval "$ac_link") 2>conftest.er1
27175 grep -v '^ *+' conftest.er1 >conftest.err
27177 cat conftest.err >&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } &&
27180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27181 { (case "(($ac_try" in
27182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183 *) ac_try_echo=$ac_try;;
27185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186 (eval "$ac_try") 2>&5
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; } &&
27190 { ac_try='test -s conftest$ac_exeext'
27191 { (case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196 (eval "$ac_try") 2>&5
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); }; }; then
27200 ac_cv_lib_m_sin=yes
27202 echo "$as_me: failed program was:" >&5
27203 sed 's/^/| /' conftest.$ac_ext >&5
27208 rm -f core conftest.err conftest.$ac_objext \
27209 conftest$ac_exeext conftest.$ac_ext
27210 LIBS=$ac_check_lib_save_LIBS
27212 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27213 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27214 if test $ac_cv_lib_m_sin = yes; then
27215 cat >>confdefs.h <<_ACEOF
27216 #define HAVE_LIBM 1
27223 if test "$llvm_cv_os_type" = "MingW" ; then
27225 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27226 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27227 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27228 echo $ECHO_N "(cached) $ECHO_C" >&6
27230 ac_check_lib_save_LIBS=$LIBS
27231 LIBS="-limagehlp $LIBS"
27232 cat >conftest.$ac_ext <<_ACEOF
27235 cat confdefs.h >>conftest.$ac_ext
27236 cat >>conftest.$ac_ext <<_ACEOF
27237 /* end confdefs.h. */
27248 rm -f conftest.$ac_objext conftest$ac_exeext
27249 if { (ac_try="$ac_link"
27250 case "(($ac_try" in
27251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27252 *) ac_try_echo=$ac_try;;
27254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27255 (eval "$ac_link") 2>conftest.er1
27257 grep -v '^ *+' conftest.er1 >conftest.err
27259 cat conftest.err >&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); } &&
27262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27263 { (case "(($ac_try" in
27264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27265 *) ac_try_echo=$ac_try;;
27267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27268 (eval "$ac_try") 2>&5
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); }; } &&
27272 { ac_try='test -s conftest$ac_exeext'
27273 { (case "(($ac_try" in
27274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27275 *) ac_try_echo=$ac_try;;
27277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27278 (eval "$ac_try") 2>&5
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); }; }; then
27282 ac_cv_lib_imagehlp_main=yes
27284 echo "$as_me: failed program was:" >&5
27285 sed 's/^/| /' conftest.$ac_ext >&5
27287 ac_cv_lib_imagehlp_main=no
27290 rm -f core conftest.err conftest.$ac_objext \
27291 conftest$ac_exeext conftest.$ac_ext
27292 LIBS=$ac_check_lib_save_LIBS
27294 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27295 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27296 if test $ac_cv_lib_imagehlp_main = yes; then
27297 cat >>confdefs.h <<_ACEOF
27298 #define HAVE_LIBIMAGEHLP 1
27301 LIBS="-limagehlp $LIBS"
27306 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27307 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27308 if test "${ac_cv_lib_psapi_main+set}" = set; then
27309 echo $ECHO_N "(cached) $ECHO_C" >&6
27311 ac_check_lib_save_LIBS=$LIBS
27312 LIBS="-lpsapi $LIBS"
27313 cat >conftest.$ac_ext <<_ACEOF
27316 cat confdefs.h >>conftest.$ac_ext
27317 cat >>conftest.$ac_ext <<_ACEOF
27318 /* end confdefs.h. */
27329 rm -f conftest.$ac_objext conftest$ac_exeext
27330 if { (ac_try="$ac_link"
27331 case "(($ac_try" in
27332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27333 *) ac_try_echo=$ac_try;;
27335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27336 (eval "$ac_link") 2>conftest.er1
27338 grep -v '^ *+' conftest.er1 >conftest.err
27340 cat conftest.err >&5
27341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342 (exit $ac_status); } &&
27343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27344 { (case "(($ac_try" in
27345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346 *) ac_try_echo=$ac_try;;
27348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349 (eval "$ac_try") 2>&5
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); }; } &&
27353 { ac_try='test -s conftest$ac_exeext'
27354 { (case "(($ac_try" in
27355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27356 *) ac_try_echo=$ac_try;;
27358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27359 (eval "$ac_try") 2>&5
27361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); }; }; then
27363 ac_cv_lib_psapi_main=yes
27365 echo "$as_me: failed program was:" >&5
27366 sed 's/^/| /' conftest.$ac_ext >&5
27368 ac_cv_lib_psapi_main=no
27371 rm -f core conftest.err conftest.$ac_objext \
27372 conftest$ac_exeext conftest.$ac_ext
27373 LIBS=$ac_check_lib_save_LIBS
27375 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27376 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27377 if test $ac_cv_lib_psapi_main = yes; then
27378 cat >>confdefs.h <<_ACEOF
27379 #define HAVE_LIBPSAPI 1
27382 LIBS="-lpsapi $LIBS"
27388 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27389 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27390 if test "${ac_cv_search_dlopen+set}" = set; then
27391 echo $ECHO_N "(cached) $ECHO_C" >&6
27393 ac_func_search_save_LIBS=$LIBS
27394 cat >conftest.$ac_ext <<_ACEOF
27397 cat confdefs.h >>conftest.$ac_ext
27398 cat >>conftest.$ac_ext <<_ACEOF
27399 /* end confdefs.h. */
27401 /* Override any GCC internal prototype to avoid an error.
27402 Use char because int might match the return type of a GCC
27403 builtin and then its argument prototype would still apply. */
27416 for ac_lib in '' dl; do
27417 if test -z "$ac_lib"; then
27418 ac_res="none required"
27421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27423 rm -f conftest.$ac_objext conftest$ac_exeext
27424 if { (ac_try="$ac_link"
27425 case "(($ac_try" in
27426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27427 *) ac_try_echo=$ac_try;;
27429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27430 (eval "$ac_link") 2>conftest.er1
27432 grep -v '^ *+' conftest.er1 >conftest.err
27434 cat conftest.err >&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); } &&
27437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27438 { (case "(($ac_try" in
27439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27440 *) ac_try_echo=$ac_try;;
27442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27443 (eval "$ac_try") 2>&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); }; } &&
27447 { ac_try='test -s conftest$ac_exeext'
27448 { (case "(($ac_try" in
27449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450 *) ac_try_echo=$ac_try;;
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453 (eval "$ac_try") 2>&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; }; then
27457 ac_cv_search_dlopen=$ac_res
27459 echo "$as_me: failed program was:" >&5
27460 sed 's/^/| /' conftest.$ac_ext >&5
27465 rm -f core conftest.err conftest.$ac_objext \
27467 if test "${ac_cv_search_dlopen+set}" = set; then
27471 if test "${ac_cv_search_dlopen+set}" = set; then
27474 ac_cv_search_dlopen=no
27476 rm conftest.$ac_ext
27477 LIBS=$ac_func_search_save_LIBS
27479 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27480 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27481 ac_res=$ac_cv_search_dlopen
27482 if test "$ac_res" != no; then
27483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27485 cat >>confdefs.h <<\_ACEOF
27486 #define HAVE_DLOPEN 1
27490 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27491 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27495 if test "$llvm_cv_enable_libffi" = "yes" ; then
27496 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27497 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27498 if test "${ac_cv_search_ffi_call+set}" = set; then
27499 echo $ECHO_N "(cached) $ECHO_C" >&6
27501 ac_func_search_save_LIBS=$LIBS
27502 cat >conftest.$ac_ext <<_ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h. */
27509 /* Override any GCC internal prototype to avoid an error.
27510 Use char because int might match the return type of a GCC
27511 builtin and then its argument prototype would still apply. */
27519 return ffi_call ();
27524 for ac_lib in '' ffi; do
27525 if test -z "$ac_lib"; then
27526 ac_res="none required"
27529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27531 rm -f conftest.$ac_objext conftest$ac_exeext
27532 if { (ac_try="$ac_link"
27533 case "(($ac_try" in
27534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27535 *) ac_try_echo=$ac_try;;
27537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27538 (eval "$ac_link") 2>conftest.er1
27540 grep -v '^ *+' conftest.er1 >conftest.err
27542 cat conftest.err >&5
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); } &&
27545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27546 { (case "(($ac_try" in
27547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27548 *) ac_try_echo=$ac_try;;
27550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27551 (eval "$ac_try") 2>&5
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); }; } &&
27555 { ac_try='test -s conftest$ac_exeext'
27556 { (case "(($ac_try" in
27557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27558 *) ac_try_echo=$ac_try;;
27560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27561 (eval "$ac_try") 2>&5
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); }; }; then
27565 ac_cv_search_ffi_call=$ac_res
27567 echo "$as_me: failed program was:" >&5
27568 sed 's/^/| /' conftest.$ac_ext >&5
27573 rm -f core conftest.err conftest.$ac_objext \
27575 if test "${ac_cv_search_ffi_call+set}" = set; then
27579 if test "${ac_cv_search_ffi_call+set}" = set; then
27582 ac_cv_search_ffi_call=no
27584 rm conftest.$ac_ext
27585 LIBS=$ac_func_search_save_LIBS
27587 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27588 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27589 ac_res=$ac_cv_search_ffi_call
27590 if test "$ac_res" != no; then
27591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27593 cat >>confdefs.h <<\_ACEOF
27594 #define HAVE_FFI_CALL 1
27598 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27599 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
27899 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27900 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27901 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27902 echo $ECHO_N "(cached) $ECHO_C" >&6
27904 ac_func_search_save_LIBS=$LIBS
27905 cat >conftest.$ac_ext <<_ACEOF
27908 cat confdefs.h >>conftest.$ac_ext
27909 cat >>conftest.$ac_ext <<_ACEOF
27910 /* end confdefs.h. */
27912 /* Override any GCC internal prototype to avoid an error.
27913 Use char because int might match the return type of a GCC
27914 builtin and then its argument prototype would still apply. */
27918 char pthread_rwlock_init ();
27922 return pthread_rwlock_init ();
27927 for ac_lib in '' pthread; do
27928 if test -z "$ac_lib"; then
27929 ac_res="none required"
27932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27934 rm -f conftest.$ac_objext conftest$ac_exeext
27935 if { (ac_try="$ac_link"
27936 case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_link") 2>conftest.er1
27943 grep -v '^ *+' conftest.er1 >conftest.err
27945 cat conftest.err >&5
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); } &&
27948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27949 { (case "(($ac_try" in
27950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951 *) ac_try_echo=$ac_try;;
27953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27954 (eval "$ac_try") 2>&5
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; } &&
27958 { ac_try='test -s conftest$ac_exeext'
27959 { (case "(($ac_try" in
27960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961 *) ac_try_echo=$ac_try;;
27963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964 (eval "$ac_try") 2>&5
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; }; then
27968 ac_cv_search_pthread_rwlock_init=$ac_res
27970 echo "$as_me: failed program was:" >&5
27971 sed 's/^/| /' conftest.$ac_ext >&5
27976 rm -f core conftest.err conftest.$ac_objext \
27978 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27982 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27985 ac_cv_search_pthread_rwlock_init=no
27987 rm conftest.$ac_ext
27988 LIBS=$ac_func_search_save_LIBS
27990 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
27991 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
27992 ac_res=$ac_cv_search_pthread_rwlock_init
27993 if test "$ac_res" != no; then
27994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27996 cat >>confdefs.h <<\_ACEOF
27997 #define HAVE_PTHREAD_RWLOCK_INIT 1
28005 # Check whether --with-udis86 was given.
28006 if test "${with_udis86+set}" = set; then
28007 withval=$with_udis86;
28012 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28015 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28016 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28017 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28018 echo $ECHO_N "(cached) $ECHO_C" >&6
28020 ac_check_lib_save_LIBS=$LIBS
28021 LIBS="-ludis86 $LIBS"
28022 cat >conftest.$ac_ext <<_ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h. */
28029 /* Override any GCC internal prototype to avoid an error.
28030 Use char because int might match the return type of a GCC
28031 builtin and then its argument prototype would still apply. */
28044 rm -f conftest.$ac_objext conftest$ac_exeext
28045 if { (ac_try="$ac_link"
28046 case "(($ac_try" in
28047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048 *) ac_try_echo=$ac_try;;
28050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051 (eval "$ac_link") 2>conftest.er1
28053 grep -v '^ *+' conftest.er1 >conftest.err
28055 cat conftest.err >&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); } &&
28058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28059 { (case "(($ac_try" in
28060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061 *) ac_try_echo=$ac_try;;
28063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064 (eval "$ac_try") 2>&5
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); }; } &&
28068 { ac_try='test -s conftest$ac_exeext'
28069 { (case "(($ac_try" in
28070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28071 *) ac_try_echo=$ac_try;;
28073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28074 (eval "$ac_try") 2>&5
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); }; }; then
28078 ac_cv_lib_udis86_ud_init=yes
28080 echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28083 ac_cv_lib_udis86_ud_init=no
28086 rm -f core conftest.err conftest.$ac_objext \
28087 conftest$ac_exeext conftest.$ac_ext
28088 LIBS=$ac_check_lib_save_LIBS
28090 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28091 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28092 if test $ac_cv_lib_udis86_ud_init = yes; then
28093 cat >>confdefs.h <<_ACEOF
28094 #define HAVE_LIBUDIS86 1
28097 LIBS="-ludis86 $LIBS"
28101 echo "Error! You need to have libudis86 around."
28113 cat >>confdefs.h <<_ACEOF
28114 #define USE_UDIS86 $USE_UDIS86
28124 ac_header_dirent=no
28125 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28126 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28127 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28128 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28130 echo $ECHO_N "(cached) $ECHO_C" >&6
28132 cat >conftest.$ac_ext <<_ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h. */
28138 #include <sys/types.h>
28150 rm -f conftest.$ac_objext
28151 if { (ac_try="$ac_compile"
28152 case "(($ac_try" in
28153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28154 *) ac_try_echo=$ac_try;;
28156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28157 (eval "$ac_compile") 2>conftest.er1
28159 grep -v '^ *+' conftest.er1 >conftest.err
28161 cat conftest.err >&5
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); } &&
28164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28174 { ac_try='test -s conftest.$ac_objext'
28175 { (case "(($ac_try" in
28176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28177 *) ac_try_echo=$ac_try;;
28179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28180 (eval "$ac_try") 2>&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; }; then
28184 eval "$as_ac_Header=yes"
28186 echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28189 eval "$as_ac_Header=no"
28192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28194 ac_res=`eval echo '${'$as_ac_Header'}'`
28195 { echo "$as_me:$LINENO: result: $ac_res" >&5
28196 echo "${ECHO_T}$ac_res" >&6; }
28197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28198 cat >>confdefs.h <<_ACEOF
28199 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28202 ac_header_dirent=$ac_hdr; break
28206 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28207 if test $ac_header_dirent = dirent.h; then
28208 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28209 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28210 if test "${ac_cv_search_opendir+set}" = set; then
28211 echo $ECHO_N "(cached) $ECHO_C" >&6
28213 ac_func_search_save_LIBS=$LIBS
28214 cat >conftest.$ac_ext <<_ACEOF
28217 cat confdefs.h >>conftest.$ac_ext
28218 cat >>conftest.$ac_ext <<_ACEOF
28219 /* end confdefs.h. */
28221 /* Override any GCC internal prototype to avoid an error.
28222 Use char because int might match the return type of a GCC
28223 builtin and then its argument prototype would still apply. */
28236 for ac_lib in '' dir; do
28237 if test -z "$ac_lib"; then
28238 ac_res="none required"
28241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28243 rm -f conftest.$ac_objext conftest$ac_exeext
28244 if { (ac_try="$ac_link"
28245 case "(($ac_try" in
28246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28247 *) ac_try_echo=$ac_try;;
28249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28250 (eval "$ac_link") 2>conftest.er1
28252 grep -v '^ *+' conftest.er1 >conftest.err
28254 cat conftest.err >&5
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); } &&
28257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28258 { (case "(($ac_try" in
28259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260 *) ac_try_echo=$ac_try;;
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263 (eval "$ac_try") 2>&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; } &&
28267 { ac_try='test -s conftest$ac_exeext'
28268 { (case "(($ac_try" in
28269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28270 *) ac_try_echo=$ac_try;;
28272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28273 (eval "$ac_try") 2>&5
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); }; }; then
28277 ac_cv_search_opendir=$ac_res
28279 echo "$as_me: failed program was:" >&5
28280 sed 's/^/| /' conftest.$ac_ext >&5
28285 rm -f core conftest.err conftest.$ac_objext \
28287 if test "${ac_cv_search_opendir+set}" = set; then
28291 if test "${ac_cv_search_opendir+set}" = set; then
28294 ac_cv_search_opendir=no
28296 rm conftest.$ac_ext
28297 LIBS=$ac_func_search_save_LIBS
28299 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28300 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28301 ac_res=$ac_cv_search_opendir
28302 if test "$ac_res" != no; then
28303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28308 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28309 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28310 if test "${ac_cv_search_opendir+set}" = set; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28313 ac_func_search_save_LIBS=$LIBS
28314 cat >conftest.$ac_ext <<_ACEOF
28317 cat confdefs.h >>conftest.$ac_ext
28318 cat >>conftest.$ac_ext <<_ACEOF
28319 /* end confdefs.h. */
28321 /* Override any GCC internal prototype to avoid an error.
28322 Use char because int might match the return type of a GCC
28323 builtin and then its argument prototype would still apply. */
28336 for ac_lib in '' x; do
28337 if test -z "$ac_lib"; then
28338 ac_res="none required"
28341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28343 rm -f conftest.$ac_objext conftest$ac_exeext
28344 if { (ac_try="$ac_link"
28345 case "(($ac_try" in
28346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347 *) ac_try_echo=$ac_try;;
28349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28350 (eval "$ac_link") 2>conftest.er1
28352 grep -v '^ *+' conftest.er1 >conftest.err
28354 cat conftest.err >&5
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); } &&
28357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28358 { (case "(($ac_try" in
28359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360 *) ac_try_echo=$ac_try;;
28362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28363 (eval "$ac_try") 2>&5
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); }; } &&
28367 { ac_try='test -s conftest$ac_exeext'
28368 { (case "(($ac_try" in
28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370 *) ac_try_echo=$ac_try;;
28372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373 (eval "$ac_try") 2>&5
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; }; then
28377 ac_cv_search_opendir=$ac_res
28379 echo "$as_me: failed program was:" >&5
28380 sed 's/^/| /' conftest.$ac_ext >&5
28385 rm -f core conftest.err conftest.$ac_objext \
28387 if test "${ac_cv_search_opendir+set}" = set; then
28391 if test "${ac_cv_search_opendir+set}" = set; then
28394 ac_cv_search_opendir=no
28396 rm conftest.$ac_ext
28397 LIBS=$ac_func_search_save_LIBS
28399 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28400 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28401 ac_res=$ac_cv_search_opendir
28402 if test "$ac_res" != no; then
28403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28409 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28410 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28411 if test "${ac_cv_header_mmap_anon+set}" = set; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28415 ac_cpp='$CPP $CPPFLAGS'
28416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28420 cat >conftest.$ac_ext <<_ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h. */
28426 #include <sys/mman.h>
28427 #include <unistd.h>
28432 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28437 rm -f conftest.$ac_objext
28438 if { (ac_try="$ac_compile"
28439 case "(($ac_try" in
28440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28441 *) ac_try_echo=$ac_try;;
28443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28444 (eval "$ac_compile") 2>conftest.er1
28446 grep -v '^ *+' conftest.er1 >conftest.err
28448 cat conftest.err >&5
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); } &&
28451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28452 { (case "(($ac_try" in
28453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28454 *) ac_try_echo=$ac_try;;
28456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28457 (eval "$ac_try") 2>&5
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; } &&
28461 { ac_try='test -s conftest.$ac_objext'
28462 { (case "(($ac_try" in
28463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464 *) ac_try_echo=$ac_try;;
28466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467 (eval "$ac_try") 2>&5
28469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470 (exit $ac_status); }; }; then
28471 ac_cv_header_mmap_anon=yes
28473 echo "$as_me: failed program was:" >&5
28474 sed 's/^/| /' conftest.$ac_ext >&5
28476 ac_cv_header_mmap_anon=no
28479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28481 ac_cpp='$CPP $CPPFLAGS'
28482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28488 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28489 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28490 if test "$ac_cv_header_mmap_anon" = yes; then
28492 cat >>confdefs.h <<\_ACEOF
28493 #define HAVE_MMAP_ANONYMOUS 1
28498 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28499 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28500 if test "${ac_cv_header_stat_broken+set}" = set; then
28501 echo $ECHO_N "(cached) $ECHO_C" >&6
28503 cat >conftest.$ac_ext <<_ACEOF
28506 cat confdefs.h >>conftest.$ac_ext
28507 cat >>conftest.$ac_ext <<_ACEOF
28508 /* end confdefs.h. */
28509 #include <sys/types.h>
28510 #include <sys/stat.h>
28512 #if defined S_ISBLK && defined S_IFDIR
28513 # if S_ISBLK (S_IFDIR)
28518 #if defined S_ISBLK && defined S_IFCHR
28519 # if S_ISBLK (S_IFCHR)
28524 #if defined S_ISLNK && defined S_IFREG
28525 # if S_ISLNK (S_IFREG)
28530 #if defined S_ISSOCK && defined S_IFREG
28531 # if S_ISSOCK (S_IFREG)
28537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28538 $EGREP "You lose" >/dev/null 2>&1; then
28539 ac_cv_header_stat_broken=yes
28541 ac_cv_header_stat_broken=no
28546 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28547 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28548 if test $ac_cv_header_stat_broken = yes; then
28550 cat >>confdefs.h <<\_ACEOF
28551 #define STAT_MACROS_BROKEN 1
28556 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28557 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28558 if test "${ac_cv_header_stdc+set}" = set; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28561 cat >conftest.$ac_ext <<_ACEOF
28564 cat confdefs.h >>conftest.$ac_ext
28565 cat >>conftest.$ac_ext <<_ACEOF
28566 /* end confdefs.h. */
28567 #include <stdlib.h>
28568 #include <stdarg.h>
28569 #include <string.h>
28580 rm -f conftest.$ac_objext
28581 if { (ac_try="$ac_compile"
28582 case "(($ac_try" in
28583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28584 *) ac_try_echo=$ac_try;;
28586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28587 (eval "$ac_compile") 2>conftest.er1
28589 grep -v '^ *+' conftest.er1 >conftest.err
28591 cat conftest.err >&5
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); } &&
28594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28595 { (case "(($ac_try" in
28596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28597 *) ac_try_echo=$ac_try;;
28599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28600 (eval "$ac_try") 2>&5
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); }; } &&
28604 { ac_try='test -s conftest.$ac_objext'
28605 { (case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_try") 2>&5
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; }; then
28614 ac_cv_header_stdc=yes
28616 echo "$as_me: failed program was:" >&5
28617 sed 's/^/| /' conftest.$ac_ext >&5
28619 ac_cv_header_stdc=no
28622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28624 if test $ac_cv_header_stdc = yes; then
28625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28626 cat >conftest.$ac_ext <<_ACEOF
28629 cat confdefs.h >>conftest.$ac_ext
28630 cat >>conftest.$ac_ext <<_ACEOF
28631 /* end confdefs.h. */
28632 #include <string.h>
28635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28636 $EGREP "memchr" >/dev/null 2>&1; then
28639 ac_cv_header_stdc=no
28645 if test $ac_cv_header_stdc = yes; then
28646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28647 cat >conftest.$ac_ext <<_ACEOF
28650 cat confdefs.h >>conftest.$ac_ext
28651 cat >>conftest.$ac_ext <<_ACEOF
28652 /* end confdefs.h. */
28653 #include <stdlib.h>
28656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28657 $EGREP "free" >/dev/null 2>&1; then
28660 ac_cv_header_stdc=no
28666 if test $ac_cv_header_stdc = yes; then
28667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28668 if test "$cross_compiling" = yes; then
28671 cat >conftest.$ac_ext <<_ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h. */
28678 #include <stdlib.h>
28679 #if ((' ' & 0x0FF) == 0x020)
28680 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28681 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28683 # define ISLOWER(c) \
28684 (('a' <= (c) && (c) <= 'i') \
28685 || ('j' <= (c) && (c) <= 'r') \
28686 || ('s' <= (c) && (c) <= 'z'))
28687 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28690 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28695 for (i = 0; i < 256; i++)
28696 if (XOR (islower (i), ISLOWER (i))
28697 || toupper (i) != TOUPPER (i))
28702 rm -f conftest$ac_exeext
28703 if { (ac_try="$ac_link"
28704 case "(($ac_try" in
28705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28706 *) ac_try_echo=$ac_try;;
28708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28709 (eval "$ac_link") 2>&5
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28713 { (case "(($ac_try" in
28714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715 *) ac_try_echo=$ac_try;;
28717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28718 (eval "$ac_try") 2>&5
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; }; then
28724 echo "$as_me: program exited with status $ac_status" >&5
28725 echo "$as_me: failed program was:" >&5
28726 sed 's/^/| /' conftest.$ac_ext >&5
28728 ( exit $ac_status )
28729 ac_cv_header_stdc=no
28731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28737 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28738 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28739 if test $ac_cv_header_stdc = yes; then
28741 cat >>confdefs.h <<\_ACEOF
28742 #define STDC_HEADERS 1
28747 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28748 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28749 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28750 echo $ECHO_N "(cached) $ECHO_C" >&6
28752 cat >conftest.$ac_ext <<_ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h. */
28758 #include <sys/types.h>
28759 #include <sys/wait.h>
28760 #ifndef WEXITSTATUS
28761 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28764 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28772 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28777 rm -f conftest.$ac_objext
28778 if { (ac_try="$ac_compile"
28779 case "(($ac_try" in
28780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781 *) ac_try_echo=$ac_try;;
28783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784 (eval "$ac_compile") 2>conftest.er1
28786 grep -v '^ *+' conftest.er1 >conftest.err
28788 cat conftest.err >&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } &&
28791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28792 { (case "(($ac_try" in
28793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794 *) ac_try_echo=$ac_try;;
28796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797 (eval "$ac_try") 2>&5
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; } &&
28801 { ac_try='test -s conftest.$ac_objext'
28802 { (case "(($ac_try" in
28803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28804 *) ac_try_echo=$ac_try;;
28806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28807 (eval "$ac_try") 2>&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); }; }; then
28811 ac_cv_header_sys_wait_h=yes
28813 echo "$as_me: failed program was:" >&5
28814 sed 's/^/| /' conftest.$ac_ext >&5
28816 ac_cv_header_sys_wait_h=no
28819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28821 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28822 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28823 if test $ac_cv_header_sys_wait_h = yes; then
28825 cat >>confdefs.h <<\_ACEOF
28826 #define HAVE_SYS_WAIT_H 1
28831 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28832 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28833 if test "${ac_cv_header_time+set}" = set; then
28834 echo $ECHO_N "(cached) $ECHO_C" >&6
28836 cat >conftest.$ac_ext <<_ACEOF
28839 cat confdefs.h >>conftest.$ac_ext
28840 cat >>conftest.$ac_ext <<_ACEOF
28841 /* end confdefs.h. */
28842 #include <sys/types.h>
28843 #include <sys/time.h>
28849 if ((struct tm *) 0)
28855 rm -f conftest.$ac_objext
28856 if { (ac_try="$ac_compile"
28857 case "(($ac_try" in
28858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859 *) ac_try_echo=$ac_try;;
28861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862 (eval "$ac_compile") 2>conftest.er1
28864 grep -v '^ *+' conftest.er1 >conftest.err
28866 cat conftest.err >&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); } &&
28869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28870 { (case "(($ac_try" in
28871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872 *) ac_try_echo=$ac_try;;
28874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875 (eval "$ac_try") 2>&5
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; } &&
28879 { ac_try='test -s conftest.$ac_objext'
28880 { (case "(($ac_try" in
28881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882 *) ac_try_echo=$ac_try;;
28884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885 (eval "$ac_try") 2>&5
28887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); }; }; then
28889 ac_cv_header_time=yes
28891 echo "$as_me: failed program was:" >&5
28892 sed 's/^/| /' conftest.$ac_ext >&5
28894 ac_cv_header_time=no
28897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28899 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28900 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28901 if test $ac_cv_header_time = yes; then
28903 cat >>confdefs.h <<\_ACEOF
28904 #define TIME_WITH_SYS_TIME 1
28916 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28923 echo $ECHO_N "(cached) $ECHO_C" >&6
28925 ac_res=`eval echo '${'$as_ac_Header'}'`
28926 { echo "$as_me:$LINENO: result: $ac_res" >&5
28927 echo "${ECHO_T}$ac_res" >&6; }
28929 # Is the header compilable?
28930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28932 cat >conftest.$ac_ext <<_ACEOF
28935 cat confdefs.h >>conftest.$ac_ext
28936 cat >>conftest.$ac_ext <<_ACEOF
28937 /* end confdefs.h. */
28938 $ac_includes_default
28939 #include <$ac_header>
28941 rm -f conftest.$ac_objext
28942 if { (ac_try="$ac_compile"
28943 case "(($ac_try" in
28944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28945 *) ac_try_echo=$ac_try;;
28947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28948 (eval "$ac_compile") 2>conftest.er1
28950 grep -v '^ *+' conftest.er1 >conftest.err
28952 cat conftest.err >&5
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); } &&
28955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28956 { (case "(($ac_try" in
28957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28958 *) ac_try_echo=$ac_try;;
28960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28961 (eval "$ac_try") 2>&5
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; } &&
28965 { ac_try='test -s conftest.$ac_objext'
28966 { (case "(($ac_try" in
28967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968 *) ac_try_echo=$ac_try;;
28970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971 (eval "$ac_try") 2>&5
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; }; then
28975 ac_header_compiler=yes
28977 echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.$ac_ext >&5
28980 ac_header_compiler=no
28983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28985 echo "${ECHO_T}$ac_header_compiler" >&6; }
28987 # Is the header present?
28988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28990 cat >conftest.$ac_ext <<_ACEOF
28993 cat confdefs.h >>conftest.$ac_ext
28994 cat >>conftest.$ac_ext <<_ACEOF
28995 /* end confdefs.h. */
28996 #include <$ac_header>
28998 if { (ac_try="$ac_cpp conftest.$ac_ext"
28999 case "(($ac_try" in
29000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001 *) ac_try_echo=$ac_try;;
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29006 grep -v '^ *+' conftest.er1 >conftest.err
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); } >/dev/null; then
29011 if test -s conftest.err; then
29012 ac_cpp_err=$ac_c_preproc_warn_flag
29013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29020 if test -z "$ac_cpp_err"; then
29021 ac_header_preproc=yes
29023 echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29026 ac_header_preproc=no
29029 rm -f conftest.err conftest.$ac_ext
29030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29031 echo "${ECHO_T}$ac_header_preproc" >&6; }
29033 # So? What about this header?
29034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29040 ac_header_preproc=yes
29043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29056 ## ----------------------------------- ##
29057 ## Report this to llvmbugs@cs.uiuc.edu ##
29058 ## ----------------------------------- ##
29060 ) | sed "s/^/$as_me: WARNING: /" >&2
29063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29068 eval "$as_ac_Header=\$ac_header_preproc"
29070 ac_res=`eval echo '${'$as_ac_Header'}'`
29071 { echo "$as_me:$LINENO: result: $ac_res" >&5
29072 echo "${ECHO_T}$ac_res" >&6; }
29075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29076 cat >>confdefs.h <<_ACEOF
29077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29090 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29097 echo $ECHO_N "(cached) $ECHO_C" >&6
29099 ac_res=`eval echo '${'$as_ac_Header'}'`
29100 { echo "$as_me:$LINENO: result: $ac_res" >&5
29101 echo "${ECHO_T}$ac_res" >&6; }
29103 # Is the header compilable?
29104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29106 cat >conftest.$ac_ext <<_ACEOF
29109 cat confdefs.h >>conftest.$ac_ext
29110 cat >>conftest.$ac_ext <<_ACEOF
29111 /* end confdefs.h. */
29112 $ac_includes_default
29113 #include <$ac_header>
29115 rm -f conftest.$ac_objext
29116 if { (ac_try="$ac_compile"
29117 case "(($ac_try" in
29118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29119 *) ac_try_echo=$ac_try;;
29121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29122 (eval "$ac_compile") 2>conftest.er1
29124 grep -v '^ *+' conftest.er1 >conftest.err
29126 cat conftest.err >&5
29127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128 (exit $ac_status); } &&
29129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29130 { (case "(($ac_try" in
29131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132 *) ac_try_echo=$ac_try;;
29134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135 (eval "$ac_try") 2>&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; } &&
29139 { ac_try='test -s conftest.$ac_objext'
29140 { (case "(($ac_try" in
29141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29142 *) ac_try_echo=$ac_try;;
29144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29145 (eval "$ac_try") 2>&5
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); }; }; then
29149 ac_header_compiler=yes
29151 echo "$as_me: failed program was:" >&5
29152 sed 's/^/| /' conftest.$ac_ext >&5
29154 ac_header_compiler=no
29157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29159 echo "${ECHO_T}$ac_header_compiler" >&6; }
29161 # Is the header present?
29162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29164 cat >conftest.$ac_ext <<_ACEOF
29167 cat confdefs.h >>conftest.$ac_ext
29168 cat >>conftest.$ac_ext <<_ACEOF
29169 /* end confdefs.h. */
29170 #include <$ac_header>
29172 if { (ac_try="$ac_cpp conftest.$ac_ext"
29173 case "(($ac_try" in
29174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175 *) ac_try_echo=$ac_try;;
29177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29180 grep -v '^ *+' conftest.er1 >conftest.err
29182 cat conftest.err >&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); } >/dev/null; then
29185 if test -s conftest.err; then
29186 ac_cpp_err=$ac_c_preproc_warn_flag
29187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29194 if test -z "$ac_cpp_err"; then
29195 ac_header_preproc=yes
29197 echo "$as_me: failed program was:" >&5
29198 sed 's/^/| /' conftest.$ac_ext >&5
29200 ac_header_preproc=no
29203 rm -f conftest.err conftest.$ac_ext
29204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29205 echo "${ECHO_T}$ac_header_preproc" >&6; }
29207 # So? What about this header?
29208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29214 ac_header_preproc=yes
29217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29230 ## ----------------------------------- ##
29231 ## Report this to llvmbugs@cs.uiuc.edu ##
29232 ## ----------------------------------- ##
29234 ) | sed "s/^/$as_me: WARNING: /" >&2
29237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29240 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 eval "$as_ac_Header=\$ac_header_preproc"
29244 ac_res=`eval echo '${'$as_ac_Header'}'`
29245 { echo "$as_me:$LINENO: result: $ac_res" >&5
29246 echo "${ECHO_T}$ac_res" >&6; }
29249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29250 cat >>confdefs.h <<_ACEOF
29251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29260 for ac_header in utime.h windows.h
29262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29267 echo $ECHO_N "(cached) $ECHO_C" >&6
29269 ac_res=`eval echo '${'$as_ac_Header'}'`
29270 { echo "$as_me:$LINENO: result: $ac_res" >&5
29271 echo "${ECHO_T}$ac_res" >&6; }
29273 # Is the header compilable?
29274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29276 cat >conftest.$ac_ext <<_ACEOF
29279 cat confdefs.h >>conftest.$ac_ext
29280 cat >>conftest.$ac_ext <<_ACEOF
29281 /* end confdefs.h. */
29282 $ac_includes_default
29283 #include <$ac_header>
29285 rm -f conftest.$ac_objext
29286 if { (ac_try="$ac_compile"
29287 case "(($ac_try" in
29288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29289 *) ac_try_echo=$ac_try;;
29291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29292 (eval "$ac_compile") 2>conftest.er1
29294 grep -v '^ *+' conftest.er1 >conftest.err
29296 cat conftest.err >&5
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 (exit $ac_status); } &&
29299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29300 { (case "(($ac_try" in
29301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302 *) ac_try_echo=$ac_try;;
29304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305 (eval "$ac_try") 2>&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); }; } &&
29309 { ac_try='test -s conftest.$ac_objext'
29310 { (case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_try") 2>&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; }; then
29319 ac_header_compiler=yes
29321 echo "$as_me: failed program was:" >&5
29322 sed 's/^/| /' conftest.$ac_ext >&5
29324 ac_header_compiler=no
29327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29329 echo "${ECHO_T}$ac_header_compiler" >&6; }
29331 # Is the header present?
29332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29334 cat >conftest.$ac_ext <<_ACEOF
29337 cat confdefs.h >>conftest.$ac_ext
29338 cat >>conftest.$ac_ext <<_ACEOF
29339 /* end confdefs.h. */
29340 #include <$ac_header>
29342 if { (ac_try="$ac_cpp conftest.$ac_ext"
29343 case "(($ac_try" in
29344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345 *) ac_try_echo=$ac_try;;
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29350 grep -v '^ *+' conftest.er1 >conftest.err
29352 cat conftest.err >&5
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); } >/dev/null; then
29355 if test -s conftest.err; then
29356 ac_cpp_err=$ac_c_preproc_warn_flag
29357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29364 if test -z "$ac_cpp_err"; then
29365 ac_header_preproc=yes
29367 echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29370 ac_header_preproc=no
29373 rm -f conftest.err conftest.$ac_ext
29374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29375 echo "${ECHO_T}$ac_header_preproc" >&6; }
29377 # So? What about this header?
29378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29384 ac_header_preproc=yes
29387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29400 ## ----------------------------------- ##
29401 ## Report this to llvmbugs@cs.uiuc.edu ##
29402 ## ----------------------------------- ##
29404 ) | sed "s/^/$as_me: WARNING: /" >&2
29407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29410 echo $ECHO_N "(cached) $ECHO_C" >&6
29412 eval "$as_ac_Header=\$ac_header_preproc"
29414 ac_res=`eval echo '${'$as_ac_Header'}'`
29415 { echo "$as_me:$LINENO: result: $ac_res" >&5
29416 echo "${ECHO_T}$ac_res" >&6; }
29419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29420 cat >>confdefs.h <<_ACEOF
29421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29432 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29439 echo $ECHO_N "(cached) $ECHO_C" >&6
29441 ac_res=`eval echo '${'$as_ac_Header'}'`
29442 { echo "$as_me:$LINENO: result: $ac_res" >&5
29443 echo "${ECHO_T}$ac_res" >&6; }
29445 # Is the header compilable?
29446 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29448 cat >conftest.$ac_ext <<_ACEOF
29451 cat confdefs.h >>conftest.$ac_ext
29452 cat >>conftest.$ac_ext <<_ACEOF
29453 /* end confdefs.h. */
29454 $ac_includes_default
29455 #include <$ac_header>
29457 rm -f conftest.$ac_objext
29458 if { (ac_try="$ac_compile"
29459 case "(($ac_try" in
29460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29461 *) ac_try_echo=$ac_try;;
29463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29464 (eval "$ac_compile") 2>conftest.er1
29466 grep -v '^ *+' conftest.er1 >conftest.err
29468 cat conftest.err >&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); } &&
29471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29472 { (case "(($ac_try" in
29473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29474 *) ac_try_echo=$ac_try;;
29476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477 (eval "$ac_try") 2>&5
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); }; } &&
29481 { ac_try='test -s conftest.$ac_objext'
29482 { (case "(($ac_try" in
29483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29484 *) ac_try_echo=$ac_try;;
29486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487 (eval "$ac_try") 2>&5
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); }; }; then
29491 ac_header_compiler=yes
29493 echo "$as_me: failed program was:" >&5
29494 sed 's/^/| /' conftest.$ac_ext >&5
29496 ac_header_compiler=no
29499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29501 echo "${ECHO_T}$ac_header_compiler" >&6; }
29503 # Is the header present?
29504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29506 cat >conftest.$ac_ext <<_ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h. */
29512 #include <$ac_header>
29514 if { (ac_try="$ac_cpp conftest.$ac_ext"
29515 case "(($ac_try" in
29516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517 *) ac_try_echo=$ac_try;;
29519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29522 grep -v '^ *+' conftest.er1 >conftest.err
29524 cat conftest.err >&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); } >/dev/null; then
29527 if test -s conftest.err; then
29528 ac_cpp_err=$ac_c_preproc_warn_flag
29529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29536 if test -z "$ac_cpp_err"; then
29537 ac_header_preproc=yes
29539 echo "$as_me: failed program was:" >&5
29540 sed 's/^/| /' conftest.$ac_ext >&5
29542 ac_header_preproc=no
29545 rm -f conftest.err conftest.$ac_ext
29546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29547 echo "${ECHO_T}$ac_header_preproc" >&6; }
29549 # So? What about this header?
29550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29556 ac_header_preproc=yes
29559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29572 ## ----------------------------------- ##
29573 ## Report this to llvmbugs@cs.uiuc.edu ##
29574 ## ----------------------------------- ##
29576 ) | sed "s/^/$as_me: WARNING: /" >&2
29579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29582 echo $ECHO_N "(cached) $ECHO_C" >&6
29584 eval "$as_ac_Header=\$ac_header_preproc"
29586 ac_res=`eval echo '${'$as_ac_Header'}'`
29587 { echo "$as_me:$LINENO: result: $ac_res" >&5
29588 echo "${ECHO_T}$ac_res" >&6; }
29591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29592 cat >>confdefs.h <<_ACEOF
29593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29604 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
29606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29611 echo $ECHO_N "(cached) $ECHO_C" >&6
29613 ac_res=`eval echo '${'$as_ac_Header'}'`
29614 { echo "$as_me:$LINENO: result: $ac_res" >&5
29615 echo "${ECHO_T}$ac_res" >&6; }
29617 # Is the header compilable?
29618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29620 cat >conftest.$ac_ext <<_ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h. */
29626 $ac_includes_default
29627 #include <$ac_header>
29629 rm -f conftest.$ac_objext
29630 if { (ac_try="$ac_compile"
29631 case "(($ac_try" in
29632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633 *) ac_try_echo=$ac_try;;
29635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636 (eval "$ac_compile") 2>conftest.er1
29638 grep -v '^ *+' conftest.er1 >conftest.err
29640 cat conftest.err >&5
29641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642 (exit $ac_status); } &&
29643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29644 { (case "(($ac_try" in
29645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29646 *) ac_try_echo=$ac_try;;
29648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29649 (eval "$ac_try") 2>&5
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); }; } &&
29653 { ac_try='test -s conftest.$ac_objext'
29654 { (case "(($ac_try" in
29655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656 *) ac_try_echo=$ac_try;;
29658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29659 (eval "$ac_try") 2>&5
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); }; }; then
29663 ac_header_compiler=yes
29665 echo "$as_me: failed program was:" >&5
29666 sed 's/^/| /' conftest.$ac_ext >&5
29668 ac_header_compiler=no
29671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29673 echo "${ECHO_T}$ac_header_compiler" >&6; }
29675 # Is the header present?
29676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29678 cat >conftest.$ac_ext <<_ACEOF
29681 cat confdefs.h >>conftest.$ac_ext
29682 cat >>conftest.$ac_ext <<_ACEOF
29683 /* end confdefs.h. */
29684 #include <$ac_header>
29686 if { (ac_try="$ac_cpp conftest.$ac_ext"
29687 case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29694 grep -v '^ *+' conftest.er1 >conftest.err
29696 cat conftest.err >&5
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); } >/dev/null; then
29699 if test -s conftest.err; then
29700 ac_cpp_err=$ac_c_preproc_warn_flag
29701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29708 if test -z "$ac_cpp_err"; then
29709 ac_header_preproc=yes
29711 echo "$as_me: failed program was:" >&5
29712 sed 's/^/| /' conftest.$ac_ext >&5
29714 ac_header_preproc=no
29717 rm -f conftest.err conftest.$ac_ext
29718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29719 echo "${ECHO_T}$ac_header_preproc" >&6; }
29721 # So? What about this header?
29722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29728 ac_header_preproc=yes
29731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29744 ## ----------------------------------- ##
29745 ## Report this to llvmbugs@cs.uiuc.edu ##
29746 ## ----------------------------------- ##
29748 ) | sed "s/^/$as_me: WARNING: /" >&2
29751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29754 echo $ECHO_N "(cached) $ECHO_C" >&6
29756 eval "$as_ac_Header=\$ac_header_preproc"
29758 ac_res=`eval echo '${'$as_ac_Header'}'`
29759 { echo "$as_me:$LINENO: result: $ac_res" >&5
29760 echo "${ECHO_T}$ac_res" >&6; }
29763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29764 cat >>confdefs.h <<_ACEOF
29765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29772 if test "$ENABLE_THREADS" -eq 1 ; then
29774 for ac_header in pthread.h
29776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29781 echo $ECHO_N "(cached) $ECHO_C" >&6
29783 ac_res=`eval echo '${'$as_ac_Header'}'`
29784 { echo "$as_me:$LINENO: result: $ac_res" >&5
29785 echo "${ECHO_T}$ac_res" >&6; }
29787 # Is the header compilable?
29788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29790 cat >conftest.$ac_ext <<_ACEOF
29793 cat confdefs.h >>conftest.$ac_ext
29794 cat >>conftest.$ac_ext <<_ACEOF
29795 /* end confdefs.h. */
29796 $ac_includes_default
29797 #include <$ac_header>
29799 rm -f conftest.$ac_objext
29800 if { (ac_try="$ac_compile"
29801 case "(($ac_try" in
29802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29803 *) ac_try_echo=$ac_try;;
29805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29806 (eval "$ac_compile") 2>conftest.er1
29808 grep -v '^ *+' conftest.er1 >conftest.err
29810 cat conftest.err >&5
29811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812 (exit $ac_status); } &&
29813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29814 { (case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_try") 2>&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); }; } &&
29823 { ac_try='test -s conftest.$ac_objext'
29824 { (case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_try") 2>&5
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; }; then
29833 ac_header_compiler=yes
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29838 ac_header_compiler=no
29841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29843 echo "${ECHO_T}$ac_header_compiler" >&6; }
29845 # Is the header present?
29846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29848 cat >conftest.$ac_ext <<_ACEOF
29851 cat confdefs.h >>conftest.$ac_ext
29852 cat >>conftest.$ac_ext <<_ACEOF
29853 /* end confdefs.h. */
29854 #include <$ac_header>
29856 if { (ac_try="$ac_cpp conftest.$ac_ext"
29857 case "(($ac_try" in
29858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859 *) ac_try_echo=$ac_try;;
29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29864 grep -v '^ *+' conftest.er1 >conftest.err
29866 cat conftest.err >&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } >/dev/null; then
29869 if test -s conftest.err; then
29870 ac_cpp_err=$ac_c_preproc_warn_flag
29871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29878 if test -z "$ac_cpp_err"; then
29879 ac_header_preproc=yes
29881 echo "$as_me: failed program was:" >&5
29882 sed 's/^/| /' conftest.$ac_ext >&5
29884 ac_header_preproc=no
29887 rm -f conftest.err conftest.$ac_ext
29888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29889 echo "${ECHO_T}$ac_header_preproc" >&6; }
29891 # So? What about this header?
29892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29898 ac_header_preproc=yes
29901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29914 ## ----------------------------------- ##
29915 ## Report this to llvmbugs@cs.uiuc.edu ##
29916 ## ----------------------------------- ##
29918 ) | sed "s/^/$as_me: WARNING: /" >&2
29921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29924 echo $ECHO_N "(cached) $ECHO_C" >&6
29926 eval "$as_ac_Header=\$ac_header_preproc"
29928 ac_res=`eval echo '${'$as_ac_Header'}'`
29929 { echo "$as_me:$LINENO: result: $ac_res" >&5
29930 echo "${ECHO_T}$ac_res" >&6; }
29933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29934 cat >>confdefs.h <<_ACEOF
29935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29951 if test "$llvm_cv_enable_libffi" = "yes" ; then
29954 for ac_header in ffi.h ffi/ffi.h
29956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29961 echo $ECHO_N "(cached) $ECHO_C" >&6
29963 ac_res=`eval echo '${'$as_ac_Header'}'`
29964 { echo "$as_me:$LINENO: result: $ac_res" >&5
29965 echo "${ECHO_T}$ac_res" >&6; }
29967 # Is the header compilable?
29968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29970 cat >conftest.$ac_ext <<_ACEOF
29973 cat confdefs.h >>conftest.$ac_ext
29974 cat >>conftest.$ac_ext <<_ACEOF
29975 /* end confdefs.h. */
29976 $ac_includes_default
29977 #include <$ac_header>
29979 rm -f conftest.$ac_objext
29980 if { (ac_try="$ac_compile"
29981 case "(($ac_try" in
29982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983 *) ac_try_echo=$ac_try;;
29985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986 (eval "$ac_compile") 2>conftest.er1
29988 grep -v '^ *+' conftest.er1 >conftest.err
29990 cat conftest.err >&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); } &&
29993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29994 { (case "(($ac_try" in
29995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29996 *) ac_try_echo=$ac_try;;
29998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29999 (eval "$ac_try") 2>&5
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); }; } &&
30003 { ac_try='test -s conftest.$ac_objext'
30004 { (case "(($ac_try" in
30005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006 *) ac_try_echo=$ac_try;;
30008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009 (eval "$ac_try") 2>&5
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); }; }; then
30013 ac_header_compiler=yes
30015 echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30018 ac_header_compiler=no
30021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30023 echo "${ECHO_T}$ac_header_compiler" >&6; }
30025 # Is the header present?
30026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30028 cat >conftest.$ac_ext <<_ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h. */
30034 #include <$ac_header>
30036 if { (ac_try="$ac_cpp conftest.$ac_ext"
30037 case "(($ac_try" in
30038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039 *) ac_try_echo=$ac_try;;
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30044 grep -v '^ *+' conftest.er1 >conftest.err
30046 cat conftest.err >&5
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } >/dev/null; then
30049 if test -s conftest.err; then
30050 ac_cpp_err=$ac_c_preproc_warn_flag
30051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30058 if test -z "$ac_cpp_err"; then
30059 ac_header_preproc=yes
30061 echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30064 ac_header_preproc=no
30067 rm -f conftest.err conftest.$ac_ext
30068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30069 echo "${ECHO_T}$ac_header_preproc" >&6; }
30071 # So? What about this header?
30072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30078 ac_header_preproc=yes
30081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30094 ## ----------------------------------- ##
30095 ## Report this to llvmbugs@cs.uiuc.edu ##
30096 ## ----------------------------------- ##
30098 ) | sed "s/^/$as_me: WARNING: /" >&2
30101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30104 echo $ECHO_N "(cached) $ECHO_C" >&6
30106 eval "$as_ac_Header=\$ac_header_preproc"
30108 ac_res=`eval echo '${'$as_ac_Header'}'`
30109 { echo "$as_me:$LINENO: result: $ac_res" >&5
30110 echo "${ECHO_T}$ac_res" >&6; }
30113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30114 cat >>confdefs.h <<_ACEOF
30115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30126 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30127 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30128 if test "${ac_cv_huge_val_sanity+set}" = set; then
30129 echo $ECHO_N "(cached) $ECHO_C" >&6
30133 ac_cpp='$CXXCPP $CPPFLAGS'
30134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30139 if test "$cross_compiling" = yes; then
30140 ac_cv_huge_val_sanity=yes
30142 cat >conftest.$ac_ext <<_ACEOF
30145 cat confdefs.h >>conftest.$ac_ext
30146 cat >>conftest.$ac_ext <<_ACEOF
30147 /* end confdefs.h. */
30152 double x = HUGE_VAL; return x != x;
30157 rm -f conftest$ac_exeext
30158 if { (ac_try="$ac_link"
30159 case "(($ac_try" in
30160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30161 *) ac_try_echo=$ac_try;;
30163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30164 (eval "$ac_link") 2>&5
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30168 { (case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_try") 2>&5
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); }; }; then
30177 ac_cv_huge_val_sanity=yes
30179 echo "$as_me: program exited with status $ac_status" >&5
30180 echo "$as_me: failed program was:" >&5
30181 sed 's/^/| /' conftest.$ac_ext >&5
30183 ( exit $ac_status )
30184 ac_cv_huge_val_sanity=no
30186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30191 ac_cpp='$CPP $CPPFLAGS'
30192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30198 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30199 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30200 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30203 { echo "$as_me:$LINENO: checking for pid_t" >&5
30204 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30205 if test "${ac_cv_type_pid_t+set}" = set; then
30206 echo $ECHO_N "(cached) $ECHO_C" >&6
30208 cat >conftest.$ac_ext <<_ACEOF
30211 cat confdefs.h >>conftest.$ac_ext
30212 cat >>conftest.$ac_ext <<_ACEOF
30213 /* end confdefs.h. */
30214 $ac_includes_default
30215 typedef pid_t ac__type_new_;
30219 if ((ac__type_new_ *) 0)
30221 if (sizeof (ac__type_new_))
30227 rm -f conftest.$ac_objext
30228 if { (ac_try="$ac_compile"
30229 case "(($ac_try" in
30230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30231 *) ac_try_echo=$ac_try;;
30233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30234 (eval "$ac_compile") 2>conftest.er1
30236 grep -v '^ *+' conftest.er1 >conftest.err
30238 cat conftest.err >&5
30239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240 (exit $ac_status); } &&
30241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30242 { (case "(($ac_try" in
30243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30244 *) ac_try_echo=$ac_try;;
30246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30247 (eval "$ac_try") 2>&5
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); }; } &&
30251 { ac_try='test -s conftest.$ac_objext'
30252 { (case "(($ac_try" in
30253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30254 *) ac_try_echo=$ac_try;;
30256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30257 (eval "$ac_try") 2>&5
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); }; }; then
30261 ac_cv_type_pid_t=yes
30263 echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30266 ac_cv_type_pid_t=no
30269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30271 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30272 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30273 if test $ac_cv_type_pid_t = yes; then
30277 cat >>confdefs.h <<_ACEOF
30283 { echo "$as_me:$LINENO: checking for size_t" >&5
30284 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30285 if test "${ac_cv_type_size_t+set}" = set; then
30286 echo $ECHO_N "(cached) $ECHO_C" >&6
30288 cat >conftest.$ac_ext <<_ACEOF
30291 cat confdefs.h >>conftest.$ac_ext
30292 cat >>conftest.$ac_ext <<_ACEOF
30293 /* end confdefs.h. */
30294 $ac_includes_default
30295 typedef size_t ac__type_new_;
30299 if ((ac__type_new_ *) 0)
30301 if (sizeof (ac__type_new_))
30307 rm -f conftest.$ac_objext
30308 if { (ac_try="$ac_compile"
30309 case "(($ac_try" in
30310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311 *) ac_try_echo=$ac_try;;
30313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314 (eval "$ac_compile") 2>conftest.er1
30316 grep -v '^ *+' conftest.er1 >conftest.err
30318 cat conftest.err >&5
30319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320 (exit $ac_status); } &&
30321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30322 { (case "(($ac_try" in
30323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30324 *) ac_try_echo=$ac_try;;
30326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30327 (eval "$ac_try") 2>&5
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); }; } &&
30331 { ac_try='test -s conftest.$ac_objext'
30332 { (case "(($ac_try" in
30333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30334 *) ac_try_echo=$ac_try;;
30336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30337 (eval "$ac_try") 2>&5
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); }; }; then
30341 ac_cv_type_size_t=yes
30343 echo "$as_me: failed program was:" >&5
30344 sed 's/^/| /' conftest.$ac_ext >&5
30346 ac_cv_type_size_t=no
30349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30351 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30352 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30353 if test $ac_cv_type_size_t = yes; then
30357 cat >>confdefs.h <<_ACEOF
30358 #define size_t unsigned int
30363 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30364 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30365 if test "${ac_cv_type_signal+set}" = set; then
30366 echo $ECHO_N "(cached) $ECHO_C" >&6
30368 cat >conftest.$ac_ext <<_ACEOF
30371 cat confdefs.h >>conftest.$ac_ext
30372 cat >>conftest.$ac_ext <<_ACEOF
30373 /* end confdefs.h. */
30374 #include <sys/types.h>
30375 #include <signal.h>
30380 return *(signal (0, 0)) (0) == 1;
30385 rm -f conftest.$ac_objext
30386 if { (ac_try="$ac_compile"
30387 case "(($ac_try" in
30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_compile") 2>conftest.er1
30394 grep -v '^ *+' conftest.er1 >conftest.err
30396 cat conftest.err >&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } &&
30399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30400 { (case "(($ac_try" in
30401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402 *) ac_try_echo=$ac_try;;
30404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405 (eval "$ac_try") 2>&5
30407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); }; } &&
30409 { ac_try='test -s conftest.$ac_objext'
30410 { (case "(($ac_try" in
30411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412 *) ac_try_echo=$ac_try;;
30414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415 (eval "$ac_try") 2>&5
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); }; }; then
30419 ac_cv_type_signal=int
30421 echo "$as_me: failed program was:" >&5
30422 sed 's/^/| /' conftest.$ac_ext >&5
30424 ac_cv_type_signal=void
30427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30429 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30430 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30432 cat >>confdefs.h <<_ACEOF
30433 #define RETSIGTYPE $ac_cv_type_signal
30437 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30438 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30439 if test "${ac_cv_struct_tm+set}" = set; then
30440 echo $ECHO_N "(cached) $ECHO_C" >&6
30442 cat >conftest.$ac_ext <<_ACEOF
30445 cat confdefs.h >>conftest.$ac_ext
30446 cat >>conftest.$ac_ext <<_ACEOF
30447 /* end confdefs.h. */
30448 #include <sys/types.h>
30454 struct tm *tp; tp->tm_sec;
30459 rm -f conftest.$ac_objext
30460 if { (ac_try="$ac_compile"
30461 case "(($ac_try" in
30462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463 *) ac_try_echo=$ac_try;;
30465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466 (eval "$ac_compile") 2>conftest.er1
30468 grep -v '^ *+' conftest.er1 >conftest.err
30470 cat conftest.err >&5
30471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472 (exit $ac_status); } &&
30473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30474 { (case "(($ac_try" in
30475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476 *) ac_try_echo=$ac_try;;
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479 (eval "$ac_try") 2>&5
30481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); }; } &&
30483 { ac_try='test -s conftest.$ac_objext'
30484 { (case "(($ac_try" in
30485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30486 *) ac_try_echo=$ac_try;;
30488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30489 (eval "$ac_try") 2>&5
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); }; }; then
30493 ac_cv_struct_tm=time.h
30495 echo "$as_me: failed program was:" >&5
30496 sed 's/^/| /' conftest.$ac_ext >&5
30498 ac_cv_struct_tm=sys/time.h
30501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30503 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30504 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30505 if test $ac_cv_struct_tm = sys/time.h; then
30507 cat >>confdefs.h <<\_ACEOF
30508 #define TM_IN_SYS_TIME 1
30513 { echo "$as_me:$LINENO: checking for int64_t" >&5
30514 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30515 if test "${ac_cv_type_int64_t+set}" = set; then
30516 echo $ECHO_N "(cached) $ECHO_C" >&6
30518 cat >conftest.$ac_ext <<_ACEOF
30521 cat confdefs.h >>conftest.$ac_ext
30522 cat >>conftest.$ac_ext <<_ACEOF
30523 /* end confdefs.h. */
30524 $ac_includes_default
30525 typedef int64_t ac__type_new_;
30529 if ((ac__type_new_ *) 0)
30531 if (sizeof (ac__type_new_))
30537 rm -f conftest.$ac_objext
30538 if { (ac_try="$ac_compile"
30539 case "(($ac_try" in
30540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30541 *) ac_try_echo=$ac_try;;
30543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30544 (eval "$ac_compile") 2>conftest.er1
30546 grep -v '^ *+' conftest.er1 >conftest.err
30548 cat conftest.err >&5
30549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550 (exit $ac_status); } &&
30551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30552 { (case "(($ac_try" in
30553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30554 *) ac_try_echo=$ac_try;;
30556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30557 (eval "$ac_try") 2>&5
30559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560 (exit $ac_status); }; } &&
30561 { ac_try='test -s conftest.$ac_objext'
30562 { (case "(($ac_try" in
30563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30564 *) ac_try_echo=$ac_try;;
30566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30567 (eval "$ac_try") 2>&5
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); }; }; then
30571 ac_cv_type_int64_t=yes
30573 echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30576 ac_cv_type_int64_t=no
30579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30581 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30582 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30583 if test $ac_cv_type_int64_t = yes; then
30585 cat >>confdefs.h <<_ACEOF
30586 #define HAVE_INT64_T 1
30591 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30592 echo "$as_me: error: Type int64_t required but not found" >&2;}
30593 { (exit 1); exit 1; }; }
30596 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30597 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30598 if test "${ac_cv_type_uint64_t+set}" = set; then
30599 echo $ECHO_N "(cached) $ECHO_C" >&6
30601 cat >conftest.$ac_ext <<_ACEOF
30604 cat confdefs.h >>conftest.$ac_ext
30605 cat >>conftest.$ac_ext <<_ACEOF
30606 /* end confdefs.h. */
30607 $ac_includes_default
30608 typedef uint64_t ac__type_new_;
30612 if ((ac__type_new_ *) 0)
30614 if (sizeof (ac__type_new_))
30620 rm -f conftest.$ac_objext
30621 if { (ac_try="$ac_compile"
30622 case "(($ac_try" in
30623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30624 *) ac_try_echo=$ac_try;;
30626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30627 (eval "$ac_compile") 2>conftest.er1
30629 grep -v '^ *+' conftest.er1 >conftest.err
30631 cat conftest.err >&5
30632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633 (exit $ac_status); } &&
30634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30635 { (case "(($ac_try" in
30636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30637 *) ac_try_echo=$ac_try;;
30639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30640 (eval "$ac_try") 2>&5
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); }; } &&
30644 { ac_try='test -s conftest.$ac_objext'
30645 { (case "(($ac_try" in
30646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30647 *) ac_try_echo=$ac_try;;
30649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30650 (eval "$ac_try") 2>&5
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); }; }; then
30654 ac_cv_type_uint64_t=yes
30656 echo "$as_me: failed program was:" >&5
30657 sed 's/^/| /' conftest.$ac_ext >&5
30659 ac_cv_type_uint64_t=no
30662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30664 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30665 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30666 if test $ac_cv_type_uint64_t = yes; then
30668 cat >>confdefs.h <<_ACEOF
30669 #define HAVE_UINT64_T 1
30674 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30675 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30676 if test "${ac_cv_type_u_int64_t+set}" = set; then
30677 echo $ECHO_N "(cached) $ECHO_C" >&6
30679 cat >conftest.$ac_ext <<_ACEOF
30682 cat confdefs.h >>conftest.$ac_ext
30683 cat >>conftest.$ac_ext <<_ACEOF
30684 /* end confdefs.h. */
30685 $ac_includes_default
30686 typedef u_int64_t ac__type_new_;
30690 if ((ac__type_new_ *) 0)
30692 if (sizeof (ac__type_new_))
30698 rm -f conftest.$ac_objext
30699 if { (ac_try="$ac_compile"
30700 case "(($ac_try" in
30701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30702 *) ac_try_echo=$ac_try;;
30704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30705 (eval "$ac_compile") 2>conftest.er1
30707 grep -v '^ *+' conftest.er1 >conftest.err
30709 cat conftest.err >&5
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); } &&
30712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30713 { (case "(($ac_try" in
30714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30715 *) ac_try_echo=$ac_try;;
30717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30718 (eval "$ac_try") 2>&5
30720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721 (exit $ac_status); }; } &&
30722 { ac_try='test -s conftest.$ac_objext'
30723 { (case "(($ac_try" in
30724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30725 *) ac_try_echo=$ac_try;;
30727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30728 (eval "$ac_try") 2>&5
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); }; }; then
30732 ac_cv_type_u_int64_t=yes
30734 echo "$as_me: failed program was:" >&5
30735 sed 's/^/| /' conftest.$ac_ext >&5
30737 ac_cv_type_u_int64_t=no
30740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30742 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30743 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30744 if test $ac_cv_type_u_int64_t = yes; then
30746 cat >>confdefs.h <<_ACEOF
30747 #define HAVE_U_INT64_T 1
30752 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30753 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30754 { (exit 1); exit 1; }; }
30768 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30774 echo $ECHO_N "(cached) $ECHO_C" >&6
30776 cat >conftest.$ac_ext <<_ACEOF
30779 cat confdefs.h >>conftest.$ac_ext
30780 cat >>conftest.$ac_ext <<_ACEOF
30781 /* end confdefs.h. */
30782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30784 #define $ac_func innocuous_$ac_func
30786 /* System header to define __stub macros and hopefully few prototypes,
30787 which can conflict with char $ac_func (); below.
30788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30789 <limits.h> exists even on freestanding compilers. */
30792 # include <limits.h>
30794 # include <assert.h>
30799 /* Override any GCC internal prototype to avoid an error.
30800 Use char because int might match the return type of a GCC
30801 builtin and then its argument prototype would still apply. */
30806 /* The GNU C library defines this for functions which it implements
30807 to always fail with ENOSYS. Some functions are actually named
30808 something starting with __ and the normal name is an alias. */
30809 #if defined __stub_$ac_func || defined __stub___$ac_func
30816 return $ac_func ();
30821 rm -f conftest.$ac_objext conftest$ac_exeext
30822 if { (ac_try="$ac_link"
30823 case "(($ac_try" in
30824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825 *) ac_try_echo=$ac_try;;
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828 (eval "$ac_link") 2>conftest.er1
30830 grep -v '^ *+' conftest.er1 >conftest.err
30832 cat conftest.err >&5
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); } &&
30835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30836 { (case "(($ac_try" in
30837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30838 *) ac_try_echo=$ac_try;;
30840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30841 (eval "$ac_try") 2>&5
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); }; } &&
30845 { ac_try='test -s conftest$ac_exeext'
30846 { (case "(($ac_try" in
30847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30848 *) ac_try_echo=$ac_try;;
30850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30851 (eval "$ac_try") 2>&5
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); }; }; then
30855 eval "$as_ac_var=yes"
30857 echo "$as_me: failed program was:" >&5
30858 sed 's/^/| /' conftest.$ac_ext >&5
30860 eval "$as_ac_var=no"
30863 rm -f core conftest.err conftest.$ac_objext \
30864 conftest$ac_exeext conftest.$ac_ext
30866 ac_res=`eval echo '${'$as_ac_var'}'`
30867 { echo "$as_me:$LINENO: result: $ac_res" >&5
30868 echo "${ECHO_T}$ac_res" >&6; }
30869 if test `eval echo '${'$as_ac_var'}'` = yes; then
30870 cat >>confdefs.h <<_ACEOF
30871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30881 for ac_func in powf fmodf strtof round
30883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30887 echo $ECHO_N "(cached) $ECHO_C" >&6
30889 cat >conftest.$ac_ext <<_ACEOF
30892 cat confdefs.h >>conftest.$ac_ext
30893 cat >>conftest.$ac_ext <<_ACEOF
30894 /* end confdefs.h. */
30895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30897 #define $ac_func innocuous_$ac_func
30899 /* System header to define __stub macros and hopefully few prototypes,
30900 which can conflict with char $ac_func (); below.
30901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30902 <limits.h> exists even on freestanding compilers. */
30905 # include <limits.h>
30907 # include <assert.h>
30912 /* Override any GCC internal prototype to avoid an error.
30913 Use char because int might match the return type of a GCC
30914 builtin and then its argument prototype would still apply. */
30919 /* The GNU C library defines this for functions which it implements
30920 to always fail with ENOSYS. Some functions are actually named
30921 something starting with __ and the normal name is an alias. */
30922 #if defined __stub_$ac_func || defined __stub___$ac_func
30929 return $ac_func ();
30934 rm -f conftest.$ac_objext conftest$ac_exeext
30935 if { (ac_try="$ac_link"
30936 case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_link") 2>conftest.er1
30943 grep -v '^ *+' conftest.er1 >conftest.err
30945 cat conftest.err >&5
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); } &&
30948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30949 { (case "(($ac_try" in
30950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951 *) ac_try_echo=$ac_try;;
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954 (eval "$ac_try") 2>&5
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; } &&
30958 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30968 eval "$as_ac_var=yes"
30970 echo "$as_me: failed program was:" >&5
30971 sed 's/^/| /' conftest.$ac_ext >&5
30973 eval "$as_ac_var=no"
30976 rm -f core conftest.err conftest.$ac_objext \
30977 conftest$ac_exeext conftest.$ac_ext
30979 ac_res=`eval echo '${'$as_ac_var'}'`
30980 { echo "$as_me:$LINENO: result: $ac_res" >&5
30981 echo "${ECHO_T}$ac_res" >&6; }
30982 if test `eval echo '${'$as_ac_var'}'` = yes; then
30983 cat >>confdefs.h <<_ACEOF
30984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30995 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31001 echo $ECHO_N "(cached) $ECHO_C" >&6
31003 cat >conftest.$ac_ext <<_ACEOF
31006 cat confdefs.h >>conftest.$ac_ext
31007 cat >>conftest.$ac_ext <<_ACEOF
31008 /* end confdefs.h. */
31009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31011 #define $ac_func innocuous_$ac_func
31013 /* System header to define __stub macros and hopefully few prototypes,
31014 which can conflict with char $ac_func (); below.
31015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31016 <limits.h> exists even on freestanding compilers. */
31019 # include <limits.h>
31021 # include <assert.h>
31026 /* Override any GCC internal prototype to avoid an error.
31027 Use char because int might match the return type of a GCC
31028 builtin and then its argument prototype would still apply. */
31033 /* The GNU C library defines this for functions which it implements
31034 to always fail with ENOSYS. Some functions are actually named
31035 something starting with __ and the normal name is an alias. */
31036 #if defined __stub_$ac_func || defined __stub___$ac_func
31043 return $ac_func ();
31048 rm -f conftest.$ac_objext conftest$ac_exeext
31049 if { (ac_try="$ac_link"
31050 case "(($ac_try" in
31051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052 *) ac_try_echo=$ac_try;;
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055 (eval "$ac_link") 2>conftest.er1
31057 grep -v '^ *+' conftest.er1 >conftest.err
31059 cat conftest.err >&5
31060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061 (exit $ac_status); } &&
31062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31063 { (case "(($ac_try" in
31064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31065 *) ac_try_echo=$ac_try;;
31067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31068 (eval "$ac_try") 2>&5
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); }; } &&
31072 { ac_try='test -s conftest$ac_exeext'
31073 { (case "(($ac_try" in
31074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075 *) ac_try_echo=$ac_try;;
31077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078 (eval "$ac_try") 2>&5
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); }; }; then
31082 eval "$as_ac_var=yes"
31084 echo "$as_me: failed program was:" >&5
31085 sed 's/^/| /' conftest.$ac_ext >&5
31087 eval "$as_ac_var=no"
31090 rm -f core conftest.err conftest.$ac_objext \
31091 conftest$ac_exeext conftest.$ac_ext
31093 ac_res=`eval echo '${'$as_ac_var'}'`
31094 { echo "$as_me:$LINENO: result: $ac_res" >&5
31095 echo "${ECHO_T}$ac_res" >&6; }
31096 if test `eval echo '${'$as_ac_var'}'` = yes; then
31097 cat >>confdefs.h <<_ACEOF
31098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31107 for ac_func in isatty mkdtemp mkstemp
31109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31113 echo $ECHO_N "(cached) $ECHO_C" >&6
31115 cat >conftest.$ac_ext <<_ACEOF
31118 cat confdefs.h >>conftest.$ac_ext
31119 cat >>conftest.$ac_ext <<_ACEOF
31120 /* end confdefs.h. */
31121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31123 #define $ac_func innocuous_$ac_func
31125 /* System header to define __stub macros and hopefully few prototypes,
31126 which can conflict with char $ac_func (); below.
31127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31128 <limits.h> exists even on freestanding compilers. */
31131 # include <limits.h>
31133 # include <assert.h>
31138 /* Override any GCC internal prototype to avoid an error.
31139 Use char because int might match the return type of a GCC
31140 builtin and then its argument prototype would still apply. */
31145 /* The GNU C library defines this for functions which it implements
31146 to always fail with ENOSYS. Some functions are actually named
31147 something starting with __ and the normal name is an alias. */
31148 #if defined __stub_$ac_func || defined __stub___$ac_func
31155 return $ac_func ();
31160 rm -f conftest.$ac_objext conftest$ac_exeext
31161 if { (ac_try="$ac_link"
31162 case "(($ac_try" in
31163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164 *) ac_try_echo=$ac_try;;
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167 (eval "$ac_link") 2>conftest.er1
31169 grep -v '^ *+' conftest.er1 >conftest.err
31171 cat conftest.err >&5
31172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173 (exit $ac_status); } &&
31174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31175 { (case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180 (eval "$ac_try") 2>&5
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; } &&
31184 { ac_try='test -s conftest$ac_exeext'
31185 { (case "(($ac_try" in
31186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187 *) ac_try_echo=$ac_try;;
31189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190 (eval "$ac_try") 2>&5
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); }; }; then
31194 eval "$as_ac_var=yes"
31196 echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31199 eval "$as_ac_var=no"
31202 rm -f core conftest.err conftest.$ac_objext \
31203 conftest$ac_exeext conftest.$ac_ext
31205 ac_res=`eval echo '${'$as_ac_var'}'`
31206 { echo "$as_me:$LINENO: result: $ac_res" >&5
31207 echo "${ECHO_T}$ac_res" >&6; }
31208 if test `eval echo '${'$as_ac_var'}'` = yes; then
31209 cat >>confdefs.h <<_ACEOF
31210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31223 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31229 echo $ECHO_N "(cached) $ECHO_C" >&6
31231 cat >conftest.$ac_ext <<_ACEOF
31234 cat confdefs.h >>conftest.$ac_ext
31235 cat >>conftest.$ac_ext <<_ACEOF
31236 /* end confdefs.h. */
31237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31239 #define $ac_func innocuous_$ac_func
31241 /* System header to define __stub macros and hopefully few prototypes,
31242 which can conflict with char $ac_func (); below.
31243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31244 <limits.h> exists even on freestanding compilers. */
31247 # include <limits.h>
31249 # include <assert.h>
31254 /* Override any GCC internal prototype to avoid an error.
31255 Use char because int might match the return type of a GCC
31256 builtin and then its argument prototype would still apply. */
31261 /* The GNU C library defines this for functions which it implements
31262 to always fail with ENOSYS. Some functions are actually named
31263 something starting with __ and the normal name is an alias. */
31264 #if defined __stub_$ac_func || defined __stub___$ac_func
31271 return $ac_func ();
31276 rm -f conftest.$ac_objext conftest$ac_exeext
31277 if { (ac_try="$ac_link"
31278 case "(($ac_try" in
31279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31280 *) ac_try_echo=$ac_try;;
31282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31283 (eval "$ac_link") 2>conftest.er1
31285 grep -v '^ *+' conftest.er1 >conftest.err
31287 cat conftest.err >&5
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); } &&
31290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31291 { (case "(($ac_try" in
31292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293 *) ac_try_echo=$ac_try;;
31295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296 (eval "$ac_try") 2>&5
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; } &&
31300 { ac_try='test -s conftest$ac_exeext'
31301 { (case "(($ac_try" in
31302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31303 *) ac_try_echo=$ac_try;;
31305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31306 (eval "$ac_try") 2>&5
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); }; }; then
31310 eval "$as_ac_var=yes"
31312 echo "$as_me: failed program was:" >&5
31313 sed 's/^/| /' conftest.$ac_ext >&5
31315 eval "$as_ac_var=no"
31318 rm -f core conftest.err conftest.$ac_objext \
31319 conftest$ac_exeext conftest.$ac_ext
31321 ac_res=`eval echo '${'$as_ac_var'}'`
31322 { echo "$as_me:$LINENO: result: $ac_res" >&5
31323 echo "${ECHO_T}$ac_res" >&6; }
31324 if test `eval echo '${'$as_ac_var'}'` = yes; then
31325 cat >>confdefs.h <<_ACEOF
31326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31336 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31342 echo $ECHO_N "(cached) $ECHO_C" >&6
31344 cat >conftest.$ac_ext <<_ACEOF
31347 cat confdefs.h >>conftest.$ac_ext
31348 cat >>conftest.$ac_ext <<_ACEOF
31349 /* end confdefs.h. */
31350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31352 #define $ac_func innocuous_$ac_func
31354 /* System header to define __stub macros and hopefully few prototypes,
31355 which can conflict with char $ac_func (); below.
31356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31357 <limits.h> exists even on freestanding compilers. */
31360 # include <limits.h>
31362 # include <assert.h>
31367 /* Override any GCC internal prototype to avoid an error.
31368 Use char because int might match the return type of a GCC
31369 builtin and then its argument prototype would still apply. */
31374 /* The GNU C library defines this for functions which it implements
31375 to always fail with ENOSYS. Some functions are actually named
31376 something starting with __ and the normal name is an alias. */
31377 #if defined __stub_$ac_func || defined __stub___$ac_func
31384 return $ac_func ();
31389 rm -f conftest.$ac_objext conftest$ac_exeext
31390 if { (ac_try="$ac_link"
31391 case "(($ac_try" in
31392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393 *) ac_try_echo=$ac_try;;
31395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396 (eval "$ac_link") 2>conftest.er1
31398 grep -v '^ *+' conftest.er1 >conftest.err
31400 cat conftest.err >&5
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); } &&
31403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31404 { (case "(($ac_try" in
31405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406 *) ac_try_echo=$ac_try;;
31408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409 (eval "$ac_try") 2>&5
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; } &&
31413 { ac_try='test -s conftest$ac_exeext'
31414 { (case "(($ac_try" in
31415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31416 *) ac_try_echo=$ac_try;;
31418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31419 (eval "$ac_try") 2>&5
31421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); }; }; then
31423 eval "$as_ac_var=yes"
31425 echo "$as_me: failed program was:" >&5
31426 sed 's/^/| /' conftest.$ac_ext >&5
31428 eval "$as_ac_var=no"
31431 rm -f core conftest.err conftest.$ac_objext \
31432 conftest$ac_exeext conftest.$ac_ext
31434 ac_res=`eval echo '${'$as_ac_var'}'`
31435 { echo "$as_me:$LINENO: result: $ac_res" >&5
31436 echo "${ECHO_T}$ac_res" >&6; }
31437 if test `eval echo '${'$as_ac_var'}'` = yes; then
31438 cat >>confdefs.h <<_ACEOF
31439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31449 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31455 echo $ECHO_N "(cached) $ECHO_C" >&6
31457 cat >conftest.$ac_ext <<_ACEOF
31460 cat confdefs.h >>conftest.$ac_ext
31461 cat >>conftest.$ac_ext <<_ACEOF
31462 /* end confdefs.h. */
31463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31465 #define $ac_func innocuous_$ac_func
31467 /* System header to define __stub macros and hopefully few prototypes,
31468 which can conflict with char $ac_func (); below.
31469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31470 <limits.h> exists even on freestanding compilers. */
31473 # include <limits.h>
31475 # include <assert.h>
31480 /* Override any GCC internal prototype to avoid an error.
31481 Use char because int might match the return type of a GCC
31482 builtin and then its argument prototype would still apply. */
31487 /* The GNU C library defines this for functions which it implements
31488 to always fail with ENOSYS. Some functions are actually named
31489 something starting with __ and the normal name is an alias. */
31490 #if defined __stub_$ac_func || defined __stub___$ac_func
31497 return $ac_func ();
31502 rm -f conftest.$ac_objext conftest$ac_exeext
31503 if { (ac_try="$ac_link"
31504 case "(($ac_try" in
31505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31506 *) ac_try_echo=$ac_try;;
31508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31509 (eval "$ac_link") 2>conftest.er1
31511 grep -v '^ *+' conftest.er1 >conftest.err
31513 cat conftest.err >&5
31514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515 (exit $ac_status); } &&
31516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31517 { (case "(($ac_try" in
31518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31519 *) ac_try_echo=$ac_try;;
31521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31522 (eval "$ac_try") 2>&5
31524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31525 (exit $ac_status); }; } &&
31526 { ac_try='test -s conftest$ac_exeext'
31527 { (case "(($ac_try" in
31528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31529 *) ac_try_echo=$ac_try;;
31531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31532 (eval "$ac_try") 2>&5
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); }; }; then
31536 eval "$as_ac_var=yes"
31538 echo "$as_me: failed program was:" >&5
31539 sed 's/^/| /' conftest.$ac_ext >&5
31541 eval "$as_ac_var=no"
31544 rm -f core conftest.err conftest.$ac_objext \
31545 conftest$ac_exeext conftest.$ac_ext
31547 ac_res=`eval echo '${'$as_ac_var'}'`
31548 { echo "$as_me:$LINENO: result: $ac_res" >&5
31549 echo "${ECHO_T}$ac_res" >&6; }
31550 if test `eval echo '${'$as_ac_var'}'` = yes; then
31551 cat >>confdefs.h <<_ACEOF
31552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31558 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31559 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31560 if test "${llvm_cv_c_printf_a+set}" = set; then
31561 echo $ECHO_N "(cached) $ECHO_C" >&6
31564 ac_cpp='$CPP $CPPFLAGS'
31565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31569 if test "$cross_compiling" = yes; then
31570 llvmac_cv_c_printf_a=no
31572 cat >conftest.$ac_ext <<_ACEOF
31576 cat confdefs.h >>conftest.$ac_ext
31577 cat >>conftest.$ac_ext <<_ACEOF
31578 /* end confdefs.h. */
31581 #include <stdlib.h>
31587 volatile double A, B;
31591 sprintf(Buffer, "%a", A);
31595 if (A != 0x1.999999999999ap-4)
31602 rm -f conftest$ac_exeext
31603 if { (ac_try="$ac_link"
31604 case "(($ac_try" in
31605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606 *) ac_try_echo=$ac_try;;
31608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609 (eval "$ac_link") 2>&5
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31613 { (case "(($ac_try" in
31614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31615 *) ac_try_echo=$ac_try;;
31617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31618 (eval "$ac_try") 2>&5
31620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621 (exit $ac_status); }; }; then
31622 llvm_cv_c_printf_a=yes
31624 echo "$as_me: program exited with status $ac_status" >&5
31625 echo "$as_me: failed program was:" >&5
31626 sed 's/^/| /' conftest.$ac_ext >&5
31628 ( exit $ac_status )
31629 llvmac_cv_c_printf_a=no
31631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31636 ac_cpp='$CPP $CPPFLAGS'
31637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31642 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31643 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31644 if test "$llvm_cv_c_printf_a" = "yes"; then
31646 cat >>confdefs.h <<\_ACEOF
31647 #define HAVE_PRINTF_A 1
31652 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31653 # for constant arguments. Useless!
31654 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31655 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31656 if test "${ac_cv_working_alloca_h+set}" = set; then
31657 echo $ECHO_N "(cached) $ECHO_C" >&6
31659 cat >conftest.$ac_ext <<_ACEOF
31662 cat confdefs.h >>conftest.$ac_ext
31663 cat >>conftest.$ac_ext <<_ACEOF
31664 /* end confdefs.h. */
31665 #include <alloca.h>
31669 char *p = (char *) alloca (2 * sizeof (int));
31675 rm -f conftest.$ac_objext conftest$ac_exeext
31676 if { (ac_try="$ac_link"
31677 case "(($ac_try" in
31678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31679 *) ac_try_echo=$ac_try;;
31681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31682 (eval "$ac_link") 2>conftest.er1
31684 grep -v '^ *+' conftest.er1 >conftest.err
31686 cat conftest.err >&5
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); } &&
31689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31690 { (case "(($ac_try" in
31691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 *) ac_try_echo=$ac_try;;
31694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695 (eval "$ac_try") 2>&5
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; } &&
31699 { ac_try='test -s conftest$ac_exeext'
31700 { (case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_try") 2>&5
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; }; then
31709 ac_cv_working_alloca_h=yes
31711 echo "$as_me: failed program was:" >&5
31712 sed 's/^/| /' conftest.$ac_ext >&5
31714 ac_cv_working_alloca_h=no
31717 rm -f core conftest.err conftest.$ac_objext \
31718 conftest$ac_exeext conftest.$ac_ext
31720 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31721 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31722 if test $ac_cv_working_alloca_h = yes; then
31724 cat >>confdefs.h <<\_ACEOF
31725 #define HAVE_ALLOCA_H 1
31730 { echo "$as_me:$LINENO: checking for alloca" >&5
31731 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31732 if test "${ac_cv_func_alloca_works+set}" = set; then
31733 echo $ECHO_N "(cached) $ECHO_C" >&6
31735 cat >conftest.$ac_ext <<_ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h. */
31742 # define alloca __builtin_alloca
31745 # include <malloc.h>
31746 # define alloca _alloca
31749 # include <alloca.h>
31754 # ifndef alloca /* predefined by HP cc +Olibcalls */
31765 char *p = (char *) alloca (1);
31771 rm -f conftest.$ac_objext conftest$ac_exeext
31772 if { (ac_try="$ac_link"
31773 case "(($ac_try" in
31774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775 *) ac_try_echo=$ac_try;;
31777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778 (eval "$ac_link") 2>conftest.er1
31780 grep -v '^ *+' conftest.er1 >conftest.err
31782 cat conftest.err >&5
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); } &&
31785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31786 { (case "(($ac_try" in
31787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788 *) ac_try_echo=$ac_try;;
31790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791 (eval "$ac_try") 2>&5
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; } &&
31795 { ac_try='test -s conftest$ac_exeext'
31796 { (case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_try") 2>&5
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); }; }; then
31805 ac_cv_func_alloca_works=yes
31807 echo "$as_me: failed program was:" >&5
31808 sed 's/^/| /' conftest.$ac_ext >&5
31810 ac_cv_func_alloca_works=no
31813 rm -f core conftest.err conftest.$ac_objext \
31814 conftest$ac_exeext conftest.$ac_ext
31816 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31817 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31819 if test $ac_cv_func_alloca_works = yes; then
31821 cat >>confdefs.h <<\_ACEOF
31822 #define HAVE_ALLOCA 1
31826 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31827 # that cause trouble. Some versions do not even contain alloca or
31828 # contain a buggy version. If you still want to use their alloca,
31829 # use ar to extract alloca.o from them instead of compiling alloca.c.
31831 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31833 cat >>confdefs.h <<\_ACEOF
31838 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31839 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31840 if test "${ac_cv_os_cray+set}" = set; then
31841 echo $ECHO_N "(cached) $ECHO_C" >&6
31843 cat >conftest.$ac_ext <<_ACEOF
31846 cat confdefs.h >>conftest.$ac_ext
31847 cat >>conftest.$ac_ext <<_ACEOF
31848 /* end confdefs.h. */
31849 #if defined CRAY && ! defined CRAY2
31856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31857 $EGREP "webecray" >/dev/null 2>&1; then
31865 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31866 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31867 if test $ac_cv_os_cray = yes; then
31868 for ac_func in _getb67 GETB67 getb67; do
31869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31873 echo $ECHO_N "(cached) $ECHO_C" >&6
31875 cat >conftest.$ac_ext <<_ACEOF
31878 cat confdefs.h >>conftest.$ac_ext
31879 cat >>conftest.$ac_ext <<_ACEOF
31880 /* end confdefs.h. */
31881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31883 #define $ac_func innocuous_$ac_func
31885 /* System header to define __stub macros and hopefully few prototypes,
31886 which can conflict with char $ac_func (); below.
31887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31888 <limits.h> exists even on freestanding compilers. */
31891 # include <limits.h>
31893 # include <assert.h>
31898 /* Override any GCC internal prototype to avoid an error.
31899 Use char because int might match the return type of a GCC
31900 builtin and then its argument prototype would still apply. */
31905 /* The GNU C library defines this for functions which it implements
31906 to always fail with ENOSYS. Some functions are actually named
31907 something starting with __ and the normal name is an alias. */
31908 #if defined __stub_$ac_func || defined __stub___$ac_func
31915 return $ac_func ();
31920 rm -f conftest.$ac_objext conftest$ac_exeext
31921 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31929 grep -v '^ *+' conftest.er1 >conftest.err
31931 cat conftest.err >&5
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); } &&
31934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31935 { (case "(($ac_try" in
31936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937 *) ac_try_echo=$ac_try;;
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940 (eval "$ac_try") 2>&5
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); }; } &&
31944 { ac_try='test -s conftest$ac_exeext'
31945 { (case "(($ac_try" in
31946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31947 *) ac_try_echo=$ac_try;;
31949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31950 (eval "$ac_try") 2>&5
31952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953 (exit $ac_status); }; }; then
31954 eval "$as_ac_var=yes"
31956 echo "$as_me: failed program was:" >&5
31957 sed 's/^/| /' conftest.$ac_ext >&5
31959 eval "$as_ac_var=no"
31962 rm -f core conftest.err conftest.$ac_objext \
31963 conftest$ac_exeext conftest.$ac_ext
31965 ac_res=`eval echo '${'$as_ac_var'}'`
31966 { echo "$as_me:$LINENO: result: $ac_res" >&5
31967 echo "${ECHO_T}$ac_res" >&6; }
31968 if test `eval echo '${'$as_ac_var'}'` = yes; then
31970 cat >>confdefs.h <<_ACEOF
31971 #define CRAY_STACKSEG_END $ac_func
31980 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31981 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31982 if test "${ac_cv_c_stack_direction+set}" = set; then
31983 echo $ECHO_N "(cached) $ECHO_C" >&6
31985 if test "$cross_compiling" = yes; then
31986 ac_cv_c_stack_direction=0
31988 cat >conftest.$ac_ext <<_ACEOF
31991 cat confdefs.h >>conftest.$ac_ext
31992 cat >>conftest.$ac_ext <<_ACEOF
31993 /* end confdefs.h. */
31994 $ac_includes_default
31996 find_stack_direction ()
31998 static char *addr = 0;
32003 return find_stack_direction ();
32006 return (&dummy > addr) ? 1 : -1;
32012 return find_stack_direction () < 0;
32015 rm -f conftest$ac_exeext
32016 if { (ac_try="$ac_link"
32017 case "(($ac_try" in
32018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019 *) ac_try_echo=$ac_try;;
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022 (eval "$ac_link") 2>&5
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32026 { (case "(($ac_try" in
32027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32028 *) ac_try_echo=$ac_try;;
32030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32031 (eval "$ac_try") 2>&5
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); }; }; then
32035 ac_cv_c_stack_direction=1
32037 echo "$as_me: program exited with status $ac_status" >&5
32038 echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32041 ( exit $ac_status )
32042 ac_cv_c_stack_direction=-1
32044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32049 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32050 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32052 cat >>confdefs.h <<_ACEOF
32053 #define STACK_DIRECTION $ac_cv_c_stack_direction
32060 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32061 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32062 if test "${ac_cv_func_rand48+set}" = set; then
32063 echo $ECHO_N "(cached) $ECHO_C" >&6
32066 ac_cpp='$CXXCPP $CPPFLAGS'
32067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32071 cat >conftest.$ac_ext <<_ACEOF
32074 cat confdefs.h >>conftest.$ac_ext
32075 cat >>conftest.$ac_ext <<_ACEOF
32076 /* end confdefs.h. */
32077 #include <stdlib.h>
32081 srand48(0);lrand48();drand48();
32086 rm -f conftest.$ac_objext
32087 if { (ac_try="$ac_compile"
32088 case "(($ac_try" in
32089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32090 *) ac_try_echo=$ac_try;;
32092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32093 (eval "$ac_compile") 2>conftest.er1
32095 grep -v '^ *+' conftest.er1 >conftest.err
32097 cat conftest.err >&5
32098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099 (exit $ac_status); } &&
32100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32101 { (case "(($ac_try" in
32102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103 *) ac_try_echo=$ac_try;;
32105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106 (eval "$ac_try") 2>&5
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); }; } &&
32110 { ac_try='test -s conftest.$ac_objext'
32111 { (case "(($ac_try" in
32112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113 *) ac_try_echo=$ac_try;;
32115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116 (eval "$ac_try") 2>&5
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); }; }; then
32120 ac_cv_func_rand48=yes
32122 echo "$as_me: failed program was:" >&5
32123 sed 's/^/| /' conftest.$ac_ext >&5
32125 ac_cv_func_rand48=no
32128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32130 ac_cpp='$CPP $CPPFLAGS'
32131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32136 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32137 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32139 if test "$ac_cv_func_rand48" = "yes" ; then
32141 cat >>confdefs.h <<\_ACEOF
32142 #define HAVE_RAND48 1
32148 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32149 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32150 if test "${ac_cv_cxx_namespaces+set}" = set; then
32151 echo $ECHO_N "(cached) $ECHO_C" >&6
32154 ac_cpp='$CXXCPP $CPPFLAGS'
32155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32159 cat >conftest.$ac_ext <<_ACEOF
32162 cat confdefs.h >>conftest.$ac_ext
32163 cat >>conftest.$ac_ext <<_ACEOF
32164 /* end confdefs.h. */
32165 namespace Outer { namespace Inner { int i = 0; }}
32169 using namespace Outer::Inner; return i;
32174 rm -f conftest.$ac_objext
32175 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32183 grep -v '^ *+' conftest.er1 >conftest.err
32185 cat conftest.err >&5
32186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187 (exit $ac_status); } &&
32188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32189 { (case "(($ac_try" in
32190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191 *) ac_try_echo=$ac_try;;
32193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194 (eval "$ac_try") 2>&5
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); }; } &&
32198 { ac_try='test -s conftest.$ac_objext'
32199 { (case "(($ac_try" in
32200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32201 *) ac_try_echo=$ac_try;;
32203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32204 (eval "$ac_try") 2>&5
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); }; }; then
32208 ac_cv_cxx_namespaces=yes
32210 echo "$as_me: failed program was:" >&5
32211 sed 's/^/| /' conftest.$ac_ext >&5
32213 ac_cv_cxx_namespaces=no
32216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32218 ac_cpp='$CPP $CPPFLAGS'
32219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32225 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32226 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32227 if test "$ac_cv_cxx_namespaces" = yes; then
32229 cat >>confdefs.h <<\_ACEOF
32230 #define HAVE_NAMESPACES
32235 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32236 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32237 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32238 echo $ECHO_N "(cached) $ECHO_C" >&6
32242 ac_cpp='$CXXCPP $CPPFLAGS'
32243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32247 cat >conftest.$ac_ext <<_ACEOF
32250 cat confdefs.h >>conftest.$ac_ext
32251 cat >>conftest.$ac_ext <<_ACEOF
32252 /* end confdefs.h. */
32253 #include <iterator>
32254 #ifdef HAVE_NAMESPACES
32255 using namespace std;
32260 iterator<int,int,int> t; return 0;
32265 rm -f conftest.$ac_objext
32266 if { (ac_try="$ac_compile"
32267 case "(($ac_try" in
32268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32269 *) ac_try_echo=$ac_try;;
32271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32272 (eval "$ac_compile") 2>conftest.er1
32274 grep -v '^ *+' conftest.er1 >conftest.err
32276 cat conftest.err >&5
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); } &&
32279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32280 { (case "(($ac_try" in
32281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282 *) ac_try_echo=$ac_try;;
32284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285 (eval "$ac_try") 2>&5
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); }; } &&
32289 { ac_try='test -s conftest.$ac_objext'
32290 { (case "(($ac_try" in
32291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32292 *) ac_try_echo=$ac_try;;
32294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32295 (eval "$ac_try") 2>&5
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 (exit $ac_status); }; }; then
32299 ac_cv_cxx_have_std_iterator=yes
32301 echo "$as_me: failed program was:" >&5
32302 sed 's/^/| /' conftest.$ac_ext >&5
32304 ac_cv_cxx_have_std_iterator=no
32307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32309 ac_cpp='$CPP $CPPFLAGS'
32310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32316 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32317 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32318 if test "$ac_cv_cxx_have_std_iterator" = yes
32321 cat >>confdefs.h <<\_ACEOF
32322 #define HAVE_STD_ITERATOR 1
32327 cat >>confdefs.h <<\_ACEOF
32328 #define HAVE_STD_ITERATOR 0
32333 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32334 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32335 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32336 echo $ECHO_N "(cached) $ECHO_C" >&6
32340 ac_cpp='$CXXCPP $CPPFLAGS'
32341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32345 cat >conftest.$ac_ext <<_ACEOF
32348 cat confdefs.h >>conftest.$ac_ext
32349 cat >>conftest.$ac_ext <<_ACEOF
32350 /* end confdefs.h. */
32351 #include <iterator>
32352 #ifdef HAVE_NAMESPACES
32353 using namespace std;
32358 bidirectional_iterator<int,int> t; return 0;
32363 rm -f conftest.$ac_objext
32364 if { (ac_try="$ac_compile"
32365 case "(($ac_try" in
32366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367 *) ac_try_echo=$ac_try;;
32369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370 (eval "$ac_compile") 2>conftest.er1
32372 grep -v '^ *+' conftest.er1 >conftest.err
32374 cat conftest.err >&5
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); } &&
32377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32378 { (case "(($ac_try" in
32379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380 *) ac_try_echo=$ac_try;;
32382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383 (eval "$ac_try") 2>&5
32385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 (exit $ac_status); }; } &&
32387 { ac_try='test -s conftest.$ac_objext'
32388 { (case "(($ac_try" in
32389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390 *) ac_try_echo=$ac_try;;
32392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393 (eval "$ac_try") 2>&5
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; }; then
32397 ac_cv_cxx_have_bi_iterator=yes
32399 echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.$ac_ext >&5
32402 ac_cv_cxx_have_bi_iterator=no
32405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32407 ac_cpp='$CPP $CPPFLAGS'
32408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32414 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32415 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32416 if test "$ac_cv_cxx_have_bi_iterator" = yes
32419 cat >>confdefs.h <<\_ACEOF
32420 #define HAVE_BI_ITERATOR 1
32425 cat >>confdefs.h <<\_ACEOF
32426 #define HAVE_BI_ITERATOR 0
32431 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32432 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32433 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32434 echo $ECHO_N "(cached) $ECHO_C" >&6
32438 ac_cpp='$CXXCPP $CPPFLAGS'
32439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32443 cat >conftest.$ac_ext <<_ACEOF
32446 cat confdefs.h >>conftest.$ac_ext
32447 cat >>conftest.$ac_ext <<_ACEOF
32448 /* end confdefs.h. */
32449 #include <iterator>
32450 #ifdef HAVE_NAMESPACES
32451 using namespace std;
32456 forward_iterator<int,int> t; return 0;
32461 rm -f conftest.$ac_objext
32462 if { (ac_try="$ac_compile"
32463 case "(($ac_try" in
32464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32465 *) ac_try_echo=$ac_try;;
32467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32468 (eval "$ac_compile") 2>conftest.er1
32470 grep -v '^ *+' conftest.er1 >conftest.err
32472 cat conftest.err >&5
32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474 (exit $ac_status); } &&
32475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32476 { (case "(($ac_try" in
32477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478 *) ac_try_echo=$ac_try;;
32480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481 (eval "$ac_try") 2>&5
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); }; } &&
32485 { ac_try='test -s conftest.$ac_objext'
32486 { (case "(($ac_try" in
32487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32488 *) ac_try_echo=$ac_try;;
32490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32491 (eval "$ac_try") 2>&5
32493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494 (exit $ac_status); }; }; then
32495 ac_cv_cxx_have_fwd_iterator=yes
32497 echo "$as_me: failed program was:" >&5
32498 sed 's/^/| /' conftest.$ac_ext >&5
32500 ac_cv_cxx_have_fwd_iterator=no
32503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32505 ac_cpp='$CPP $CPPFLAGS'
32506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32512 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32513 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32514 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32517 cat >>confdefs.h <<\_ACEOF
32518 #define HAVE_FWD_ITERATOR 1
32523 cat >>confdefs.h <<\_ACEOF
32524 #define HAVE_FWD_ITERATOR 0
32530 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32531 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32532 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32533 echo $ECHO_N "(cached) $ECHO_C" >&6
32536 ac_cpp='$CXXCPP $CPPFLAGS'
32537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32541 cat >conftest.$ac_ext <<_ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h. */
32556 rm -f conftest.$ac_objext
32557 if { (ac_try="$ac_compile"
32558 case "(($ac_try" in
32559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32560 *) ac_try_echo=$ac_try;;
32562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32563 (eval "$ac_compile") 2>conftest.er1
32565 grep -v '^ *+' conftest.er1 >conftest.err
32567 cat conftest.err >&5
32568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569 (exit $ac_status); } &&
32570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32571 { (case "(($ac_try" in
32572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573 *) ac_try_echo=$ac_try;;
32575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576 (eval "$ac_try") 2>&5
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; } &&
32580 { ac_try='test -s conftest.$ac_objext'
32581 { (case "(($ac_try" in
32582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583 *) ac_try_echo=$ac_try;;
32585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586 (eval "$ac_try") 2>&5
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); }; }; then
32590 ac_cv_func_isnan_in_math_h=yes
32592 echo "$as_me: failed program was:" >&5
32593 sed 's/^/| /' conftest.$ac_ext >&5
32595 ac_cv_func_isnan_in_math_h=no
32598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32600 ac_cpp='$CPP $CPPFLAGS'
32601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32606 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32607 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32610 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32612 cat >>confdefs.h <<\_ACEOF
32613 #define HAVE_ISNAN_IN_MATH_H 1
32618 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32619 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32620 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32621 echo $ECHO_N "(cached) $ECHO_C" >&6
32624 ac_cpp='$CXXCPP $CPPFLAGS'
32625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32629 cat >conftest.$ac_ext <<_ACEOF
32632 cat confdefs.h >>conftest.$ac_ext
32633 cat >>conftest.$ac_ext <<_ACEOF
32634 /* end confdefs.h. */
32644 rm -f conftest.$ac_objext
32645 if { (ac_try="$ac_compile"
32646 case "(($ac_try" in
32647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651 (eval "$ac_compile") 2>conftest.er1
32653 grep -v '^ *+' conftest.er1 >conftest.err
32655 cat conftest.err >&5
32656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); } &&
32658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32659 { (case "(($ac_try" in
32660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32661 *) ac_try_echo=$ac_try;;
32663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32664 (eval "$ac_try") 2>&5
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); }; } &&
32668 { ac_try='test -s conftest.$ac_objext'
32669 { (case "(($ac_try" in
32670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32671 *) ac_try_echo=$ac_try;;
32673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32674 (eval "$ac_try") 2>&5
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); }; }; then
32678 ac_cv_func_isnan_in_cmath=yes
32680 echo "$as_me: failed program was:" >&5
32681 sed 's/^/| /' conftest.$ac_ext >&5
32683 ac_cv_func_isnan_in_cmath=no
32686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32688 ac_cpp='$CPP $CPPFLAGS'
32689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32694 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32695 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32697 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32699 cat >>confdefs.h <<\_ACEOF
32700 #define HAVE_ISNAN_IN_CMATH 1
32705 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32706 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32707 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32708 echo $ECHO_N "(cached) $ECHO_C" >&6
32711 ac_cpp='$CXXCPP $CPPFLAGS'
32712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32716 cat >conftest.$ac_ext <<_ACEOF
32719 cat confdefs.h >>conftest.$ac_ext
32720 cat >>conftest.$ac_ext <<_ACEOF
32721 /* end confdefs.h. */
32726 float f; std::isnan(f);
32731 rm -f conftest.$ac_objext
32732 if { (ac_try="$ac_compile"
32733 case "(($ac_try" in
32734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735 *) ac_try_echo=$ac_try;;
32737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738 (eval "$ac_compile") 2>conftest.er1
32740 grep -v '^ *+' conftest.er1 >conftest.err
32742 cat conftest.err >&5
32743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744 (exit $ac_status); } &&
32745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32746 { (case "(($ac_try" in
32747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32748 *) ac_try_echo=$ac_try;;
32750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32751 (eval "$ac_try") 2>&5
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; } &&
32755 { ac_try='test -s conftest.$ac_objext'
32756 { (case "(($ac_try" in
32757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32758 *) ac_try_echo=$ac_try;;
32760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32761 (eval "$ac_try") 2>&5
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); }; }; then
32765 ac_cv_func_std_isnan_in_cmath=yes
32767 echo "$as_me: failed program was:" >&5
32768 sed 's/^/| /' conftest.$ac_ext >&5
32770 ac_cv_func_std_isnan_in_cmath=no
32773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32775 ac_cpp='$CPP $CPPFLAGS'
32776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32781 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32782 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32784 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32786 cat >>confdefs.h <<\_ACEOF
32787 #define HAVE_STD_ISNAN_IN_CMATH 1
32793 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32794 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32795 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32796 echo $ECHO_N "(cached) $ECHO_C" >&6
32799 ac_cpp='$CXXCPP $CPPFLAGS'
32800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32804 cat >conftest.$ac_ext <<_ACEOF
32807 cat confdefs.h >>conftest.$ac_ext
32808 cat >>conftest.$ac_ext <<_ACEOF
32809 /* end confdefs.h. */
32819 rm -f conftest.$ac_objext
32820 if { (ac_try="$ac_compile"
32821 case "(($ac_try" in
32822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32823 *) ac_try_echo=$ac_try;;
32825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32826 (eval "$ac_compile") 2>conftest.er1
32828 grep -v '^ *+' conftest.er1 >conftest.err
32830 cat conftest.err >&5
32831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832 (exit $ac_status); } &&
32833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32834 { (case "(($ac_try" in
32835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32836 *) ac_try_echo=$ac_try;;
32838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32839 (eval "$ac_try") 2>&5
32841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842 (exit $ac_status); }; } &&
32843 { ac_try='test -s conftest.$ac_objext'
32844 { (case "(($ac_try" in
32845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32846 *) ac_try_echo=$ac_try;;
32848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32849 (eval "$ac_try") 2>&5
32851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852 (exit $ac_status); }; }; then
32853 ac_cv_func_isinf_in_math_h=yes
32855 echo "$as_me: failed program was:" >&5
32856 sed 's/^/| /' conftest.$ac_ext >&5
32858 ac_cv_func_isinf_in_math_h=no
32861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32863 ac_cpp='$CPP $CPPFLAGS'
32864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32869 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32870 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32872 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32874 cat >>confdefs.h <<\_ACEOF
32875 #define HAVE_ISINF_IN_MATH_H 1
32880 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32881 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32882 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32883 echo $ECHO_N "(cached) $ECHO_C" >&6
32886 ac_cpp='$CXXCPP $CPPFLAGS'
32887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32891 cat >conftest.$ac_ext <<_ACEOF
32894 cat confdefs.h >>conftest.$ac_ext
32895 cat >>conftest.$ac_ext <<_ACEOF
32896 /* end confdefs.h. */
32906 rm -f conftest.$ac_objext
32907 if { (ac_try="$ac_compile"
32908 case "(($ac_try" in
32909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32910 *) ac_try_echo=$ac_try;;
32912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32913 (eval "$ac_compile") 2>conftest.er1
32915 grep -v '^ *+' conftest.er1 >conftest.err
32917 cat conftest.err >&5
32918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 (exit $ac_status); } &&
32920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32921 { (case "(($ac_try" in
32922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923 *) ac_try_echo=$ac_try;;
32925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926 (eval "$ac_try") 2>&5
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); }; } &&
32930 { ac_try='test -s conftest.$ac_objext'
32931 { (case "(($ac_try" in
32932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933 *) ac_try_echo=$ac_try;;
32935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936 (eval "$ac_try") 2>&5
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); }; }; then
32940 ac_cv_func_isinf_in_cmath=yes
32942 echo "$as_me: failed program was:" >&5
32943 sed 's/^/| /' conftest.$ac_ext >&5
32945 ac_cv_func_isinf_in_cmath=no
32948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32950 ac_cpp='$CPP $CPPFLAGS'
32951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32956 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32957 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32959 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32961 cat >>confdefs.h <<\_ACEOF
32962 #define HAVE_ISINF_IN_CMATH 1
32967 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32968 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32969 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32970 echo $ECHO_N "(cached) $ECHO_C" >&6
32973 ac_cpp='$CXXCPP $CPPFLAGS'
32974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32978 cat >conftest.$ac_ext <<_ACEOF
32981 cat confdefs.h >>conftest.$ac_ext
32982 cat >>conftest.$ac_ext <<_ACEOF
32983 /* end confdefs.h. */
32988 float f; std::isinf(f)}
32993 rm -f conftest.$ac_objext
32994 if { (ac_try="$ac_compile"
32995 case "(($ac_try" in
32996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32997 *) ac_try_echo=$ac_try;;
32999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33000 (eval "$ac_compile") 2>conftest.er1
33002 grep -v '^ *+' conftest.er1 >conftest.err
33004 cat conftest.err >&5
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); } &&
33007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33008 { (case "(($ac_try" in
33009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010 *) ac_try_echo=$ac_try;;
33012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013 (eval "$ac_try") 2>&5
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; } &&
33017 { ac_try='test -s conftest.$ac_objext'
33018 { (case "(($ac_try" in
33019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020 *) ac_try_echo=$ac_try;;
33022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023 (eval "$ac_try") 2>&5
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); }; }; then
33027 ac_cv_func_std_isinf_in_cmath=yes
33029 echo "$as_me: failed program was:" >&5
33030 sed 's/^/| /' conftest.$ac_ext >&5
33032 ac_cv_func_std_isinf_in_cmath=no
33035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33037 ac_cpp='$CPP $CPPFLAGS'
33038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33043 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33044 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33046 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33048 cat >>confdefs.h <<\_ACEOF
33049 #define HAVE_STD_ISINF_IN_CMATH 1
33054 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33055 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33056 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33057 echo $ECHO_N "(cached) $ECHO_C" >&6
33060 ac_cpp='$CXXCPP $CPPFLAGS'
33061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33065 cat >conftest.$ac_ext <<_ACEOF
33068 cat confdefs.h >>conftest.$ac_ext
33069 cat >>conftest.$ac_ext <<_ACEOF
33070 /* end confdefs.h. */
33071 #include <ieeefp.h>
33075 float f; finite(f);
33080 rm -f conftest.$ac_objext
33081 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
33089 grep -v '^ *+' conftest.er1 >conftest.err
33091 cat conftest.err >&5
33092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093 (exit $ac_status); } &&
33094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33095 { (case "(($ac_try" in
33096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097 *) ac_try_echo=$ac_try;;
33099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100 (eval "$ac_try") 2>&5
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); }; } &&
33104 { ac_try='test -s conftest.$ac_objext'
33105 { (case "(($ac_try" in
33106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33107 *) ac_try_echo=$ac_try;;
33109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33110 (eval "$ac_try") 2>&5
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); }; }; then
33114 ac_cv_func_finite_in_ieeefp_h=yes
33116 echo "$as_me: failed program was:" >&5
33117 sed 's/^/| /' conftest.$ac_ext >&5
33119 ac_cv_func_finite_in_ieeefp_h=no
33122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33124 ac_cpp='$CPP $CPPFLAGS'
33125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33130 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33131 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33133 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33135 cat >>confdefs.h <<\_ACEOF
33136 #define HAVE_FINITE_IN_IEEEFP_H 1
33143 if test "$llvm_cv_platform_type" = "Unix" ; then
33146 for ac_header in stdlib.h unistd.h
33148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33153 echo $ECHO_N "(cached) $ECHO_C" >&6
33155 ac_res=`eval echo '${'$as_ac_Header'}'`
33156 { echo "$as_me:$LINENO: result: $ac_res" >&5
33157 echo "${ECHO_T}$ac_res" >&6; }
33159 # Is the header compilable?
33160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33162 cat >conftest.$ac_ext <<_ACEOF
33165 cat confdefs.h >>conftest.$ac_ext
33166 cat >>conftest.$ac_ext <<_ACEOF
33167 /* end confdefs.h. */
33168 $ac_includes_default
33169 #include <$ac_header>
33171 rm -f conftest.$ac_objext
33172 if { (ac_try="$ac_compile"
33173 case "(($ac_try" in
33174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33175 *) ac_try_echo=$ac_try;;
33177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33178 (eval "$ac_compile") 2>conftest.er1
33180 grep -v '^ *+' conftest.er1 >conftest.err
33182 cat conftest.err >&5
33183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33184 (exit $ac_status); } &&
33185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33186 { (case "(($ac_try" in
33187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33188 *) ac_try_echo=$ac_try;;
33190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33191 (eval "$ac_try") 2>&5
33193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194 (exit $ac_status); }; } &&
33195 { ac_try='test -s conftest.$ac_objext'
33196 { (case "(($ac_try" in
33197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33198 *) ac_try_echo=$ac_try;;
33200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33201 (eval "$ac_try") 2>&5
33203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204 (exit $ac_status); }; }; then
33205 ac_header_compiler=yes
33207 echo "$as_me: failed program was:" >&5
33208 sed 's/^/| /' conftest.$ac_ext >&5
33210 ac_header_compiler=no
33213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33215 echo "${ECHO_T}$ac_header_compiler" >&6; }
33217 # Is the header present?
33218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33220 cat >conftest.$ac_ext <<_ACEOF
33223 cat confdefs.h >>conftest.$ac_ext
33224 cat >>conftest.$ac_ext <<_ACEOF
33225 /* end confdefs.h. */
33226 #include <$ac_header>
33228 if { (ac_try="$ac_cpp conftest.$ac_ext"
33229 case "(($ac_try" in
33230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33231 *) ac_try_echo=$ac_try;;
33233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33236 grep -v '^ *+' conftest.er1 >conftest.err
33238 cat conftest.err >&5
33239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240 (exit $ac_status); } >/dev/null; then
33241 if test -s conftest.err; then
33242 ac_cpp_err=$ac_c_preproc_warn_flag
33243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33250 if test -z "$ac_cpp_err"; then
33251 ac_header_preproc=yes
33253 echo "$as_me: failed program was:" >&5
33254 sed 's/^/| /' conftest.$ac_ext >&5
33256 ac_header_preproc=no
33259 rm -f conftest.err conftest.$ac_ext
33260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33261 echo "${ECHO_T}$ac_header_preproc" >&6; }
33263 # So? What about this header?
33264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33270 ac_header_preproc=yes
33273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33286 ## ----------------------------------- ##
33287 ## Report this to llvmbugs@cs.uiuc.edu ##
33288 ## ----------------------------------- ##
33290 ) | sed "s/^/$as_me: WARNING: /" >&2
33293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33296 echo $ECHO_N "(cached) $ECHO_C" >&6
33298 eval "$as_ac_Header=\$ac_header_preproc"
33300 ac_res=`eval echo '${'$as_ac_Header'}'`
33301 { echo "$as_me:$LINENO: result: $ac_res" >&5
33302 echo "${ECHO_T}$ac_res" >&6; }
33305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33306 cat >>confdefs.h <<_ACEOF
33307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33315 for ac_func in getpagesize
33317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33321 echo $ECHO_N "(cached) $ECHO_C" >&6
33323 cat >conftest.$ac_ext <<_ACEOF
33326 cat confdefs.h >>conftest.$ac_ext
33327 cat >>conftest.$ac_ext <<_ACEOF
33328 /* end confdefs.h. */
33329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33331 #define $ac_func innocuous_$ac_func
33333 /* System header to define __stub macros and hopefully few prototypes,
33334 which can conflict with char $ac_func (); below.
33335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33336 <limits.h> exists even on freestanding compilers. */
33339 # include <limits.h>
33341 # include <assert.h>
33346 /* Override any GCC internal prototype to avoid an error.
33347 Use char because int might match the return type of a GCC
33348 builtin and then its argument prototype would still apply. */
33353 /* The GNU C library defines this for functions which it implements
33354 to always fail with ENOSYS. Some functions are actually named
33355 something starting with __ and the normal name is an alias. */
33356 #if defined __stub_$ac_func || defined __stub___$ac_func
33363 return $ac_func ();
33368 rm -f conftest.$ac_objext conftest$ac_exeext
33369 if { (ac_try="$ac_link"
33370 case "(($ac_try" in
33371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372 *) ac_try_echo=$ac_try;;
33374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375 (eval "$ac_link") 2>conftest.er1
33377 grep -v '^ *+' conftest.er1 >conftest.err
33379 cat conftest.err >&5
33380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381 (exit $ac_status); } &&
33382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33383 { (case "(($ac_try" in
33384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385 *) ac_try_echo=$ac_try;;
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388 (eval "$ac_try") 2>&5
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); }; } &&
33392 { ac_try='test -s conftest$ac_exeext'
33393 { (case "(($ac_try" in
33394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33395 *) ac_try_echo=$ac_try;;
33397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33398 (eval "$ac_try") 2>&5
33400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401 (exit $ac_status); }; }; then
33402 eval "$as_ac_var=yes"
33404 echo "$as_me: failed program was:" >&5
33405 sed 's/^/| /' conftest.$ac_ext >&5
33407 eval "$as_ac_var=no"
33410 rm -f core conftest.err conftest.$ac_objext \
33411 conftest$ac_exeext conftest.$ac_ext
33413 ac_res=`eval echo '${'$as_ac_var'}'`
33414 { echo "$as_me:$LINENO: result: $ac_res" >&5
33415 echo "${ECHO_T}$ac_res" >&6; }
33416 if test `eval echo '${'$as_ac_var'}'` = yes; then
33417 cat >>confdefs.h <<_ACEOF
33418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33424 { echo "$as_me:$LINENO: checking for working mmap" >&5
33425 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33426 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33427 echo $ECHO_N "(cached) $ECHO_C" >&6
33429 if test "$cross_compiling" = yes; then
33430 ac_cv_func_mmap_fixed_mapped=no
33432 cat >conftest.$ac_ext <<_ACEOF
33435 cat confdefs.h >>conftest.$ac_ext
33436 cat >>conftest.$ac_ext <<_ACEOF
33437 /* end confdefs.h. */
33438 $ac_includes_default
33439 /* malloc might have been renamed as rpl_malloc. */
33442 /* Thanks to Mike Haertel and Jim Avera for this test.
33443 Here is a matrix of mmap possibilities:
33444 mmap private not fixed
33445 mmap private fixed at somewhere currently unmapped
33446 mmap private fixed at somewhere already mapped
33447 mmap shared not fixed
33448 mmap shared fixed at somewhere currently unmapped
33449 mmap shared fixed at somewhere already mapped
33450 For private mappings, we should verify that changes cannot be read()
33451 back from the file, nor mmap's back from the file at a different
33452 address. (There have been systems where private was not correctly
33453 implemented like the infamous i386 svr4.0, and systems where the
33454 VM page cache was not coherent with the file system buffer cache
33455 like early versions of FreeBSD and possibly contemporary NetBSD.)
33456 For shared mappings, we should conversely verify that changes get
33457 propagated back to all the places they're supposed to be.
33459 Grep wants private fixed already mapped.
33460 The main things grep needs to know about mmap are:
33461 * does it exist and is it safe to write into the mmap'd area
33462 * how to use it (BSD variants) */
33465 #include <sys/mman.h>
33467 #if !STDC_HEADERS && !HAVE_STDLIB_H
33471 /* This mess was copied from the GNU getpagesize.h. */
33472 #if !HAVE_GETPAGESIZE
33473 /* Assume that all systems that can run configure have sys/param.h. */
33474 # if !HAVE_SYS_PARAM_H
33475 # define HAVE_SYS_PARAM_H 1
33478 # ifdef _SC_PAGESIZE
33479 # define getpagesize() sysconf(_SC_PAGESIZE)
33480 # else /* no _SC_PAGESIZE */
33481 # if HAVE_SYS_PARAM_H
33482 # include <sys/param.h>
33483 # ifdef EXEC_PAGESIZE
33484 # define getpagesize() EXEC_PAGESIZE
33485 # else /* no EXEC_PAGESIZE */
33487 # define getpagesize() NBPG * CLSIZE
33490 # endif /* no CLSIZE */
33491 # else /* no NBPG */
33493 # define getpagesize() NBPC
33494 # else /* no NBPC */
33496 # define getpagesize() PAGESIZE
33497 # endif /* PAGESIZE */
33498 # endif /* no NBPC */
33499 # endif /* no NBPG */
33500 # endif /* no EXEC_PAGESIZE */
33501 # else /* no HAVE_SYS_PARAM_H */
33502 # define getpagesize() 8192 /* punt totally */
33503 # endif /* no HAVE_SYS_PARAM_H */
33504 # endif /* no _SC_PAGESIZE */
33506 #endif /* no HAVE_GETPAGESIZE */
33511 char *data, *data2, *data3;
33515 pagesize = getpagesize ();
33517 /* First, make a file with some known garbage in it. */
33518 data = (char *) malloc (pagesize);
33521 for (i = 0; i < pagesize; ++i)
33522 *(data + i) = rand ();
33524 fd = creat ("conftest.mmap", 0600);
33527 if (write (fd, data, pagesize) != pagesize)
33531 /* Next, try to mmap the file at a fixed address which already has
33532 something else allocated at it. If we can, also make sure that
33533 we see the same garbage. */
33534 fd = open ("conftest.mmap", O_RDWR);
33537 data2 = (char *) malloc (2 * pagesize);
33540 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33541 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33542 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33544 for (i = 0; i < pagesize; ++i)
33545 if (*(data + i) != *(data2 + i))
33548 /* Finally, make sure that changes to the mapped area do not
33549 percolate back to the file as seen by read(). (This is a bug on
33550 some variants of i386 svr4.0.) */
33551 for (i = 0; i < pagesize; ++i)
33552 *(data2 + i) = *(data2 + i) + 1;
33553 data3 = (char *) malloc (pagesize);
33556 if (read (fd, data3, pagesize) != pagesize)
33558 for (i = 0; i < pagesize; ++i)
33559 if (*(data + i) != *(data3 + i))
33565 rm -f conftest$ac_exeext
33566 if { (ac_try="$ac_link"
33567 case "(($ac_try" in
33568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33569 *) ac_try_echo=$ac_try;;
33571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33572 (eval "$ac_link") 2>&5
33574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33576 { (case "(($ac_try" in
33577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33578 *) ac_try_echo=$ac_try;;
33580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33581 (eval "$ac_try") 2>&5
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); }; }; then
33585 ac_cv_func_mmap_fixed_mapped=yes
33587 echo "$as_me: program exited with status $ac_status" >&5
33588 echo "$as_me: failed program was:" >&5
33589 sed 's/^/| /' conftest.$ac_ext >&5
33591 ( exit $ac_status )
33592 ac_cv_func_mmap_fixed_mapped=no
33594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33599 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33600 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33601 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33603 cat >>confdefs.h <<\_ACEOF
33604 #define HAVE_MMAP 1
33608 rm -f conftest.mmap
33610 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33611 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33612 if test "${ac_cv_func_mmap_file+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33616 ac_cpp='$CPP $CPPFLAGS'
33617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33621 if test "$cross_compiling" = yes; then
33622 ac_cv_func_mmap_file=no
33624 cat >conftest.$ac_ext <<_ACEOF
33628 cat confdefs.h >>conftest.$ac_ext
33629 cat >>conftest.$ac_ext <<_ACEOF
33630 /* end confdefs.h. */
33632 #include <sys/types.h>
33633 #include <sys/mman.h>
33641 fd = creat ("foo",0777);
33642 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33644 return (fd != (int) MAP_FAILED);
33649 rm -f conftest$ac_exeext
33650 if { (ac_try="$ac_link"
33651 case "(($ac_try" in
33652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653 *) ac_try_echo=$ac_try;;
33655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656 (eval "$ac_link") 2>&5
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33660 { (case "(($ac_try" in
33661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662 *) ac_try_echo=$ac_try;;
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665 (eval "$ac_try") 2>&5
33667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668 (exit $ac_status); }; }; then
33669 ac_cv_func_mmap_file=yes
33671 echo "$as_me: program exited with status $ac_status" >&5
33672 echo "$as_me: failed program was:" >&5
33673 sed 's/^/| /' conftest.$ac_ext >&5
33675 ( exit $ac_status )
33676 ac_cv_func_mmap_file=no
33678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33683 ac_cpp='$CPP $CPPFLAGS'
33684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33690 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33691 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33692 if test "$ac_cv_func_mmap_file" = yes; then
33694 cat >>confdefs.h <<\_ACEOF
33695 #define HAVE_MMAP_FILE
33702 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33703 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33704 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33705 echo $ECHO_N "(cached) $ECHO_C" >&6
33707 if test "$llvm_cv_os_type" = "Interix" ; then
33708 ac_cv_need_dev_zero_for_mmap=yes
33710 ac_cv_need_dev_zero_for_mmap=no
33714 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33715 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33716 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33718 cat >>confdefs.h <<\_ACEOF
33719 #define NEED_DEV_ZERO_FOR_MMAP 1
33724 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33726 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33727 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33729 if test "$ac_cv_func_mmap_file" = "no"
33731 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33732 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33736 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
33737 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
33738 cat >conftest.$ac_ext <<_ACEOF
33741 cat confdefs.h >>conftest.$ac_ext
33742 cat >>conftest.$ac_ext <<_ACEOF
33743 /* end confdefs.h. */
33745 volatile unsigned long val = 1;
33746 __sync_synchronize();
33747 __sync_val_compare_and_swap(&val, 1, 0);
33752 rm -f conftest.$ac_objext conftest$ac_exeext
33753 if { (ac_try="$ac_link"
33754 case "(($ac_try" in
33755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756 *) ac_try_echo=$ac_try;;
33758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759 (eval "$ac_link") 2>conftest.er1
33761 grep -v '^ *+' conftest.er1 >conftest.err
33763 cat conftest.err >&5
33764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765 (exit $ac_status); } &&
33766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33767 { (case "(($ac_try" in
33768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33769 *) ac_try_echo=$ac_try;;
33771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33772 (eval "$ac_try") 2>&5
33774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33775 (exit $ac_status); }; } &&
33776 { ac_try='test -s conftest$ac_exeext'
33777 { (case "(($ac_try" in
33778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779 *) ac_try_echo=$ac_try;;
33781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782 (eval "$ac_try") 2>&5
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); }; }; then
33786 { echo "$as_me:$LINENO: result: yes" >&5
33787 echo "${ECHO_T}yes" >&6; }
33789 cat >>confdefs.h <<\_ACEOF
33790 #define LLVM_MULTITHREADED 1
33794 echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33797 { echo "$as_me:$LINENO: result: no" >&5
33798 echo "${ECHO_T}no" >&6; }
33800 cat >>confdefs.h <<\_ACEOF
33801 #define LLVM_MULTITHREADED 0
33804 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
33805 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
33808 rm -f core conftest.err conftest.$ac_objext \
33809 conftest$ac_exeext conftest.$ac_ext
33814 for ac_func in __dso_handle
33816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33820 echo $ECHO_N "(cached) $ECHO_C" >&6
33822 cat >conftest.$ac_ext <<_ACEOF
33825 cat confdefs.h >>conftest.$ac_ext
33826 cat >>conftest.$ac_ext <<_ACEOF
33827 /* end confdefs.h. */
33828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33830 #define $ac_func innocuous_$ac_func
33832 /* System header to define __stub macros and hopefully few prototypes,
33833 which can conflict with char $ac_func (); below.
33834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33835 <limits.h> exists even on freestanding compilers. */
33838 # include <limits.h>
33840 # include <assert.h>
33845 /* Override any GCC internal prototype to avoid an error.
33846 Use char because int might match the return type of a GCC
33847 builtin and then its argument prototype would still apply. */
33852 /* The GNU C library defines this for functions which it implements
33853 to always fail with ENOSYS. Some functions are actually named
33854 something starting with __ and the normal name is an alias. */
33855 #if defined __stub_$ac_func || defined __stub___$ac_func
33862 return $ac_func ();
33867 rm -f conftest.$ac_objext conftest$ac_exeext
33868 if { (ac_try="$ac_link"
33869 case "(($ac_try" in
33870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33871 *) ac_try_echo=$ac_try;;
33873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33874 (eval "$ac_link") 2>conftest.er1
33876 grep -v '^ *+' conftest.er1 >conftest.err
33878 cat conftest.err >&5
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); } &&
33881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33882 { (case "(($ac_try" in
33883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33884 *) ac_try_echo=$ac_try;;
33886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33887 (eval "$ac_try") 2>&5
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); }; } &&
33891 { ac_try='test -s conftest$ac_exeext'
33892 { (case "(($ac_try" in
33893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33894 *) ac_try_echo=$ac_try;;
33896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33897 (eval "$ac_try") 2>&5
33899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900 (exit $ac_status); }; }; then
33901 eval "$as_ac_var=yes"
33903 echo "$as_me: failed program was:" >&5
33904 sed 's/^/| /' conftest.$ac_ext >&5
33906 eval "$as_ac_var=no"
33909 rm -f core conftest.err conftest.$ac_objext \
33910 conftest$ac_exeext conftest.$ac_ext
33912 ac_res=`eval echo '${'$as_ac_var'}'`
33913 { echo "$as_me:$LINENO: result: $ac_res" >&5
33914 echo "${ECHO_T}$ac_res" >&6; }
33915 if test `eval echo '${'$as_ac_var'}'` = yes; then
33916 cat >>confdefs.h <<_ACEOF
33917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33924 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33925 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33926 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33927 echo $ECHO_N "(cached) $ECHO_C" >&6
33929 llvm_cv_llvmgcc_sanity="no"
33930 if test -x "$LLVMGCC" ; then
33931 cp /dev/null conftest.c
33932 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33933 grep 'target datalayout =' > /dev/null 2>&1
33934 if test $? -eq 0 ; then
33935 llvm_cv_llvmgcc_sanity="yes"
33940 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33941 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33943 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33944 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33945 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33946 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33947 LLVMCC1=$llvmcc1path
33949 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33950 LLVMCC1PLUS=$llvmcc1pluspath
33952 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33953 LLVMGCCDIR=$llvmgccdir
33955 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33956 LLVMGCCLIBEXEC=$llvmgcclibexec
33958 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33959 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33960 LLVMGCC_VERSION=$llvmgccversion
33962 LLVMGCC_MAJVERS=$llvmgccmajvers
33964 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33965 LLVMGCC_LANGS=$llvmgcclangs
33967 { echo "$as_me:$LINENO: result: ok" >&5
33968 echo "${ECHO_T}ok" >&6; }
33971 SHLIBEXT=$libltdl_cv_shlibext
33974 # Translate the various configuration directories and other basic
33975 # information into substitutions that will end up in Makefile.config.in
33976 # that these configured values can be used by the makefiles
33977 if test "${prefix}" = "NONE" ; then
33978 prefix="/usr/local"
33980 eval LLVM_PREFIX="${prefix}";
33981 eval LLVM_BINDIR="${prefix}/bin";
33982 eval LLVM_LIBDIR="${prefix}/lib";
33983 eval LLVM_DATADIR="${prefix}/share/llvm";
33984 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33985 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33986 eval LLVM_INCLUDEDIR="${prefix}/include";
33987 eval LLVM_INFODIR="${prefix}/info";
33988 eval LLVM_MANDIR="${prefix}/man";
33989 LLVM_CONFIGTIME=`date`
34001 # Place the various directores into the config.h file as #defines so that we
34002 # can know about the installation paths within LLVM.
34004 cat >>confdefs.h <<_ACEOF
34005 #define LLVM_PREFIX "$LLVM_PREFIX"
34009 cat >>confdefs.h <<_ACEOF
34010 #define LLVM_BINDIR "$LLVM_BINDIR"
34014 cat >>confdefs.h <<_ACEOF
34015 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34019 cat >>confdefs.h <<_ACEOF
34020 #define LLVM_DATADIR "$LLVM_DATADIR"
34024 cat >>confdefs.h <<_ACEOF
34025 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34029 cat >>confdefs.h <<_ACEOF
34030 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34034 cat >>confdefs.h <<_ACEOF
34035 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34039 cat >>confdefs.h <<_ACEOF
34040 #define LLVM_INFODIR "$LLVM_INFODIR"
34044 cat >>confdefs.h <<_ACEOF
34045 #define LLVM_MANDIR "$LLVM_MANDIR"
34049 cat >>confdefs.h <<_ACEOF
34050 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34054 cat >>confdefs.h <<_ACEOF
34055 #define LLVM_HOSTTRIPLE "$host"
34059 # Determine which bindings to build.
34060 if test "$BINDINGS_TO_BUILD" = auto ; then
34061 BINDINGS_TO_BUILD=""
34062 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34063 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34066 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34069 # This isn't really configurey, but it avoids having to repeat the list in
34074 # Do any work necessary to ensure that bindings have what they need.
34075 binding_prereqs_failed=0
34076 for a_binding in $BINDINGS_TO_BUILD ; do
34077 case "$a_binding" in
34079 if test "x$OCAMLC" = x ; then
34080 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34081 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34082 binding_prereqs_failed=1
34084 if test "x$OCAMLDEP" = x ; then
34085 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34086 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34087 binding_prereqs_failed=1
34089 if test "x$OCAMLOPT" = x ; then
34090 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34091 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34093 if test "x$with_ocaml_libdir" != xauto ; then
34094 OCAML_LIBDIR=$with_ocaml_libdir
34097 ocaml_stdlib="`"$OCAMLC" -where`"
34098 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34100 # ocaml stdlib is beneath our prefix; use stdlib
34101 OCAML_LIBDIR=$ocaml_stdlib
34104 # ocaml stdlib is outside our prefix; use libdir/ocaml
34105 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34112 if test "$binding_prereqs_failed" = 1 ; then
34113 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34114 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34115 { (exit 1); exit 1; }; }
34118 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34119 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34120 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34121 echo $ECHO_N "(cached) $ECHO_C" >&6
34124 ac_cpp='$CXXCPP $CPPFLAGS'
34125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34129 oldcxxflags="$CXXFLAGS"
34130 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34131 cat >conftest.$ac_ext <<_ACEOF
34134 cat confdefs.h >>conftest.$ac_ext
34135 cat >>conftest.$ac_ext <<_ACEOF
34136 /* end confdefs.h. */
34146 rm -f conftest.$ac_objext
34147 if { (ac_try="$ac_compile"
34148 case "(($ac_try" in
34149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34150 *) ac_try_echo=$ac_try;;
34152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34153 (eval "$ac_compile") 2>conftest.er1
34155 grep -v '^ *+' conftest.er1 >conftest.err
34157 cat conftest.err >&5
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); } &&
34160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34161 { (case "(($ac_try" in
34162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34163 *) ac_try_echo=$ac_try;;
34165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34166 (eval "$ac_try") 2>&5
34168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169 (exit $ac_status); }; } &&
34170 { ac_try='test -s conftest.$ac_objext'
34171 { (case "(($ac_try" in
34172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34173 *) ac_try_echo=$ac_try;;
34175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34176 (eval "$ac_try") 2>&5
34178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179 (exit $ac_status); }; }; then
34180 llvm_cv_cxx_visibility_inlines_hidden=yes
34182 echo "$as_me: failed program was:" >&5
34183 sed 's/^/| /' conftest.$ac_ext >&5
34185 llvm_cv_cxx_visibility_inlines_hidden=no
34188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34189 CXXFLAGS="$oldcxxflags"
34191 ac_cpp='$CPP $CPPFLAGS'
34192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34198 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34199 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34200 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34201 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34204 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34209 if test "$llvm_cv_link_use_r" = "yes" ; then
34216 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34217 RDYNAMIC="-Wl,-export-dynamic"
34224 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34226 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34228 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34231 ac_config_files="$ac_config_files Makefile.config"
34234 ac_config_files="$ac_config_files llvm.spec"
34237 ac_config_files="$ac_config_files docs/doxygen.cfg"
34240 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34243 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34246 ac_config_commands="$ac_config_commands setup"
34248 ac_config_commands="$ac_config_commands Makefile"
34251 ac_config_commands="$ac_config_commands Makefile.common"
34254 ac_config_commands="$ac_config_commands examples/Makefile"
34257 ac_config_commands="$ac_config_commands lib/Makefile"
34260 ac_config_commands="$ac_config_commands runtime/Makefile"
34263 ac_config_commands="$ac_config_commands test/Makefile"
34266 ac_config_commands="$ac_config_commands test/Makefile.tests"
34269 ac_config_commands="$ac_config_commands unittests/Makefile"
34272 ac_config_commands="$ac_config_commands tools/Makefile"
34275 ac_config_commands="$ac_config_commands utils/Makefile"
34278 ac_config_commands="$ac_config_commands projects/Makefile"
34281 ac_config_commands="$ac_config_commands bindings/Makefile"
34284 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34288 cat >confcache <<\_ACEOF
34289 # This file is a shell script that caches the results of configure
34290 # tests run on this system so they can be shared between configure
34291 # scripts and configure runs, see configure's option --config-cache.
34292 # It is not useful on other systems. If it contains results you don't
34293 # want to keep, you may remove or edit it.
34295 # config.status only pays attention to the cache file if you give it
34296 # the --recheck option to rerun configure.
34298 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34299 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34300 # following values.
34304 # The following way of writing the cache mishandles newlines in values,
34305 # but we know of no workaround that is simple, portable, and efficient.
34306 # So, we kill variables containing newlines.
34307 # Ultrix sh set writes to stderr and can't be redirected directly,
34308 # and sets the high bit in the cache file unless we assign to the vars.
34310 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34311 eval ac_val=\$$ac_var
34315 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34316 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34319 _ | IFS | as_nl) ;; #(
34320 *) $as_unset $ac_var ;;
34326 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34327 *${as_nl}ac_space=\ *)
34328 # `set' does not quote correctly, so add quotes (double-quote
34329 # substitution turns \\\\ into \\, and sed turns \\ into \).
34332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34335 # `set' quotes correctly as required by POSIX, so do not add quotes.
34336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34349 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34350 if test -w "$cache_file"; then
34351 test "x$cache_file" != "x/dev/null" &&
34352 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34353 echo "$as_me: updating cache $cache_file" >&6;}
34354 cat confcache >$cache_file
34356 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34357 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34362 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34363 # Let make expand exec_prefix.
34364 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34366 DEFS=-DHAVE_CONFIG_H
34370 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34371 # 1. Remove the extension, and $U if already installed.
34372 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34373 ac_i=`echo "$ac_i" | sed "$ac_script"`
34374 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34375 # will be set to the directory where LIBOBJS objects are built.
34376 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34377 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34379 LIBOBJS=$ac_libobjs
34381 LTLIBOBJS=$ac_ltlibobjs
34384 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34385 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34386 Usually this means the macro was only invoked conditionally." >&5
34387 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34388 Usually this means the macro was only invoked conditionally." >&2;}
34389 { (exit 1); exit 1; }; }
34391 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34392 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34393 Usually this means the macro was only invoked conditionally." >&5
34394 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34395 Usually this means the macro was only invoked conditionally." >&2;}
34396 { (exit 1); exit 1; }; }
34399 : ${CONFIG_STATUS=./config.status}
34400 ac_clean_files_save=$ac_clean_files
34401 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34402 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34403 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34404 cat >$CONFIG_STATUS <<_ACEOF
34406 # Generated by $as_me.
34407 # Run this file to recreate the current configuration.
34408 # Compiler output produced by configure, useful for debugging
34409 # configure, is in config.log if it exists.
34412 ac_cs_recheck=false
34414 SHELL=\${CONFIG_SHELL-$SHELL}
34417 cat >>$CONFIG_STATUS <<\_ACEOF
34418 ## --------------------- ##
34419 ## M4sh Initialization. ##
34420 ## --------------------- ##
34422 # Be Bourne compatible
34423 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34426 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34427 # is contrary to our usage. Disable this feature.
34428 alias -g '${1+"$@"}'='"$@"'
34429 setopt NO_GLOB_SUBST
34431 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34433 BIN_SH=xpg4; export BIN_SH # for Tru64
34434 DUALCASE=1; export DUALCASE # for MKS sh
34438 # Avoid depending upon Character Ranges.
34439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34442 as_cr_digits='0123456789'
34443 as_cr_alnum=$as_cr_Letters$as_cr_digits
34445 # The user is always right.
34446 if test "${PATH_SEPARATOR+set}" != set; then
34447 echo "#! /bin/sh" >conf$$.sh
34448 echo "exit 0" >>conf$$.sh
34450 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34458 # Support unset when possible.
34459 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34467 # We need space, tab and new line, in precisely that order. Quoting is
34468 # there to prevent editors from complaining about space-tab.
34469 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34470 # splitting by setting IFS to empty value.)
34475 # Find who we are. Look in the path if we contain no directory separator.
34477 *[\\/]* ) as_myself=$0 ;;
34478 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34479 for as_dir in $PATH
34482 test -z "$as_dir" && as_dir=.
34483 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34489 # We did not find ourselves, most probably we were run as `sh COMMAND'
34490 # in which case we are not to be found in the path.
34491 if test "x$as_myself" = x; then
34494 if test ! -f "$as_myself"; then
34495 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34496 { (exit 1); exit 1; }
34499 # Work around bugs in pre-3.0 UWIN ksh.
34500 for as_var in ENV MAIL MAILPATH
34501 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34509 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34510 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34511 LC_TELEPHONE LC_TIME
34513 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34514 eval $as_var=C; export $as_var
34516 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34520 # Required to use basename.
34521 if expr a : '\(a\)' >/dev/null 2>&1 &&
34522 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34528 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34529 as_basename=basename
34535 # Name of the executable.
34536 as_me=`$as_basename -- "$0" ||
34537 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34538 X"$0" : 'X\(//\)$' \| \
34539 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34541 sed '/^.*\/\([^/][^/]*\)\/*$/{
34560 as_lineno_1=$LINENO
34561 as_lineno_2=$LINENO
34562 test "x$as_lineno_1" != "x$as_lineno_2" &&
34563 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34565 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34566 # uniformly replaced by the line number. The first 'sed' inserts a
34567 # line-number line after each line using $LINENO; the second 'sed'
34568 # does the real work. The second script uses 'N' to pair each
34569 # line-number line with the line containing $LINENO, and appends
34570 # trailing '-' during substitution so that $LINENO is not a special
34571 # case at line end.
34572 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34573 # scripts with optimization help from Paolo Bonzini. Blame Lee
34574 # E. McMahon (1931-1989) for sed's syntax. :-)
34586 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34589 ' >$as_me.lineno &&
34590 chmod +x "$as_me.lineno" ||
34591 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34592 { (exit 1); exit 1; }; }
34594 # Don't try to exec as it changes $[0], causing all sort of problems
34595 # (the dirname of $[0] is not the place where we might find the
34596 # original and so on. Autoconf is especially sensitive to this).
34597 . "./$as_me.lineno"
34598 # Exit status is that of the last command.
34603 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34609 ECHO_C= ECHO_N= ECHO_T=
34610 case `echo -n x` in
34612 case `echo 'x\c'` in
34613 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34620 if expr a : '\(a\)' >/dev/null 2>&1 &&
34621 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34627 rm -f conf$$ conf$$.exe conf$$.file
34628 if test -d conf$$.dir; then
34629 rm -f conf$$.dir/conf$$.file
34635 if ln -s conf$$.file conf$$ 2>/dev/null; then
34637 # ... but there are two gotchas:
34638 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34639 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34640 # In both cases, we have to default to `cp -p'.
34641 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34643 elif ln conf$$.file conf$$ 2>/dev/null; then
34648 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34649 rmdir conf$$.dir 2>/dev/null
34651 if mkdir -p . 2>/dev/null; then
34654 test -d ./-p && rmdir ./-p
34658 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34659 # systems may use methods other than mode bits to determine executability.
34660 cat >conf$$.file <<_ASEOF
34664 chmod +x conf$$.file
34665 if test -x conf$$.file >/dev/null 2>&1; then
34666 as_executable_p="test -x"
34672 # Sed expression to map a string onto a valid CPP name.
34673 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34675 # Sed expression to map a string onto a valid variable name.
34676 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34681 # Save the log message, to keep $[0] and so on meaningful, and to
34682 # report actual input values of CONFIG_FILES etc. instead of their
34683 # values after options handling.
34685 This file was extended by llvm $as_me 2.6svn, which was
34686 generated by GNU Autoconf 2.60. Invocation command line was
34688 CONFIG_FILES = $CONFIG_FILES
34689 CONFIG_HEADERS = $CONFIG_HEADERS
34690 CONFIG_LINKS = $CONFIG_LINKS
34691 CONFIG_COMMANDS = $CONFIG_COMMANDS
34694 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34699 cat >>$CONFIG_STATUS <<_ACEOF
34700 # Files that config.status was made for.
34701 config_files="$ac_config_files"
34702 config_headers="$ac_config_headers"
34703 config_commands="$ac_config_commands"
34707 cat >>$CONFIG_STATUS <<\_ACEOF
34709 \`$as_me' instantiates files from templates according to the
34710 current configuration.
34712 Usage: $0 [OPTIONS] [FILE]...
34714 -h, --help print this help, then exit
34715 -V, --version print version number, then exit
34716 -q, --quiet do not print progress messages
34717 -d, --debug don't remove temporary files
34718 --recheck update $as_me by reconfiguring in the same conditions
34719 --file=FILE[:TEMPLATE]
34720 instantiate the configuration file FILE
34721 --header=FILE[:TEMPLATE]
34722 instantiate the configuration header FILE
34724 Configuration files:
34727 Configuration headers:
34730 Configuration commands:
34733 Report bugs to <bug-autoconf@gnu.org>."
34736 cat >>$CONFIG_STATUS <<_ACEOF
34738 llvm config.status 2.6svn
34739 configured by $0, generated by GNU Autoconf 2.60,
34740 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34742 Copyright (C) 2006 Free Software Foundation, Inc.
34743 This config.status script is free software; the Free Software Foundation
34744 gives unlimited permission to copy, distribute and modify it."
34751 cat >>$CONFIG_STATUS <<\_ACEOF
34752 # If no file are specified by the user, then we need to provide default
34753 # value. By we need to know if files were specified by the user.
34759 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34760 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34771 # Handling of the options.
34772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34774 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34775 echo "$ac_cs_version"; exit ;;
34776 --debug | --debu | --deb | --de | --d | -d )
34778 --file | --fil | --fi | --f )
34780 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34781 ac_need_defaults=false;;
34782 --header | --heade | --head | --hea )
34784 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34785 ac_need_defaults=false;;
34787 # Conflict between --help and --header
34788 { echo "$as_me: error: ambiguous option: $1
34789 Try \`$0 --help' for more information." >&2
34790 { (exit 1); exit 1; }; };;
34791 --help | --hel | -h )
34792 echo "$ac_cs_usage"; exit ;;
34793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34794 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34797 # This is an error.
34798 -*) { echo "$as_me: error: unrecognized option: $1
34799 Try \`$0 --help' for more information." >&2
34800 { (exit 1); exit 1; }; } ;;
34802 *) ac_config_targets="$ac_config_targets $1"
34803 ac_need_defaults=false ;;
34809 ac_configure_extra_args=
34811 if $ac_cs_silent; then
34813 ac_configure_extra_args="$ac_configure_extra_args --silent"
34817 cat >>$CONFIG_STATUS <<_ACEOF
34818 if \$ac_cs_recheck; then
34819 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34820 CONFIG_SHELL=$SHELL
34821 export CONFIG_SHELL
34822 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34826 cat >>$CONFIG_STATUS <<\_ACEOF
34830 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34831 ## Running $as_me. ##
34837 cat >>$CONFIG_STATUS <<_ACEOF
34841 llvm_src="${srcdir}"
34845 cat >>$CONFIG_STATUS <<\_ACEOF
34847 # Handling of arguments.
34848 for ac_config_target in $ac_config_targets
34850 case $ac_config_target in
34851 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34852 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34853 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34854 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34855 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34856 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34857 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
34858 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34859 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34860 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34861 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34862 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34863 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34864 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34865 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34866 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34867 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34868 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34869 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34870 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34871 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34872 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34874 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34875 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34876 { (exit 1); exit 1; }; };;
34881 # If the user did not use the arguments to specify the items to instantiate,
34882 # then the envvar interface is used. Set only those that are not.
34883 # We use the long form for the default assignment because of an extremely
34884 # bizarre bug on SunOS 4.1.3.
34885 if $ac_need_defaults; then
34886 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34887 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34888 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34891 # Have a temporary directory for convenience. Make it in the build tree
34892 # simply because there is no reason against having it here, and in addition,
34893 # creating and moving files from /tmp can sometimes cause problems.
34894 # Hook for its removal unless debugging.
34895 # Note that there is a small window in which the directory will not be cleaned:
34896 # after its creation but before its name has been assigned to `$tmp'.
34900 trap 'exit_status=$?
34901 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34903 trap '{ (exit 1); exit 1; }' 1 2 13 15
34905 # Create a (secure) tmp directory for tmp files.
34908 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34909 test -n "$tmp" && test -d "$tmp"
34912 tmp=./conf$$-$RANDOM
34913 (umask 077 && mkdir "$tmp")
34916 echo "$me: cannot create a temporary directory in ." >&2
34917 { (exit 1); exit 1; }
34921 # Set up the sed scripts for CONFIG_FILES section.
34924 # No need to generate the scripts if there are no CONFIG_FILES.
34925 # This happens for instance when ./config.status config.h
34926 if test -n "$CONFIG_FILES"; then
34933 for ac_last_try in false false false false false :; do
34934 cat >conf$$subs.sed <<_ACEOF
34935 SHELL!$SHELL$ac_delim
34936 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34937 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34938 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34939 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34940 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34941 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34942 exec_prefix!$exec_prefix$ac_delim
34943 prefix!$prefix$ac_delim
34944 program_transform_name!$program_transform_name$ac_delim
34945 bindir!$bindir$ac_delim
34946 sbindir!$sbindir$ac_delim
34947 libexecdir!$libexecdir$ac_delim
34948 datarootdir!$datarootdir$ac_delim
34949 datadir!$datadir$ac_delim
34950 sysconfdir!$sysconfdir$ac_delim
34951 sharedstatedir!$sharedstatedir$ac_delim
34952 localstatedir!$localstatedir$ac_delim
34953 includedir!$includedir$ac_delim
34954 oldincludedir!$oldincludedir$ac_delim
34955 docdir!$docdir$ac_delim
34956 infodir!$infodir$ac_delim
34957 htmldir!$htmldir$ac_delim
34958 dvidir!$dvidir$ac_delim
34959 pdfdir!$pdfdir$ac_delim
34960 psdir!$psdir$ac_delim
34961 libdir!$libdir$ac_delim
34962 localedir!$localedir$ac_delim
34963 mandir!$mandir$ac_delim
34964 DEFS!$DEFS$ac_delim
34965 ECHO_C!$ECHO_C$ac_delim
34966 ECHO_N!$ECHO_N$ac_delim
34967 ECHO_T!$ECHO_T$ac_delim
34968 LIBS!$LIBS$ac_delim
34969 build_alias!$build_alias$ac_delim
34970 host_alias!$host_alias$ac_delim
34971 target_alias!$target_alias$ac_delim
34972 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34973 subdirs!$subdirs$ac_delim
34974 build!$build$ac_delim
34975 build_cpu!$build_cpu$ac_delim
34976 build_vendor!$build_vendor$ac_delim
34977 build_os!$build_os$ac_delim
34978 host!$host$ac_delim
34979 host_cpu!$host_cpu$ac_delim
34980 host_vendor!$host_vendor$ac_delim
34981 host_os!$host_os$ac_delim
34982 target!$target$ac_delim
34983 target_cpu!$target_cpu$ac_delim
34984 target_vendor!$target_vendor$ac_delim
34985 target_os!$target_os$ac_delim
34987 LINKALL!$LINKALL$ac_delim
34988 NOLINKALL!$NOLINKALL$ac_delim
34989 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34990 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34991 ARCH!$ARCH$ac_delim
34992 ENDIAN!$ENDIAN$ac_delim
34994 CFLAGS!$CFLAGS$ac_delim
34995 LDFLAGS!$LDFLAGS$ac_delim
34996 CPPFLAGS!$CPPFLAGS$ac_delim
34997 ac_ct_CC!$ac_ct_CC$ac_delim
34998 EXEEXT!$EXEEXT$ac_delim
34999 OBJEXT!$OBJEXT$ac_delim
35001 GREP!$GREP$ac_delim
35002 EGREP!$EGREP$ac_delim
35003 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35004 BUILD_CC!$BUILD_CC$ac_delim
35005 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35006 BUILD_CXX!$BUILD_CXX$ac_delim
35007 CVSBUILD!$CVSBUILD$ac_delim
35008 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35009 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
35010 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35011 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35012 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35013 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35015 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35016 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35017 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35018 ENABLE_PIC!$ENABLE_PIC$ac_delim
35019 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35020 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35021 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35022 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35024 CXXFLAGS!$CXXFLAGS$ac_delim
35025 ac_ct_CXX!$ac_ct_CXX$ac_delim
35027 ifGNUmake!$ifGNUmake$ac_delim
35028 LN_S!$LN_S$ac_delim
35031 DATE!$DATE$ac_delim
35034 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35036 elif $ac_last_try; then
35037 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35038 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35039 { (exit 1); exit 1; }; }
35041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35045 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35046 if test -n "$ac_eof"; then
35047 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35048 ac_eof=`expr $ac_eof + 1`
35051 cat >>$CONFIG_STATUS <<_ACEOF
35052 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35053 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35056 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35057 s/^/s,@/; s/!/@,|#_!!_#|/
35060 s/'"$ac_delim"'$/,g/; t
35062 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35063 ' >>$CONFIG_STATUS <conf$$subs.sed
35064 rm -f conf$$subs.sed
35065 cat >>$CONFIG_STATUS <<_ACEOF
35071 for ac_last_try in false false false false false :; do
35072 cat >conf$$subs.sed <<_ACEOF
35073 FIND!$FIND$ac_delim
35074 MKDIR!$MKDIR$ac_delim
35076 RANLIB!$RANLIB$ac_delim
35080 BINPWD!$BINPWD$ac_delim
35081 GRAPHVIZ!$GRAPHVIZ$ac_delim
35084 DOTTY!$DOTTY$ac_delim
35085 PERL!$PERL$ac_delim
35086 HAVE_PERL!$HAVE_PERL$ac_delim
35087 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35088 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35089 INSTALL_DATA!$INSTALL_DATA$ac_delim
35090 BZIP2!$BZIP2$ac_delim
35091 DOXYGEN!$DOXYGEN$ac_delim
35092 GROFF!$GROFF$ac_delim
35093 GZIP!$GZIP$ac_delim
35094 POD2HTML!$POD2HTML$ac_delim
35095 POD2MAN!$POD2MAN$ac_delim
35096 RUNTEST!$RUNTEST$ac_delim
35097 TCLSH!$TCLSH$ac_delim
35099 OCAMLC!$OCAMLC$ac_delim
35100 OCAMLOPT!$OCAMLOPT$ac_delim
35101 OCAMLDEP!$OCAMLDEP$ac_delim
35102 OCAMLDOC!$OCAMLDOC$ac_delim
35104 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35105 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35106 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35107 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35108 LIBADD_DL!$LIBADD_DL$ac_delim
35109 ECHO!$ECHO$ac_delim
35111 STRIP!$STRIP$ac_delim
35112 CXXCPP!$CXXCPP$ac_delim
35114 FFLAGS!$FFLAGS$ac_delim
35115 ac_ct_F77!$ac_ct_F77$ac_delim
35116 LIBTOOL!$LIBTOOL$ac_delim
35117 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35118 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
35119 LLVMGCC!$LLVMGCC$ac_delim
35120 LLVMGXX!$LLVMGXX$ac_delim
35121 USE_UDIS86!$USE_UDIS86$ac_delim
35122 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35123 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35124 ALLOCA!$ALLOCA$ac_delim
35125 MMAP_FILE!$MMAP_FILE$ac_delim
35126 LLVMCC1!$LLVMCC1$ac_delim
35127 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35128 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35129 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35130 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35131 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35132 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35133 SHLIBEXT!$SHLIBEXT$ac_delim
35134 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35135 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35136 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35137 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35138 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35139 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35140 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35141 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35142 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35143 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35144 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35145 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35146 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35147 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35148 RPATH!$RPATH$ac_delim
35149 RDYNAMIC!$RDYNAMIC$ac_delim
35150 LIBOBJS!$LIBOBJS$ac_delim
35151 LTLIBOBJS!$LTLIBOBJS$ac_delim
35154 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
35156 elif $ac_last_try; then
35157 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35158 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35159 { (exit 1); exit 1; }; }
35161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35165 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35166 if test -n "$ac_eof"; then
35167 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35168 ac_eof=`expr $ac_eof + 1`
35171 cat >>$CONFIG_STATUS <<_ACEOF
35172 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35176 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35177 s/^/s,@/; s/!/@,|#_!!_#|/
35180 s/'"$ac_delim"'$/,g/; t
35182 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35183 ' >>$CONFIG_STATUS <conf$$subs.sed
35184 rm -f conf$$subs.sed
35185 cat >>$CONFIG_STATUS <<_ACEOF
35192 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35193 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35194 # trailing colons and then remove the whole line if VPATH becomes empty
35195 # (actually we leave an empty line to preserve line numbers).
35196 if test "x$srcdir" = x.; then
35197 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35198 s/:*\$(srcdir):*/:/
35199 s/:*\${srcdir}:*/:/
35201 s/^\([^=]*=[ ]*\):*/\1/
35207 cat >>$CONFIG_STATUS <<\_ACEOF
35208 fi # test -n "$CONFIG_FILES"
35211 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35214 :[FHLC]) ac_mode=$ac_tag; continue;;
35216 case $ac_mode$ac_tag in
35218 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35219 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35220 { (exit 1); exit 1; }; };;
35221 :[FH]-) ac_tag=-:-;;
35222 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35239 -) ac_f="$tmp/stdin";;
35240 *) # Look for the file first in the build tree, then in the source tree
35241 # (if the path is not absolute). The absolute path cannot be DOS-style,
35242 # because $ac_f cannot contain `:'.
35246 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35248 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35249 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35250 { (exit 1); exit 1; }; };;
35252 ac_file_inputs="$ac_file_inputs $ac_f"
35255 # Let's still pretend it is `configure' which instantiates (i.e., don't
35256 # use $as_me), people would be surprised to read:
35257 # /* config.h. Generated by config.status. */
35258 configure_input="Generated from "`IFS=:
35259 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35260 if test x"$ac_file" != x-; then
35261 configure_input="$ac_file. $configure_input"
35262 { echo "$as_me:$LINENO: creating $ac_file" >&5
35263 echo "$as_me: creating $ac_file" >&6;}
35267 *:-:* | *:-) cat >"$tmp/stdin";;
35272 ac_dir=`$as_dirname -- "$ac_file" ||
35273 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35274 X"$ac_file" : 'X\(//\)[^/]' \| \
35275 X"$ac_file" : 'X\(//\)$' \| \
35276 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35282 /^X\(\/\/\)[^/].*/{
35297 -*) as_dir=./$as_dir;;
35299 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35303 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35304 *) as_qdir=$as_dir;;
35306 as_dirs="'$as_qdir' $as_dirs"
35307 as_dir=`$as_dirname -- "$as_dir" ||
35308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35309 X"$as_dir" : 'X\(//\)[^/]' \| \
35310 X"$as_dir" : 'X\(//\)$' \| \
35311 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35317 /^X\(\/\/\)[^/].*/{
35330 test -d "$as_dir" && break
35332 test -z "$as_dirs" || eval "mkdir $as_dirs"
35333 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35334 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35335 { (exit 1); exit 1; }; }; }
35339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35341 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35342 # A ".." for each directory in $ac_dir_suffix.
35343 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35344 case $ac_top_builddir_sub in
35345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35349 ac_abs_top_builddir=$ac_pwd
35350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35351 # for backward compatibility:
35352 ac_top_builddir=$ac_top_build_prefix
35355 .) # We are building in place.
35357 ac_top_srcdir=$ac_top_builddir_sub
35358 ac_abs_top_srcdir=$ac_pwd ;;
35359 [\\/]* | ?:[\\/]* ) # Absolute name.
35360 ac_srcdir=$srcdir$ac_dir_suffix;
35361 ac_top_srcdir=$srcdir
35362 ac_abs_top_srcdir=$srcdir ;;
35363 *) # Relative name.
35364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35365 ac_top_srcdir=$ac_top_build_prefix$srcdir
35366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35383 cat >>$CONFIG_STATUS <<\_ACEOF
35384 # If the template does not know about datarootdir, expand it.
35385 # FIXME: This hack should be removed a few years after 2.60.
35386 ac_datarootdir_hack=; ac_datarootdir_seen=
35388 case `sed -n '/datarootdir/ {
35397 ' $ac_file_inputs` in
35398 *datarootdir*) ac_datarootdir_seen=yes;;
35399 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35400 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35401 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35403 cat >>$CONFIG_STATUS <<_ACEOF
35404 ac_datarootdir_hack='
35405 s&@datadir@&$datadir&g
35406 s&@docdir@&$docdir&g
35407 s&@infodir@&$infodir&g
35408 s&@localedir@&$localedir&g
35409 s&@mandir@&$mandir&g
35410 s&\\\${datarootdir}&$datarootdir&g' ;;
35414 # Neutralize VPATH when `$srcdir' = `.'.
35415 # Shell code in configure.ac might set extrasub.
35416 # FIXME: do we really want to maintain this feature?
35417 cat >>$CONFIG_STATUS <<_ACEOF
35421 cat >>$CONFIG_STATUS <<\_ACEOF
35423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35424 s&@configure_input@&$configure_input&;t t
35425 s&@top_builddir@&$ac_top_builddir_sub&;t t
35426 s&@srcdir@&$ac_srcdir&;t t
35427 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35428 s&@top_srcdir@&$ac_top_srcdir&;t t
35429 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35430 s&@builddir@&$ac_builddir&;t t
35431 s&@abs_builddir@&$ac_abs_builddir&;t t
35432 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35433 s&@INSTALL@&$ac_INSTALL&;t t
35434 $ac_datarootdir_hack
35435 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35437 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35438 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35439 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35440 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35441 which seems to be undefined. Please make sure it is defined." >&5
35442 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35443 which seems to be undefined. Please make sure it is defined." >&2;}
35447 -) cat "$tmp/out"; rm -f "$tmp/out";;
35448 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35457 # Transform confdefs.h into a sed script `conftest.defines', that
35458 # substitutes the proper values into config.h.in to produce config.h.
35459 rm -f conftest.defines conftest.tail
35460 # First, append a space to every undef/define line, to ease matching.
35461 echo 's/$/ /' >conftest.defines
35462 # Then, protect against being on the right side of a sed subst, or in
35463 # an unquoted here document, in config.status. If some macros were
35464 # called several times there might be several #defines for the same
35465 # symbol, which is useless. But do not sort them, since the last
35466 # AC_DEFINE must be honored.
35467 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35468 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35469 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35470 # PARAMS is the parameter list in the macro definition--in most cases, it's
35471 # just an empty string.
35472 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35473 ac_dB='\\)[ (].*,\\1define\\2'
35481 s/^[ ]*#[ ]*define[ ][ ]*//
35486 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35487 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35488 ' >>conftest.defines
35490 # Remove the space that was appended to ease matching.
35491 # Then replace #undef with comments. This is necessary, for
35492 # example, in the case of _POSIX_SOURCE, which is predefined and required
35493 # on some systems where configure will not decide to define it.
35494 # (The regexp can be short, since the line contains either #define or #undef.)
35496 s,^[ #]*u.*,/* & */,' >>conftest.defines
35498 # Break up conftest.defines:
35499 ac_max_sed_lines=50
35501 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35502 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35503 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35505 ac_in='$ac_file_inputs'
35506 ac_out='"$tmp/out1"'
35507 ac_nxt='"$tmp/out2"'
35511 # Write a here document:
35512 cat >>$CONFIG_STATUS <<_ACEOF
35513 # First, check the format of the line:
35514 cat >"\$tmp/defines.sed" <<\\CEOF
35515 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35516 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35520 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35522 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35523 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35524 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35525 grep . conftest.tail >/dev/null || break
35526 rm -f conftest.defines
35527 mv conftest.tail conftest.defines
35529 rm -f conftest.defines conftest.tail
35531 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35532 cat >>$CONFIG_STATUS <<\_ACEOF
35533 if test x"$ac_file" != x-; then
35534 echo "/* $configure_input */" >"$tmp/config.h"
35535 cat "$ac_result" >>"$tmp/config.h"
35536 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35537 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35538 echo "$as_me: $ac_file is unchanged" >&6;}
35541 mv "$tmp/config.h" $ac_file
35544 echo "/* $configure_input */"
35550 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35551 echo "$as_me: executing $ac_file commands" >&6;}
35556 case $ac_file$ac_mode in
35557 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35558 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35559 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35560 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35561 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35562 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35563 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35564 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35565 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35566 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35567 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35568 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35569 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35570 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35571 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35572 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35573 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35574 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35575 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35576 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35577 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35578 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35579 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35580 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35581 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35582 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35588 { (exit 0); exit 0; }
35590 chmod +x $CONFIG_STATUS
35591 ac_clean_files=$ac_clean_files_save
35594 # configure is writing to config.log, and then calls config.status.
35595 # config.status does its own redirection, appending to config.log.
35596 # Unfortunately, on DOS this fails, as config.log is still kept open
35597 # by configure, so config.status won't be able to write to it; its
35598 # output is simply discarded. So we exec the FD to /dev/null,
35599 # effectively closing config.log, so it can be properly (re)opened and
35600 # appended to by config.status. When coming back to configure, we
35601 # need to make the FD available again.
35602 if test "$no_create" != yes; then
35604 ac_config_status_args=
35605 test "$silent" = yes &&
35606 ac_config_status_args="$ac_config_status_args --quiet"
35608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35611 # would make configure fail if this is the last instruction.
35612 $ac_cs_success || { (exit 1); exit 1; }
35616 # CONFIG_SUBDIRS section.
35618 if test "$no_recursion" != yes; then
35620 # Remove --cache-file and --srcdir arguments so they do not pile up.
35621 ac_sub_configure_args=
35623 eval "set x $ac_configure_args"
35627 if test -n "$ac_prev"; then
35632 -cache-file | --cache-file | --cache-fil | --cache-fi \
35633 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35634 ac_prev=cache_file ;;
35635 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35636 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35639 --config-cache | -C)
35641 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35643 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35645 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35647 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35651 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35653 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35657 # Always prepend --prefix to ensure using the same prefix
35658 # in subdir configurations.
35659 ac_arg="--prefix=$prefix"
35661 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35663 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35666 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35668 # Do not complain, so a configure script can configure whichever
35669 # parts of a large source tree are present.
35670 test -d "$srcdir/$ac_dir" || continue
35672 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35673 echo "$as_me:$LINENO: $ac_msg" >&5
35677 -*) as_dir=./$as_dir;;
35679 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35683 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35684 *) as_qdir=$as_dir;;
35686 as_dirs="'$as_qdir' $as_dirs"
35687 as_dir=`$as_dirname -- "$as_dir" ||
35688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35689 X"$as_dir" : 'X\(//\)[^/]' \| \
35690 X"$as_dir" : 'X\(//\)$' \| \
35691 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35697 /^X\(\/\/\)[^/].*/{
35710 test -d "$as_dir" && break
35712 test -z "$as_dirs" || eval "mkdir $as_dirs"
35713 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35714 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35715 { (exit 1); exit 1; }; }; }
35719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35721 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35722 # A ".." for each directory in $ac_dir_suffix.
35723 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35724 case $ac_top_builddir_sub in
35725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35729 ac_abs_top_builddir=$ac_pwd
35730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35731 # for backward compatibility:
35732 ac_top_builddir=$ac_top_build_prefix
35735 .) # We are building in place.
35737 ac_top_srcdir=$ac_top_builddir_sub
35738 ac_abs_top_srcdir=$ac_pwd ;;
35739 [\\/]* | ?:[\\/]* ) # Absolute name.
35740 ac_srcdir=$srcdir$ac_dir_suffix;
35741 ac_top_srcdir=$srcdir
35742 ac_abs_top_srcdir=$srcdir ;;
35743 *) # Relative name.
35744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35745 ac_top_srcdir=$ac_top_build_prefix$srcdir
35746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35753 # Check for guested configure; otherwise get Cygnus style configure.
35754 if test -f "$ac_srcdir/configure.gnu"; then
35755 ac_sub_configure=$ac_srcdir/configure.gnu
35756 elif test -f "$ac_srcdir/configure"; then
35757 ac_sub_configure=$ac_srcdir/configure
35758 elif test -f "$ac_srcdir/configure.in"; then
35759 # This should be Cygnus configure.
35760 ac_sub_configure=$ac_aux_dir/configure
35762 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35763 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35767 # The recursion is here.
35768 if test -n "$ac_sub_configure"; then
35769 # Make the cache file name correct relative to the subdirectory.
35770 case $cache_file in
35771 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35772 *) # Relative name.
35773 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35776 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35777 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35778 # The eval makes quoting arguments work.
35779 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35780 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35781 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35782 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35783 { (exit 1); exit 1; }; }